]> git.saurik.com Git - wxWidgets.git/blame - src/png/configure
Use wxPENSTYLE_XXX and wxBRUSHSTYLE_XXX instead of wxXXX constants.
[wxWidgets.git] / src / png / configure
CommitLineData
970f6abe
VZ
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
b61cc19c 3# Generated by GNU Autoconf 2.65 for libpng 1.4.4.
970f6abe
VZ
4#
5# Report bugs to <png-mng-implement@lists.sourceforge.net>.
6#
b61cc19c 7#
970f6abe 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
b61cc19c
PC
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
12#
970f6abe
VZ
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
b61cc19c
PC
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
0272a10d 18
970f6abe
VZ
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
b61cc19c 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
970f6abe
VZ
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
28else
b61cc19c
PC
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
970f6abe 34esac
970f6abe
VZ
35fi
36
37
970f6abe
VZ
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b61cc19c
PC
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if 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 --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
970f6abe
VZ
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
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;
b61cc19c 62 case $arg in #(
970f6abe
VZ
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'
74fi
75
76# The user is always right.
77if 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 }
83fi
84
970f6abe
VZ
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.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
b61cc19c 94case $0 in #((
970f6abe
VZ
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
b61cc19c
PC
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
970f6abe
VZ
103IFS=$as_save_IFS
104
105 ;;
106esac
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.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b61cc19c 114 exit 1
970f6abe
VZ
115fi
116
b61cc19c
PC
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.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
970f6abe
VZ
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
b61cc19c
PC
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if 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
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test 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
176test \$(( 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
187else
188 as_have_required=no
189fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
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
210fi
211fi
212 done;;
213 esac
214 as_found=false
215done
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
219fi; }
220IFS=$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+"$@"}
232fi
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
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265 { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_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.
280as_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.
290as_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.
340if (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 }'
345else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350fi # 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.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367fi # 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.
375as_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
970f6abe
VZ
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389else
390 as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395else
396 as_basename=false
397fi
398
b61cc19c
PC
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401else
402 as_dirname=false
403fi
970f6abe 404
970f6abe
VZ
405as_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
b61cc19c
PC
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
970f6abe
VZ
430
431
b61cc19c
PC
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; }
970f6abe 454
b61cc19c
PC
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
970f6abe
VZ
461}
462
b61cc19c
PC
463ECHO_C= ECHO_N= ECHO_T=
464case `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';;
474esac
970f6abe 475
b61cc19c
PC
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
970f6abe 482fi
b61cc19c
PC
483if (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
970f6abe 497else
b61cc19c 498 as_ln_s='cp -p'
970f6abe 499fi
b61cc19c
PC
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
970f6abe 502
b61cc19c
PC
503if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
970f6abe
VZ
508fi
509
b61cc19c
PC
510if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
970f6abe 512else
b61cc19c
PC
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 '
970f6abe 530fi
b61cc19c 531as_executable_p=$as_test_x
970f6abe 532
b61cc19c
PC
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
970f6abe 535
b61cc19c
PC
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
970f6abe 538
b61cc19c 539SHELL=${CONFIG_SHELL-/bin/sh}
970f6abe 540
970f6abe 541
b61cc19c
PC
542test -n "$DJDIR" || exec 7<&0 </dev/null
543exec 6>&1
970f6abe
VZ
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.
548ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549
550#
551# Initializations.
552#
553ac_default_prefix=/usr/local
554ac_clean_files=
555ac_config_libobj_dir=.
556LIBOBJS=
557cross_compiling=no
558subdirs=
559MFLAGS=
560MAKEFLAGS=
970f6abe
VZ
561
562# Identity of this package.
563PACKAGE_NAME='libpng'
564PACKAGE_TARNAME='libpng'
b61cc19c
PC
565PACKAGE_VERSION='1.4.4'
566PACKAGE_STRING='libpng 1.4.4'
970f6abe 567PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
b61cc19c 568PACKAGE_URL=''
970f6abe
VZ
569
570ac_unique_file="pngget.c"
571# Factoring default headers for most tests.
572ac_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
b61cc19c
PC
607ac_subst_vars='am__EXEEXT_FALSE
608am__EXEEXT_TRUE
609LTLIBOBJS
610binconfigs
611pkgconfigdir
612PNGLIB_RELEASE
613PNGLIB_MINOR
614PNGLIB_MAJOR
615PNGLIB_VERSION
616SYMBOL_PREFIX
617HAVE_LD_VERSION_SCRIPT_FALSE
618HAVE_LD_VERSION_SCRIPT_TRUE
619LIBPNG_DEFINES
620LIBOBJS
621POW_LIB
622OTOOL64
623OTOOL
624LIPO
625NMEDIT
626DSYMUTIL
627RANLIB
628AR
629NM
630ac_ct_DUMPBIN
631DUMPBIN
632LIBTOOL
970f6abe 633OBJDUMP
b61cc19c
PC
634DLLTOOL
635AS
970f6abe 636LN_S
b61cc19c
PC
637CPP
638LD
639FGREP
640EGREP
641GREP
642SED
643host_os
644host_vendor
645host_cpu
646host
647build_os
648build_vendor
649build_cpu
650build
651am__fastdepCC_FALSE
652am__fastdepCC_TRUE
653CCDEPMODE
654AMDEPBACKSLASH
655AMDEP_FALSE
656AMDEP_TRUE
657am__quote
658am__include
659DEPDIR
660OBJEXT
661EXEEXT
662ac_ct_CC
663CPPFLAGS
664LDFLAGS
665CFLAGS
666CC
667MAINT
668MAINTAINER_MODE_FALSE
669MAINTAINER_MODE_TRUE
670am__untar
671am__tar
672AMTAR
673am__leading_dot
674SET_MAKE
675AWK
676mkdir_p
677MKDIR_P
678INSTALL_STRIP_PROGRAM
679STRIP
680install_sh
681MAKEINFO
682AUTOHEADER
683AUTOMAKE
684AUTOCONF
685ACLOCAL
686VERSION
687PACKAGE
688CYGPATH_W
689am__isrc
690INSTALL_DATA
691INSTALL_SCRIPT
692INSTALL_PROGRAM
693target_alias
694host_alias
695build_alias
696LIBS
697ECHO_T
698ECHO_N
699ECHO_C
700DEFS
701mandir
702localedir
703libdir
704psdir
705pdfdir
706dvidir
707htmldir
708infodir
709docdir
710oldincludedir
711includedir
712localstatedir
713sharedstatedir
714sysconfdir
715datadir
716datarootdir
717libexecdir
718sbindir
719bindir
720program_transform_name
721prefix
722exec_prefix
723PACKAGE_URL
724PACKAGE_BUGREPORT
725PACKAGE_STRING
726PACKAGE_VERSION
727PACKAGE_TARNAME
728PACKAGE_NAME
729PATH_SEPARATOR
730SHELL'
970f6abe
VZ
731ac_subst_files=''
732ac_user_opts='
733enable_option_checking
734enable_maintainer_mode
735enable_dependency_tracking
736with_gnu_ld
737enable_shared
738enable_static
739with_pic
740enable_fast_install
741enable_libtool_lock
742with_pkgconfigdir
743with_binconfigs
970f6abe
VZ
744'
745 ac_precious_vars='build_alias
746host_alias
747target_alias
748CC
749CFLAGS
750LDFLAGS
751LIBS
752CPPFLAGS
753CPP'
754
755
756# Initialize some variables set by options.
757ac_init_help=
758ac_init_version=false
759ac_unrecognized_opts=
760ac_unrecognized_sep=
761# The variables have the same names as the options, with
762# dashes changed to underlines.
763cache_file=/dev/null
764exec_prefix=NONE
765no_create=
766no_recursion=
767prefix=NONE
768program_prefix=NONE
769program_suffix=NONE
770program_transform_name=s,x,x,
771silent=
772site=
773srcdir=
774verbose=
775x_includes=NONE
776x_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.)
784bindir='${exec_prefix}/bin'
785sbindir='${exec_prefix}/sbin'
786libexecdir='${exec_prefix}/libexec'
787datarootdir='${prefix}/share'
788datadir='${datarootdir}'
789sysconfdir='${prefix}/etc'
790sharedstatedir='${prefix}/com'
791localstatedir='${prefix}/var'
792includedir='${prefix}/include'
793oldincludedir='/usr/include'
794docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
795infodir='${datarootdir}/info'
796htmldir='${docdir}'
797dvidir='${docdir}'
798pdfdir='${docdir}'
799psdir='${docdir}'
800libdir='${exec_prefix}/lib'
801localedir='${datarootdir}/locale'
802mandir='${datarootdir}/man'
803
804ac_prev=
805ac_dashdash=
806for ac_option
807do
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 &&
b61cc19c 862 as_fn_error "invalid feature name: $ac_useropt"
970f6abe
VZ
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 &&
b61cc19c 888 as_fn_error "invalid feature name: $ac_useropt"
970f6abe
VZ
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 &&
b61cc19c 1092 as_fn_error "invalid package name: $ac_useropt"
970f6abe
VZ
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 &&
b61cc19c 1108 as_fn_error "invalid package name: $ac_useropt"
970f6abe
VZ
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
b61cc19c
PC
1138 -*) as_fn_error "unrecognized option: \`$ac_option'
1139Try \`$0 --help' for more information."
970f6abe
VZ
1140 ;;
1141
1142 *=*)
1143 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
b61cc19c
PC
1145 case $ac_envvar in #(
1146 '' | [0-9]* | *[!_$as_cr_alnum]* )
1147 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1148 esac
970f6abe
VZ
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
1161done
1162
1163if test -n "$ac_prev"; then
1164 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b61cc19c 1165 as_fn_error "missing argument to $ac_option"
970f6abe
VZ
1166fi
1167
1168if test -n "$ac_unrecognized_opts"; then
1169 case $enable_option_checking in
1170 no) ;;
b61cc19c
PC
1171 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1172 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
970f6abe
VZ
1173 esac
1174fi
1175
1176# Check all directory arguments for consistency.
1177for 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
1181do
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
b61cc19c 1194 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
970f6abe
VZ
1195done
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.
1200build=$build_alias
1201host=$host_alias
1202target=$target_alias
1203
1204# FIXME: To remove some day.
1205if 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
1213fi
1214
1215ac_tool_prefix=
1216test -n "$host_alias" && ac_tool_prefix=$host_alias-
1217
1218test "$silent" = yes && exec 6>/dev/null
1219
1220
1221ac_pwd=`pwd` && test -n "$ac_pwd" &&
1222ac_ls_di=`ls -di .` &&
1223ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b61cc19c 1224 as_fn_error "working directory cannot be determined"
970f6abe 1225test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b61cc19c 1226 as_fn_error "pwd does not report name of working directory"
970f6abe
VZ
1227
1228
1229# Find the source files, if location was not specified.
1230if 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
1260else
1261 ac_srcdir_defaulted=no
1262fi
1263if test ! -r "$srcdir/$ac_unique_file"; then
1264 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b61cc19c 1265 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
970f6abe
VZ
1266fi
1267ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268ac_abs_confdir=`(
b61cc19c 1269 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
970f6abe
VZ
1270 pwd)`
1271# When building in place, set srcdir=.
1272if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 srcdir=.
1274fi
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.
1278case $srcdir in
1279*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280esac
1281for 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}
1286done
1287
1288#
1289# Report the --help message.
1290#
1291if 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
b61cc19c 1295\`configure' configures libpng 1.4.4 to adapt to many kinds of systems.
970f6abe
VZ
1296
1297Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300VAR=VALUE. See below for descriptions of some of the useful variables.
1301
1302Defaults for the options are specified in brackets.
1303
1304Configuration:
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
1315Installation 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
1321By default, \`make install' will install all the files in
1322\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324for instance \`--prefix=\$HOME'.
1325
1326For better control, use the options below.
1327
1328Fine 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
1352Program 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
1357System 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
1361fi
1362
1363if test -n "$ac_init_help"; then
1364 case $ac_init_help in
b61cc19c 1365 short | recursive ) echo "Configuration of libpng 1.4.4:";;
970f6abe
VZ
1366 esac
1367 cat <<\_ACEOF
1368
1369Optional 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
1383Optional 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]
970f6abe
VZ
1393
1394Some 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>
b61cc19c 1400 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
970f6abe
VZ
1401 you have headers in a nonstandard directory <include dir>
1402 CPP C preprocessor
1403
1404Use these variables to override the choices made by `configure' or to help
1405it to find libraries and programs with nonstandard names/locations.
1406
1407Report bugs to <png-mng-implement@lists.sourceforge.net>.
1408_ACEOF
b61cc19c
PC
1409ac_status=$?
1410fi
1411
1412if 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
1420case "$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 ;;
1430esac
1431ac_abs_top_builddir=$ac_pwd
1432ac_abs_builddir=$ac_pwd$ac_dir_suffix
1433# for backward compatibility:
1434ac_top_builddir=$ac_top_build_prefix
1435
1436case $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 ;;
1449esac
1450ac_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
1465fi
1466
1467test -n "$ac_init_help" && exit $ac_status
1468if $ac_init_version; then
1469 cat <<\_ACEOF
1470libpng configure 1.4.4
1471generated by GNU Autoconf 2.65
1472
1473Copyright (C) 2009 Free Software Foundation, Inc.
1474This configure script is free software; the Free Software Foundation
1475gives unlimited permission to copy, distribute and modify it.
1476_ACEOF
1477 exit
1478fi
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.
1487ac_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"
1492case "(($ac_try" in
1493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1494 *) ac_try_echo=$ac_try;;
1495esac
1496eval 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
1511else
1512 $as_echo "$as_me: failed program was:" >&5
1513sed 's/^/| /' conftest.$ac_ext >&5
1514
1515 ac_retval=1
1516fi
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.
1525ac_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"
1529case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532esac
1533eval 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
1548else
1549 $as_echo "$as_me: failed program was:" >&5
1550sed 's/^/| /' conftest.$ac_ext >&5
1551
1552 ac_retval=1
1553fi
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.
1562ac_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"
1567case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570esac
1571eval 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
1589else
1590 $as_echo "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
1593 ac_retval=1
1594fi
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.
1609ac_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; }
1614if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1615 $as_echo_n "(cached) " >&6
1616else
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618/* end confdefs.h. */
1619$4
1620#include <$2>
1621_ACEOF
1622if ac_fn_c_try_compile "$LINENO"; then :
1623 eval "$3=yes"
1624else
1625 eval "$3=no"
1626fi
1627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628fi
1629eval 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.
1640ac_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"
1644case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647esac
1648eval 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;;
1657esac
1658eval 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
1665else
1666 $as_echo "$as_me: program exited with status $ac_status" >&5
1667 $as_echo "$as_me: failed program was:" >&5
1668sed 's/^/| /' conftest.$ac_ext >&5
1669
1670 ac_retval=$ac_status
1671fi
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
1681ac_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; }
1686if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1687 $as_echo_n "(cached) " >&6
1688else
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
1712extern "C"
1713#endif
1714char $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
1719choke me
1720#endif
1721
1722int
1723main ()
1724{
1725return $2 ();
1726 ;
1727 return 0;
1728}
1729_ACEOF
1730if ac_fn_c_try_link "$LINENO"; then :
1731 eval "$3=yes"
1732else
1733 eval "$3=no"
1734fi
1735rm -f core conftest.err conftest.$ac_objext \
1736 conftest$ac_exeext conftest.$ac_ext
1737fi
1738eval 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.
1750ac_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; }
1756if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1757 $as_echo_n "(cached) " >&6
1758fi
1759eval ac_res=\$$3
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761$as_echo "$ac_res" >&6; }
1762else
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; }
1766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767/* end confdefs.h. */
1768$4
1769#include <$2>
1770_ACEOF
1771if ac_fn_c_try_compile "$LINENO"; then :
1772 ac_header_compiler=yes
1773else
1774 ac_header_compiler=no
970f6abe 1775fi
b61cc19c
PC
1776rm -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; }
970f6abe 1779
b61cc19c
PC
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; }
1783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784/* end confdefs.h. */
1785#include <$2>
1786_ACEOF
1787if ac_fn_c_try_cpp "$LINENO"; then :
1788 ac_header_preproc=yes
1789else
1790 ac_header_preproc=no
1791fi
1792rm -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; }
970f6abe 1795
b61cc19c
PC
1796# So? What about this header?
1797case $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 ;;
970f6abe 1822esac
b61cc19c
PC
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824$as_echo_n "checking for $2... " >&6; }
1825if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1826 $as_echo_n "(cached) " >&6
1827else
1828 eval "$3=\$ac_header_compiler"
970f6abe 1829fi
b61cc19c
PC
1830eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832$as_echo "$ac_res" >&6; }
1833fi
1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
970f6abe 1835
b61cc19c 1836} # ac_fn_c_check_header_mongrel
970f6abe 1837
b61cc19c
PC
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.
1842ac_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; }
1847if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1848 $as_echo_n "(cached) " >&6
1849else
1850 eval "$3=no"
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852/* end confdefs.h. */
1853$4
1854int
1855main ()
1856{
1857if (sizeof ($2))
1858 return 0;
1859 ;
1860 return 0;
1861}
970f6abe 1862_ACEOF
b61cc19c
PC
1863if ac_fn_c_try_compile "$LINENO"; then :
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865/* end confdefs.h. */
1866$4
1867int
1868main ()
1869{
1870if (sizeof (($2)))
1871 return 0;
1872 ;
1873 return 0;
1874}
1875_ACEOF
1876if ac_fn_c_try_compile "$LINENO"; then :
1877
1878else
1879 eval "$3=yes"
970f6abe 1880fi
b61cc19c
PC
1881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882fi
1883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884fi
1885eval 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
970f6abe
VZ
1891cat >config.log <<_ACEOF
1892This file contains any messages produced by compilers while
1893running configure, to aid debugging if configure makes a mistake.
1894
b61cc19c
PC
1895It was created by libpng $as_me 1.4.4, which was
1896generated by GNU Autoconf 2.65. Invocation command line was
970f6abe
VZ
1897
1898 $ $0 $@
1899
1900_ACEOF
1901exec 5>>config.log
1902{
1903cat <<_ASUNAME
1904## --------- ##
1905## Platform. ##
1906## --------- ##
1907
1908hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1909uname -m = `(uname -m) 2>/dev/null || echo unknown`
1910uname -r = `(uname -r) 2>/dev/null || echo unknown`
1911uname -s = `(uname -s) 2>/dev/null || echo unknown`
1912uname -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
1927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928for as_dir in $PATH
1929do
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
b61cc19c
PC
1932 $as_echo "PATH: $as_dir"
1933 done
970f6abe
VZ
1934IFS=$as_save_IFS
1935
1936} >&5
1937
1938cat >&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.
1953ac_configure_args=
1954ac_configure_args0=
1955ac_configure_args1=
1956ac_must_keep_next=false
1957for ac_pass in 1 2
1958do
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
b61cc19c 1970 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
970f6abe 1971 2)
b61cc19c 1972 as_fn_append ac_configure_args1 " '$ac_arg'"
970f6abe
VZ
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
b61cc19c 1988 as_fn_append ac_configure_args " '$ac_arg'"
970f6abe
VZ
1989 ;;
1990 esac
1991 done
1992done
b61cc19c
PC
1993{ ac_configure_args0=; unset ac_configure_args0;}
1994{ ac_configure_args1=; unset ac_configure_args1;}
970f6abe
VZ
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.
2001trap '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 #(
b61cc19c
PC
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;} ;;
970f6abe
VZ
2021 esac
2022 case $ac_var in #(
2023 _ | IFS | as_nl) ;; #(
2024 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b61cc19c 2025 *) { eval $ac_var=; unset $ac_var;} ;;
970f6abe
VZ
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
2096for ac_signal in 1 2 13 15; do
b61cc19c 2097 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
970f6abe
VZ
2098done
2099ac_signal=0
2100
2101# confdefs.h avoids OS command line length limits that DEFS can exceed.
2102rm -f -r conftest* confdefs.h
2103
b61cc19c
PC
2104$as_echo "/* confdefs.h */" > confdefs.h
2105
970f6abe
VZ
2106# Predefined preprocessor variables.
2107
2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_NAME "$PACKAGE_NAME"
2110_ACEOF
2111
970f6abe
VZ
2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2114_ACEOF
2115
970f6abe
VZ
2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_VERSION "$PACKAGE_VERSION"
2118_ACEOF
2119
970f6abe
VZ
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_STRING "$PACKAGE_STRING"
2122_ACEOF
2123
970f6abe
VZ
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2126_ACEOF
2127
b61cc19c
PC
2128cat >>confdefs.h <<_ACEOF
2129#define PACKAGE_URL "$PACKAGE_URL"
2130_ACEOF
2131
970f6abe
VZ
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.
2135ac_site_file1=NONE
2136ac_site_file2=NONE
2137if test -n "$CONFIG_SITE"; then
2138 ac_site_file1=$CONFIG_SITE
2139elif test "x$prefix" != xNONE; then
2140 ac_site_file1=$prefix/share/config.site
2141 ac_site_file2=$prefix/etc/config.site
2142else
2143 ac_site_file1=$ac_default_prefix/share/config.site
2144 ac_site_file2=$ac_default_prefix/etc/config.site
2145fi
2146for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2147do
2148 test "x$ac_site_file" = xNONE && continue
b61cc19c
PC
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
970f6abe
VZ
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
2155done
2156
2157if test -r "$cache_file"; then
b61cc19c
PC
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
970f6abe
VZ
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
2168else
b61cc19c 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
970f6abe
VZ
2170$as_echo "$as_me: creating cache $cache_file" >&6;}
2171 >$cache_file
2172fi
2173
2174# Check that the precious variables saved in the cache have kept the same
2175# value.
2176ac_cache_corrupted=false
2177for 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,)
b61cc19c 2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
970f6abe
VZ
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)
b61cc19c 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
970f6abe
VZ
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
b61cc19c 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
970f6abe
VZ
2199$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2200 ac_cache_corrupted=:
2201 else
b61cc19c 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
970f6abe
VZ
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
b61cc19c 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
970f6abe 2207$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
b61cc19c 2208 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
970f6abe
VZ
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.
b61cc19c 2220 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
970f6abe
VZ
2221 esac
2222 fi
2223done
2224if $ac_cache_corrupted; then
b61cc19c
PC
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
970f6abe 2228$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b61cc19c 2229 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
970f6abe 2230fi
b61cc19c
PC
2231## -------------------- ##
2232## Main body of script. ##
2233## -------------------- ##
970f6abe
VZ
2234
2235ac_ext=c
2236ac_cpp='$CPP $CPPFLAGS'
2237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239ac_compiler_gnu=$ac_cv_c_compiler_gnu
2240
2241
b61cc19c 2242am__api_version='1.11'
970f6abe
VZ
2243
2244ac_aux_dir=
2245for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
b61cc19c
PC
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
970f6abe
VZ
2253done
2254if test -z "$ac_aux_dir"; then
b61cc19c 2255 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
970f6abe
VZ
2256fi
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.
2262ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2263ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2264ac_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.
b61cc19c 2281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
970f6abe
VZ
2282$as_echo_n "checking for a BSD-compatible install... " >&6; }
2283if test -z "$INSTALL"; then
b61cc19c 2284if test "${ac_cv_path_install+set}" = set; then :
970f6abe
VZ
2285 $as_echo_n "(cached) " >&6
2286else
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288for as_dir in $PATH
2289do
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
b61cc19c
PC
2292 # Account for people who put trailing slashes in PATH elements.
2293case $as_dir/ in #((
2294 ./ | .// | /[cC]/* | \
970f6abe 2295 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
b61cc19c 2296 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
970f6abe
VZ
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 ;;
2331esac
2332
b61cc19c 2333 done
970f6abe
VZ
2334IFS=$as_save_IFS
2335
2336rm -rf conftest.one conftest.two conftest.dir
2337
2338fi
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
2348fi
b61cc19c 2349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
970f6abe
VZ
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.
2354test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2355
2356test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2357
2358test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2359
b61cc19c 2360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
970f6abe
VZ
2361$as_echo_n "checking whether build environment is sane... " >&6; }
2362# Just in case
2363sleep 1
2364echo timestamp > conftest.file
b61cc19c
PC
2365# Reject unsafe characters in $srcdir or the absolute working directory
2366# name. Accept space and tab only in the latter.
2367am_lf='
2368'
2369case `pwd` in
2370 *[\\\"\#\$\&\'\`$am_lf]*)
2371 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2372esac
2373case $srcdir in
2374 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2375 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2376esac
2377
970f6abe
VZ
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).
2383if (
b61cc19c 2384 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
970f6abe
VZ
2385 if test "$*" = "X"; then
2386 # -L didn't work.
b61cc19c 2387 set X `ls -t "$srcdir/configure" conftest.file`
970f6abe
VZ
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".
b61cc19c
PC
2397 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2398alias in your environment" "$LINENO" 5
970f6abe
VZ
2399 fi
2400
b61cc19c
PC
2401 test "$2" = conftest.file
2402 )
2403then
2404 # Ok.
2405 :
2406else
2407 as_fn_error "newly created file is older than distributed files!
2408Check your system clock" "$LINENO" 5
2409fi
2410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2411$as_echo "yes" >&6; }
2412test "$program_prefix" != NONE &&
2413 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2414# Use a double $ so make ignores it.
2415test "$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.
2419ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2420program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2421
2422# expand $ac_aux_dir to an absolute path
2423am_aux_dir=`cd $ac_aux_dir && pwd`
2424
2425if 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
2432fi
2433# Use eval to expand $SHELL
2434if eval "$MISSING --run true"; then
2435 am_missing_run="$MISSING --run "
2436else
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;}
2440fi
2441
2442if 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
2449fi
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.
2455if 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.
2458set 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; }
2461if test "${ac_cv_prog_STRIP+set}" = set; then :
2462 $as_echo_n "(cached) " >&6
2463else
2464 if test -n "$STRIP"; then
2465 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2466else
2467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468for as_dir in $PATH
2469do
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
2478done
2479 done
2480IFS=$as_save_IFS
2481
2482fi
2483fi
2484STRIP=$ac_cv_prog_STRIP
2485if test -n "$STRIP"; then
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2487$as_echo "$STRIP" >&6; }
2488else
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2490$as_echo "no" >&6; }
2491fi
2492
2493
2494fi
2495if 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.
2498set 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; }
2501if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2502 $as_echo_n "(cached) " >&6
2503else
2504 if test -n "$ac_ct_STRIP"; then
2505 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2506else
2507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508for as_dir in $PATH
2509do
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
2518done
2519 done
2520IFS=$as_save_IFS
2521
2522fi
2523fi
2524ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2525if 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; }
970f6abe 2528else
b61cc19c
PC
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2530$as_echo "no" >&6; }
970f6abe 2531fi
970f6abe 2532
b61cc19c
PC
2533 if test "x$ac_ct_STRIP" = x; then
2534 STRIP=":"
2535 else
2536 case $cross_compiling:$ac_tool_warned in
2537yes:)
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;}
2540ac_tool_warned=yes ;;
2541esac
2542 STRIP=$ac_ct_STRIP
2543 fi
970f6abe 2544else
b61cc19c
PC
2545 STRIP="$ac_cv_prog_STRIP"
2546fi
2547
970f6abe 2548fi
b61cc19c 2549INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
970f6abe 2550
b61cc19c 2551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
970f6abe
VZ
2552$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2553if test -z "$MKDIR_P"; then
b61cc19c 2554 if test "${ac_cv_path_mkdir+set}" = set; then :
970f6abe
VZ
2555 $as_echo_n "(cached) " >&6
2556else
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2559do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
b61cc19c 2562 for ac_prog in mkdir gmkdir; do
970f6abe
VZ
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
b61cc19c 2574 done
970f6abe
VZ
2575IFS=$as_save_IFS
2576
2577fi
2578
b61cc19c 2579 test -d ./--version && rmdir ./--version
970f6abe
VZ
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.
970f6abe
VZ
2587 MKDIR_P="$ac_install_sh -d"
2588 fi
2589fi
b61cc19c 2590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
970f6abe
VZ
2591$as_echo "$MKDIR_P" >&6; }
2592
2593mkdir_p="$MKDIR_P"
2594case $mkdir_p in
2595 [\\/$]* | ?:[\\/]*) ;;
2596 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2597esac
2598
2599for ac_prog in gawk mawk nawk awk
2600do
2601 # Extract the first word of "$ac_prog", so it can be a program name with args.
2602set dummy $ac_prog; ac_word=$2
b61cc19c 2603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 2604$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 2605if test "${ac_cv_prog_AWK+set}" = set; then :
970f6abe
VZ
2606 $as_echo_n "(cached) " >&6
2607else
2608 if test -n "$AWK"; then
2609 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2610else
2611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH
2613do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
b61cc19c 2616 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 2619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
2620 break 2
2621 fi
2622done
b61cc19c 2623 done
970f6abe
VZ
2624IFS=$as_save_IFS
2625
2626fi
2627fi
2628AWK=$ac_cv_prog_AWK
2629if test -n "$AWK"; then
b61cc19c 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
970f6abe
VZ
2631$as_echo "$AWK" >&6; }
2632else
b61cc19c 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
2634$as_echo "no" >&6; }
2635fi
2636
2637
2638 test -n "$AWK" && break
2639done
2640
b61cc19c 2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
970f6abe
VZ
2642$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2643set x ${MAKE-make}
2644ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b61cc19c 2645if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
970f6abe
VZ
2646 $as_echo_n "(cached) " >&6
2647else
2648 cat >conftest.make <<\_ACEOF
2649SHELL = /bin/sh
2650all:
2651 @echo '@@@%%%=$(MAKE)=@@@%%%'
2652_ACEOF
2653# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2654case `${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;;
2659esac
2660rm -f conftest.make
2661fi
2662if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
b61cc19c 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
970f6abe
VZ
2664$as_echo "yes" >&6; }
2665 SET_MAKE=
2666else
b61cc19c 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
2668$as_echo "no" >&6; }
2669 SET_MAKE="MAKE=${MAKE-make}"
2670fi
2671
2672rm -rf .tst 2>/dev/null
2673mkdir .tst 2>/dev/null
2674if test -d .tst; then
2675 am__leading_dot=.
2676else
2677 am__leading_dot=_
2678fi
2679rmdir .tst 2>/dev/null
2680
2681if 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
b61cc19c 2687 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
970f6abe
VZ
2688 fi
2689fi
2690
2691# test whether we have cygpath
2692if 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
2698fi
2699
2700
2701# Define the identity of the package.
2702 PACKAGE='libpng'
b61cc19c 2703 VERSION='1.4.4'
970f6abe
VZ
2704
2705
2706cat >>confdefs.h <<_ACEOF
2707#define PACKAGE "$PACKAGE"
2708_ACEOF
2709
2710
2711cat >>confdefs.h <<_ACEOF
2712#define VERSION "$VERSION"
2713_ACEOF
2714
2715# Some tools Automake needs.
2716
2717ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2718
2719
2720AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2721
2722
2723AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2724
2725
2726AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2727
2728
2729MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2730
970f6abe
VZ
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
2735AMTAR=${AMTAR-"${am_missing_run}tar"}
2736
2737am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2738
2739
2740
2741
2742
b61cc19c
PC
2743
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
970f6abe
VZ
2745$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2746 # Check whether --enable-maintainer-mode was given.
b61cc19c 2747if test "${enable_maintainer_mode+set}" = set; then :
970f6abe
VZ
2748 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2749else
2750 USE_MAINTAINER_MODE=no
2751fi
2752
b61cc19c 2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
970f6abe
VZ
2754$as_echo "$USE_MAINTAINER_MODE" >&6; }
2755 if test $USE_MAINTAINER_MODE = yes; then
2756 MAINTAINER_MODE_TRUE=
2757 MAINTAINER_MODE_FALSE='#'
2758else
2759 MAINTAINER_MODE_TRUE='#'
2760 MAINTAINER_MODE_FALSE=
2761fi
2762
2763 MAINT=$MAINTAINER_MODE_TRUE
2764
2765
2766
b61cc19c 2767PNGLIB_VERSION=1.4.4
970f6abe 2768PNGLIB_MAJOR=1
b61cc19c
PC
2769PNGLIB_MINOR=4
2770PNGLIB_RELEASE=4
970f6abe
VZ
2771
2772
2773
2774ac_config_headers="$ac_config_headers config.h"
2775
2776
2777# Checks for programs.
2778ac_ext=c
2779ac_cpp='$CPP $CPPFLAGS'
2780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783if 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.
2785set dummy ${ac_tool_prefix}gcc; ac_word=$2
b61cc19c 2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 2787$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 2788if test "${ac_cv_prog_CC+set}" = set; then :
970f6abe
VZ
2789 $as_echo_n "(cached) " >&6
2790else
2791 if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
2793else
2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795for as_dir in $PATH
2796do
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
b61cc19c 2799 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
2803 break 2
2804 fi
2805done
b61cc19c 2806 done
970f6abe
VZ
2807IFS=$as_save_IFS
2808
2809fi
2810fi
2811CC=$ac_cv_prog_CC
2812if test -n "$CC"; then
b61cc19c 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
970f6abe
VZ
2814$as_echo "$CC" >&6; }
2815else
b61cc19c 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
2817$as_echo "no" >&6; }
2818fi
2819
2820
2821fi
2822if 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.
2825set dummy gcc; ac_word=$2
b61cc19c 2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 2827$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 2828if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
970f6abe
VZ
2829 $as_echo_n "(cached) " >&6
2830else
2831 if test -n "$ac_ct_CC"; then
2832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833else
2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
b61cc19c 2839 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
2843 break 2
2844 fi
2845done
b61cc19c 2846 done
970f6abe
VZ
2847IFS=$as_save_IFS
2848
2849fi
2850fi
2851ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852if test -n "$ac_ct_CC"; then
b61cc19c 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
970f6abe
VZ
2854$as_echo "$ac_ct_CC" >&6; }
2855else
b61cc19c 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
2857$as_echo "no" >&6; }
2858fi
2859
2860 if test "x$ac_ct_CC" = x; then
2861 CC=""
2862 else
2863 case $cross_compiling:$ac_tool_warned in
2864yes:)
b61cc19c
PC
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;}
970f6abe
VZ
2867ac_tool_warned=yes ;;
2868esac
2869 CC=$ac_ct_CC
2870 fi
2871else
2872 CC="$ac_cv_prog_CC"
2873fi
2874
2875if 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.
2878set dummy ${ac_tool_prefix}cc; ac_word=$2
b61cc19c 2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 2880$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 2881if test "${ac_cv_prog_CC+set}" = set; then :
970f6abe
VZ
2882 $as_echo_n "(cached) " >&6
2883else
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2886else
2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
b61cc19c 2892 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
2896 break 2
2897 fi
2898done
b61cc19c 2899 done
970f6abe
VZ
2900IFS=$as_save_IFS
2901
2902fi
2903fi
2904CC=$ac_cv_prog_CC
2905if test -n "$CC"; then
b61cc19c 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
970f6abe
VZ
2907$as_echo "$CC" >&6; }
2908else
b61cc19c 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
2910$as_echo "no" >&6; }
2911fi
2912
2913
2914 fi
2915fi
2916if test -z "$CC"; then
2917 # Extract the first word of "cc", so it can be a program name with args.
2918set dummy cc; ac_word=$2
b61cc19c 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 2920$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 2921if test "${ac_cv_prog_CC+set}" = set; then :
970f6abe
VZ
2922 $as_echo_n "(cached) " >&6
2923else
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2926else
2927 ac_prog_rejected=no
2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929for as_dir in $PATH
2930do
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
b61cc19c 2933 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
2941 break 2
2942 fi
2943done
b61cc19c 2944 done
970f6abe
VZ
2945IFS=$as_save_IFS
2946
2947if 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
2958fi
2959fi
2960fi
2961CC=$ac_cv_prog_CC
2962if test -n "$CC"; then
b61cc19c 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
970f6abe
VZ
2964$as_echo "$CC" >&6; }
2965else
b61cc19c 2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
2967$as_echo "no" >&6; }
2968fi
2969
2970
2971fi
2972if 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.
2977set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b61cc19c 2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 2979$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 2980if test "${ac_cv_prog_CC+set}" = set; then :
970f6abe
VZ
2981 $as_echo_n "(cached) " >&6
2982else
2983 if test -n "$CC"; then
2984 ac_cv_prog_CC="$CC" # Let the user override the test.
2985else
2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987for as_dir in $PATH
2988do
2989 IFS=$as_save_IFS
2990 test -z "$as_dir" && as_dir=.
b61cc19c 2991 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
2995 break 2
2996 fi
2997done
b61cc19c 2998 done
970f6abe
VZ
2999IFS=$as_save_IFS
3000
3001fi
3002fi
3003CC=$ac_cv_prog_CC
3004if test -n "$CC"; then
b61cc19c 3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
970f6abe
VZ
3006$as_echo "$CC" >&6; }
3007else
b61cc19c 3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
3009$as_echo "no" >&6; }
3010fi
3011
3012
3013 test -n "$CC" && break
3014 done
3015fi
3016if test -z "$CC"; then
3017 ac_ct_CC=$CC
3018 for ac_prog in cl.exe
3019do
3020 # Extract the first word of "$ac_prog", so it can be a program name with args.
3021set dummy $ac_prog; ac_word=$2
b61cc19c 3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 3023$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 3024if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
970f6abe
VZ
3025 $as_echo_n "(cached) " >&6
3026else
3027 if test -n "$ac_ct_CC"; then
3028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3029else
3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031for as_dir in $PATH
3032do
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
b61cc19c 3035 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
3039 break 2
3040 fi
3041done
b61cc19c 3042 done
970f6abe
VZ
3043IFS=$as_save_IFS
3044
3045fi
3046fi
3047ac_ct_CC=$ac_cv_prog_ac_ct_CC
3048if test -n "$ac_ct_CC"; then
b61cc19c 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
970f6abe
VZ
3050$as_echo "$ac_ct_CC" >&6; }
3051else
b61cc19c 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
3053$as_echo "no" >&6; }
3054fi
3055
3056
3057 test -n "$ac_ct_CC" && break
3058done
3059
3060 if test "x$ac_ct_CC" = x; then
3061 CC=""
3062 else
3063 case $cross_compiling:$ac_tool_warned in
3064yes:)
b61cc19c
PC
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;}
970f6abe
VZ
3067ac_tool_warned=yes ;;
3068esac
3069 CC=$ac_ct_CC
3070 fi
3071fi
3072
3073fi
3074
3075
b61cc19c
PC
3076test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078as_fn_error "no acceptable C compiler found in \$PATH
3079See \`config.log' for more details." "$LINENO" 5; }
970f6abe
VZ
3080
3081# Provide some information about the compiler.
b61cc19c 3082$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
970f6abe
VZ
3083set X $ac_compile
3084ac_compiler=$2
b61cc19c
PC
3085for ac_option in --version -v -V -qversion; do
3086 { { ac_try="$ac_compiler $ac_option >&5"
970f6abe
VZ
3087case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090esac
b61cc19c
PC
3091eval 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
970f6abe 3094 ac_status=$?
b61cc19c
PC
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; }
3104done
970f6abe 3105
b61cc19c 3106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
3107/* end confdefs.h. */
3108
3109int
3110main ()
3111{
3112
3113 ;
3114 return 0;
3115}
3116_ACEOF
3117ac_clean_files_save=$ac_clean_files
3118ac_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.
b61cc19c
PC
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; }
970f6abe
VZ
3124ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3125
3126# The possible output files:
3127ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3128
3129ac_rmfiles=
3130for ac_file in $ac_files
3131do
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
3136done
3137rm -f $ac_rmfiles
3138
b61cc19c 3139if { { ac_try="$ac_link_default"
970f6abe
VZ
3140case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
b61cc19c
PC
3144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145$as_echo "$ac_try_echo"; } >&5
970f6abe
VZ
3146 (eval "$ac_link_default") 2>&5
3147 ac_status=$?
b61cc19c
PC
3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149 test $ac_status = 0; }; then :
970f6abe
VZ
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.
3155for ac_file in $ac_files ''
3156do
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 *.* )
b61cc19c 3166 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
970f6abe
VZ
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
3179done
3180test "$ac_cv_exeext" = no && ac_cv_exeext=
3181
3182else
3183 ac_file=''
3184fi
b61cc19c
PC
3185if 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
970f6abe
VZ
3189sed 's/^/| /' conftest.$ac_ext >&5
3190
b61cc19c
PC
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
3194as_fn_error "C compiler cannot create executables
3195See \`config.log' for more details." "$LINENO" 5; }; }
3196else
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3198$as_echo "yes" >&6; }
970f6abe 3199fi
b61cc19c
PC
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; }
970f6abe
VZ
3204ac_exeext=$ac_cv_exeext
3205
970f6abe
VZ
3206rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3207ac_clean_files=$ac_clean_files_save
b61cc19c 3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
970f6abe 3209$as_echo_n "checking for suffix of executables... " >&6; }
b61cc19c 3210if { { ac_try="$ac_link"
970f6abe
VZ
3211case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214esac
b61cc19c
PC
3215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216$as_echo "$ac_try_echo"; } >&5
970f6abe
VZ
3217 (eval "$ac_link") 2>&5
3218 ac_status=$?
b61cc19c
PC
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }; then :
970f6abe
VZ
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'.
3225for 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
3233done
3234else
b61cc19c
PC
3235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237as_fn_error "cannot compute suffix of executables: cannot compile and link
3238See \`config.log' for more details." "$LINENO" 5; }
970f6abe 3239fi
b61cc19c
PC
3240rm -f conftest conftest$ac_cv_exeext
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
970f6abe
VZ
3242$as_echo "$ac_cv_exeext" >&6; }
3243
3244rm -f conftest.$ac_ext
3245EXEEXT=$ac_cv_exeext
3246ac_exeext=$EXEEXT
b61cc19c
PC
3247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248/* end confdefs.h. */
3249#include <stdio.h>
3250int
3251main ()
3252{
3253FILE *f = fopen ("conftest.out", "w");
3254 return ferror (f) || fclose (f) != 0;
3255
3256 ;
3257 return 0;
3258}
3259_ACEOF
3260ac_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; }
3265if test "$cross_compiling" != yes; then
3266 { { ac_try="$ac_link"
3267case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270esac
3271eval 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;;
3281esac
3282eval 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;}
3295as_fn_error "cannot run C compiled programs.
3296If you meant to cross compile, use \`--host'.
3297See \`config.log' for more details." "$LINENO" 5; }
3298 fi
3299 fi
3300fi
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3302$as_echo "$cross_compiling" >&6; }
3303
3304rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3305ac_clean_files=$ac_clean_files_save
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
970f6abe 3307$as_echo_n "checking for suffix of object files... " >&6; }
b61cc19c 3308if test "${ac_cv_objext+set}" = set; then :
970f6abe
VZ
3309 $as_echo_n "(cached) " >&6
3310else
b61cc19c 3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
3312/* end confdefs.h. */
3313
3314int
3315main ()
3316{
3317
3318 ;
3319 return 0;
3320}
3321_ACEOF
3322rm -f conftest.o conftest.obj
b61cc19c 3323if { { ac_try="$ac_compile"
970f6abe
VZ
3324case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327esac
b61cc19c
PC
3328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329$as_echo "$ac_try_echo"; } >&5
970f6abe
VZ
3330 (eval "$ac_compile") 2>&5
3331 ac_status=$?
b61cc19c
PC
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }; then :
970f6abe
VZ
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
3341done
3342else
3343 $as_echo "$as_me: failed program was:" >&5
3344sed 's/^/| /' conftest.$ac_ext >&5
3345
b61cc19c
PC
3346{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348as_fn_error "cannot compute suffix of object files: cannot compile
3349See \`config.log' for more details." "$LINENO" 5; }
970f6abe 3350fi
970f6abe
VZ
3351rm -f conftest.$ac_cv_objext conftest.$ac_ext
3352fi
b61cc19c 3353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
970f6abe
VZ
3354$as_echo "$ac_cv_objext" >&6; }
3355OBJEXT=$ac_cv_objext
3356ac_objext=$OBJEXT
b61cc19c 3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
970f6abe 3358$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b61cc19c 3359if test "${ac_cv_c_compiler_gnu+set}" = set; then :
970f6abe
VZ
3360 $as_echo_n "(cached) " >&6
3361else
b61cc19c 3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
3363/* end confdefs.h. */
3364
3365int
3366main ()
3367{
3368#ifndef __GNUC__
3369 choke me
3370#endif
3371
3372 ;
3373 return 0;
3374}
3375_ACEOF
b61cc19c 3376if ac_fn_c_try_compile "$LINENO"; then :
970f6abe
VZ
3377 ac_compiler_gnu=yes
3378else
b61cc19c 3379 ac_compiler_gnu=no
970f6abe 3380fi
970f6abe
VZ
3381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382ac_cv_c_compiler_gnu=$ac_compiler_gnu
3383
3384fi
b61cc19c 3385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
970f6abe
VZ
3386$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3387if test $ac_compiler_gnu = yes; then
3388 GCC=yes
3389else
3390 GCC=
3391fi
3392ac_test_CFLAGS=${CFLAGS+set}
3393ac_save_CFLAGS=$CFLAGS
b61cc19c 3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
970f6abe 3395$as_echo_n "checking whether $CC accepts -g... " >&6; }
b61cc19c 3396if test "${ac_cv_prog_cc_g+set}" = set; then :
970f6abe
VZ
3397 $as_echo_n "(cached) " >&6
3398else
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"
b61cc19c 3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
3404/* end confdefs.h. */
3405
3406int
3407main ()
3408{
3409
3410 ;
3411 return 0;
3412}
3413_ACEOF
b61cc19c 3414if ac_fn_c_try_compile "$LINENO"; then :
970f6abe
VZ
3415 ac_cv_prog_cc_g=yes
3416else
b61cc19c
PC
3417 CFLAGS=""
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
3419/* end confdefs.h. */
3420
3421int
3422main ()
3423{
3424
3425 ;
3426 return 0;
3427}
3428_ACEOF
b61cc19c 3429if ac_fn_c_try_compile "$LINENO"; then :
970f6abe 3430
b61cc19c
PC
3431else
3432 ac_c_werror_flag=$ac_save_c_werror_flag
970f6abe 3433 CFLAGS="-g"
b61cc19c 3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
3435/* end confdefs.h. */
3436
3437int
3438main ()
3439{
3440
3441 ;
3442 return 0;
3443}
3444_ACEOF
b61cc19c 3445if ac_fn_c_try_compile "$LINENO"; then :
970f6abe 3446 ac_cv_prog_cc_g=yes
970f6abe 3447fi
970f6abe
VZ
3448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449fi
970f6abe
VZ
3450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451fi
970f6abe
VZ
3452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 ac_c_werror_flag=$ac_save_c_werror_flag
3454fi
b61cc19c 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
970f6abe
VZ
3456$as_echo "$ac_cv_prog_cc_g" >&6; }
3457if test "$ac_test_CFLAGS" = set; then
3458 CFLAGS=$ac_save_CFLAGS
3459elif 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
3465else
3466 if test "$GCC" = yes; then
3467 CFLAGS="-O2"
3468 else
3469 CFLAGS=
3470 fi
3471fi
b61cc19c 3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
970f6abe 3473$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b61cc19c 3474if test "${ac_cv_prog_cc_c89+set}" = set; then :
970f6abe
VZ
3475 $as_echo_n "(cached) " >&6
3476else
3477 ac_cv_prog_cc_c89=no
3478ac_save_CC=$CC
b61cc19c 3479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
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. */
3486struct buf { int x; };
3487FILE * (*rcsopen) (struct buf *, struct stat *, int);
3488static char *e (p, i)
3489 char **p;
3490 int i;
3491{
3492 return p[i];
3493}
3494static 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. */
3511int 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'
3516int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3517
3518int test (int i, double x);
3519struct s1 {int (*f) (int a);};
3520struct s2 {int (*f) (double a);};
3521int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3522int argc;
3523char **argv;
3524int
3525main ()
3526{
3527return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3528 ;
3529 return 0;
3530}
3531_ACEOF
3532for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3533 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3534do
3535 CC="$ac_save_CC $ac_arg"
b61cc19c 3536 if ac_fn_c_try_compile "$LINENO"; then :
970f6abe 3537 ac_cv_prog_cc_c89=$ac_arg
970f6abe 3538fi
970f6abe
VZ
3539rm -f core conftest.err conftest.$ac_objext
3540 test "x$ac_cv_prog_cc_c89" != "xno" && break
3541done
3542rm -f conftest.$ac_ext
3543CC=$ac_save_CC
3544
3545fi
3546# AC_CACHE_VAL
3547case "x$ac_cv_prog_cc_c89" in
3548 x)
b61cc19c 3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
970f6abe
VZ
3550$as_echo "none needed" >&6; } ;;
3551 xno)
b61cc19c 3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
970f6abe
VZ
3553$as_echo "unsupported" >&6; } ;;
3554 *)
3555 CC="$CC $ac_cv_prog_cc_c89"
b61cc19c 3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
970f6abe
VZ
3557$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3558esac
b61cc19c 3559if test "x$ac_cv_prog_cc_c89" != xno; then :
970f6abe 3560
b61cc19c 3561fi
970f6abe
VZ
3562
3563ac_ext=c
3564ac_cpp='$CPP $CPPFLAGS'
3565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568DEPDIR="${am__leading_dot}deps"
3569
3570ac_config_commands="$ac_config_commands depfiles"
3571
3572
3573am_make=${MAKE-make}
3574cat > confinc << 'END'
3575am__doit:
b61cc19c 3576 @echo this is the am__doit target
970f6abe
VZ
3577.PHONY: am__doit
3578END
3579# If we don't find an include directive, just comment out the code.
b61cc19c 3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
970f6abe
VZ
3581$as_echo_n "checking for style of include used by $am_make... " >&6; }
3582am__include="#"
3583am__quote=
3584_am_result=none
3585# First try GNU make style include.
3586echo "include confinc" > confmf
b61cc19c
PC
3587# Ignore all kinds of additional output from `make'.
3588case `$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 ;;
3594esac
970f6abe
VZ
3595# Now try BSD make style include.
3596if test "$am__include" = "#"; then
3597 echo '.include "confinc"' > confmf
b61cc19c
PC
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
970f6abe
VZ
3605fi
3606
3607
b61cc19c 3608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
970f6abe
VZ
3609$as_echo "$_am_result" >&6; }
3610rm -f confinc confmf
3611
3612# Check whether --enable-dependency-tracking was given.
b61cc19c 3613if test "${enable_dependency_tracking+set}" = set; then :
970f6abe
VZ
3614 enableval=$enable_dependency_tracking;
3615fi
3616
3617if test "x$enable_dependency_tracking" != xno; then
3618 am_depcomp="$ac_aux_dir/depcomp"
3619 AMDEPBACKSLASH='\'
3620fi
3621 if test "x$enable_dependency_tracking" != xno; then
3622 AMDEP_TRUE=
3623 AMDEP_FALSE='#'
3624else
3625 AMDEP_TRUE='#'
3626 AMDEP_FALSE=
3627fi
3628
3629
3630
3631depcc="$CC" am_compiler_list=
3632
b61cc19c 3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
970f6abe 3634$as_echo_n "checking dependency style of $depcc... " >&6; }
b61cc19c 3635if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
970f6abe
VZ
3636 $as_echo_n "(cached) " >&6
3637else
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
b61cc19c
PC
3661 am__universal=false
3662 case " $depcc " in #(
3663 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3664 esac
3665
970f6abe
VZ
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
b61cc19c
PC
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"
970f6abe 3689 case $depmode in
b61cc19c
PC
3690 gcc)
3691 # This depmode causes a compiler race in universal mode.
3692 test "$am__universal" = false || continue
3693 ;;
970f6abe
VZ
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 ;;
b61cc19c
PC
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 ;;
970f6abe
VZ
3710 none) break ;;
3711 esac
970f6abe 3712 if depmode=$depmode \
b61cc19c 3713 source=sub/conftest.c object=$am__obj \
970f6abe 3714 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
b61cc19c 3715 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
970f6abe
VZ
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 &&
b61cc19c 3719 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
970f6abe
VZ
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
3738else
3739 am_cv_CC_dependencies_compiler_type=none
3740fi
3741
3742fi
b61cc19c 3743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
970f6abe
VZ
3744$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3745CCDEPMODE=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='#'
3752else
3753 am__fastdepCC_TRUE='#'
3754 am__fastdepCC_FALSE=
3755fi
3756
3757
3758# Make sure we can run config.sub.
3759$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
b61cc19c 3760 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
970f6abe 3761
b61cc19c 3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
970f6abe 3763$as_echo_n "checking build system type... " >&6; }
b61cc19c 3764if test "${ac_cv_build+set}" = set; then :
970f6abe
VZ
3765 $as_echo_n "(cached) " >&6
3766else
3767 ac_build_alias=$build_alias
3768test "x$ac_build_alias" = x &&
3769 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3770test "x$ac_build_alias" = x &&
b61cc19c 3771 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
970f6abe 3772ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
b61cc19c 3773 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
970f6abe
VZ
3774
3775fi
b61cc19c 3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
970f6abe
VZ
3777$as_echo "$ac_cv_build" >&6; }
3778case $ac_cv_build in
3779*-*-*) ;;
b61cc19c 3780*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
970f6abe
VZ
3781esac
3782build=$ac_cv_build
3783ac_save_IFS=$IFS; IFS='-'
3784set x $ac_cv_build
3785shift
3786build_cpu=$1
3787build_vendor=$2
3788shift; shift
3789# Remember, the first character of IFS is used to create $*,
3790# except with old shells:
3791build_os=$*
3792IFS=$ac_save_IFS
3793case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3794
3795
b61cc19c 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
970f6abe 3797$as_echo_n "checking host system type... " >&6; }
b61cc19c 3798if test "${ac_cv_host+set}" = set; then :
970f6abe
VZ
3799 $as_echo_n "(cached) " >&6
3800else
3801 if test "x$host_alias" = x; then
3802 ac_cv_host=$ac_cv_build
3803else
3804 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
b61cc19c 3805 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
970f6abe
VZ
3806fi
3807
3808fi
b61cc19c 3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
970f6abe
VZ
3810$as_echo "$ac_cv_host" >&6; }
3811case $ac_cv_host in
3812*-*-*) ;;
b61cc19c 3813*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
970f6abe
VZ
3814esac
3815host=$ac_cv_host
3816ac_save_IFS=$IFS; IFS='-'
3817set x $ac_cv_host
3818shift
3819host_cpu=$1
3820host_vendor=$2
3821shift; shift
3822# Remember, the first character of IFS is used to create $*,
3823# except with old shells:
3824host_os=$*
3825IFS=$ac_save_IFS
3826case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3827
3828
b61cc19c 3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
970f6abe 3830$as_echo_n "checking for a sed that does not truncate output... " >&6; }
b61cc19c 3831if test "${ac_cv_path_SED+set}" = set; then :
970f6abe
VZ
3832 $as_echo_n "(cached) " >&6
3833else
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
b61cc19c 3839 { ac_script=; unset ac_script;}
970f6abe
VZ
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
3844for as_dir in $PATH
3845do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
b61cc19c 3848 for ac_prog in sed gsed; do
970f6abe
VZ
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
3854case `"$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
b61cc19c 3868 as_fn_arith $ac_count + 1 && ac_count=$as_val
970f6abe
VZ
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;;
3878esac
3879
3880 $ac_path_SED_found && break 3
3881 done
3882 done
b61cc19c 3883 done
970f6abe
VZ
3884IFS=$as_save_IFS
3885 if test -z "$ac_cv_path_SED"; then
b61cc19c 3886 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
970f6abe
VZ
3887 fi
3888else
3889 ac_cv_path_SED=$SED
3890fi
3891
3892fi
b61cc19c 3893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
970f6abe
VZ
3894$as_echo "$ac_cv_path_SED" >&6; }
3895 SED="$ac_cv_path_SED"
3896 rm -f conftest.sed
3897
3898test -z "$SED" && SED=sed
3899Xsed="$SED -e 1s/^X//"
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
b61cc19c 3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
970f6abe 3912$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
b61cc19c 3913if test "${ac_cv_path_GREP+set}" = set; then :
970f6abe
VZ
3914 $as_echo_n "(cached) " >&6
3915else
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
3920for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3921do
3922 IFS=$as_save_IFS
3923 test -z "$as_dir" && as_dir=.
b61cc19c 3924 for ac_prog in grep ggrep; do
970f6abe
VZ
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
3930case `"$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
b61cc19c 3944 as_fn_arith $ac_count + 1 && ac_count=$as_val
970f6abe
VZ
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;;
3954esac
3955
3956 $ac_path_GREP_found && break 3
3957 done
3958 done
b61cc19c 3959 done
970f6abe
VZ
3960IFS=$as_save_IFS
3961 if test -z "$ac_cv_path_GREP"; then
b61cc19c 3962 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
970f6abe
VZ
3963 fi
3964else
3965 ac_cv_path_GREP=$GREP
3966fi
3967
3968fi
b61cc19c 3969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
970f6abe
VZ
3970$as_echo "$ac_cv_path_GREP" >&6; }
3971 GREP="$ac_cv_path_GREP"
3972
3973
b61cc19c 3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
970f6abe 3975$as_echo_n "checking for egrep... " >&6; }
b61cc19c 3976if test "${ac_cv_path_EGREP+set}" = set; then :
970f6abe
VZ
3977 $as_echo_n "(cached) " >&6
3978else
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
3986for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3987do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
b61cc19c 3990 for ac_prog in egrep; do
970f6abe
VZ
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
3996case `"$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
b61cc19c 4010 as_fn_arith $ac_count + 1 && ac_count=$as_val
970f6abe
VZ
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;;
4020esac
4021
4022 $ac_path_EGREP_found && break 3
4023 done
4024 done
b61cc19c 4025 done
970f6abe
VZ
4026IFS=$as_save_IFS
4027 if test -z "$ac_cv_path_EGREP"; then
b61cc19c 4028 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
970f6abe
VZ
4029 fi
4030else
4031 ac_cv_path_EGREP=$EGREP
4032fi
4033
4034 fi
4035fi
b61cc19c 4036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
970f6abe
VZ
4037$as_echo "$ac_cv_path_EGREP" >&6; }
4038 EGREP="$ac_cv_path_EGREP"
4039
4040
b61cc19c 4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
970f6abe 4042$as_echo_n "checking for fgrep... " >&6; }
b61cc19c 4043if test "${ac_cv_path_FGREP+set}" = set; then :
970f6abe
VZ
4044 $as_echo_n "(cached) " >&6
4045else
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
4053for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4054do
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
b61cc19c 4057 for ac_prog in fgrep; do
970f6abe
VZ
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
4063case `"$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
b61cc19c 4077 as_fn_arith $ac_count + 1 && ac_count=$as_val
970f6abe
VZ
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;;
4087esac
4088
4089 $ac_path_FGREP_found && break 3
4090 done
4091 done
b61cc19c 4092 done
970f6abe
VZ
4093IFS=$as_save_IFS
4094 if test -z "$ac_cv_path_FGREP"; then
b61cc19c 4095 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
970f6abe
VZ
4096 fi
4097else
4098 ac_cv_path_FGREP=$FGREP
4099fi
4100
4101 fi
4102fi
b61cc19c 4103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
970f6abe
VZ
4104$as_echo "$ac_cv_path_FGREP" >&6; }
4105 FGREP="$ac_cv_path_FGREP"
4106
4107
4108test -z "$GREP" && GREP=grep
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
b61cc19c
PC
4121
4122
4123
4124
4125
4126ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4127ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4128ECHO=$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.
4133if 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 --'
4136elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4137 ECHO='printf %s\n'
970f6abe 4138else
b61cc19c
PC
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'
970f6abe 4147fi
b61cc19c
PC
4148
4149# func_echo_all arg...
4150# Invoke $ECHO with all args, space-separated.
4151func_echo_all ()
4152{
4153 $ECHO ""
4154}
4155
4156case "$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; } ;;
970f6abe 4163esac
970f6abe 4164
970f6abe 4165
970f6abe 4166
970f6abe 4167
970f6abe 4168
970f6abe 4169
970f6abe 4170
970f6abe 4171
970f6abe 4172
970f6abe
VZ
4173
4174
970f6abe 4175
b61cc19c
PC
4176
4177
4178
4179
4180# Check whether --with-gnu-ld was given.
4181if test "${with_gnu_ld+set}" = set; then :
4182 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
970f6abe 4183else
b61cc19c 4184 with_gnu_ld=no
970f6abe
VZ
4185fi
4186
b61cc19c
PC
4187ac_prog=ld
4188if 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
4219elif 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; }
970f6abe 4222else
b61cc19c
PC
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4224$as_echo_n "checking for non-GNU ld... " >&6; }
970f6abe 4225fi
b61cc19c 4226if test "${lt_cv_path_LD+set}" = set; then :
970f6abe
VZ
4227 $as_echo_n "(cached) " >&6
4228else
b61cc19c
PC
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"
970f6abe 4250else
b61cc19c 4251 lt_cv_path_LD="$LD" # Let the user override the test with a path.
970f6abe
VZ
4252fi
4253fi
b61cc19c
PC
4254
4255LD="$lt_cv_path_LD"
4256if test -n "$LD"; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4258$as_echo "$LD" >&6; }
970f6abe 4259else
b61cc19c 4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
4261$as_echo "no" >&6; }
4262fi
b61cc19c
PC
4263test -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; }
4266if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4268else
4269 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4270case `$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 ;;
4277esac
4278fi
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4280$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4281with_gnu_ld=$lt_cv_prog_gnu_ld
4282
970f6abe
VZ
4283
4284
b61cc19c
PC
4285
4286
4287
4288
4289
4290
4291ac_ext=c
4292ac_cpp='$CPP $CPPFLAGS'
4293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295ac_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.
4299if test -n "$CPP" && test -d "$CPP"; then
4300 CPP=
970f6abe 4301fi
b61cc19c
PC
4302if test -z "$CPP"; then
4303 if test "${ac_cv_prog_CPP+set}" = set; then :
970f6abe
VZ
4304 $as_echo_n "(cached) " >&6
4305else
b61cc19c
PC
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
4310for ac_c_preproc_warn_flag in '' yes
970f6abe 4311do
b61cc19c
PC
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
4327if ac_fn_c_try_cpp "$LINENO"; then :
970f6abe 4328
970f6abe 4329else
b61cc19c
PC
4330 # Broken: fails on valid input.
4331continue
970f6abe 4332fi
b61cc19c 4333rm -f conftest.err conftest.$ac_ext
970f6abe 4334
b61cc19c
PC
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
4341if ac_fn_c_try_cpp "$LINENO"; then :
4342 # Broken: success on invalid input.
4343continue
970f6abe 4344else
b61cc19c
PC
4345 # Passes both tests.
4346ac_preproc_ok=:
4347break
970f6abe 4348fi
b61cc19c 4349rm -f conftest.err conftest.$ac_ext
970f6abe 4350
970f6abe 4351done
b61cc19c
PC
4352# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4353rm -f conftest.err conftest.$ac_ext
4354if $ac_preproc_ok; then :
4355 break
970f6abe
VZ
4356fi
4357
b61cc19c
PC
4358 done
4359 ac_cv_prog_CPP=$CPP
970f6abe
VZ
4360
4361fi
b61cc19c 4362 CPP=$ac_cv_prog_CPP
970f6abe 4363else
b61cc19c
PC
4364 ac_cv_prog_CPP=$CPP
4365fi
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4367$as_echo "$CPP" >&6; }
4368ac_preproc_ok=false
4369for ac_c_preproc_warn_flag in '' yes
970f6abe 4370do
b61cc19c
PC
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
4386if ac_fn_c_try_cpp "$LINENO"; then :
970f6abe 4387
b61cc19c
PC
4388else
4389 # Broken: fails on valid input.
4390continue
970f6abe 4391fi
b61cc19c
PC
4392rm -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
4400if ac_fn_c_try_cpp "$LINENO"; then :
4401 # Broken: success on invalid input.
4402continue
970f6abe 4403else
b61cc19c
PC
4404 # Passes both tests.
4405ac_preproc_ok=:
4406break
970f6abe 4407fi
b61cc19c
PC
4408rm -f conftest.err conftest.$ac_ext
4409
4410done
4411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4412rm -f conftest.err conftest.$ac_ext
4413if $ac_preproc_ok; then :
970f6abe 4414
970f6abe 4415else
b61cc19c
PC
4416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4418as_fn_error "C preprocessor \"$CPP\" fails sanity check
4419See \`config.log' for more details." "$LINENO" 5; }
970f6abe
VZ
4420fi
4421
b61cc19c
PC
4422ac_ext=c
4423ac_cpp='$CPP $CPPFLAGS'
4424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4426ac_compiler_gnu=$ac_cv_c_compiler_gnu
4427
4428if 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.
4430set dummy ${ac_tool_prefix}sed; ac_word=$2
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 4432$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 4433if test "${ac_cv_prog_SED+set}" = set; then :
970f6abe
VZ
4434 $as_echo_n "(cached) " >&6
4435else
b61cc19c
PC
4436 if test -n "$SED"; then
4437 ac_cv_prog_SED="$SED" # Let the user override the test.
970f6abe
VZ
4438else
4439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440for as_dir in $PATH
4441do
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
b61cc19c 4444 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe 4445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b61cc19c
PC
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
970f6abe
VZ
4448 break 2
4449 fi
4450done
b61cc19c 4451 done
970f6abe
VZ
4452IFS=$as_save_IFS
4453
4454fi
4455fi
b61cc19c
PC
4456SED=$ac_cv_prog_SED
4457if test -n "$SED"; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4459$as_echo "$SED" >&6; }
970f6abe 4460else
b61cc19c 4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
4462$as_echo "no" >&6; }
4463fi
4464
4465
4466fi
b61cc19c
PC
4467if 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.
4470set dummy sed; ac_word=$2
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 4472$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 4473if test "${ac_cv_prog_ac_ct_SED+set}" = set; then :
970f6abe
VZ
4474 $as_echo_n "(cached) " >&6
4475else
b61cc19c
PC
4476 if test -n "$ac_ct_SED"; then
4477 ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
970f6abe
VZ
4478else
4479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480for as_dir in $PATH
4481do
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
b61cc19c 4484 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe 4485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b61cc19c
PC
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
970f6abe
VZ
4488 break 2
4489 fi
4490done
b61cc19c 4491 done
970f6abe
VZ
4492IFS=$as_save_IFS
4493
4494fi
4495fi
b61cc19c
PC
4496ac_ct_SED=$ac_cv_prog_ac_ct_SED
4497if 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; }
970f6abe 4500else
b61cc19c 4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
4502$as_echo "no" >&6; }
4503fi
4504
b61cc19c
PC
4505 if test "x$ac_ct_SED" = x; then
4506 SED=":"
970f6abe
VZ
4507 else
4508 case $cross_compiling:$ac_tool_warned in
4509yes:)
b61cc19c
PC
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;}
970f6abe
VZ
4512ac_tool_warned=yes ;;
4513esac
b61cc19c 4514 SED=$ac_ct_SED
970f6abe
VZ
4515 fi
4516else
b61cc19c 4517 SED="$ac_cv_prog_SED"
970f6abe 4518fi
970f6abe 4519
970f6abe 4520
b61cc19c 4521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
970f6abe
VZ
4522$as_echo_n "checking whether ln -s works... " >&6; }
4523LN_S=$as_ln_s
4524if test "$LN_S" = "ln -s"; then
b61cc19c 4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
970f6abe
VZ
4526$as_echo "yes" >&6; }
4527else
b61cc19c 4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
970f6abe
VZ
4529$as_echo "no, using $LN_S" >&6; }
4530fi
4531
b61cc19c 4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
970f6abe
VZ
4533$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4534set x ${MAKE-make}
4535ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b61cc19c 4536if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
970f6abe
VZ
4537 $as_echo_n "(cached) " >&6
4538else
4539 cat >conftest.make <<\_ACEOF
4540SHELL = /bin/sh
4541all:
4542 @echo '@@@%%%=$(MAKE)=@@@%%%'
4543_ACEOF
4544# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4545case `${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;;
4550esac
4551rm -f conftest.make
4552fi
4553if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
b61cc19c 4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
970f6abe
VZ
4555$as_echo "yes" >&6; }
4556 SET_MAKE=
4557else
b61cc19c 4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
4559$as_echo "no" >&6; }
4560 SET_MAKE="MAKE=${MAKE-make}"
4561fi
4562
4563case `pwd` in
4564 *\ * | *\ *)
b61cc19c 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
970f6abe
VZ
4566$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4567esac
4568
4569
4570
b61cc19c
PC
4571macro_version='2.2.10'
4572macro_revision='1.3175'
970f6abe
VZ
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586ltmain="$ac_aux_dir/ltmain.sh"
4587
b61cc19c
PC
4588# Backslashify metacharacters that are still active within
4589# double-quoted strings.
4590sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4591
4592# Same as above, but do not quote variable references.
4593double_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.
4597delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4598
4599# Sed substitution to delay expansion of an escaped single quote.
4600delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4601
4602# Sed substitution to avoid accidental globbing in evaled expressions
4603no_glob_subst='s/\*/\\\*/g'
4604
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
970f6abe 4606$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
b61cc19c 4607if test "${lt_cv_path_NM+set}" = set; then :
970f6abe
VZ
4608 $as_echo_n "(cached) " >&6
4609else
4610 if test -n "$NM"; then
4611 # Let the user override the test.
4612 lt_cv_path_NM="$NM"
4613else
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}
4652fi
4653fi
b61cc19c 4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
970f6abe
VZ
4655$as_echo "$lt_cv_path_NM" >&6; }
4656if test "$lt_cv_path_NM" != "no"; then
4657 NM="$lt_cv_path_NM"
4658else
4659 # Didn't find any BSD compatible name lister, look for dumpbin.
b61cc19c
PC
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"
970f6abe
VZ
4665 do
4666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4667set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b61cc19c 4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 4669$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 4670if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
970f6abe
VZ
4671 $as_echo_n "(cached) " >&6
4672else
4673 if test -n "$DUMPBIN"; then
4674 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4675else
4676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677for as_dir in $PATH
4678do
4679 IFS=$as_save_IFS
4680 test -z "$as_dir" && as_dir=.
b61cc19c 4681 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 4684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
4685 break 2
4686 fi
4687done
b61cc19c 4688 done
970f6abe
VZ
4689IFS=$as_save_IFS
4690
4691fi
4692fi
4693DUMPBIN=$ac_cv_prog_DUMPBIN
4694if test -n "$DUMPBIN"; then
b61cc19c 4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
970f6abe
VZ
4696$as_echo "$DUMPBIN" >&6; }
4697else
b61cc19c 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
4699$as_echo "no" >&6; }
4700fi
4701
4702
4703 test -n "$DUMPBIN" && break
4704 done
4705fi
4706if test -z "$DUMPBIN"; then
4707 ac_ct_DUMPBIN=$DUMPBIN
b61cc19c 4708 for ac_prog in dumpbin "link -dump"
970f6abe
VZ
4709do
4710 # Extract the first word of "$ac_prog", so it can be a program name with args.
4711set dummy $ac_prog; ac_word=$2
b61cc19c 4712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 4713$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 4714if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
970f6abe
VZ
4715 $as_echo_n "(cached) " >&6
4716else
4717 if test -n "$ac_ct_DUMPBIN"; then
4718 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4719else
4720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721for as_dir in $PATH
4722do
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
b61cc19c 4725 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
4729 break 2
4730 fi
4731done
b61cc19c 4732 done
970f6abe
VZ
4733IFS=$as_save_IFS
4734
4735fi
4736fi
4737ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4738if test -n "$ac_ct_DUMPBIN"; then
b61cc19c 4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
970f6abe
VZ
4740$as_echo "$ac_ct_DUMPBIN" >&6; }
4741else
b61cc19c 4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
4743$as_echo "no" >&6; }
4744fi
4745
4746
4747 test -n "$ac_ct_DUMPBIN" && break
4748done
4749
4750 if test "x$ac_ct_DUMPBIN" = x; then
4751 DUMPBIN=":"
4752 else
4753 case $cross_compiling:$ac_tool_warned in
4754yes:)
b61cc19c
PC
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;}
970f6abe
VZ
4757ac_tool_warned=yes ;;
4758esac
4759 DUMPBIN=$ac_ct_DUMPBIN
4760 fi
4761fi
4762
b61cc19c
PC
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
970f6abe
VZ
4772
4773 if test "$DUMPBIN" != ":"; then
4774 NM="$DUMPBIN"
4775 fi
4776fi
4777test -z "$NM" && NM=nm
4778
4779
4780
4781
4782
4783
b61cc19c 4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
970f6abe 4785$as_echo_n "checking the name lister ($NM) interface... " >&6; }
b61cc19c 4786if test "${lt_cv_nm_interface+set}" = set; then :
970f6abe
VZ
4787 $as_echo_n "(cached) " >&6
4788else
4789 lt_cv_nm_interface="BSD nm"
4790 echo "int some_variable = 0;" > conftest.$ac_ext
b61cc19c 4791 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
970f6abe
VZ
4792 (eval "$ac_compile" 2>conftest.err)
4793 cat conftest.err >&5
b61cc19c 4794 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
970f6abe
VZ
4795 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4796 cat conftest.err >&5
b61cc19c 4797 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
970f6abe
VZ
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*
4803fi
b61cc19c 4804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
970f6abe
VZ
4805$as_echo "$lt_cv_nm_interface" >&6; }
4806
4807# find the maximum length of command line arguments
b61cc19c 4808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
970f6abe 4809$as_echo_n "checking the maximum length of command line arguments... " >&6; }
b61cc19c 4810if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
970f6abe
VZ
4811 $as_echo_n "(cached) " >&6
4812else
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
b61cc19c 4832 cygwin* | mingw* | cegcc*)
970f6abe
VZ
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
b61cc19c
PC
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
970f6abe
VZ
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.
b61cc19c
PC
4912 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4913 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
970f6abe
VZ
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
4930fi
4931
4932if test -n $lt_cv_sys_max_cmd_len ; then
b61cc19c 4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
970f6abe
VZ
4934$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4935else
b61cc19c 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
970f6abe
VZ
4937$as_echo "none" >&6; }
4938fi
4939max_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
b61cc19c 4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
970f6abe
VZ
4951$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4952# Try some XSI features
4953xsi_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
b61cc19c 4960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
970f6abe
VZ
4961$as_echo "$xsi_shell" >&6; }
4962
4963
b61cc19c 4964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
970f6abe
VZ
4965$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4966lt_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
b61cc19c 4970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
970f6abe
VZ
4971$as_echo "$lt_shell_append" >&6; }
4972
4973
4974if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4975 lt_unset=unset
4976else
4977 lt_unset=false
4978fi
4979
4980
4981
4982
4983
4984# test EBCDIC or ASCII
4985case `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 ;;
4995esac
4996
4997
4998
4999
5000
5001
5002
5003
5004
b61cc19c
PC
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; }
5007if test "${lt_cv_ld_reload_flag+set}" = set; then :
5008 $as_echo_n "(cached) " >&6
5009else
5010 lt_cv_ld_reload_flag='-r'
5011fi
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5013$as_echo "$lt_cv_ld_reload_flag" >&6; }
5014reload_flag=$lt_cv_ld_reload_flag
5015case $reload_flag in
5016"" | " "*) ;;
5017*) reload_flag=" $reload_flag" ;;
5018esac
5019reload_cmds='$LD$reload_flag -o $output$reload_objs'
5020case $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 ;;
5028esac
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038if 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.
5040set 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; }
5043if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5044 $as_echo_n "(cached) " >&6
5045else
5046 if test -n "$OBJDUMP"; then
5047 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5048else
5049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050for as_dir in $PATH
5051do
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
5060done
5061 done
5062IFS=$as_save_IFS
5063
5064fi
5065fi
5066OBJDUMP=$ac_cv_prog_OBJDUMP
5067if test -n "$OBJDUMP"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5069$as_echo "$OBJDUMP" >&6; }
5070else
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072$as_echo "no" >&6; }
5073fi
5074
5075
5076fi
5077if 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.
5080set 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; }
5083if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5084 $as_echo_n "(cached) " >&6
5085else
5086 if test -n "$ac_ct_OBJDUMP"; then
5087 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5088else
5089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090for as_dir in $PATH
5091do
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
5100done
5101 done
5102IFS=$as_save_IFS
5103
5104fi
5105fi
5106ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5107if 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; }
970f6abe 5110else
b61cc19c
PC
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112$as_echo "no" >&6; }
970f6abe 5113fi
970f6abe 5114
b61cc19c
PC
5115 if test "x$ac_ct_OBJDUMP" = x; then
5116 OBJDUMP="false"
5117 else
5118 case $cross_compiling:$ac_tool_warned in
5119yes:)
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;}
5122ac_tool_warned=yes ;;
5123esac
5124 OBJDUMP=$ac_ct_OBJDUMP
5125 fi
5126else
5127 OBJDUMP="$ac_cv_prog_OBJDUMP"
5128fi
970f6abe 5129
b61cc19c 5130test -z "$OBJDUMP" && OBJDUMP=objdump
970f6abe
VZ
5131
5132
5133
5134
5135
5136
b61cc19c 5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
970f6abe 5138$as_echo_n "checking how to recognize dependent libraries... " >&6; }
b61cc19c 5139if test "${lt_cv_deplibs_check_method+set}" = set; then :
970f6abe
VZ
5140 $as_echo_n "(cached) " >&6
5141else
5142 lt_cv_file_magic_cmd='$MAGIC_CMD'
5143lt_cv_file_magic_test_file=
5144lt_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
5156case $host_os in
5157aix[4-9]*)
5158 lt_cv_deplibs_check_method=pass_all
5159 ;;
5160
5161beos*)
5162 lt_cv_deplibs_check_method=pass_all
5163 ;;
5164
5165bsdi[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
5171cygwin*)
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
5177mingw* | 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.
b61cc19c
PC
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
970f6abe
VZ
5183 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5184 lt_cv_file_magic_cmd='func_win32_libid'
5185 else
b61cc19c
PC
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)'
970f6abe
VZ
5188 lt_cv_file_magic_cmd='$OBJDUMP -f'
5189 fi
5190 ;;
5191
b61cc19c
PC
5192cegcc*)
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
970f6abe
VZ
5198darwin* | rhapsody*)
5199 lt_cv_deplibs_check_method=pass_all
5200 ;;
5201
5202freebsd* | 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
5218gnu*)
5219 lt_cv_deplibs_check_method=pass_all
5220 ;;
5221
b61cc19c
PC
5222haiku*)
5223 lt_cv_deplibs_check_method=pass_all
5224 ;;
5225
970f6abe
VZ
5226hpux10.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*)
b61cc19c 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]'
970f6abe
VZ
5235 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5236 ;;
5237 *)
b61cc19c 5238 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
970f6abe
VZ
5239 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5240 ;;
5241 esac
5242 ;;
5243
5244interix[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
5249irix5* | 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.
b61cc19c 5260linux* | k*bsd*-gnu | kopensolaris*-gnu)
970f6abe
VZ
5261 lt_cv_deplibs_check_method=pass_all
5262 ;;
5263
5264netbsd*)
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
5272newos6*)
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
5282openbsd*)
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
5290osf3* | osf4* | osf5*)
5291 lt_cv_deplibs_check_method=pass_all
5292 ;;
5293
5294rdos*)
5295 lt_cv_deplibs_check_method=pass_all
5296 ;;
5297
5298solaris*)
5299 lt_cv_deplibs_check_method=pass_all
5300 ;;
5301
5302sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5303 lt_cv_deplibs_check_method=pass_all
5304 ;;
5305
5306sysv4 | 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
5333tpf*)
5334 lt_cv_deplibs_check_method=pass_all
5335 ;;
5336esac
5337
5338fi
b61cc19c 5339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
970f6abe
VZ
5340$as_echo "$lt_cv_deplibs_check_method" >&6; }
5341file_magic_cmd=$lt_cv_file_magic_cmd
5342deplibs_check_method=$lt_cv_deplibs_check_method
5343test -z "$deplibs_check_method" && deplibs_check_method=unknown
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356if 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.
5358set dummy ${ac_tool_prefix}ar; ac_word=$2
b61cc19c 5359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 5360$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 5361if test "${ac_cv_prog_AR+set}" = set; then :
970f6abe
VZ
5362 $as_echo_n "(cached) " >&6
5363else
5364 if test -n "$AR"; then
5365 ac_cv_prog_AR="$AR" # Let the user override the test.
5366else
5367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368for as_dir in $PATH
5369do
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
b61cc19c 5372 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 5375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
5376 break 2
5377 fi
5378done
b61cc19c 5379 done
970f6abe
VZ
5380IFS=$as_save_IFS
5381
5382fi
5383fi
5384AR=$ac_cv_prog_AR
5385if test -n "$AR"; then
b61cc19c 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
970f6abe
VZ
5387$as_echo "$AR" >&6; }
5388else
b61cc19c 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
5390$as_echo "no" >&6; }
5391fi
5392
5393
5394fi
5395if 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.
5398set dummy ar; ac_word=$2
b61cc19c 5399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 5400$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 5401if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
970f6abe
VZ
5402 $as_echo_n "(cached) " >&6
5403else
5404 if test -n "$ac_ct_AR"; then
5405 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5406else
5407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408for as_dir in $PATH
5409do
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
b61cc19c 5412 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 5415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
5416 break 2
5417 fi
5418done
b61cc19c 5419 done
970f6abe
VZ
5420IFS=$as_save_IFS
5421
5422fi
5423fi
5424ac_ct_AR=$ac_cv_prog_ac_ct_AR
5425if test -n "$ac_ct_AR"; then
b61cc19c 5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
970f6abe
VZ
5427$as_echo "$ac_ct_AR" >&6; }
5428else
b61cc19c 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
5430$as_echo "no" >&6; }
5431fi
5432
5433 if test "x$ac_ct_AR" = x; then
5434 AR="false"
5435 else
5436 case $cross_compiling:$ac_tool_warned in
5437yes:)
b61cc19c
PC
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;}
970f6abe
VZ
5440ac_tool_warned=yes ;;
5441esac
5442 AR=$ac_ct_AR
5443 fi
5444else
5445 AR="$ac_cv_prog_AR"
5446fi
5447
5448test -z "$AR" && AR=ar
5449test -z "$AR_FLAGS" && AR_FLAGS=cru
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461if 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.
5463set dummy ${ac_tool_prefix}strip; ac_word=$2
b61cc19c 5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 5465$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 5466if test "${ac_cv_prog_STRIP+set}" = set; then :
970f6abe
VZ
5467 $as_echo_n "(cached) " >&6
5468else
5469 if test -n "$STRIP"; then
5470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5471else
5472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473for as_dir in $PATH
5474do
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
b61cc19c 5477 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
5481 break 2
5482 fi
5483done
b61cc19c 5484 done
970f6abe
VZ
5485IFS=$as_save_IFS
5486
5487fi
5488fi
5489STRIP=$ac_cv_prog_STRIP
5490if test -n "$STRIP"; then
b61cc19c 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
970f6abe
VZ
5492$as_echo "$STRIP" >&6; }
5493else
b61cc19c 5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
5495$as_echo "no" >&6; }
5496fi
5497
5498
5499fi
5500if 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.
5503set dummy strip; ac_word=$2
b61cc19c 5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 5505$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 5506if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
970f6abe
VZ
5507 $as_echo_n "(cached) " >&6
5508else
5509 if test -n "$ac_ct_STRIP"; then
5510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5511else
5512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513for as_dir in $PATH
5514do
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
b61cc19c 5517 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
5521 break 2
5522 fi
5523done
b61cc19c 5524 done
970f6abe
VZ
5525IFS=$as_save_IFS
5526
5527fi
5528fi
5529ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5530if test -n "$ac_ct_STRIP"; then
b61cc19c 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
970f6abe
VZ
5532$as_echo "$ac_ct_STRIP" >&6; }
5533else
b61cc19c 5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
5535$as_echo "no" >&6; }
5536fi
5537
5538 if test "x$ac_ct_STRIP" = x; then
5539 STRIP=":"
5540 else
5541 case $cross_compiling:$ac_tool_warned in
5542yes:)
b61cc19c
PC
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;}
970f6abe
VZ
5545ac_tool_warned=yes ;;
5546esac
5547 STRIP=$ac_ct_STRIP
5548 fi
5549else
5550 STRIP="$ac_cv_prog_STRIP"
5551fi
5552
5553test -z "$STRIP" && STRIP=:
5554
5555
5556
5557
5558
5559
5560if 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.
5562set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b61cc19c 5563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 5564$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 5565if test "${ac_cv_prog_RANLIB+set}" = set; then :
970f6abe
VZ
5566 $as_echo_n "(cached) " >&6
5567else
5568 if test -n "$RANLIB"; then
5569 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5570else
5571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572for as_dir in $PATH
5573do
5574 IFS=$as_save_IFS
5575 test -z "$as_dir" && as_dir=.
b61cc19c 5576 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 5579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
5580 break 2
5581 fi
5582done
b61cc19c 5583 done
970f6abe
VZ
5584IFS=$as_save_IFS
5585
5586fi
5587fi
5588RANLIB=$ac_cv_prog_RANLIB
5589if test -n "$RANLIB"; then
b61cc19c 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
970f6abe
VZ
5591$as_echo "$RANLIB" >&6; }
5592else
b61cc19c 5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
5594$as_echo "no" >&6; }
5595fi
5596
5597
5598fi
5599if 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.
5602set dummy ranlib; ac_word=$2
b61cc19c 5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 5604$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 5605if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
970f6abe
VZ
5606 $as_echo_n "(cached) " >&6
5607else
5608 if test -n "$ac_ct_RANLIB"; then
5609 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5610else
5611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612for as_dir in $PATH
5613do
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
b61cc19c 5616 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
5620 break 2
5621 fi
5622done
b61cc19c 5623 done
970f6abe
VZ
5624IFS=$as_save_IFS
5625
5626fi
5627fi
5628ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5629if test -n "$ac_ct_RANLIB"; then
b61cc19c 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
970f6abe
VZ
5631$as_echo "$ac_ct_RANLIB" >&6; }
5632else
b61cc19c 5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
5634$as_echo "no" >&6; }
5635fi
5636
5637 if test "x$ac_ct_RANLIB" = x; then
5638 RANLIB=":"
5639 else
5640 case $cross_compiling:$ac_tool_warned in
5641yes:)
b61cc19c
PC
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;}
970f6abe
VZ
5644ac_tool_warned=yes ;;
5645esac
5646 RANLIB=$ac_ct_RANLIB
5647 fi
5648else
5649 RANLIB="$ac_cv_prog_RANLIB"
5650fi
5651
5652test -z "$RANLIB" && RANLIB=:
5653
5654
5655
5656
5657
5658
5659# Determine commands to create old-style static archives.
5660old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5661old_postinstall_cmds='chmod 644 $oldlib'
5662old_postuninstall_cmds=
5663
5664if 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"
5674fi
5675
b61cc19c
PC
5676case $host_os in
5677 darwin*)
5678 lock_old_archive_extraction=yes ;;
5679 *)
5680 lock_old_archive_extraction=no ;;
5681esac
5682
5683
5684
5685
5686
5687
970f6abe
VZ
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.
5722LTCC=${LTCC-"$CC"}
5723
5724# If no C compiler flags were specified, use CFLAGS.
5725LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5726
5727# Allow CC to be a program name with arguments.
5728compiler=$CC
5729
5730
5731# Check for command to grab the raw symbol name followed by C symbol from nm.
b61cc19c 5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
970f6abe 5733$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
b61cc19c 5734if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
970f6abe
VZ
5735 $as_echo_n "(cached) " >&6
5736else
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.
5742symcode='[BCDEGRST]'
5743
5744# Regexp to match symbols that can be accessed directly from C.
5745sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5746
5747# Define system-specific variables.
5748case $host_os in
5749aix*)
5750 symcode='[BCDT]'
5751 ;;
b61cc19c 5752cygwin* | mingw* | pw32* | cegcc*)
970f6abe
VZ
5753 symcode='[ABCDGISTW]'
5754 ;;
5755hpux*)
5756 if test "$host_cpu" = ia64; then
5757 symcode='[ABCDEGRST]'
5758 fi
5759 ;;
5760irix* | nonstopux*)
5761 symcode='[BCDEGRST]'
5762 ;;
5763osf*)
5764 symcode='[BCDEGQRST]'
5765 ;;
5766solaris*)
5767 symcode='[BDRT]'
5768 ;;
5769sco3.2v5*)
5770 symcode='[DT]'
5771 ;;
5772sysv4.2uw2*)
5773 symcode='[DT]'
5774 ;;
5775sysv5* | sco5v6* | unixware* | OpenUNIX*)
5776 symcode='[ABDT]'
5777 ;;
5778sysv4)
5779 symcode='[DFNSTU]'
5780 ;;
5781esac
5782
5783# If we're using GNU nm, then use its standard symbol codes.
5784case `$NM -V 2>&1` in
5785*GNU* | *'with BFD'*)
5786 symcode='[ABCDGIRSTW]' ;;
5787esac
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.
5792lt_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
5795lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5796lt_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
5799opt_cr=
5800case $build_os in
5801mingw*)
5802 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5803 ;;
5804esac
5805
5806# Try without a prefix underscore, then with it.
5807for 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
5839extern "C" {
5840#endif
5841char nm_test_var;
5842void nm_test_func(void);
5843void nm_test_func(void){}
5844#ifdef __cplusplus
5845}
5846#endif
5847int main(){nm_test_var='a';nm_test_func();return(0);}
5848_LT_EOF
5849
b61cc19c 5850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
970f6abe
VZ
5851 (eval $ac_compile) 2>&5
5852 ac_status=$?
b61cc19c
PC
5853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5854 test $ac_status = 0; }; then
970f6abe
VZ
5855 # Now try to grab the symbols.
5856 nlist=conftest.nm
b61cc19c
PC
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
970f6abe 5859 ac_status=$?
b61cc19c
PC
5860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5861 test $ac_status = 0; } && test -s "$nlist"; then
970f6abe
VZ
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
5874extern "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. */
5884const struct {
5885 const char *name;
5886 void *address;
5887}
5888lt__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
5899static 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"
b61cc19c 5914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
970f6abe
VZ
5915 (eval $ac_link) 2>&5
5916 ac_status=$?
b61cc19c
PC
5917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5918 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
970f6abe
VZ
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
5944done
5945
5946fi
5947
5948if test -z "$lt_cv_sys_global_symbol_pipe"; then
5949 lt_cv_sys_global_symbol_to_cdecl=
5950fi
5951if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
b61cc19c 5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
970f6abe
VZ
5953$as_echo "failed" >&6; }
5954else
b61cc19c 5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
970f6abe
VZ
5956$as_echo "ok" >&6; }
5957fi
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.
b61cc19c 5982if test "${enable_libtool_lock+set}" = set; then :
970f6abe
VZ
5983 enableval=$enable_libtool_lock;
5984fi
5985
5986test "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.
5990case $host in
5991ia64-*-hpux*)
5992 # Find out which ABI we are using.
5993 echo 'int i;' > conftest.$ac_ext
b61cc19c 5994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
970f6abe
VZ
5995 (eval $ac_compile) 2>&5
5996 ac_status=$?
b61cc19c
PC
5997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5998 test $ac_status = 0; }; then
970f6abe
VZ
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.
b61cc19c
PC
6012 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
970f6abe
VZ
6014 (eval $ac_compile) 2>&5
6015 ac_status=$?
b61cc19c
PC
6016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6017 test $ac_status = 0; }; then
970f6abe
VZ
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
6047x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6048s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6049 # Find out which ABI we are using.
6050 echo 'int i;' > conftest.$ac_ext
b61cc19c 6051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
970f6abe
VZ
6052 (eval $ac_compile) 2>&5
6053 ac_status=$?
b61cc19c
PC
6054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6055 test $ac_status = 0; }; then
970f6abe
VZ
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"
b61cc19c 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
970f6abe 6105$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
b61cc19c 6106if test "${lt_cv_cc_needs_belf+set}" = set; then :
970f6abe
VZ
6107 $as_echo_n "(cached) " >&6
6108else
6109 ac_ext=c
6110ac_cpp='$CPP $CPPFLAGS'
6111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6113ac_compiler_gnu=$ac_cv_c_compiler_gnu
6114
b61cc19c 6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
6116/* end confdefs.h. */
6117
6118int
6119main ()
6120{
6121
6122 ;
6123 return 0;
6124}
6125_ACEOF
b61cc19c 6126if ac_fn_c_try_link "$LINENO"; then :
970f6abe
VZ
6127 lt_cv_cc_needs_belf=yes
6128else
b61cc19c 6129 lt_cv_cc_needs_belf=no
970f6abe 6130fi
b61cc19c
PC
6131rm -f core conftest.err conftest.$ac_objext \
6132 conftest$ac_exeext conftest.$ac_ext
970f6abe
VZ
6133 ac_ext=c
6134ac_cpp='$CPP $CPPFLAGS'
6135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137ac_compiler_gnu=$ac_cv_c_compiler_gnu
6138
6139fi
b61cc19c 6140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
970f6abe
VZ
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 ;;
6147sparc*-*solaris*)
6148 # Find out which ABI we are using.
6149 echo 'int i;' > conftest.$ac_ext
b61cc19c 6150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
970f6abe
VZ
6151 (eval $ac_compile) 2>&5
6152 ac_status=$?
b61cc19c
PC
6153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6154 test $ac_status = 0; }; then
970f6abe
VZ
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 ;;
6170esac
6171
6172need_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.
6179set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
b61cc19c 6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 6181$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 6182if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
970f6abe
VZ
6183 $as_echo_n "(cached) " >&6
6184else
6185 if test -n "$DSYMUTIL"; then
6186 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6187else
6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
b61cc19c 6193 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
6197 break 2
6198 fi
6199done
b61cc19c 6200 done
970f6abe
VZ
6201IFS=$as_save_IFS
6202
6203fi
6204fi
6205DSYMUTIL=$ac_cv_prog_DSYMUTIL
6206if test -n "$DSYMUTIL"; then
b61cc19c 6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
970f6abe
VZ
6208$as_echo "$DSYMUTIL" >&6; }
6209else
b61cc19c 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
6211$as_echo "no" >&6; }
6212fi
6213
6214
6215fi
6216if 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.
6219set dummy dsymutil; ac_word=$2
b61cc19c 6220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 6221$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 6222if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
970f6abe
VZ
6223 $as_echo_n "(cached) " >&6
6224else
6225 if test -n "$ac_ct_DSYMUTIL"; then
6226 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6227else
6228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229for as_dir in $PATH
6230do
6231 IFS=$as_save_IFS
6232 test -z "$as_dir" && as_dir=.
b61cc19c 6233 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 6236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
6237 break 2
6238 fi
6239done
b61cc19c 6240 done
970f6abe
VZ
6241IFS=$as_save_IFS
6242
6243fi
6244fi
6245ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6246if test -n "$ac_ct_DSYMUTIL"; then
b61cc19c 6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
970f6abe
VZ
6248$as_echo "$ac_ct_DSYMUTIL" >&6; }
6249else
b61cc19c 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
6251$as_echo "no" >&6; }
6252fi
6253
6254 if test "x$ac_ct_DSYMUTIL" = x; then
6255 DSYMUTIL=":"
6256 else
6257 case $cross_compiling:$ac_tool_warned in
6258yes:)
b61cc19c
PC
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;}
970f6abe
VZ
6261ac_tool_warned=yes ;;
6262esac
6263 DSYMUTIL=$ac_ct_DSYMUTIL
6264 fi
6265else
6266 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6267fi
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.
6271set dummy ${ac_tool_prefix}nmedit; ac_word=$2
b61cc19c 6272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 6273$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 6274if test "${ac_cv_prog_NMEDIT+set}" = set; then :
970f6abe
VZ
6275 $as_echo_n "(cached) " >&6
6276else
6277 if test -n "$NMEDIT"; then
6278 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6279else
6280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281for as_dir in $PATH
6282do
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
b61cc19c 6285 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 6288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
6289 break 2
6290 fi
6291done
b61cc19c 6292 done
970f6abe
VZ
6293IFS=$as_save_IFS
6294
6295fi
6296fi
6297NMEDIT=$ac_cv_prog_NMEDIT
6298if test -n "$NMEDIT"; then
b61cc19c 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
970f6abe
VZ
6300$as_echo "$NMEDIT" >&6; }
6301else
b61cc19c 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
6303$as_echo "no" >&6; }
6304fi
6305
6306
6307fi
6308if 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.
6311set dummy nmedit; ac_word=$2
b61cc19c 6312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 6313$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 6314if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
970f6abe
VZ
6315 $as_echo_n "(cached) " >&6
6316else
6317 if test -n "$ac_ct_NMEDIT"; then
6318 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6319else
6320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321for as_dir in $PATH
6322do
6323 IFS=$as_save_IFS
6324 test -z "$as_dir" && as_dir=.
b61cc19c 6325 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 6328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
6329 break 2
6330 fi
6331done
b61cc19c 6332 done
970f6abe
VZ
6333IFS=$as_save_IFS
6334
6335fi
6336fi
6337ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6338if test -n "$ac_ct_NMEDIT"; then
b61cc19c 6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
970f6abe
VZ
6340$as_echo "$ac_ct_NMEDIT" >&6; }
6341else
b61cc19c 6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
6343$as_echo "no" >&6; }
6344fi
6345
6346 if test "x$ac_ct_NMEDIT" = x; then
6347 NMEDIT=":"
6348 else
6349 case $cross_compiling:$ac_tool_warned in
6350yes:)
b61cc19c
PC
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;}
970f6abe
VZ
6353ac_tool_warned=yes ;;
6354esac
6355 NMEDIT=$ac_ct_NMEDIT
6356 fi
6357else
6358 NMEDIT="$ac_cv_prog_NMEDIT"
6359fi
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.
6363set dummy ${ac_tool_prefix}lipo; ac_word=$2
b61cc19c 6364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 6365$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 6366if test "${ac_cv_prog_LIPO+set}" = set; then :
970f6abe
VZ
6367 $as_echo_n "(cached) " >&6
6368else
6369 if test -n "$LIPO"; then
6370 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6371else
6372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373for as_dir in $PATH
6374do
6375 IFS=$as_save_IFS
6376 test -z "$as_dir" && as_dir=.
b61cc19c 6377 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
6381 break 2
6382 fi
6383done
b61cc19c 6384 done
970f6abe
VZ
6385IFS=$as_save_IFS
6386
6387fi
6388fi
6389LIPO=$ac_cv_prog_LIPO
6390if test -n "$LIPO"; then
b61cc19c 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
970f6abe
VZ
6392$as_echo "$LIPO" >&6; }
6393else
b61cc19c 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
6395$as_echo "no" >&6; }
6396fi
6397
6398
6399fi
6400if 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.
6403set dummy lipo; ac_word=$2
b61cc19c 6404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
970f6abe 6405$as_echo_n "checking for $ac_word... " >&6; }
b61cc19c 6406if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
970f6abe
VZ
6407 $as_echo_n "(cached) " >&6
6408else
6409 if test -n "$ac_ct_LIPO"; then
6410 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6411else
6412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413for as_dir in $PATH
6414do
6415 IFS=$as_save_IFS
6416 test -z "$as_dir" && as_dir=.
b61cc19c 6417 for ac_exec_ext in '' $ac_executable_extensions; do
970f6abe
VZ
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"
b61cc19c 6420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
970f6abe
VZ
6421 break 2
6422 fi
6423done
b61cc19c 6424 done
970f6abe
VZ
6425IFS=$as_save_IFS
6426
6427fi
6428fi
6429ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6430if test -n "$ac_ct_LIPO"; then
b61cc19c 6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
970f6abe
VZ
6432$as_echo "$ac_ct_LIPO" >&6; }
6433else
b61cc19c 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
6435$as_echo "no" >&6; }
6436fi
6437
6438 if test "x$ac_ct_LIPO" = x; then
6439 LIPO=":"
6440 else
6441 case $cross_compiling:$ac_tool_warned in
6442yes:)
b61cc19c
PC
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;}
970f6abe
VZ
6445ac_tool_warned=yes ;;
6446esac
6447 LIPO=$ac_ct_LIPO
6448 fi
6449else
6450 LIPO="$ac_cv_prog_LIPO"
6451fi
6452
b61cc19c
PC
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.
6455set 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; }
6458if test "${ac_cv_prog_OTOOL+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6460else
6461 if test -n "$OTOOL"; then
6462 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6463else
6464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465for as_dir in $PATH
6466do
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
6475done
6476 done
6477IFS=$as_save_IFS
6478
6479fi
6480fi
6481OTOOL=$ac_cv_prog_OTOOL
6482if test -n "$OTOOL"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6484$as_echo "$OTOOL" >&6; }
6485else
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487$as_echo "no" >&6; }
6488fi
6489
6490
6491fi
6492if 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.
6495set 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; }
6498if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6500else
6501 if test -n "$ac_ct_OTOOL"; then
6502 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6503else
6504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505for as_dir in $PATH
6506do
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
6515done
6516 done
6517IFS=$as_save_IFS
6518
6519fi
6520fi
6521ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6522if 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; }
6525else
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527$as_echo "no" >&6; }
6528fi
6529
6530 if test "x$ac_ct_OTOOL" = x; then
6531 OTOOL=":"
6532 else
6533 case $cross_compiling:$ac_tool_warned in
6534yes:)
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;}
6537ac_tool_warned=yes ;;
6538esac
6539 OTOOL=$ac_ct_OTOOL
6540 fi
6541else
6542 OTOOL="$ac_cv_prog_OTOOL"
6543fi
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.
6547set 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; }
6550if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6551 $as_echo_n "(cached) " >&6
6552else
6553 if test -n "$OTOOL64"; then
6554 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6555else
6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557for as_dir in $PATH
6558do
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
6567done
6568 done
6569IFS=$as_save_IFS
6570
6571fi
6572fi
6573OTOOL64=$ac_cv_prog_OTOOL64
6574if test -n "$OTOOL64"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6576$as_echo "$OTOOL64" >&6; }
6577else
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579$as_echo "no" >&6; }
6580fi
6581
6582
6583fi
6584if 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.
6587set 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; }
6590if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6591 $as_echo_n "(cached) " >&6
6592else
6593 if test -n "$ac_ct_OTOOL64"; then
6594 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6595else
6596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597for as_dir in $PATH
6598do
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
6607done
6608 done
6609IFS=$as_save_IFS
6610
6611fi
6612fi
6613ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6614if 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; }
6617else
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619$as_echo "no" >&6; }
6620fi
6621
6622 if test "x$ac_ct_OTOOL64" = x; then
6623 OTOOL64=":"
6624 else
6625 case $cross_compiling:$ac_tool_warned in
6626yes:)
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;}
6629ac_tool_warned=yes ;;
6630esac
6631 OTOOL64=$ac_ct_OTOOL64
6632 fi
6633else
6634 OTOOL64="$ac_cv_prog_OTOOL64"
6635fi
6636
6637
6638
6639
970f6abe
VZ
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
b61cc19c
PC
6656
6657
6658
6659
6660
6661
6662
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
970f6abe 6664$as_echo_n "checking for -single_module linker flag... " >&6; }
b61cc19c 6665if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
970f6abe
VZ
6666 $as_echo_n "(cached) " >&6
6667else
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
6689fi
b61cc19c 6690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
970f6abe 6691$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
b61cc19c 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
970f6abe 6693$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
b61cc19c 6694if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
970f6abe
VZ
6695 $as_echo_n "(cached) " >&6
6696else
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"
b61cc19c 6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
6702/* end confdefs.h. */
6703
6704int
6705main ()
6706{
6707
6708 ;
6709 return 0;
6710}
6711_ACEOF
b61cc19c
PC
6712if ac_fn_c_try_link "$LINENO"; then :
6713 lt_cv_ld_exported_symbols_list=yes
6714else
6715 lt_cv_ld_exported_symbols_list=no
970f6abe 6716fi
b61cc19c
PC
6717rm -f core conftest.err conftest.$ac_objext \
6718 conftest$ac_exeext conftest.$ac_ext
970f6abe
VZ
6719 LDFLAGS="$save_LDFLAGS"
6720
6721fi
b61cc19c 6722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
970f6abe 6723$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
b61cc19c
PC
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; }
6726if test "${lt_cv_ld_force_load+set}" = set; then :
6727 $as_echo_n "(cached) " >&6
6728else
6729 lt_cv_ld_force_load=no
6730 cat > conftest.c << _LT_EOF
6731int 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
6740int 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
6753fi
6754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6755$as_echo "$lt_cv_ld_force_load" >&6; }
970f6abe
VZ
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
b61cc19c 6783 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
970f6abe
VZ
6784 _lt_dsymutil='~$DSYMUTIL $lib || :'
6785 else
6786 _lt_dsymutil=
6787 fi
6788 ;;
6789 esac
6790
6791
b61cc19c 6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
970f6abe 6793$as_echo_n "checking for ANSI C header files... " >&6; }
b61cc19c 6794if test "${ac_cv_header_stdc+set}" = set; then :
970f6abe
VZ
6795 $as_echo_n "(cached) " >&6
6796else
b61cc19c 6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
6798/* end confdefs.h. */
6799#include <stdlib.h>
6800#include <stdarg.h>
6801#include <string.h>
6802#include <float.h>
6803
6804int
6805main ()
6806{
6807
6808 ;
6809 return 0;
6810}
6811_ACEOF
b61cc19c 6812if ac_fn_c_try_compile "$LINENO"; then :
970f6abe
VZ
6813 ac_cv_header_stdc=yes
6814else
b61cc19c 6815 ac_cv_header_stdc=no
970f6abe 6816fi
970f6abe
VZ
6817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818
6819if test $ac_cv_header_stdc = yes; then
6820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b61cc19c 6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
6822/* end confdefs.h. */
6823#include <string.h>
6824
6825_ACEOF
6826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b61cc19c
PC
6827 $EGREP "memchr" >/dev/null 2>&1; then :
6828
6829else
6830 ac_cv_header_stdc=no
6831fi
6832rm -f conftest*
6833
6834fi
6835
6836if 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
6843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6844 $EGREP "free" >/dev/null 2>&1; then :
6845
970f6abe
VZ
6846else
6847 ac_cv_header_stdc=no
6848fi
6849rm -f conftest*
6850
6851fi
b61cc19c
PC
6852
6853if 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 :
6857else
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)))
6874int
6875main ()
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
6885if ac_fn_c_try_run "$LINENO"; then :
6886
6887else
6888 ac_cv_header_stdc=no
6889fi
6890rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6891 conftest.$ac_objext conftest.beam conftest.$ac_ext
6892fi
6893
6894fi
6895fi
6896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6897$as_echo "$ac_cv_header_stdc" >&6; }
6898if test $ac_cv_header_stdc = yes; then
6899
6900$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6901
6902fi
6903
6904# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6905for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6906 inttypes.h stdint.h unistd.h
6907do :
6908 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6909ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6910"
6911eval 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
6917fi
6918
6919done
6920
6921
6922for ac_header in dlfcn.h
6923do :
6924 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6925"
6926if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6927 cat >>confdefs.h <<_ACEOF
6928#define HAVE_DLFCN_H 1
6929_ACEOF
6930
6931fi
6932
6933done
6934
6935
6936
6937
6938
6939# Set options
6940enable_win32_dll=yes
6941
6942case $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.
6946set 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; }
6949if test "${ac_cv_prog_AS+set}" = set; then :
6950 $as_echo_n "(cached) " >&6
6951else
6952 if test -n "$AS"; then
6953 ac_cv_prog_AS="$AS" # Let the user override the test.
6954else
6955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956for as_dir in $PATH
6957do
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
6966done
6967 done
6968IFS=$as_save_IFS
6969
6970fi
6971fi
6972AS=$ac_cv_prog_AS
6973if test -n "$AS"; then
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6975$as_echo "$AS" >&6; }
6976else
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6978$as_echo "no" >&6; }
6979fi
6980
6981
6982fi
6983if 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.
6986set 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; }
6989if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6990 $as_echo_n "(cached) " >&6
6991else
6992 if test -n "$ac_ct_AS"; then
6993 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6994else
6995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996for as_dir in $PATH
6997do
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
7006done
7007 done
7008IFS=$as_save_IFS
7009
7010fi
7011fi
7012ac_ct_AS=$ac_cv_prog_ac_ct_AS
7013if 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; }
7016else
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018$as_echo "no" >&6; }
7019fi
7020
7021 if test "x$ac_ct_AS" = x; then
7022 AS="false"
7023 else
7024 case $cross_compiling:$ac_tool_warned in
7025yes:)
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;}
7028ac_tool_warned=yes ;;
7029esac
7030 AS=$ac_ct_AS
7031 fi
7032else
7033 AS="$ac_cv_prog_AS"
7034fi
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.
7038set 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; }
7041if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7042 $as_echo_n "(cached) " >&6
7043else
7044 if test -n "$DLLTOOL"; then
7045 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7046else
7047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048for as_dir in $PATH
7049do
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
7058done
7059 done
7060IFS=$as_save_IFS
7061
7062fi
7063fi
7064DLLTOOL=$ac_cv_prog_DLLTOOL
7065if test -n "$DLLTOOL"; then
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7067$as_echo "$DLLTOOL" >&6; }
7068else
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070$as_echo "no" >&6; }
7071fi
7072
7073
7074fi
7075if 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.
7078set 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; }
7081if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7082 $as_echo_n "(cached) " >&6
7083else
7084 if test -n "$ac_ct_DLLTOOL"; then
7085 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7086else
7087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088for as_dir in $PATH
7089do
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
7098done
7099 done
7100IFS=$as_save_IFS
7101
7102fi
7103fi
7104ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7105if 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; }
970f6abe 7108else
b61cc19c
PC
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110$as_echo "no" >&6; }
970f6abe 7111fi
970f6abe 7112
b61cc19c
PC
7113 if test "x$ac_ct_DLLTOOL" = x; then
7114 DLLTOOL="false"
7115 else
7116 case $cross_compiling:$ac_tool_warned in
7117yes:)
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;}
7120ac_tool_warned=yes ;;
7121esac
7122 DLLTOOL=$ac_ct_DLLTOOL
7123 fi
7124else
7125 DLLTOOL="$ac_cv_prog_DLLTOOL"
970f6abe
VZ
7126fi
7127
b61cc19c
PC
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.
7130set 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; }
7133if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7134 $as_echo_n "(cached) " >&6
970f6abe 7135else
b61cc19c
PC
7136 if test -n "$OBJDUMP"; then
7137 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
970f6abe 7138else
b61cc19c
PC
7139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140for as_dir in $PATH
7141do
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
7150done
7151 done
7152IFS=$as_save_IFS
970f6abe 7153
970f6abe 7154fi
970f6abe 7155fi
b61cc19c
PC
7156OBJDUMP=$ac_cv_prog_OBJDUMP
7157if test -n "$OBJDUMP"; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7159$as_echo "$OBJDUMP" >&6; }
7160else
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162$as_echo "no" >&6; }
970f6abe 7163fi
970f6abe 7164
970f6abe
VZ
7165
7166fi
b61cc19c
PC
7167if 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.
7170set 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; }
7173if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
970f6abe
VZ
7174 $as_echo_n "(cached) " >&6
7175else
b61cc19c
PC
7176 if test -n "$ac_ct_OBJDUMP"; then
7177 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
970f6abe 7178else
b61cc19c
PC
7179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
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
7190done
7191 done
7192IFS=$as_save_IFS
970f6abe 7193
970f6abe 7194fi
970f6abe 7195fi
b61cc19c
PC
7196ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7197if 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; }
7200else
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202$as_echo "no" >&6; }
7203fi
970f6abe 7204
b61cc19c
PC
7205 if test "x$ac_ct_OBJDUMP" = x; then
7206 OBJDUMP="false"
7207 else
7208 case $cross_compiling:$ac_tool_warned in
7209yes:)
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;}
7212ac_tool_warned=yes ;;
7213esac
7214 OBJDUMP=$ac_ct_OBJDUMP
7215 fi
7216else
7217 OBJDUMP="$ac_cv_prog_OBJDUMP"
970f6abe
VZ
7218fi
7219
b61cc19c
PC
7220 ;;
7221esac
970f6abe 7222
b61cc19c 7223test -z "$AS" && AS=as
970f6abe
VZ
7224
7225
970f6abe 7226
970f6abe 7227
970f6abe 7228
b61cc19c 7229test -z "$DLLTOOL" && DLLTOOL=dlltool
970f6abe 7230
970f6abe 7231
970f6abe
VZ
7232
7233
7234
b61cc19c
PC
7235test -z "$OBJDUMP" && OBJDUMP=objdump
7236
7237
7238
7239
970f6abe
VZ
7240
7241
7242
7243 enable_dlopen=no
7244
7245
7246
7247 # Check whether --enable-shared was given.
b61cc19c 7248if test "${enable_shared+set}" = set; then :
970f6abe
VZ
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
7266else
7267 enable_shared=yes
7268fi
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278 # Check whether --enable-static was given.
b61cc19c 7279if test "${enable_static+set}" = set; then :
970f6abe
VZ
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
7297else
7298 enable_static=yes
7299fi
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310# Check whether --with-pic was given.
b61cc19c 7311if test "${with_pic+set}" = set; then :
970f6abe
VZ
7312 withval=$with_pic; pic_mode="$withval"
7313else
7314 pic_mode=default
7315fi
7316
7317
7318test -z "$pic_mode" && pic_mode=default
7319
7320
7321
7322
7323
7324
7325
7326 # Check whether --enable-fast-install was given.
b61cc19c 7327if test "${enable_fast_install+set}" = set; then :
970f6abe
VZ
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
7345else
7346 enable_fast_install=yes
7347fi
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359# This can be used to rebuild libtool when needed
7360LIBTOOL_DEPS="$ltmain"
7361
7362# Always use our own libtool.
7363LIBTOOL='$(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
b61cc19c 7387
970f6abe
VZ
7388
7389
7390test -z "$LN_S" && LN_S="ln -s"
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405if test -n "${ZSH_VERSION+set}" ; then
7406 setopt NO_GLOB_SUBST
7407fi
7408
b61cc19c 7409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
970f6abe 7410$as_echo_n "checking for objdir... " >&6; }
b61cc19c 7411if test "${lt_cv_objdir+set}" = set; then :
970f6abe
VZ
7412 $as_echo_n "(cached) " >&6
7413else
7414 rm -f .libs 2>/dev/null
7415mkdir .libs 2>/dev/null
7416if test -d .libs; then
7417 lt_cv_objdir=.libs
7418else
7419 # MS-DOS does not allow filenames that begin with a dot.
7420 lt_cv_objdir=_libs
7421fi
7422rmdir .libs 2>/dev/null
7423fi
b61cc19c 7424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
970f6abe
VZ
7425$as_echo "$lt_cv_objdir" >&6; }
7426objdir=$lt_cv_objdir
7427
7428
7429
7430
7431
7432cat >>confdefs.h <<_ACEOF
7433#define LT_OBJDIR "$lt_cv_objdir/"
7434_ACEOF
7435
7436
7437
7438
970f6abe
VZ
7439case $host_os in
7440aix3*)
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 ;;
7449esac
7450
970f6abe
VZ
7451# Global variables:
7452ofile=libtool
7453can_build_shared=yes
7454
7455# All known linkers require a `.a' archive for static linking (except MSVC,
7456# which needs '.lib').
7457libext=a
7458
7459with_gnu_ld="$lt_cv_prog_gnu_ld"
7460
7461old_CC="$CC"
7462old_CFLAGS="$CFLAGS"
7463
7464# Set sane defaults for various variables
7465test -z "$CC" && CC=cc
7466test -z "$LTCC" && LTCC=$CC
7467test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7468test -z "$LD" && LD=ld
7469test -z "$ac_objext" && ac_objext=o
7470
7471for 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
7478done
b61cc19c 7479cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
970f6abe
VZ
7480
7481
7482# Only perform the check for file, if the check method requires it
7483test -z "$MAGIC_CMD" && MAGIC_CMD=file
7484case $deplibs_check_method in
7485file_magic*)
7486 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
b61cc19c 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
970f6abe 7488$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
b61cc19c 7489if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
970f6abe
VZ
7490 $as_echo_n "(cached) " >&6
7491else
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 ;;
7535esac
7536fi
7537
7538MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7539if test -n "$MAGIC_CMD"; then
b61cc19c 7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
970f6abe
VZ
7541$as_echo "$MAGIC_CMD" >&6; }
7542else
b61cc19c 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
7544$as_echo "no" >&6; }
7545fi
7546
7547
7548
7549
7550
7551if test -z "$lt_cv_path_MAGIC_CMD"; then
7552 if test -n "$ac_tool_prefix"; then
b61cc19c 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
970f6abe 7554$as_echo_n "checking for file... " >&6; }
b61cc19c 7555if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
970f6abe
VZ
7556 $as_echo_n "(cached) " >&6
7557else
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 ;;
7601esac
7602fi
7603
7604MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7605if test -n "$MAGIC_CMD"; then
b61cc19c 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
970f6abe
VZ
7607$as_echo "$MAGIC_CMD" >&6; }
7608else
b61cc19c 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
7610$as_echo "no" >&6; }
7611fi
7612
7613
7614 else
7615 MAGIC_CMD=:
7616 fi
7617fi
7618
7619 fi
7620 ;;
7621esac
7622
7623# Use C for the default configuration in the libtool script
7624
7625lt_save_CC="$CC"
7626ac_ext=c
7627ac_cpp='$CPP $CPPFLAGS'
7628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7630ac_compiler_gnu=$ac_cv_c_compiler_gnu
7631
7632
7633# Source file extension for C test sources.
7634ac_ext=c
7635
7636# Object file extension for compiled C test sources.
7637objext=o
7638objext=$objext
7639
7640# Code to be used in simple compile tests
7641lt_simple_compile_test_code="int some_variable = 0;"
7642
7643# Code to be used in simple link tests
7644lt_simple_link_test_code='int main(){return(0);}'
7645
7646
7647
7648
7649
7650
7651
7652# If no C compiler was specified, use CC.
7653LTCC=${LTCC-"$CC"}
7654
7655# If no C compiler flags were specified, use CFLAGS.
7656LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7657
7658# Allow CC to be a program name with arguments.
7659compiler=$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.
7663compiler_DEFAULT=$CC
7664
7665# save warnings/boilerplate of simple test code
7666ac_outfile=conftest.$ac_objext
7667echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7668eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7669_lt_compiler_boilerplate=`cat conftest.err`
7670$RM conftest*
7671
7672ac_outfile=conftest.$ac_objext
7673echo "$lt_simple_link_test_code" >conftest.$ac_ext
7674eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7675_lt_linker_boilerplate=`cat conftest.err`
7676$RM -r conftest*
7677
7678
7679if test -n "$compiler"; then
7680
7681lt_prog_compiler_no_builtin_flag=
7682
7683if test "$GCC" = yes; then
b61cc19c
PC
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
970f6abe 7690
b61cc19c 7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
970f6abe 7692$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
b61cc19c 7693if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
970f6abe
VZ
7694 $as_echo_n "(cached) " >&6
7695else
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:'`
b61cc19c 7709 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
970f6abe
VZ
7710 (eval "$lt_compile" 2>conftest.err)
7711 ac_status=$?
7712 cat conftest.err >&5
b61cc19c 7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
970f6abe
VZ
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.
b61cc19c 7717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
970f6abe
VZ
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
7725fi
b61cc19c 7726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
970f6abe
VZ
7727$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7728
7729if 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"
7731else
7732 :
7733fi
7734
7735fi
7736
7737
7738
7739
7740
7741
7742 lt_prog_compiler_wl=
7743lt_prog_compiler_pic=
7744lt_prog_compiler_static=
7745
b61cc19c 7746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
970f6abe
VZ
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
b61cc19c 7781 mingw* | cygwin* | pw32* | os2* | cegcc*)
970f6abe
VZ
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
b61cc19c
PC
7795 haiku*)
7796 # PIC is the default for Haiku.
7797 # The "-static" flag exists, but is broken.
7798 lt_prog_compiler_static=
7799 ;;
7800
970f6abe 7801 hpux*)
b61cc19c
PC
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.
970f6abe 7805 case $host_cpu in
b61cc19c 7806 hppa*64*)
970f6abe
VZ
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
b61cc19c
PC
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
970f6abe
VZ
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
b61cc19c 7863 mingw* | cygwin* | pw32* | os2* | cegcc*)
970f6abe
VZ
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
b61cc19c 7891 linux* | k*bsd*-gnu | kopensolaris*-gnu)
970f6abe 7892 case $cc_basename in
b61cc19c
PC
7893 # old Intel for x86_64 which still supported -KPIC.
7894 ecc*)
970f6abe
VZ
7895 lt_prog_compiler_wl='-Wl,'
7896 lt_prog_compiler_pic='-KPIC'
7897 lt_prog_compiler_static='-static'
7898 ;;
b61cc19c
PC
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*)
970f6abe
VZ
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 ;;
b61cc19c
PC
7924 xl* | bgxl* | bgf* | mpixl*)
7925 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
970f6abe
VZ
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
b61cc19c
PC
7932 *Sun\ F* | *Sun*Fortran*)
7933 # Sun Fortran 8.3 passes all unrecognized flags to the linker
970f6abe
VZ
7934 lt_prog_compiler_pic='-KPIC'
7935 lt_prog_compiler_static='-Bstatic'
b61cc19c 7936 lt_prog_compiler_wl=''
970f6abe 7937 ;;
b61cc19c
PC
7938 *Sun\ C*)
7939 # Sun C 5.9
970f6abe
VZ
7940 lt_prog_compiler_pic='-KPIC'
7941 lt_prog_compiler_static='-Bstatic'
b61cc19c 7942 lt_prog_compiler_wl='-Wl,'
970f6abe
VZ
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
b61cc19c 7974 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
970f6abe
VZ
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
8022case $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 ;;
8030esac
b61cc19c 8031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
970f6abe
VZ
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#
8042if test -n "$lt_prog_compiler_pic"; then
b61cc19c 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
970f6abe 8044$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
b61cc19c 8045if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
970f6abe
VZ
8046 $as_echo_n "(cached) " >&6
8047else
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:'`
b61cc19c 8061 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
970f6abe
VZ
8062 (eval "$lt_compile" 2>conftest.err)
8063 ac_status=$?
8064 cat conftest.err >&5
b61cc19c 8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
970f6abe
VZ
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.
b61cc19c 8069 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
970f6abe
VZ
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
8077fi
b61cc19c 8078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
970f6abe
VZ
8079$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8080
8081if 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
8086else
8087 lt_prog_compiler_pic=
8088 lt_prog_compiler_can_build_shared=no
8089fi
8090
8091fi
8092
8093
8094
8095
8096
8097
8098#
8099# Check to make sure the static flag actually works.
8100#
8101wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
b61cc19c 8102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
970f6abe 8103$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
b61cc19c 8104if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
970f6abe
VZ
8105 $as_echo_n "(cached) " >&6
8106else
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
b61cc19c 8117 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
970f6abe
VZ
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
8129fi
b61cc19c 8130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
970f6abe
VZ
8131$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8132
8133if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8134 :
8135else
8136 lt_prog_compiler_static=
8137fi
8138
8139
8140
8141
8142
8143
8144
b61cc19c 8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
970f6abe 8146$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b61cc19c 8147if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
970f6abe
VZ
8148 $as_echo_n "(cached) " >&6
8149else
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:'`
b61cc19c 8166 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
970f6abe
VZ
8167 (eval "$lt_compile" 2>out/conftest.err)
8168 ac_status=$?
8169 cat out/conftest.err >&5
b61cc19c 8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
970f6abe
VZ
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
b61cc19c 8175 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
970f6abe
VZ
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
8191fi
b61cc19c 8192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
970f6abe
VZ
8193$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8194
8195
8196
8197
8198
8199
b61cc19c 8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
970f6abe 8201$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b61cc19c 8202if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
970f6abe
VZ
8203 $as_echo_n "(cached) " >&6
8204else
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:'`
b61cc19c 8221 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
970f6abe
VZ
8222 (eval "$lt_compile" 2>out/conftest.err)
8223 ac_status=$?
8224 cat out/conftest.err >&5
b61cc19c 8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
970f6abe
VZ
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
b61cc19c 8230 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
970f6abe
VZ
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
8246fi
b61cc19c 8247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
970f6abe
VZ
8248$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8249
8250
8251
8252
8253hard_links="nottested"
8254if 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
b61cc19c 8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
970f6abe
VZ
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
b61cc19c 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
970f6abe
VZ
8265$as_echo "$hard_links" >&6; }
8266 if test "$hard_links" = no; then
b61cc19c 8267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
970f6abe
VZ
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
8271else
8272 need_locks=no
8273fi
8274
8275
8276
8277
8278
8279
b61cc19c 8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
970f6abe
VZ
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
b61cc19c 8325 cygwin* | mingw* | pw32* | cegcc*)
970f6abe
VZ
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
b61cc19c
PC
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
970f6abe 8347 if test "$with_gnu_ld" = yes; then
b61cc19c
PC
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
970f6abe
VZ
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
b61cc19c 8387 *GNU\ gold*) supports_anon_versioning=yes ;;
970f6abe
VZ
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
b61cc19c 8403*** Warning: the GNU linker, at least up to release 2.19, is reported
970f6abe
VZ
8404*** to be unable to reliably create shared libraries on AIX.
8405*** Therefore, libtool is disabling shared libraries support. If you
b61cc19c
PC
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.
970f6abe
VZ
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
b61cc19c 8440 cygwin* | mingw* | pw32* | cegcc*)
970f6abe
VZ
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'
b61cc19c 8444 export_dynamic_flag_spec='${wl}--export-all-symbols'
970f6abe
VZ
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
b61cc19c
PC
8466 haiku*)
8467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8468 link_all_deplibs=yes
8469 ;;
8470
970f6abe
VZ
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
b61cc19c 8486 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
970f6abe
VZ
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
b61cc19c 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'
970f6abe
VZ
8501 tmp_addflag=' $pic_flag'
8502 ;;
b61cc19c
PC
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'
970f6abe
VZ
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' ;;
b61cc19c
PC
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)
970f6abe
VZ
8517 tmp_sharedflag='-qmkshrobj'
8518 tmp_addflag= ;;
b61cc19c
PC
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 ;;
970f6abe
VZ
8523 esac
8524 case `$CC -V 2>&1 | sed 5q` in
8525 *Sun\ C*) # Sun C 5.9
b61cc19c 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'
970f6abe
VZ
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
b61cc19c 8542 xlf* | bgf* | bgxlf* | mpixlf*)
970f6abe
VZ
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'
b61cc19c 8547 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
970f6abe
VZ
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~
b61cc19c 8552 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
970f6abe
VZ
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
b61cc19c
PC
8673 # Also, AIX nm treats weak defined symbols like other global
8674 # defined symbols, whereas GNU nm marks them as "W".
970f6abe 8675 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
b61cc19c 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'
970f6abe
VZ
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
b61cc19c 8753 export_dynamic_flag_spec='${wl}-bexpall'
970f6abe
VZ
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.
b61cc19c 8763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
8764/* end confdefs.h. */
8765
8766int
8767main ()
8768{
8769
8770 ;
8771 return 0;
8772}
8773_ACEOF
b61cc19c 8774if ac_fn_c_try_link "$LINENO"; then :
970f6abe
VZ
8775
8776lt_aix_libpath_sed='
8777 /Import File Strings/,/^$/ {
8778 /^0/ {
8779 s/^0 *\(.*\)$/\1/
8780 p
8781 }
8782 }'
8783aix_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.
8785if test -z "$aix_libpath"; then
8786 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8787fi
970f6abe 8788fi
b61cc19c
PC
8789rm -f core conftest.err conftest.$ac_objext \
8790 conftest$ac_exeext conftest.$ac_ext
970f6abe
VZ
8791if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8792
8793 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
b61cc19c 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"
970f6abe
VZ
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.
b61cc19c 8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
8804/* end confdefs.h. */
8805
8806int
8807main ()
8808{
8809
8810 ;
8811 return 0;
8812}
8813_ACEOF
b61cc19c 8814if ac_fn_c_try_link "$LINENO"; then :
970f6abe
VZ
8815
8816lt_aix_libpath_sed='
8817 /Import File Strings/,/^$/ {
8818 /^0/ {
8819 s/^0 *\(.*\)$/\1/
8820 p
8821 }
8822 }'
8823aix_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.
8825if test -z "$aix_libpath"; then
8826 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8827fi
970f6abe 8828fi
b61cc19c
PC
8829rm -f core conftest.err conftest.$ac_objext \
8830 conftest$ac_exeext conftest.$ac_ext
970f6abe
VZ
8831if 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'
b61cc19c
PC
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
970f6abe
VZ
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
b61cc19c 8871 cygwin* | mingw* | pw32* | cegcc*)
970f6abe
VZ
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.
b61cc19c 8883 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
970f6abe
VZ
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
b61cc19c
PC
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
970f6abe
VZ
8904 link_all_deplibs=yes
8905 allow_undefined_flag="$_lt_dar_allow_undefined"
b61cc19c
PC
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
970f6abe
VZ
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*)
b61cc19c 8977 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
970f6abe
VZ
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*)
b61cc19c 8996 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
970f6abe
VZ
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*)
b61cc19c 9002 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
970f6abe
VZ
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 *)
b61cc19c
PC
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; }
9022if test "${lt_cv_prog_compiler__b+set}" = set; then :
9023 $as_echo_n "(cached) " >&6
9024else
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
9047fi
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
9051if 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'
9053else
9054 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9055fi
9056
970f6abe
VZ
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
b61cc19c 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'
970f6abe
VZ
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"
b61cc19c
PC
9090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091/* end confdefs.h. */
970f6abe
VZ
9092int foo(void) {}
9093_ACEOF
b61cc19c
PC
9094if 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'
970f6abe
VZ
9096
9097fi
b61cc19c
PC
9098rm -f core conftest.err conftest.$ac_objext \
9099 conftest$ac_exeext conftest.$ac_ext
970f6abe
VZ
9100 LDFLAGS="$save_LDFLAGS"
9101 else
b61cc19c
PC
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'
970f6abe
VZ
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
b61cc19c 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'
970f6abe
VZ
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}\*'
b61cc19c 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'
970f6abe
VZ
9173 else
9174 allow_undefined_flag=' -expect_unresolved \*'
b61cc19c 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'
970f6abe
VZ
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}\*'
b61cc19c 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'
970f6abe
VZ
9186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9187 else
9188 allow_undefined_flag=' -expect_unresolved \*'
b61cc19c 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'
970f6abe 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~
b61cc19c 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'
970f6abe
VZ
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
b61cc19c 9355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
970f6abe
VZ
9356$as_echo "$ld_shlibs" >&6; }
9357test "$ld_shlibs" = no && can_build_shared=no
9358
9359with_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#
9378case "x$archive_cmds_need_lc" in
9379x|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.
b61cc19c 9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
970f6abe 9393$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b61cc19c
PC
9394if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9395 $as_echo_n "(cached) " >&6
9396else
9397 $RM conftest*
9398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
970f6abe 9399
b61cc19c 9400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
970f6abe
VZ
9401 (eval $ac_compile) 2>&5
9402 ac_status=$?
b61cc19c
PC
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
970f6abe
VZ
9419 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9420 ac_status=$?
b61cc19c
PC
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
9434fi
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
970f6abe
VZ
9438 ;;
9439 esac
9440 fi
9441 ;;
9442esac
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
b61cc19c 9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
970f6abe
VZ
9601$as_echo_n "checking dynamic linker characteristics... " >&6; }
9602
9603if test "$GCC" = yes; then
9604 case $host_os in
9605 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9606 *) lt_awk_arg="/^libraries:/" ;;
9607 esac
b61cc19c
PC
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 *\;*)
970f6abe
VZ
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.
b61cc19c
PC
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
970f6abe
VZ
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
b61cc19c 9637 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
970f6abe
VZ
9638BEGIN {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}'`
b61cc19c
PC
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`
970f6abe
VZ
9664else
9665 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9666fi
9667library_names_spec=
9668libname_spec='lib$name'
9669soname_spec=
9670shrext_cmds=".so"
9671postinstall_cmds=
9672postuninstall_cmds=
9673finish_cmds=
9674finish_eval=
9675shlibpath_var=
9676shlibpath_overrides_runpath=unknown
9677version_type=none
9678dynamic_linker="$host_os ld.so"
9679sys_lib_dlsearch_path_spec="/lib /usr/lib"
9680need_lib_prefix=unknown
9681hardcode_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
9685need_version=unknown
9686
9687case $host_os in
9688aix3*)
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
9697aix[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
9741amigaos*)
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.
b61cc19c 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'
970f6abe
VZ
9752 ;;
9753 esac
9754 ;;
9755
9756beos*)
9757 library_names_spec='${libname}${shared_ext}'
9758 dynamic_linker="$host_os ld.so"
9759 shlibpath_var=LIBRARY_PATH
9760 ;;
9761
9762bsdi[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
b61cc19c 9776cygwin* | mingw* | pw32* | cegcc*)
970f6abe
VZ
9777 version_type=windows
9778 shrext_cmds=".dll"
9779 need_version=no
9780 need_lib_prefix=no
9781
9782 case $GCC,$host_os in
b61cc19c 9783 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
970f6abe
VZ
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}'
b61cc19c
PC
9804
9805 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
970f6abe 9806 ;;
b61cc19c 9807 mingw* | cegcc*)
970f6abe
VZ
9808 # MinGW DLLs use traditional 'lib' prefix
9809 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
970f6abe
VZ
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
9827darwin* | 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
9842dgux*)
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
9851freebsd1*)
9852 dynamic_linker=no
9853 ;;
9854
9855freebsd* | 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
9899gnu*)
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
b61cc19c
PC
9909haiku*)
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
970f6abe
VZ
9922hpux9* | 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
b61cc19c 9964 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
970f6abe 9965 postinstall_cmds='chmod 555 $lib'
b61cc19c
PC
9966 # or fails outright, so override atomically:
9967 install_override_mode=555
970f6abe
VZ
9968 ;;
9969
9970interix[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
9982irix5* | 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.
10020linux*oldld* | linux*aout* | linux*coff*)
10021 dynamic_linker=no
10022 ;;
10023
10024# This must be Linux ELF.
b61cc19c 10025linux* | k*bsd*-gnu | kopensolaris*-gnu)
970f6abe
VZ
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
b61cc19c 10034
970f6abe 10035 # Some binutils ld are patched to set DT_RUNPATH
b61cc19c
PC
10036 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10037 $as_echo_n "(cached) " >&6
10038else
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
970f6abe
VZ
10045/* end confdefs.h. */
10046
10047int
10048main ()
10049{
10050
10051 ;
10052 return 0;
10053}
10054_ACEOF
b61cc19c
PC
10055if 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
970f6abe 10058fi
b61cc19c
PC
10059fi
10060rm -f core conftest.err conftest.$ac_objext \
10061 conftest$ac_exeext conftest.$ac_ext
10062 LDFLAGS=$save_LDFLAGS
10063 libdir=$save_libdir
970f6abe
VZ
10064
10065fi
10066
b61cc19c 10067 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
970f6abe
VZ
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
b61cc19c 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' ' '`
970f6abe
VZ
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
10089netbsd*)
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
10107newsos6)
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
10126openbsd*)
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
10152os2*)
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
10161osf3* | 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
10172rdos*)
10173 dynamic_linker=no
10174 ;;
10175
10176solaris*)
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
10189sunos4*)
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
10201sysv4 | 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
10224sysv4*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
10233sysv5* | 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
10255tpf*)
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
b61cc19c 10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
970f6abe
VZ
10261 shlibpath_var=LD_LIBRARY_PATH
10262 shlibpath_overrides_runpath=no
10263 hardcode_into_libs=yes
10264 ;;
10265
10266uts4*)
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 ;;
10276esac
b61cc19c 10277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
970f6abe
VZ
10278$as_echo "$dynamic_linker" >&6; }
10279test "$dynamic_linker" = no && can_build_shared=no
10280
10281variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10282if test "$GCC" = yes; then
10283 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10284fi
10285
10286if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10287 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10288fi
10289if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10290 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10291fi
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
b61cc19c
PC
10379
10380
10381
10382
10383
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
970f6abe
VZ
10385$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10386hardcode_action=
10387if 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
10404else
10405 # We cannot hardcode anything, or else we can only hardcode existing
10406 # directories.
10407 hardcode_action=unsupported
10408fi
b61cc19c 10409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
970f6abe
VZ
10410$as_echo "$hardcode_action" >&6; }
10411
10412if test "$hardcode_action" = relink ||
10413 test "$inherit_rpath" = yes; then
10414 # Fast installation is not supported
10415 enable_fast_install=no
10416elif test "$shlibpath_overrides_runpath" = yes ||
10417 test "$enable_shared" = no; then
10418 # Fast installation is not necessary
10419 enable_fast_install=needless
10420fi
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
10431else
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
b61cc19c 10442 mingw* | pw32* | cegcc*)
970f6abe
VZ
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
b61cc19c 10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
970f6abe 10455$as_echo_n "checking for dlopen in -ldl... " >&6; }
b61cc19c 10456if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
970f6abe
VZ
10457 $as_echo_n "(cached) " >&6
10458else
10459 ac_check_lib_save_LIBS=$LIBS
10460LIBS="-ldl $LIBS"
b61cc19c 10461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
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
10468extern "C"
10469#endif
10470char dlopen ();
10471int
10472main ()
10473{
10474return dlopen ();
10475 ;
10476 return 0;
10477}
10478_ACEOF
b61cc19c 10479if ac_fn_c_try_link "$LINENO"; then :
970f6abe
VZ
10480 ac_cv_lib_dl_dlopen=yes
10481else
b61cc19c 10482 ac_cv_lib_dl_dlopen=no
970f6abe 10483fi
b61cc19c
PC
10484rm -f core conftest.err conftest.$ac_objext \
10485 conftest$ac_exeext conftest.$ac_ext
970f6abe
VZ
10486LIBS=$ac_check_lib_save_LIBS
10487fi
b61cc19c 10488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
970f6abe 10489$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b61cc19c 10490if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
970f6abe
VZ
10491 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10492else
10493
10494 lt_cv_dlopen="dyld"
10495 lt_cv_dlopen_libs=
10496 lt_cv_dlopen_self=yes
10497
10498fi
10499
b61cc19c
PC
10500 ;;
10501
10502 *)
10503 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10504if test "x$ac_cv_func_shl_load" = x""yes; then :
970f6abe
VZ
10505 lt_cv_dlopen="shl_load"
10506else
b61cc19c 10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
970f6abe 10508$as_echo_n "checking for shl_load in -ldld... " >&6; }
b61cc19c 10509if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
970f6abe
VZ
10510 $as_echo_n "(cached) " >&6
10511else
10512 ac_check_lib_save_LIBS=$LIBS
10513LIBS="-ldld $LIBS"
b61cc19c 10514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
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
10521extern "C"
10522#endif
10523char shl_load ();
10524int
10525main ()
10526{
10527return shl_load ();
10528 ;
10529 return 0;
10530}
10531_ACEOF
b61cc19c 10532if ac_fn_c_try_link "$LINENO"; then :
970f6abe
VZ
10533 ac_cv_lib_dld_shl_load=yes
10534else
b61cc19c 10535 ac_cv_lib_dld_shl_load=no
970f6abe 10536fi
b61cc19c
PC
10537rm -f core conftest.err conftest.$ac_objext \
10538 conftest$ac_exeext conftest.$ac_ext
970f6abe
VZ
10539LIBS=$ac_check_lib_save_LIBS
10540fi
b61cc19c 10541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
970f6abe 10542$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
b61cc19c 10543if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
970f6abe
VZ
10544 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10545else
b61cc19c
PC
10546 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10547if test "x$ac_cv_func_dlopen" = x""yes; then :
970f6abe
VZ
10548 lt_cv_dlopen="dlopen"
10549else
b61cc19c 10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
970f6abe 10551$as_echo_n "checking for dlopen in -ldl... " >&6; }
b61cc19c 10552if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
970f6abe
VZ
10553 $as_echo_n "(cached) " >&6
10554else
10555 ac_check_lib_save_LIBS=$LIBS
10556LIBS="-ldl $LIBS"
b61cc19c 10557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
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
10564extern "C"
10565#endif
10566char dlopen ();
10567int
10568main ()
10569{
10570return dlopen ();
10571 ;
10572 return 0;
10573}
10574_ACEOF
b61cc19c 10575if ac_fn_c_try_link "$LINENO"; then :
970f6abe
VZ
10576 ac_cv_lib_dl_dlopen=yes
10577else
b61cc19c 10578 ac_cv_lib_dl_dlopen=no
970f6abe 10579fi
b61cc19c
PC
10580rm -f core conftest.err conftest.$ac_objext \
10581 conftest$ac_exeext conftest.$ac_ext
970f6abe
VZ
10582LIBS=$ac_check_lib_save_LIBS
10583fi
b61cc19c 10584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
970f6abe 10585$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b61cc19c 10586if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
970f6abe
VZ
10587 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10588else
b61cc19c 10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
970f6abe 10590$as_echo_n "checking for dlopen in -lsvld... " >&6; }
b61cc19c 10591if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
970f6abe
VZ
10592 $as_echo_n "(cached) " >&6
10593else
10594 ac_check_lib_save_LIBS=$LIBS
10595LIBS="-lsvld $LIBS"
b61cc19c 10596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
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
10603extern "C"
10604#endif
10605char dlopen ();
10606int
10607main ()
10608{
10609return dlopen ();
10610 ;
10611 return 0;
10612}
10613_ACEOF
b61cc19c 10614if ac_fn_c_try_link "$LINENO"; then :
970f6abe
VZ
10615 ac_cv_lib_svld_dlopen=yes
10616else
b61cc19c 10617 ac_cv_lib_svld_dlopen=no
970f6abe 10618fi
b61cc19c
PC
10619rm -f core conftest.err conftest.$ac_objext \
10620 conftest$ac_exeext conftest.$ac_ext
970f6abe
VZ
10621LIBS=$ac_check_lib_save_LIBS
10622fi
b61cc19c 10623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
970f6abe 10624$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
b61cc19c 10625if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
970f6abe
VZ
10626 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10627else
b61cc19c 10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
970f6abe 10629$as_echo_n "checking for dld_link in -ldld... " >&6; }
b61cc19c 10630if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
970f6abe
VZ
10631 $as_echo_n "(cached) " >&6
10632else
10633 ac_check_lib_save_LIBS=$LIBS
10634LIBS="-ldld $LIBS"
b61cc19c 10635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
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
10642extern "C"
10643#endif
10644char dld_link ();
10645int
10646main ()
10647{
10648return dld_link ();
10649 ;
10650 return 0;
10651}
10652_ACEOF
b61cc19c 10653if ac_fn_c_try_link "$LINENO"; then :
970f6abe
VZ
10654 ac_cv_lib_dld_dld_link=yes
10655else
b61cc19c 10656 ac_cv_lib_dld_dld_link=no
970f6abe 10657fi
b61cc19c
PC
10658rm -f core conftest.err conftest.$ac_objext \
10659 conftest$ac_exeext conftest.$ac_ext
970f6abe
VZ
10660LIBS=$ac_check_lib_save_LIBS
10661fi
b61cc19c 10662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
970f6abe 10663$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
b61cc19c 10664if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
970f6abe
VZ
10665 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10666fi
10667
10668
10669fi
10670
10671
10672fi
10673
10674
10675fi
10676
10677
10678fi
10679
10680
10681fi
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
b61cc19c 10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
970f6abe 10704$as_echo_n "checking whether a program can dlopen itself... " >&6; }
b61cc19c 10705if test "${lt_cv_dlopen_self+set}" = set; then :
970f6abe
VZ
10706 $as_echo_n "(cached) " >&6
10707else
10708 if test "$cross_compiling" = yes; then :
10709 lt_cv_dlopen_self=cross
10710else
10711 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10712 lt_status=$lt_dlunknown
10713 cat > conftest.$ac_ext <<_LT_EOF
b61cc19c 10714#line $LINENO "configure"
970f6abe
VZ
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
b61cc19c
PC
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))
10758void fnord () __attribute__((visibility("default")));
970f6abe
VZ
10759#endif
10760
b61cc19c 10761void fnord () { int i=42; }
970f6abe
VZ
10762int 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;
b61cc19c
PC
10770 else
10771 {
10772 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10773 else puts (dlerror ());
10774 }
970f6abe
VZ
10775 /* dlclose (self); */
10776 }
10777 else
10778 puts (dlerror ());
10779
b61cc19c 10780 return status;
970f6abe
VZ
10781}
10782_LT_EOF
b61cc19c 10783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
970f6abe
VZ
10784 (eval $ac_link) 2>&5
10785 ac_status=$?
b61cc19c
PC
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
970f6abe
VZ
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
10799fi
10800rm -fr conftest*
10801
10802
10803fi
b61cc19c 10804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
970f6abe
VZ
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\"
b61cc19c 10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
970f6abe 10810$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
b61cc19c 10811if test "${lt_cv_dlopen_self_static+set}" = set; then :
970f6abe
VZ
10812 $as_echo_n "(cached) " >&6
10813else
10814 if test "$cross_compiling" = yes; then :
10815 lt_cv_dlopen_self_static=cross
10816else
10817 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10818 lt_status=$lt_dlunknown
10819 cat > conftest.$ac_ext <<_LT_EOF
b61cc19c 10820#line $LINENO "configure"
970f6abe
VZ
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
b61cc19c
PC
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))
10864void fnord () __attribute__((visibility("default")));
970f6abe
VZ
10865#endif
10866
b61cc19c 10867void fnord () { int i=42; }
970f6abe
VZ
10868int 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;
b61cc19c
PC
10876 else
10877 {
10878 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10879 else puts (dlerror ());
10880 }
970f6abe
VZ
10881 /* dlclose (self); */
10882 }
10883 else
10884 puts (dlerror ());
10885
b61cc19c 10886 return status;
970f6abe
VZ
10887}
10888_LT_EOF
b61cc19c 10889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
970f6abe
VZ
10890 (eval $ac_link) 2>&5
10891 ac_status=$?
b61cc19c
PC
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
970f6abe
VZ
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
10905fi
10906rm -fr conftest*
10907
10908
10909fi
b61cc19c 10910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
970f6abe
VZ
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
10929fi
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947striplib=
10948old_striplib=
b61cc19c 10949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
970f6abe
VZ
10950$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10951if 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"
b61cc19c 10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
970f6abe
VZ
10955$as_echo "yes" >&6; }
10956else
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"
b61cc19c 10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
970f6abe
VZ
10964$as_echo "yes" >&6; }
10965 else
b61cc19c 10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
10967$as_echo "no" >&6; }
10968 fi
10969 ;;
10970 *)
b61cc19c 10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe
VZ
10972$as_echo "no" >&6; }
10973 ;;
10974 esac
10975fi
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988 # Report which library types will actually be built
b61cc19c 10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
970f6abe 10990$as_echo_n "checking if libtool supports shared libraries... " >&6; }
b61cc19c 10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
970f6abe
VZ
10992$as_echo "$can_build_shared" >&6; }
10993
b61cc19c 10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
970f6abe
VZ
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
b61cc19c 11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
970f6abe
VZ
11016$as_echo "$enable_shared" >&6; }
11017
b61cc19c 11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
970f6abe
VZ
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
b61cc19c 11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
970f6abe
VZ
11023$as_echo "$enable_static" >&6; }
11024
11025
11026
11027
11028fi
11029ac_ext=c
11030ac_cpp='$CPP $CPPFLAGS'
11031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11033ac_compiler_gnu=$ac_cv_c_compiler_gnu
11034
11035CC="$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.
b61cc19c 11059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
970f6abe 11060$as_echo_n "checking for ANSI C header files... " >&6; }
b61cc19c 11061if test "${ac_cv_header_stdc+set}" = set; then :
970f6abe
VZ
11062 $as_echo_n "(cached) " >&6
11063else
b61cc19c 11064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
11065/* end confdefs.h. */
11066#include <stdlib.h>
11067#include <stdarg.h>
11068#include <string.h>
11069#include <float.h>
11070
11071int
11072main ()
11073{
11074
11075 ;
11076 return 0;
11077}
11078_ACEOF
b61cc19c 11079if ac_fn_c_try_compile "$LINENO"; then :
970f6abe
VZ
11080 ac_cv_header_stdc=yes
11081else
b61cc19c 11082 ac_cv_header_stdc=no
970f6abe 11083fi
970f6abe
VZ
11084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11085
11086if test $ac_cv_header_stdc = yes; then
11087 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b61cc19c 11088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
11089/* end confdefs.h. */
11090#include <string.h>
11091
11092_ACEOF
11093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b61cc19c 11094 $EGREP "memchr" >/dev/null 2>&1; then :
970f6abe 11095
970f6abe 11096else
b61cc19c 11097 ac_cv_header_stdc=no
970f6abe 11098fi
b61cc19c 11099rm -f conftest*
970f6abe 11100
b61cc19c 11101fi
970f6abe 11102
b61cc19c
PC
11103if 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
970f6abe 11106/* end confdefs.h. */
b61cc19c
PC
11107#include <stdlib.h>
11108
970f6abe 11109_ACEOF
b61cc19c
PC
11110if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11111 $EGREP "free" >/dev/null 2>&1; then :
11112
970f6abe 11113else
b61cc19c
PC
11114 ac_cv_header_stdc=no
11115fi
11116rm -f conftest*
970f6abe 11117
970f6abe
VZ
11118fi
11119
b61cc19c
PC
11120if 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 :
11124else
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)))
11141int
11142main ()
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
11152if ac_fn_c_try_run "$LINENO"; then :
970f6abe 11153
970f6abe 11154else
b61cc19c 11155 ac_cv_header_stdc=no
970f6abe 11156fi
b61cc19c
PC
11157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11158 conftest.$ac_objext conftest.beam conftest.$ac_ext
11159fi
11160
11161fi
11162fi
11163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11164$as_echo "$ac_cv_header_stdc" >&6; }
11165if test $ac_cv_header_stdc = yes; then
11166
11167$as_echo "#define STDC_HEADERS 1" >>confdefs.h
970f6abe
VZ
11168
11169fi
b61cc19c
PC
11170
11171for ac_header in malloc.h stdlib.h string.h strings.h
11172do :
11173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11174ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11175eval as_val=\$$as_ac_Header
11176 if test "x$as_val" = x""yes; then :
970f6abe
VZ
11177 cat >>confdefs.h <<_ACEOF
11178#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11179_ACEOF
11180
11181fi
11182
11183done
11184
11185
11186# Checks for typedefs, structures, and compiler characteristics.
b61cc19c 11187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
970f6abe 11188$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
b61cc19c 11189if test "${ac_cv_c_const+set}" = set; then :
970f6abe
VZ
11190 $as_echo_n "(cached) " >&6
11191else
b61cc19c 11192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
11193/* end confdefs.h. */
11194
11195int
11196main ()
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
b61cc19c 11252if ac_fn_c_try_compile "$LINENO"; then :
970f6abe
VZ
11253 ac_cv_c_const=yes
11254else
b61cc19c 11255 ac_cv_c_const=no
970f6abe 11256fi
970f6abe
VZ
11257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11258fi
b61cc19c 11259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
970f6abe
VZ
11260$as_echo "$ac_cv_c_const" >&6; }
11261if test $ac_cv_c_const = no; then
11262
b61cc19c 11263$as_echo "#define const /**/" >>confdefs.h
970f6abe 11264
970f6abe
VZ
11265fi
11266
b61cc19c
PC
11267ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11268if test "x$ac_cv_type_size_t" = x""yes; then :
970f6abe 11269
970f6abe
VZ
11270else
11271
11272cat >>confdefs.h <<_ACEOF
11273#define size_t unsigned int
11274_ACEOF
11275
11276fi
11277
b61cc19c 11278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
970f6abe 11279$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
b61cc19c 11280if test "${ac_cv_struct_tm+set}" = set; then :
970f6abe
VZ
11281 $as_echo_n "(cached) " >&6
11282else
b61cc19c 11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
11284/* end confdefs.h. */
11285#include <sys/types.h>
11286#include <time.h>
11287
11288int
11289main ()
11290{
11291struct tm tm;
11292 int *p = &tm.tm_sec;
11293 return !p;
11294 ;
11295 return 0;
11296}
11297_ACEOF
b61cc19c 11298if ac_fn_c_try_compile "$LINENO"; then :
970f6abe
VZ
11299 ac_cv_struct_tm=time.h
11300else
b61cc19c 11301 ac_cv_struct_tm=sys/time.h
970f6abe 11302fi
970f6abe
VZ
11303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11304fi
b61cc19c 11305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
970f6abe
VZ
11306$as_echo "$ac_cv_struct_tm" >&6; }
11307if test $ac_cv_struct_tm = sys/time.h; then
11308
b61cc19c 11309$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
970f6abe
VZ
11310
11311fi
11312
11313
11314# Checks for library functions.
b61cc19c 11315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
970f6abe 11316$as_echo_n "checking for working strtod... " >&6; }
b61cc19c 11317if test "${ac_cv_func_strtod+set}" = set; then :
970f6abe
VZ
11318 $as_echo_n "(cached) " >&6
11319else
b61cc19c 11320 if test "$cross_compiling" = yes; then :
970f6abe
VZ
11321 ac_cv_func_strtod=no
11322else
b61cc19c 11323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
11324/* end confdefs.h. */
11325
11326$ac_includes_default
11327#ifndef strtod
11328double strtod ();
11329#endif
11330int
11331main()
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. */
b61cc19c
PC
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
11356if ac_fn_c_try_run "$LINENO"; then :
11357 ac_cv_func_strtod=yes
970f6abe 11358else
b61cc19c
PC
11359 ac_cv_func_strtod=no
11360fi
11361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11362 conftest.$ac_objext conftest.beam conftest.$ac_ext
11363fi
970f6abe 11364
970f6abe 11365fi
b61cc19c
PC
11366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
11367$as_echo "$ac_cv_func_strtod" >&6; }
11368if test $ac_cv_func_strtod = no; then
11369 case " $LIBOBJS " in
11370 *" strtod.$ac_objext "* ) ;;
11371 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
11372 ;;
11373esac
11374
11375ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
11376if test "x$ac_cv_func_pow" = x""yes; then :
970f6abe 11377
970f6abe 11378fi
970f6abe
VZ
11379
11380if test $ac_cv_func_pow = no; then
b61cc19c 11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
970f6abe 11382$as_echo_n "checking for pow in -lm... " >&6; }
b61cc19c 11383if test "${ac_cv_lib_m_pow+set}" = set; then :
970f6abe
VZ
11384 $as_echo_n "(cached) " >&6
11385else
11386 ac_check_lib_save_LIBS=$LIBS
11387LIBS="-lm $LIBS"
b61cc19c 11388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
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
11395extern "C"
11396#endif
11397char pow ();
11398int
11399main ()
11400{
11401return pow ();
11402 ;
11403 return 0;
11404}
11405_ACEOF
b61cc19c 11406if ac_fn_c_try_link "$LINENO"; then :
970f6abe
VZ
11407 ac_cv_lib_m_pow=yes
11408else
b61cc19c 11409 ac_cv_lib_m_pow=no
970f6abe 11410fi
b61cc19c
PC
11411rm -f core conftest.err conftest.$ac_objext \
11412 conftest$ac_exeext conftest.$ac_ext
970f6abe
VZ
11413LIBS=$ac_check_lib_save_LIBS
11414fi
b61cc19c 11415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
970f6abe 11416$as_echo "$ac_cv_lib_m_pow" >&6; }
b61cc19c 11417if test "x$ac_cv_lib_m_pow" = x""yes; then :
970f6abe
VZ
11418 POW_LIB=-lm
11419else
b61cc19c 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
970f6abe
VZ
11421$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
11422fi
11423
11424fi
11425
11426fi
11427
970f6abe 11428for ac_func in memset
b61cc19c
PC
11429do :
11430 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
11431if test "x$ac_cv_func_memset" = x""yes; then :
970f6abe 11432 cat >>confdefs.h <<_ACEOF
b61cc19c 11433#define HAVE_MEMSET 1
970f6abe
VZ
11434_ACEOF
11435
11436else
b61cc19c 11437 as_fn_error "memset not found in libc" "$LINENO" 5
970f6abe
VZ
11438fi
11439done
11440
970f6abe 11441for ac_func in pow
b61cc19c
PC
11442do :
11443 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
11444if test "x$ac_cv_func_pow" = x""yes; then :
970f6abe 11445 cat >>confdefs.h <<_ACEOF
b61cc19c 11446#define HAVE_POW 1
970f6abe
VZ
11447_ACEOF
11448
11449else
b61cc19c 11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
970f6abe 11451$as_echo_n "checking for pow in -lm... " >&6; }
b61cc19c 11452if test "${ac_cv_lib_m_pow+set}" = set; then :
970f6abe
VZ
11453 $as_echo_n "(cached) " >&6
11454else
11455 ac_check_lib_save_LIBS=$LIBS
11456LIBS="-lm $LIBS"
b61cc19c 11457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
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
11464extern "C"
11465#endif
11466char pow ();
11467int
11468main ()
11469{
11470return pow ();
11471 ;
11472 return 0;
11473}
11474_ACEOF
b61cc19c 11475if ac_fn_c_try_link "$LINENO"; then :
970f6abe
VZ
11476 ac_cv_lib_m_pow=yes
11477else
b61cc19c 11478 ac_cv_lib_m_pow=no
970f6abe 11479fi
b61cc19c
PC
11480rm -f core conftest.err conftest.$ac_objext \
11481 conftest$ac_exeext conftest.$ac_ext
970f6abe
VZ
11482LIBS=$ac_check_lib_save_LIBS
11483fi
b61cc19c 11484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
970f6abe 11485$as_echo "$ac_cv_lib_m_pow" >&6; }
b61cc19c 11486if test "x$ac_cv_lib_m_pow" = x""yes; then :
970f6abe
VZ
11487 cat >>confdefs.h <<_ACEOF
11488#define HAVE_LIBM 1
11489_ACEOF
11490
11491 LIBS="-lm $LIBS"
11492
11493else
b61cc19c 11494 as_fn_error "cannot find pow" "$LINENO" 5
970f6abe
VZ
11495fi
11496
11497fi
11498done
11499
b61cc19c 11500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
970f6abe 11501$as_echo_n "checking for zlibVersion in -lz... " >&6; }
b61cc19c 11502if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
970f6abe
VZ
11503 $as_echo_n "(cached) " >&6
11504else
11505 ac_check_lib_save_LIBS=$LIBS
11506LIBS="-lz $LIBS"
b61cc19c 11507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970f6abe
VZ
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
11514extern "C"
11515#endif
11516char zlibVersion ();
11517int
11518main ()
11519{
11520return zlibVersion ();
11521 ;
11522 return 0;
11523}
11524_ACEOF
b61cc19c 11525if ac_fn_c_try_link "$LINENO"; then :
970f6abe
VZ
11526 ac_cv_lib_z_zlibVersion=yes
11527else
b61cc19c 11528 ac_cv_lib_z_zlibVersion=no
970f6abe 11529fi
b61cc19c
PC
11530rm -f core conftest.err conftest.$ac_objext \
11531 conftest$ac_exeext conftest.$ac_ext
970f6abe
VZ
11532LIBS=$ac_check_lib_save_LIBS
11533fi
b61cc19c 11534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
970f6abe 11535$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
b61cc19c 11536if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
970f6abe
VZ
11537 cat >>confdefs.h <<_ACEOF
11538#define HAVE_LIBZ 1
11539_ACEOF
11540
11541 LIBS="-lz $LIBS"
11542
11543else
b61cc19c 11544 as_fn_error "zlib not installed" "$LINENO" 5
970f6abe
VZ
11545fi
11546
11547
b61cc19c
PC
11548case $host_os in
11549 aix*)
11550 LIBPNG_DEFINES="-DPNG_CONFIGURE_LIBPNG -D_ALL_SOURCE";;
11551 *)
11552 LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG;;
970f6abe 11553esac
b61cc19c 11554LIBPNG_DEFINES=$LIBPNG_DEFINES
970f6abe
VZ
11555
11556
b61cc19c 11557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
970f6abe 11558$as_echo_n "checking if libraries can be versioned... " >&6; }
b61cc19c
PC
11559# Special case for PE/COFF platforms: ld reports
11560# support for version-script, but doesn't actually
11561# DO anything with it.
11562case $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* )
970f6abe
VZ
11569GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
11570if test "$GLD"; then
11571 have_ld_version_script=yes
b61cc19c 11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
970f6abe
VZ
11573$as_echo "yes" >&6; }
11574else
11575 have_ld_version_script=no
b61cc19c 11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
970f6abe 11577$as_echo "no" >&6; }
b61cc19c 11578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
970f6abe
VZ
11579$as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
11580fi
b61cc19c
PC
11581;;
11582esac
11583
970f6abe
VZ
11584 if test "$have_ld_version_script" = "yes"; then
11585 HAVE_LD_VERSION_SCRIPT_TRUE=
11586 HAVE_LD_VERSION_SCRIPT_FALSE='#'
11587else
11588 HAVE_LD_VERSION_SCRIPT_TRUE='#'
11589 HAVE_LD_VERSION_SCRIPT_FALSE=
11590fi
11591
11592
11593if test "$have_ld_version_script" = "yes"; then
b61cc19c 11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
970f6abe
VZ
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
b61cc19c 11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
970f6abe
VZ
11602$as_echo "$SYMBOL_PREFIX" >&6; }
11603fi
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.
b61cc19c 11615if test "${with_pkgconfigdir+set}" = set; then :
970f6abe
VZ
11616 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
11617else
11618 pkgconfigdir='${libdir}/pkgconfig'
11619fi
11620
11621
11622
b61cc19c 11623{ $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
970f6abe
VZ
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.
b61cc19c 11629if test "${with_binconfigs+set}" = set; then :
970f6abe
VZ
11630 withval=$with_binconfigs; if test "${withval}" = no; then
11631 binconfigs=
b61cc19c 11632 { $as_echo "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
970f6abe
VZ
11633$as_echo "$as_me: libpng-config scripts will not be built" >&6;}
11634 else
11635 binconfigs='${binconfigs}'
11636 fi
11637else
11638 binconfigs='${binconfigs}'
11639fi
11640
11641
11642
970f6abe 11643# Config files, substituting as above
b61cc19c 11644ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
970f6abe 11645
b61cc19c 11646ac_config_files="$ac_config_files libpng-config:libpng-config.in"
970f6abe
VZ
11647
11648
11649cat >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 #(
b61cc19c
PC
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;} ;;
970f6abe
VZ
11678 esac
11679 case $ac_var in #(
11680 _ | IFS | as_nl) ;; #(
11681 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b61cc19c 11682 *) { eval $ac_var=; unset $ac_var;} ;;
970f6abe
VZ
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=\ *)
b61cc19c
PC
11690 # `set' does not quote correctly, so add quotes: double-quote
11691 # substitution turns \\\\ into \\, and sed turns \\ into \.
970f6abe
VZ
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
11711if 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" &&
b61cc19c 11714 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
970f6abe
VZ
11715$as_echo "$as_me: updating cache $cache_file" >&6;}
11716 cat confcache >$cache_file
11717 else
b61cc19c 11718 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
970f6abe
VZ
11719$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11720 fi
11721fi
11722rm -f confcache
11723
11724test "x$prefix" = xNONE && prefix=$ac_default_prefix
11725# Let make expand exec_prefix.
11726test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11727
11728DEFS=-DHAVE_CONFIG_H
11729
11730ac_libobjs=
11731ac_ltlibobjs=
11732for 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.
b61cc19c
PC
11738 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11739 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
970f6abe
VZ
11740done
11741LIBOBJS=$ac_libobjs
11742
11743LTLIBOBJS=$ac_ltlibobjs
11744
11745
b61cc19c
PC
11746 if test -n "$EXEEXT"; then
11747 am__EXEEXT_TRUE=
11748 am__EXEEXT_FALSE='#'
11749else
11750 am__EXEEXT_TRUE='#'
11751 am__EXEEXT_FALSE=
11752fi
11753
970f6abe 11754if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
b61cc19c
PC
11755 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11756Usually this means the macro was only invoked conditionally." "$LINENO" 5
970f6abe
VZ
11757fi
11758if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
b61cc19c
PC
11759 as_fn_error "conditional \"AMDEP\" was never defined.
11760Usually this means the macro was only invoked conditionally." "$LINENO" 5
970f6abe
VZ
11761fi
11762if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
b61cc19c
PC
11763 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11764Usually this means the macro was only invoked conditionally." "$LINENO" 5
970f6abe
VZ
11765fi
11766if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
b61cc19c
PC
11767 as_fn_error "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
11768Usually this means the macro was only invoked conditionally." "$LINENO" 5
970f6abe
VZ
11769fi
11770
11771: ${CONFIG_STATUS=./config.status}
11772ac_write_fail=0
11773ac_clean_files_save=$ac_clean_files
11774ac_clean_files="$ac_clean_files $CONFIG_STATUS"
b61cc19c 11775{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
970f6abe 11776$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
b61cc19c
PC
11777as_write_fail=0
11778cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
970f6abe
VZ
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
11785debug=false
11786ac_cs_recheck=false
11787ac_cs_silent=false
970f6abe 11788
b61cc19c
PC
11789SHELL=\${CONFIG_SHELL-$SHELL}
11790export SHELL
11791_ASEOF
11792cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11793## -------------------- ##
11794## M4sh Initialization. ##
11795## -------------------- ##
970f6abe
VZ
11796
11797# Be more Bourne compatible
11798DUALCASE=1; export DUALCASE # for MKS sh
b61cc19c 11799if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
970f6abe
VZ
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
11806else
b61cc19c
PC
11807 case `(set -o) 2>/dev/null` in #(
11808 *posix*) :
11809 set -o posix ;; #(
11810 *) :
11811 ;;
970f6abe 11812esac
970f6abe
VZ
11813fi
11814
11815
970f6abe
VZ
11816as_nl='
11817'
11818export as_nl
11819# Printing a long string crashes Solaris 7 /usr/bin/printf.
11820as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11821as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11822as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b61cc19c
PC
11823# Prefer a ksh shell builtin over an external printf program on Solaris,
11824# but without wasting forks for bash or zsh.
11825if 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 --'
11829elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
970f6abe
VZ
11830 as_echo='printf %s\n'
11831 as_echo_n='printf %s'
11832else
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;
b61cc19c 11840 case $arg in #(
970f6abe
VZ
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'
11852fi
11853
11854# The user is always right.
11855if 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 ||
b61cc19c
PC
11859 PATH_SEPARATOR=';'
11860 }
970f6abe
VZ
11861fi
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.)
11869IFS=" "" $as_nl"
11870
11871# Find who we are. Look in the path if we contain no directory separator.
b61cc19c 11872case $0 in #((
970f6abe
VZ
11873 *[\\/]* ) as_myself=$0 ;;
11874 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875for as_dir in $PATH
11876do
11877 IFS=$as_save_IFS
11878 test -z "$as_dir" && as_dir=.
b61cc19c
PC
11879 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11880 done
970f6abe
VZ
11881IFS=$as_save_IFS
11882
11883 ;;
11884esac
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.
11887if test "x$as_myself" = x; then
11888 as_myself=$0
11889fi
11890if test ! -f "$as_myself"; then
11891 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b61cc19c 11892 exit 1
970f6abe
VZ
11893fi
11894
b61cc19c
PC
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.
11899for as_var in BASH_ENV ENV MAIL MAILPATH
11900do eval test x\${$as_var+set} = xset \
11901 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
970f6abe
VZ
11902done
11903PS1='$ '
11904PS2='> '
11905PS4='+ '
11906
11907# NLS nuisances.
11908LC_ALL=C
11909export LC_ALL
11910LANGUAGE=C
11911export LANGUAGE
11912
b61cc19c
PC
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.
11922as_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.
11937as_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.
11945as_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.
11955as_fn_unset ()
11956{
11957 { eval $1=; unset $1;}
11958}
11959as_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.
11966if (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 }'
11971else
11972 as_fn_append ()
11973 {
11974 eval $1=\$$1\$2
11975 }
11976fi # 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.
11983if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11984 eval 'as_fn_arith ()
11985 {
11986 as_val=$(( $* ))
11987 }'
11988else
11989 as_fn_arith ()
11990 {
11991 as_val=`expr "$@" || test $? -eq 1`
11992 }
11993fi # as_fn_arith
11994
11995
970f6abe
VZ
11996if expr a : '\(a\)' >/dev/null 2>&1 &&
11997 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11998 as_expr=expr
11999else
12000 as_expr=false
12001fi
12002
12003if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12004 as_basename=basename
12005else
12006 as_basename=false
12007fi
12008
b61cc19c
PC
12009if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12010 as_dirname=dirname
12011else
12012 as_dirname=false
12013fi
970f6abe 12014
970f6abe
VZ
12015as_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
b61cc19c
PC
12034# Avoid depending upon Character Ranges.
12035as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12036as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12037as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12038as_cr_digits='0123456789'
12039as_cr_alnum=$as_cr_Letters$as_cr_digits
970f6abe
VZ
12040
12041ECHO_C= ECHO_N= ECHO_T=
b61cc19c 12042case `echo -n x` in #(((((
970f6abe 12043-n*)
b61cc19c 12044 case `echo 'xy\c'` in
970f6abe 12045 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
b61cc19c
PC
12046 xy) ECHO_C='\c';;
12047 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12048 ECHO_T=' ';;
970f6abe
VZ
12049 esac;;
12050*)
12051 ECHO_N='-n';;
12052esac
970f6abe
VZ
12053
12054rm -f conf$$ conf$$.exe conf$$.file
12055if test -d conf$$.dir; then
12056 rm -f conf$$.dir/conf$$.file
12057else
12058 rm -f conf$$.dir
12059 mkdir conf$$.dir 2>/dev/null
12060fi
12061if (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
12075else
12076 as_ln_s='cp -p'
12077fi
12078rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12079rmdir conf$$.dir 2>/dev/null
12080
b61cc19c
PC
12081
12082# as_fn_mkdir_p
12083# -------------
12084# Create "$as_dir" as a directory, including parents if necessary.
12085as_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
970f6abe 12129if mkdir -p . 2>/dev/null; then
b61cc19c 12130 as_mkdir_p='mkdir -p "$as_dir"'
970f6abe
VZ
12131else
12132 test -d ./-p && rmdir ./-p
12133 as_mkdir_p=false
12134fi
12135
12136if test -x / >/dev/null 2>&1; then
12137 as_test_x='test -x'
12138else
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
b61cc19c 12149 case $1 in #(
970f6abe
VZ
12150 -*)set "./$1";;
12151 esac;
b61cc19c 12152 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
970f6abe
VZ
12153 ???[sx]*):;;*)false;;esac;fi
12154 '\'' sh
12155 '
12156fi
12157as_executable_p=$as_test_x
12158
12159# Sed expression to map a string onto a valid CPP name.
12160as_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.
12163as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12164
12165
12166exec 6>&1
b61cc19c
PC
12167## ----------------------------------- ##
12168## Main body of $CONFIG_STATUS script. ##
12169## ----------------------------------- ##
12170_ASEOF
12171test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
970f6abe 12172
b61cc19c
PC
12173cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12174# Save the log message, to keep $0 and so on meaningful, and to
970f6abe
VZ
12175# report actual input values of CONFIG_FILES etc. instead of their
12176# values after options handling.
12177ac_log="
b61cc19c
PC
12178This file was extended by libpng $as_me 1.4.4, which was
12179generated by GNU Autoconf 2.65. Invocation command line was
970f6abe
VZ
12180
12181 CONFIG_FILES = $CONFIG_FILES
12182 CONFIG_HEADERS = $CONFIG_HEADERS
12183 CONFIG_LINKS = $CONFIG_LINKS
12184 CONFIG_COMMANDS = $CONFIG_COMMANDS
12185 $ $0 $@
12186
12187on `(hostname || uname -n) 2>/dev/null | sed 1q`
12188"
12189
12190_ACEOF
12191
b61cc19c
PC
12192case $ac_config_files in *"
12193"*) set x $ac_config_files; shift; ac_config_files=$*;;
12194esac
12195
12196case $ac_config_headers in *"
12197"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12198esac
12199
12200
970f6abe
VZ
12201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12202# Files that config.status was made for.
12203config_files="$ac_config_files"
12204config_headers="$ac_config_headers"
12205config_commands="$ac_config_commands"
12206
12207_ACEOF
12208
12209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12210ac_cs_usage="\
b61cc19c
PC
12211\`$as_me' instantiates files and other configuration actions
12212from templates according to the current configuration. Unless the files
12213and actions are specified as TAGs, all are instantiated by default.
970f6abe 12214
b61cc19c 12215Usage: $0 [OPTION]... [TAG]...
970f6abe
VZ
12216
12217 -h, --help print this help, then exit
12218 -V, --version print version number and configuration settings, then exit
b61cc19c
PC
12219 --config print configuration, then exit
12220 -q, --quiet, --silent
12221 do not print progress messages
970f6abe
VZ
12222 -d, --debug don't remove temporary files
12223 --recheck update $as_me by reconfiguring in the same conditions
b61cc19c 12224 --file=FILE[:TEMPLATE]
970f6abe 12225 instantiate the configuration file FILE
b61cc19c 12226 --header=FILE[:TEMPLATE]
970f6abe
VZ
12227 instantiate the configuration header FILE
12228
12229Configuration files:
12230$config_files
12231
12232Configuration headers:
12233$config_headers
12234
12235Configuration commands:
12236$config_commands
12237
b61cc19c 12238Report bugs to <png-mng-implement@lists.sourceforge.net>."
970f6abe
VZ
12239
12240_ACEOF
12241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b61cc19c 12242ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
970f6abe 12243ac_cs_version="\\
b61cc19c
PC
12244libpng config.status 1.4.4
12245configured by $0, generated by GNU Autoconf 2.65,
12246 with options \\"\$ac_cs_config\\"
970f6abe 12247
b61cc19c 12248Copyright (C) 2009 Free Software Foundation, Inc.
970f6abe
VZ
12249This config.status script is free software; the Free Software Foundation
12250gives unlimited permission to copy, distribute and modify it."
12251
12252ac_pwd='$ac_pwd'
12253srcdir='$srcdir'
12254INSTALL='$INSTALL'
12255MKDIR_P='$MKDIR_P'
12256AWK='$AWK'
12257test -n "\$AWK" || AWK=awk
12258_ACEOF
12259
12260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12261# The default lists apply if the user does not specify any file.
12262ac_need_defaults=:
12263while test $# != 0
12264do
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 ;;
b61cc19c
PC
12284 --config | --confi | --conf | --con | --co | --c )
12285 $as_echo "$ac_cs_config"; exit ;;
970f6abe
VZ
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
b61cc19c 12293 as_fn_append CONFIG_FILES " '$ac_optarg'"
970f6abe
VZ
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
b61cc19c 12300 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
970f6abe
VZ
12301 ac_need_defaults=false;;
12302 --he | --h)
12303 # Conflict between --help and --header
b61cc19c
PC
12304 as_fn_error "ambiguous option: \`$1'
12305Try \`$0 --help' for more information.";;
970f6abe
VZ
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.
b61cc19c
PC
12313 -*) as_fn_error "unrecognized option: \`$1'
12314Try \`$0 --help' for more information." ;;
970f6abe 12315
b61cc19c 12316 *) as_fn_append ac_config_targets " $1"
970f6abe
VZ
12317 ac_need_defaults=false ;;
12318
12319 esac
12320 shift
12321done
12322
12323ac_configure_extra_args=
12324
12325if $ac_cs_silent; then
12326 exec 6>/dev/null
12327 ac_configure_extra_args="$ac_configure_extra_args --silent"
12328fi
12329
12330_ACEOF
12331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12332if \$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 "\$@"
12339fi
12340
12341_ACEOF
12342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12343exec 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
12353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12354#
12355# INIT-COMMANDS
12356#
12357AMDEP_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
12364sed_quote_subst='$sed_quote_subst'
12365double_quote_subst='$double_quote_subst'
12366delay_variable_subst='$delay_variable_subst'
b61cc19c
PC
12367SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12368Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12369GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12370EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12371FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12372SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12373ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12374LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12375macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12376macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12377AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
12378DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12379OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12380enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12381enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12382pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12383enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12384host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12385host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12386host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12387build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12388build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12389build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12390NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12391LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12392max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12393ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12394exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12395lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12396lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12397lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12398reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12399reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12400deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12401file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12402AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12403AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12404STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12405RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12406old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12407old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12408old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12409lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12410CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12411CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12412compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12413GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12414lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12415lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12416lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12417lt_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"`'
12418objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12419MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12420lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12421lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12422lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12423lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12424lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12425need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12426DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12427NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12428LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12429OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12430OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12431libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12432shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12433extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12434archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12435enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12436export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12437whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12438compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12439old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12440old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12441archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12442archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12443module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12444module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12445with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12446allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12447no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12448hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12449hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12450hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12451hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12452hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12453hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12454hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12455hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12456inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12457link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12458fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12459always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12460export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12461exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12462include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12463prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12464file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12465variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12466need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12467need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12468version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12469runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12470shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12471shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12472libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12473library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12474soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12475install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12476postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12477postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12478finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12479finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12480hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12481sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12482sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12483hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12484enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12485enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12486enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12487old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12488striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
970f6abe
VZ
12489
12490LTCC='$LTCC'
12491LTCFLAGS='$LTCFLAGS'
12492compiler='$compiler_DEFAULT'
12493
b61cc19c
PC
12494# A function that is used when there is no print builtin or printf.
12495func_fallback_echo ()
12496{
12497 eval 'cat <<_LTECHO_EOF
12498\$1
12499_LTECHO_EOF'
12500}
12501
970f6abe
VZ
12502# Quote evaled strings.
12503for var in SED \
12504GREP \
12505EGREP \
12506FGREP \
b61cc19c
PC
12507SHELL \
12508ECHO \
970f6abe 12509LD \
b61cc19c
PC
12510AS \
12511DLLTOOL \
12512OBJDUMP \
970f6abe
VZ
12513NM \
12514LN_S \
12515lt_SP2NL \
12516lt_NL2SP \
12517reload_flag \
12518deplibs_check_method \
12519file_magic_cmd \
12520AR \
12521AR_FLAGS \
12522STRIP \
12523RANLIB \
12524CC \
12525CFLAGS \
12526compiler \
12527lt_cv_sys_global_symbol_pipe \
12528lt_cv_sys_global_symbol_to_cdecl \
12529lt_cv_sys_global_symbol_to_c_name_address \
12530lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
970f6abe
VZ
12531lt_prog_compiler_no_builtin_flag \
12532lt_prog_compiler_wl \
12533lt_prog_compiler_pic \
12534lt_prog_compiler_static \
12535lt_cv_prog_compiler_c_o \
12536need_locks \
12537DSYMUTIL \
12538NMEDIT \
12539LIPO \
b61cc19c
PC
12540OTOOL \
12541OTOOL64 \
970f6abe
VZ
12542shrext_cmds \
12543export_dynamic_flag_spec \
12544whole_archive_flag_spec \
12545compiler_needs_object \
12546with_gnu_ld \
12547allow_undefined_flag \
12548no_undefined_flag \
12549hardcode_libdir_flag_spec \
12550hardcode_libdir_flag_spec_ld \
12551hardcode_libdir_separator \
12552fix_srcfile_path \
12553exclude_expsyms \
12554include_expsyms \
12555file_list_spec \
12556variables_saved_for_relink \
12557libname_spec \
12558library_names_spec \
12559soname_spec \
b61cc19c 12560install_override_mode \
970f6abe
VZ
12561finish_eval \
12562old_striplib \
12563striplib; do
b61cc19c 12564 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
970f6abe 12565 *[\\\\\\\`\\"\\\$]*)
b61cc19c 12566 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
970f6abe
VZ
12567 ;;
12568 *)
12569 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12570 ;;
12571 esac
12572done
12573
12574# Double-quote double-evaled strings.
12575for var in reload_cmds \
12576old_postinstall_cmds \
12577old_postuninstall_cmds \
12578old_archive_cmds \
12579extract_expsyms_cmds \
12580old_archive_from_new_cmds \
12581old_archive_from_expsyms_cmds \
12582archive_cmds \
12583archive_expsym_cmds \
12584module_cmds \
12585module_expsym_cmds \
12586export_symbols_cmds \
12587prelink_cmds \
12588postinstall_cmds \
12589postuninstall_cmds \
12590finish_cmds \
12591sys_lib_search_path_spec \
12592sys_lib_dlsearch_path_spec; do
b61cc19c 12593 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
970f6abe 12594 *[\\\\\\\`\\"\\\$]*)
b61cc19c 12595 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
970f6abe
VZ
12596 ;;
12597 *)
12598 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12599 ;;
12600 esac
12601done
12602
970f6abe
VZ
12603ac_aux_dir='$ac_aux_dir'
12604xsi_shell='$xsi_shell'
12605lt_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.
12609if test -n "\${ZSH_VERSION+set}" ; then
12610 setopt NO_GLOB_SUBST
12611fi
12612
12613
12614 PACKAGE='$PACKAGE'
12615 VERSION='$VERSION'
12616 TIMESTAMP='$TIMESTAMP'
12617 RM='$RM'
12618 ofile='$ofile'
12619
12620
12621
12622
12623_ACEOF
12624
12625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12626
12627# Handling of arguments.
12628for ac_config_target in $ac_config_targets
12629do
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" ;;
b61cc19c
PC
12635 "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
12636 "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
970f6abe 12637
b61cc19c 12638 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
970f6abe
VZ
12639 esac
12640done
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.
12647if $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
12651fi
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
b61cc19c 12665 trap 'as_fn_exit 1' 1 2 13 15
970f6abe
VZ
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")
b61cc19c 12676} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
970f6abe
VZ
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'.
12681if test -n "$CONFIG_FILES"; then
12682
12683
b61cc19c
PC
12684ac_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.
12688if test "x$ac_cr" = x; then
12689 eval ac_cr=\$\'\\r\'
12690fi
970f6abe
VZ
12691ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12692if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
b61cc19c 12693 ac_cs_awk_cr='\r'
970f6abe
VZ
12694else
12695 ac_cs_awk_cr=$ac_cr
12696fi
12697
12698echo '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 ||
b61cc19c 12707 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
970f6abe
VZ
12708ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12709ac_delim='%!_!# '
12710for ac_last_try in false false false false false :; do
12711 . ./conf$$subs.sh ||
b61cc19c 12712 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
970f6abe 12713
b61cc19c
PC
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
970f6abe
VZ
12716 break
12717 elif $ac_last_try; then
b61cc19c 12718 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
970f6abe
VZ
12719 else
12720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12721 fi
12722done
12723rm -f conf$$subs.sh
12724
12725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12726cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12727_ACEOF
12728sed -n '
12729h
12730s/^/S["/; s/!.*/"]=/
12731p
12732g
12733s/^[^!]*!//
12734:repl
12735t repl
12736s/'"$ac_delim"'$//
12737t delim
12738:nl
12739h
b61cc19c 12740s/\(.\{148\}\)..*/\1/
970f6abe
VZ
12741t more1
12742s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12743p
12744n
12745b repl
12746:more1
12747s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12748p
12749g
12750s/.\{148\}//
12751t nl
12752:delim
12753h
b61cc19c 12754s/\(.\{148\}\)..*/\1/
970f6abe
VZ
12755t more2
12756s/["\\]/\\&/g; s/^/"/; s/$/"/
12757p
12758b
12759:more2
12760s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12761p
12762g
12763s/.\{148\}//
12764t delim
12765' <conf$$subs.awk | sed '
12766/^[^""]/{
12767 N
12768 s/\n//
12769}
12770' >>$CONFIG_STATUS || ac_write_fail=1
12771rm -f conf$$subs.awk
12772cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12773_ACAWK
12774cat >>"\$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
12801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12802if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12803 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12804else
12805 cat
12806fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
b61cc19c 12807 || as_fn_error "could not setup config files machinery" "$LINENO" 5
970f6abe
VZ
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).
12814if test "x$srcdir" = x.; then
12815 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12816s/:*\$(srcdir):*/:/
12817s/:*\${srcdir}:*/:/
12818s/:*@srcdir@:*/:/
12819s/^\([^=]*=[ ]*\):*/\1/
12820s/:*$//
12821s/^[^=]*=[ ]*$//
12822}'
12823fi
12824
12825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12826fi # 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'.
12831if test -n "$CONFIG_HEADERS"; then
12832cat >"$tmp/defines.awk" <<\_ACAWK ||
12833BEGIN {
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.
12842ac_delim='%!_!# '
12843for 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
b61cc19c 12848 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
970f6abe
VZ
12849 else
12850 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12851 fi
12852done
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
12858ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12859sed -n '
12860s/.\{148\}/&'"$ac_delim"'/g
12861t rset
12862:rset
12863s/^[ ]*#[ ]*define[ ][ ]*/ /
12864t def
12865d
12866:def
12867s/\\$//
12868t bsnl
12869s/["\\]/\\&/g
12870s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12871D["\1"]=" \3"/p
12872s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12873d
12874:bsnl
12875s/["\\]/\\&/g
12876s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12877D["\1"]=" \3\\\\\\n"\\/p
12878t cont
12879s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12880t cont
12881d
12882:cont
12883n
12884s/.\{148\}/&'"$ac_delim"'/g
12885t clear
12886:clear
12887s/\\$//
12888t bsnlc
12889s/["\\]/\\&/g; s/^/"/; s/$/"/p
12890d
12891:bsnlc
12892s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12893b cont
12894' <confdefs.h | sed '
12895s/'"$ac_delim"'/"\\\
12896"/g' >>$CONFIG_STATUS || ac_write_fail=1
12897
12898cat >>$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]
b61cc19c 12914 prefix = substr(line, 1, index(line, defundef) - 1)
970f6abe
VZ
12915 if (D_is_set[macro]) {
12916 # Preserve the white space surrounding the "#".
970f6abe
VZ
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") {
b61cc19c 12924 print "/*", prefix defundef, macro, "*/"
970f6abe
VZ
12925 next
12926 }
12927 }
12928}
12929{ print }
12930_ACAWK
12931_ACEOF
12932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b61cc19c 12933 as_fn_error "could not setup config headers machinery" "$LINENO" 5
970f6abe
VZ
12934fi # test -n "$CONFIG_HEADERS"
12935
12936
12937eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12938shift
12939for ac_tag
12940do
12941 case $ac_tag in
12942 :[FHLC]) ac_mode=$ac_tag; continue;;
12943 esac
12944 case $ac_mode$ac_tag in
12945 :[FHL]*:*);;
b61cc19c 12946 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
970f6abe
VZ
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 ||
b61cc19c 12974 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
970f6abe
VZ
12975 esac
12976 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
b61cc19c 12977 as_fn_append ac_file_inputs " '$ac_f'"
970f6abe
VZ
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"
b61cc19c 12988 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
970f6abe
VZ
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" \
b61cc19c 13001 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
970f6abe
VZ
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'`
b61cc19c 13029 as_dir="$ac_dir"; as_fn_mkdir_p
970f6abe
VZ
13030 ac_builddir=.
13031
13032case "$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 ;;
13042esac
13043ac_abs_top_builddir=$ac_pwd
13044ac_abs_builddir=$ac_pwd$ac_dir_suffix
13045# for backward compatibility:
13046ac_top_builddir=$ac_top_build_prefix
13047
13048case $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 ;;
13061esac
13062ac_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
13082cat >>$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.
13085ac_datarootdir_hack=; ac_datarootdir_seen=
970f6abe
VZ
13086ac_sed_dataroot='
13087/datarootdir/ {
13088 p
13089 q
13090}
13091/@datadir@/p
13092/@docdir@/p
13093/@infodir@/p
13094/@localedir@/p
b61cc19c 13095/@mandir@/p'
970f6abe
VZ
13096case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13097*datarootdir*) ac_datarootdir_seen=yes;;
13098*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
b61cc19c 13099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
970f6abe
VZ
13100$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13101_ACEOF
13102cat >>$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
b61cc19c 13109 s&\\\${datarootdir}&$datarootdir&g' ;;
970f6abe
VZ
13110esac
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?
13116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13117ac_sed_extra="$ac_vpsub
13118$extrasub
13119_ACEOF
13120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13121:t
13122/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13123s|@configure_input@|$ac_sed_conf_input|;t t
13124s&@top_builddir@&$ac_top_builddir_sub&;t t
13125s&@top_build_prefix@&$ac_top_build_prefix&;t t
13126s&@srcdir@&$ac_srcdir&;t t
13127s&@abs_srcdir@&$ac_abs_srcdir&;t t
13128s&@top_srcdir@&$ac_top_srcdir&;t t
13129s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13130s&@builddir@&$ac_builddir&;t t
13131s&@abs_builddir@&$ac_abs_builddir&;t t
13132s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13133s&@INSTALL@&$ac_INSTALL&;t t
13134s&@MKDIR_P@&$ac_MKDIR_P&;t t
13135$ac_datarootdir_hack
0272a10d 13136"
970f6abe 13137eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
b61cc19c 13138 || as_fn_error "could not create $ac_file" "$LINENO" 5
970f6abe
VZ
13139
13140test -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"; } &&
b61cc19c 13143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
970f6abe
VZ
13144which 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'
13146which 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 \
b61cc19c 13153 || as_fn_error "could not create $ac_file" "$LINENO" 5
970f6abe
VZ
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" \
b61cc19c 13164 || as_fn_error "could not create $ac_file" "$LINENO" 5
970f6abe 13165 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
b61cc19c 13166 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
970f6abe
VZ
13167$as_echo "$as_me: $ac_file is unchanged" >&6;}
13168 else
13169 rm -f "$ac_file"
13170 mv "$tmp/config.h" "$ac_file" \
b61cc19c 13171 || as_fn_error "could not create $ac_file" "$LINENO" 5
970f6abe
VZ
13172 fi
13173 else
13174 $as_echo "/* $configure_input */" \
13175 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
b61cc19c 13176 || as_fn_error "could not create -" "$LINENO" 5
970f6abe
VZ
13177 fi
13178# Compute "$ac_file"'s index in $config_headers.
13179_am_arg="$ac_file"
13180_am_stamp_count=1
13181for _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
13188done
13189echo "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
b61cc19c 13214 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
970f6abe
VZ
13215$as_echo "$as_me: executing $ac_file commands" >&6;}
13216 ;;
13217 esac
13218
13219
13220 case $ac_file$ac_mode in
b61cc19c
PC
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" ||
970f6abe
VZ
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'`
b61cc19c
PC
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" ||
970f6abe
VZ
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'`
b61cc19c
PC
13309 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13310 # echo "creating $dirpart/$file"
13311 echo '# dummy' > "$dirpart/$file"
970f6abe 13312 done
970f6abe 13313 done
b61cc19c 13314}
970f6abe
VZ
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,
b61cc19c
PC
13337# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13338# Inc.
970f6abe
VZ
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.
13366available_tags=""
13367
13368# ### BEGIN LIBTOOL CONFIG
13369
13370# A sed program that does not truncate output.
13371SED=$lt_SED
13372
13373# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13374Xsed="\$SED -e 1s/^X//"
13375
13376# A grep program that handles long lines.
13377GREP=$lt_GREP
13378
13379# An ERE matcher.
13380EGREP=$lt_EGREP
13381
13382# A literal string matcher.
13383FGREP=$lt_FGREP
13384
b61cc19c
PC
13385# Shell to use when invoking shell scripts.
13386SHELL=$lt_SHELL
970f6abe 13387
b61cc19c
PC
13388# An echo program that protects backslashes.
13389ECHO=$lt_ECHO
970f6abe
VZ
13390
13391# Which release of libtool.m4 was used?
13392macro_version=$macro_version
13393macro_revision=$macro_revision
13394
b61cc19c
PC
13395# Assembler program.
13396AS=$lt_AS
13397
13398# DLL creation program.
13399DLLTOOL=$lt_DLLTOOL
13400
13401# Object dumper program.
13402OBJDUMP=$lt_OBJDUMP
13403
970f6abe
VZ
13404# Whether or not to build shared libraries.
13405build_libtool_libs=$enable_shared
13406
13407# Whether or not to build static libraries.
13408build_old_libs=$enable_static
13409
13410# What type of objects to build.
13411pic_mode=$pic_mode
13412
13413# Whether or not to optimize for fast installation.
13414fast_install=$enable_fast_install
13415
13416# The host system.
13417host_alias=$host_alias
13418host=$host
13419host_os=$host_os
13420
13421# The build system.
13422build_alias=$build_alias
13423build=$build
13424build_os=$build_os
13425
13426# A BSD- or MS-compatible name lister.
13427NM=$lt_NM
13428
13429# Whether we need soft or hard links.
13430LN_S=$lt_LN_S
13431
13432# What is the maximum length of a command?
13433max_cmd_len=$max_cmd_len
13434
13435# Object file suffix (normally "o").
13436objext=$ac_objext
13437
13438# Executable file suffix (normally "").
13439exeext=$exeext
13440
13441# whether the shell understands "unset".
13442lt_unset=$lt_unset
13443
13444# turn spaces into newlines.
13445SP2NL=$lt_lt_SP2NL
13446
13447# turn newlines into spaces.
13448NL2SP=$lt_lt_NL2SP
13449
970f6abe
VZ
13450# Method to check whether dependent libraries are shared objects.
13451deplibs_check_method=$lt_deplibs_check_method
13452
13453# Command to use when deplibs_check_method == "file_magic".
13454file_magic_cmd=$lt_file_magic_cmd
13455
13456# The archiver.
13457AR=$lt_AR
13458AR_FLAGS=$lt_AR_FLAGS
13459
13460# A symbol stripping program.
13461STRIP=$lt_STRIP
13462
13463# Commands used to install an old-style archive.
13464RANLIB=$lt_RANLIB
13465old_postinstall_cmds=$lt_old_postinstall_cmds
13466old_postuninstall_cmds=$lt_old_postuninstall_cmds
13467
b61cc19c
PC
13468# Whether to use a lock for old archive extraction.
13469lock_old_archive_extraction=$lock_old_archive_extraction
13470
970f6abe
VZ
13471# A C compiler.
13472LTCC=$lt_CC
13473
13474# LTCC compiler flags.
13475LTCFLAGS=$lt_CFLAGS
13476
13477# Take the output of nm and produce a listing of raw symbols and C names.
13478global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13479
13480# Transform the output of nm in a proper C declaration.
13481global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13482
13483# Transform the output of nm in a C name address pair.
13484global_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.
13487global_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.
13490objdir=$objdir
13491
970f6abe
VZ
13492# Used to examine libraries when file_magic_cmd begins with "file".
13493MAGIC_CMD=$MAGIC_CMD
13494
13495# Must we lock files when doing compilation?
13496need_locks=$lt_need_locks
13497
13498# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13499DSYMUTIL=$lt_DSYMUTIL
13500
13501# Tool to change global to local symbols on Mac OS X.
13502NMEDIT=$lt_NMEDIT
13503
13504# Tool to manipulate fat objects and archives on Mac OS X.
13505LIPO=$lt_LIPO
13506
b61cc19c
PC
13507# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13508OTOOL=$lt_OTOOL
13509
13510# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13511OTOOL64=$lt_OTOOL64
13512
970f6abe
VZ
13513# Old archive suffix (normally "a").
13514libext=$libext
13515
13516# Shared library suffix (normally ".so").
13517shrext_cmds=$lt_shrext_cmds
13518
13519# The commands to extract the exported symbol list from a shared archive.
13520extract_expsyms_cmds=$lt_extract_expsyms_cmds
13521
13522# Variables whose values should be saved in libtool wrapper scripts and
13523# restored at link time.
13524variables_saved_for_relink=$lt_variables_saved_for_relink
13525
13526# Do we need the "lib" prefix for modules?
13527need_lib_prefix=$need_lib_prefix
13528
13529# Do we need a version for libraries?
13530need_version=$need_version
13531
13532# Library versioning type.
13533version_type=$version_type
13534
13535# Shared library runtime path variable.
13536runpath_var=$runpath_var
13537
13538# Shared library path variable.
13539shlibpath_var=$shlibpath_var
13540
13541# Is shlibpath searched before the hard-coded library search path?
13542shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13543
13544# Format of library name prefix.
13545libname_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
13549library_names_spec=$lt_library_names_spec
13550
13551# The coded name of the library, if different from the real name.
13552soname_spec=$lt_soname_spec
13553
b61cc19c
PC
13554# Permission mode override for installation of shared libraries.
13555install_override_mode=$lt_install_override_mode
13556
970f6abe
VZ
13557# Command to use after installation of a shared archive.
13558postinstall_cmds=$lt_postinstall_cmds
13559
13560# Command to use after uninstallation of a shared archive.
13561postuninstall_cmds=$lt_postuninstall_cmds
13562
13563# Commands used to finish a libtool library installation in a directory.
13564finish_cmds=$lt_finish_cmds
13565
13566# As "finish_cmds", except a single script fragment to be evaled but
13567# not shown.
13568finish_eval=$lt_finish_eval
13569
13570# Whether we should hardcode library paths into libraries.
13571hardcode_into_libs=$hardcode_into_libs
13572
13573# Compile-time system search path for libraries.
13574sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13575
13576# Run-time system search path for libraries.
13577sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13578
13579# Whether dlopen is supported.
13580dlopen_support=$enable_dlopen
13581
13582# Whether dlopen of programs is supported.
13583dlopen_self=$enable_dlopen_self
13584
13585# Whether dlopen of statically linked programs is supported.
13586dlopen_self_static=$enable_dlopen_self_static
13587
13588# Commands to strip libraries.
13589old_striplib=$lt_old_striplib
13590striplib=$lt_striplib
13591
13592
13593# The linker used to build libraries.
13594LD=$lt_LD
13595
b61cc19c
PC
13596# How to create reloadable object files.
13597reload_flag=$lt_reload_flag
13598reload_cmds=$lt_reload_cmds
13599
970f6abe
VZ
13600# Commands used to build an old-style archive.
13601old_archive_cmds=$lt_old_archive_cmds
13602
13603# A language specific compiler.
13604CC=$lt_compiler
13605
13606# Is the compiler the GNU compiler?
13607with_gcc=$GCC
13608
13609# Compiler flag to turn off builtin functions.
13610no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13611
13612# How to pass a linker flag through the compiler.
13613wl=$lt_lt_prog_compiler_wl
13614
13615# Additional compiler flags for building library objects.
13616pic_flag=$lt_lt_prog_compiler_pic
13617
13618# Compiler flag to prevent dynamic linking.
13619link_static_flag=$lt_lt_prog_compiler_static
13620
13621# Does compiler simultaneously support -c and -o options?
13622compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13623
13624# Whether or not to add -lc for building shared libraries.
13625build_libtool_need_lc=$archive_cmds_need_lc
13626
13627# Whether or not to disallow shared libs when runtime libs are static.
13628allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13629
13630# Compiler flag to allow reflexive dlopens.
13631export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13632
13633# Compiler flag to generate shared objects directly from archives.
13634whole_archive_flag_spec=$lt_whole_archive_flag_spec
13635
13636# Whether the compiler copes with passing no objects directly.
13637compiler_needs_object=$lt_compiler_needs_object
13638
13639# Create an old-style archive from a shared archive.
13640old_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.
13643old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13644
13645# Commands used to build a shared archive.
13646archive_cmds=$lt_archive_cmds
13647archive_expsym_cmds=$lt_archive_expsym_cmds
13648
13649# Commands used to build a loadable module if different from building
13650# a shared archive.
13651module_cmds=$lt_module_cmds
13652module_expsym_cmds=$lt_module_expsym_cmds
13653
13654# Whether we are building with GNU ld or not.
13655with_gnu_ld=$lt_with_gnu_ld
13656
13657# Flag that allows shared libraries with undefined symbols to be built.
13658allow_undefined_flag=$lt_allow_undefined_flag
13659
13660# Flag that enforces no undefined symbols.
13661no_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
13665hardcode_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.
13669hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13670
13671# Whether we need a single "-rpath" flag with a separated argument.
13672hardcode_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.
13676hardcode_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.
13682hardcode_direct_absolute=$hardcode_direct_absolute
13683
13684# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13685# into the resulting binary.
13686hardcode_minus_L=$hardcode_minus_L
13687
13688# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13689# into the resulting binary.
13690hardcode_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.
13695hardcode_automatic=$hardcode_automatic
13696
13697# Set to yes if linker adds runtime paths of dependent libraries
13698# to runtime path list.
13699inherit_rpath=$inherit_rpath
13700
13701# Whether libtool must link a program against all its dependency libraries.
13702link_all_deplibs=$link_all_deplibs
13703
13704# Fix the shell variable \$srcfile for the compiler.
13705fix_srcfile_path=$lt_fix_srcfile_path
13706
13707# Set to "yes" if exported symbols are required.
13708always_export_symbols=$always_export_symbols
13709
13710# The commands to list exported symbols.
13711export_symbols_cmds=$lt_export_symbols_cmds
13712
13713# Symbols that should not be listed in the preloaded symbols.
13714exclude_expsyms=$lt_exclude_expsyms
13715
13716# Symbols that must always be exported.
13717include_expsyms=$lt_include_expsyms
13718
13719# Commands necessary for linking programs (against libraries) with templates.
13720prelink_cmds=$lt_prelink_cmds
13721
13722# Specify filename containing input files.
13723file_list_spec=$lt_file_list_spec
13724
13725# How to hardcode a shared library path into an executable.
13726hardcode_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.
13738if test "X${COLLECT_NAMES+set}" != Xset; then
13739 COLLECT_NAMES=
13740 export COLLECT_NAMES
13741fi
13742_LT_EOF
13743 ;;
13744 esac
13745
13746
13747ltmain="$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.
13764func_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
13773func_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.
13790func_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).
13804func_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
13814func_opt_split ()
13815{
13816 func_opt_split_opt=${1%%=*}
13817 func_opt_split_arg=${1#*=}
13818}
13819
13820# func_lo2o object
13821func_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
13830func_xform ()
13831{
13832 func_xform_result=${1%.*}.lo
13833}
13834
13835# func_arith arithmetic-term...
13836func_arith ()
13837{
13838 func_arith_result=$(( $* ))
13839}
13840
13841# func_len string
13842# STRING may not start with a hyphen.
13843func_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.
13856func_dirname ()
13857{
13858 # Extract subdirectory from the argument.
b61cc19c 13859 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
970f6abe
VZ
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
13868func_basename ()
13869{
b61cc19c 13870 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
970f6abe
VZ
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
13880func_stripname ()
13881{
13882 case ${2} in
b61cc19c
PC
13883 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13884 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
970f6abe
VZ
13885 esac
13886}
13887
13888# sed scripts:
13889my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13890my_sed_long_arg='1s/^-[^=]*=//'
13891
13892# func_opt_split
13893func_opt_split ()
13894{
b61cc19c
PC
13895 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13896 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
970f6abe
VZ
13897}
13898
13899# func_lo2o object
13900func_lo2o ()
13901{
b61cc19c 13902 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
970f6abe
VZ
13903}
13904
13905# func_xform libobj-or-source
13906func_xform ()
13907{
b61cc19c 13908 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
970f6abe
VZ
13909}
13910
13911# func_arith arithmetic-term...
13912func_arith ()
13913{
13914 func_arith_result=`expr "$@"`
13915}
13916
13917# func_len string
13918# STRING may not start with a hyphen.
13919func_len ()
13920{
13921 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13922}
13923
13924_LT_EOF
13925esac
13926
13927case $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.
13933func_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.
13944func_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
13965done # for ac_tag
13966
13967
b61cc19c 13968as_fn_exit 0
970f6abe 13969_ACEOF
970f6abe
VZ
13970ac_clean_files=$ac_clean_files_save
13971
13972test $ac_write_fail = 0 ||
b61cc19c 13973 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
970f6abe
VZ
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.
13984if 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.
b61cc19c 13994 $ac_cs_success || as_fn_exit $?
970f6abe
VZ
13995fi
13996if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
b61cc19c
PC
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;}
970f6abe 13999fi
0272a10d 14000