blob: 52b99ab3239ea3d1fafa131fdb5828c3fc72af4e [file] [log] [blame]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Glenn Randers-Pehrsond84748a2009-06-24 08:17:34 -05003# Generated by GNU Autoconf 2.63 for libpng 1.4.0beta65.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004#
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -06005# Report bugs to <png-mng-implement@lists.sourceforge.net>.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006#
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05008# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
Glenn Randers-Pehrson5b5dcf82004-07-17 22:45:44 -050014
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060023 setopt NO_GLOB_SUBST
24else
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050025 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060029fi
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050030
31
Glenn Randers-Pehrson5b5dcf82004-07-17 22:45:44 -050032
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060033
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060034# PATH needs CR
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060035# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050042as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060074# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050076 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060081fi
82
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060083# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060089
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060090
91# IFS
92# We need space, tab and new line, in precisely that order. Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060096IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600108IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600109
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600110 ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600119 { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140else
141 as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500156$as_echo X/"$0" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500182 if test $as_have_required = yes && (eval ":
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
198
199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
206
207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239 :
240else
241 as_candidate_shells=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600247 case $as_dir in
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600248 /*)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253done
254IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600273fi
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500274
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600275
276:
277_ASEOF
278}; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600294fi
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500295
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600351 test "x$as_lineno_1" != "x$as_lineno_2" &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600369fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600464 sed '
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600469 N
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600472 t loop
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600473 s/-\n.*//
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600474 ' >$as_me.lineno &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600475 chmod +x "$as_me.lineno" ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600483 # Exit status is that of the last command.
484 exit
485}
486
487
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501*)
502 ECHO_N='-n';;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600503esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500516 mkdir conf$$.dir 2>/dev/null
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600517fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500518if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600530 as_ln_s='cp -p'
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500531 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600532else
533 as_ln_s='cp -p'
534fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600541 test -d ./-p && rmdir ./-p
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600542 as_mkdir_p=false
543fi
544
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600547else
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500556 test -d "$1/.";
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500557 else
558 case $1 in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500559 -*)set "./$1";;
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600565fi
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500566as_executable_p=$as_test_x
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600567
568# Sed expression to map a string onto a valid CPP name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600570
571# Sed expression to map a string onto a valid variable name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600573
574
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600575
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500580case X$lt_ECHO in
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600584 ;;
585esac
586
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500587ECHO=${lt_ECHO-echo}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600588if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600596 :
597else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500605 cat <<_LT_EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600606$*
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500607_LT_EOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600608 exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600614
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500615if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600627
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600638
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600650 IFS="$lt_save_ifs"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600651
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600667 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600692
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600708 fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500709 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600710 fi
711 fi
712 fi
713fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600720fi
721
722
723
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600724
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600725exec 7<&0 </dev/null 6>&1
726
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600736ac_clean_files=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600737ac_config_libobj_dir=.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600738LIBOBJS=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600745# Identity of this package.
746PACKAGE_NAME='libpng'
747PACKAGE_TARNAME='libpng'
Glenn Randers-Pehrsond84748a2009-06-24 08:17:34 -0500748PACKAGE_VERSION='1.4.0beta65'
749PACKAGE_STRING='libpng 1.4.0beta65'
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -0600750PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600751
752ac_unique_file="pngget.c"
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500756#ifdef HAVE_SYS_TYPES_H
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600757# include <sys/types.h>
758#endif
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500759#ifdef HAVE_SYS_STAT_H
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600760# include <sys/stat.h>
761#endif
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500762#ifdef STDC_HEADERS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600763# include <stdlib.h>
764# include <stddef.h>
765#else
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500766# ifdef HAVE_STDLIB_H
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600767# include <stdlib.h>
768# endif
769#endif
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600772# include <memory.h>
773# endif
774# include <string.h>
775#endif
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500776#ifdef HAVE_STRINGS_H
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600777# include <strings.h>
778#endif
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500779#ifdef HAVE_INTTYPES_H
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600780# include <inttypes.h>
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600781#endif
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500782#ifdef HAVE_STDINT_H
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600783# include <stdint.h>
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600784#endif
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500785#ifdef HAVE_UNISTD_H
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600786# include <unistd.h>
787#endif"
788
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -0500789ac_subst_vars='LTLIBOBJS
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600790compatlib
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -0500791binconfigs
792pkgconfigdir
793PNGLIB_RELEASE
794PNGLIB_MINOR
795PNGLIB_MAJOR
796PNGLIB_VERSION
797SYMBOL_PREFIX
798HAVE_LD_VERSION_SCRIPT_FALSE
799HAVE_LD_VERSION_SCRIPT_TRUE
800LIBPNG_DEFINES
801LIBOBJS
802POW_LIB
803OTOOL64
804OTOOL
805LIPO
806NMEDIT
807DSYMUTIL
808lt_ECHO
809RANLIB
810AR
811NM
812ac_ct_DUMPBIN
813DUMPBIN
814LIBTOOL
815LN_S
816OBJDUMP
817DLLTOOL
818AS
819CPP
820LD
821FGREP
822EGREP
823GREP
824SED
825host_os
826host_vendor
827host_cpu
828host
829build_os
830build_vendor
831build_cpu
832build
833am__fastdepCC_FALSE
834am__fastdepCC_TRUE
835CCDEPMODE
836AMDEPBACKSLASH
837AMDEP_FALSE
838AMDEP_TRUE
839am__quote
840am__include
841DEPDIR
842OBJEXT
843EXEEXT
844ac_ct_CC
845CPPFLAGS
846LDFLAGS
847CFLAGS
848CC
849MAINT
850MAINTAINER_MODE_FALSE
851MAINTAINER_MODE_TRUE
852am__untar
853am__tar
854AMTAR
855am__leading_dot
856SET_MAKE
857AWK
858mkdir_p
859MKDIR_P
860INSTALL_STRIP_PROGRAM
861STRIP
862install_sh
863MAKEINFO
864AUTOHEADER
865AUTOMAKE
866AUTOCONF
867ACLOCAL
868VERSION
869PACKAGE
870CYGPATH_W
871am__isrc
872INSTALL_DATA
873INSTALL_SCRIPT
874INSTALL_PROGRAM
875target_alias
876host_alias
877build_alias
878LIBS
879ECHO_T
880ECHO_N
881ECHO_C
882DEFS
883mandir
884localedir
885libdir
886psdir
887pdfdir
888dvidir
889htmldir
890infodir
891docdir
892oldincludedir
893includedir
894localstatedir
895sharedstatedir
896sysconfdir
897datadir
898datarootdir
899libexecdir
900sbindir
901bindir
902program_transform_name
903prefix
904exec_prefix
905PACKAGE_BUGREPORT
906PACKAGE_STRING
907PACKAGE_VERSION
908PACKAGE_TARNAME
909PACKAGE_NAME
910PATH_SEPARATOR
911SHELL'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600912ac_subst_files=''
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500913ac_user_opts='
914enable_option_checking
915enable_maintainer_mode
916enable_dependency_tracking
917with_gnu_ld
918enable_shared
919enable_static
920with_pic
921enable_fast_install
922enable_libtool_lock
923with_pkgconfigdir
924with_binconfigs
925with_libpng_compat
926'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600927 ac_precious_vars='build_alias
928host_alias
929target_alias
930CC
931CFLAGS
932LDFLAGS
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500933LIBS
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600934CPPFLAGS
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500935CPP'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600936
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600937
938# Initialize some variables set by options.
939ac_init_help=
940ac_init_version=false
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500941ac_unrecognized_opts=
942ac_unrecognized_sep=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600943# The variables have the same names as the options, with
944# dashes changed to underlines.
945cache_file=/dev/null
946exec_prefix=NONE
947no_create=
948no_recursion=
949prefix=NONE
950program_prefix=NONE
951program_suffix=NONE
952program_transform_name=s,x,x,
953silent=
954site=
955srcdir=
956verbose=
957x_includes=NONE
958x_libraries=NONE
959
960# Installation directory options.
961# These are left unexpanded so users can "make install exec_prefix=/foo"
962# and all the variables that are supposed to be based on exec_prefix
963# by default will actually change.
964# Use braces instead of parens because sh, perl, etc. also accept them.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600965# (The list follows the same order as the GNU Coding Standards.)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600966bindir='${exec_prefix}/bin'
967sbindir='${exec_prefix}/sbin'
968libexecdir='${exec_prefix}/libexec'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600969datarootdir='${prefix}/share'
970datadir='${datarootdir}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600971sysconfdir='${prefix}/etc'
972sharedstatedir='${prefix}/com'
973localstatedir='${prefix}/var'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600974includedir='${prefix}/include'
975oldincludedir='/usr/include'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600976docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
977infodir='${datarootdir}/info'
978htmldir='${docdir}'
979dvidir='${docdir}'
980pdfdir='${docdir}'
981psdir='${docdir}'
982libdir='${exec_prefix}/lib'
983localedir='${datarootdir}/locale'
984mandir='${datarootdir}/man'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600985
986ac_prev=
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600987ac_dashdash=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600988for ac_option
989do
990 # If the previous option needs an argument, assign it.
991 if test -n "$ac_prev"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600992 eval $ac_prev=\$ac_option
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600993 ac_prev=
994 continue
995 fi
996
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600997 case $ac_option in
998 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
999 *) ac_optarg=yes ;;
1000 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001001
1002 # Accept the important Cygnus configure options, so we can diagnose typos.
1003
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001004 case $ac_dashdash$ac_option in
1005 --)
1006 ac_dashdash=yes ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001007
1008 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009 ac_prev=bindir ;;
1010 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1011 bindir=$ac_optarg ;;
1012
1013 -build | --build | --buil | --bui | --bu)
1014 ac_prev=build_alias ;;
1015 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1016 build_alias=$ac_optarg ;;
1017
1018 -cache-file | --cache-file | --cache-fil | --cache-fi \
1019 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1020 ac_prev=cache_file ;;
1021 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1022 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1023 cache_file=$ac_optarg ;;
1024
1025 --config-cache | -C)
1026 cache_file=config.cache ;;
1027
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001028 -datadir | --datadir | --datadi | --datad)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001029 ac_prev=datadir ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001030 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001031 datadir=$ac_optarg ;;
1032
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001033 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1034 | --dataroo | --dataro | --datar)
1035 ac_prev=datarootdir ;;
1036 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1037 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1038 datarootdir=$ac_optarg ;;
1039
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001040 -disable-* | --disable-*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001041 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001042 # Reject names that are not valid shell variable names.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001045 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1049 *"
1050"enable_$ac_useropt"
1051"*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1054 esac
1055 eval enable_$ac_useropt=no ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001056
1057 -docdir | --docdir | --docdi | --doc | --do)
1058 ac_prev=docdir ;;
1059 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060 docdir=$ac_optarg ;;
1061
1062 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063 ac_prev=dvidir ;;
1064 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065 dvidir=$ac_optarg ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001066
1067 -enable-* | --enable-*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001068 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001069 # Reject names that are not valid shell variable names.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001072 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1076 *"
1077"enable_$ac_useropt"
1078"*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval enable_$ac_useropt=\$ac_optarg ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001083
1084 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086 | --exec | --exe | --ex)
1087 ac_prev=exec_prefix ;;
1088 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090 | --exec=* | --exe=* | --ex=*)
1091 exec_prefix=$ac_optarg ;;
1092
1093 -gas | --gas | --ga | --g)
1094 # Obsolete; use --with-gas.
1095 with_gas=yes ;;
1096
1097 -help | --help | --hel | --he | -h)
1098 ac_init_help=long ;;
1099 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100 ac_init_help=recursive ;;
1101 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102 ac_init_help=short ;;
1103
1104 -host | --host | --hos | --ho)
1105 ac_prev=host_alias ;;
1106 -host=* | --host=* | --hos=* | --ho=*)
1107 host_alias=$ac_optarg ;;
1108
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001109 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110 ac_prev=htmldir ;;
1111 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112 | --ht=*)
1113 htmldir=$ac_optarg ;;
1114
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001115 -includedir | --includedir | --includedi | --included | --include \
1116 | --includ | --inclu | --incl | --inc)
1117 ac_prev=includedir ;;
1118 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119 | --includ=* | --inclu=* | --incl=* | --inc=*)
1120 includedir=$ac_optarg ;;
1121
1122 -infodir | --infodir | --infodi | --infod | --info | --inf)
1123 ac_prev=infodir ;;
1124 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125 infodir=$ac_optarg ;;
1126
1127 -libdir | --libdir | --libdi | --libd)
1128 ac_prev=libdir ;;
1129 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130 libdir=$ac_optarg ;;
1131
1132 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133 | --libexe | --libex | --libe)
1134 ac_prev=libexecdir ;;
1135 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136 | --libexe=* | --libex=* | --libe=*)
1137 libexecdir=$ac_optarg ;;
1138
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001139 -localedir | --localedir | --localedi | --localed | --locale)
1140 ac_prev=localedir ;;
1141 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142 localedir=$ac_optarg ;;
1143
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001144 -localstatedir | --localstatedir | --localstatedi | --localstated \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001145 | --localstate | --localstat | --localsta | --localst | --locals)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001146 ac_prev=localstatedir ;;
1147 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001148 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001149 localstatedir=$ac_optarg ;;
1150
1151 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152 ac_prev=mandir ;;
1153 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154 mandir=$ac_optarg ;;
1155
1156 -nfp | --nfp | --nf)
1157 # Obsolete; use --without-fp.
1158 with_fp=no ;;
1159
1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161 | --no-cr | --no-c | -n)
1162 no_create=yes ;;
1163
1164 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166 no_recursion=yes ;;
1167
1168 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170 | --oldin | --oldi | --old | --ol | --o)
1171 ac_prev=oldincludedir ;;
1172 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175 oldincludedir=$ac_optarg ;;
1176
1177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178 ac_prev=prefix ;;
1179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180 prefix=$ac_optarg ;;
1181
1182 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183 | --program-pre | --program-pr | --program-p)
1184 ac_prev=program_prefix ;;
1185 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187 program_prefix=$ac_optarg ;;
1188
1189 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190 | --program-suf | --program-su | --program-s)
1191 ac_prev=program_suffix ;;
1192 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194 program_suffix=$ac_optarg ;;
1195
1196 -program-transform-name | --program-transform-name \
1197 | --program-transform-nam | --program-transform-na \
1198 | --program-transform-n | --program-transform- \
1199 | --program-transform | --program-transfor \
1200 | --program-transfo | --program-transf \
1201 | --program-trans | --program-tran \
1202 | --progr-tra | --program-tr | --program-t)
1203 ac_prev=program_transform_name ;;
1204 -program-transform-name=* | --program-transform-name=* \
1205 | --program-transform-nam=* | --program-transform-na=* \
1206 | --program-transform-n=* | --program-transform-=* \
1207 | --program-transform=* | --program-transfor=* \
1208 | --program-transfo=* | --program-transf=* \
1209 | --program-trans=* | --program-tran=* \
1210 | --progr-tra=* | --program-tr=* | --program-t=*)
1211 program_transform_name=$ac_optarg ;;
1212
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001213 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214 ac_prev=pdfdir ;;
1215 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216 pdfdir=$ac_optarg ;;
1217
1218 -psdir | --psdir | --psdi | --psd | --ps)
1219 ac_prev=psdir ;;
1220 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221 psdir=$ac_optarg ;;
1222
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1225 silent=yes ;;
1226
1227 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228 ac_prev=sbindir ;;
1229 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230 | --sbi=* | --sb=*)
1231 sbindir=$ac_optarg ;;
1232
1233 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235 | --sharedst | --shareds | --shared | --share | --shar \
1236 | --sha | --sh)
1237 ac_prev=sharedstatedir ;;
1238 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241 | --sha=* | --sh=*)
1242 sharedstatedir=$ac_optarg ;;
1243
1244 -site | --site | --sit)
1245 ac_prev=site ;;
1246 -site=* | --site=* | --sit=*)
1247 site=$ac_optarg ;;
1248
1249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250 ac_prev=srcdir ;;
1251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252 srcdir=$ac_optarg ;;
1253
1254 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255 | --syscon | --sysco | --sysc | --sys | --sy)
1256 ac_prev=sysconfdir ;;
1257 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259 sysconfdir=$ac_optarg ;;
1260
1261 -target | --target | --targe | --targ | --tar | --ta | --t)
1262 ac_prev=target_alias ;;
1263 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264 target_alias=$ac_optarg ;;
1265
1266 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267 verbose=yes ;;
1268
1269 -version | --version | --versio | --versi | --vers | -V)
1270 ac_init_version=: ;;
1271
1272 -with-* | --with-*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001273 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001274 # Reject names that are not valid shell variable names.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001277 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1281 *"
1282"with_$ac_useropt"
1283"*) ;;
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1286 esac
1287 eval with_$ac_useropt=\$ac_optarg ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001288
1289 -without-* | --without-*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001290 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001291 # Reject names that are not valid shell variable names.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001294 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1298 *"
1299"with_$ac_useropt"
1300"*) ;;
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1303 esac
1304 eval with_$ac_useropt=no ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001305
1306 --x)
1307 # Obsolete; use --with-x.
1308 with_x=yes ;;
1309
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1316
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1323
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001324 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001325Try \`$0 --help' for more information." >&2
1326 { (exit 1); exit 1; }; }
1327 ;;
1328
1329 *=*)
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001333 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001334 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001335 eval $ac_envvar=\$ac_optarg
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001336 export $ac_envvar ;;
1337
1338 *)
1339 # FIXME: should be removed in autoconf 3.0.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344 ;;
1345
1346 esac
1347done
1348
1349if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001351 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001352 { (exit 1); exit 1; }; }
1353fi
1354
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001355if test -n "$ac_unrecognized_opts"; then
1356 case $enable_option_checking in
1357 no) ;;
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05001358 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001359 { (exit 1); exit 1; }; } ;;
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05001360 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001361 esac
1362fi
1363
1364# Check all directory arguments for consistency.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001365for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001369do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001370 eval ac_val=\$$ac_var
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001371 # Remove trailing slashes.
1372 case $ac_val in
1373 */ )
1374 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375 eval $ac_var=\$ac_val;;
1376 esac
1377 # Be sure to have absolute directory names.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001378 case $ac_val in
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001379 [\\/$]* | ?:[\\/]* ) continue;;
1380 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001381 esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001382 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001383 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001384done
1385
1386# There might be people who depend on the old broken behavior: `$host'
1387# used to hold the argument of --host etc.
1388# FIXME: To remove some day.
1389build=$build_alias
1390host=$host_alias
1391target=$target_alias
1392
1393# FIXME: To remove some day.
1394if test "x$host_alias" != x; then
1395 if test "x$build_alias" = x; then
1396 cross_compiling=maybe
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001397 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001398 If a cross compiler is detected then cross compile mode will be used." >&2
1399 elif test "x$build_alias" != "x$host_alias"; then
1400 cross_compiling=yes
1401 fi
1402fi
1403
1404ac_tool_prefix=
1405test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406
1407test "$silent" = yes && exec 6>/dev/null
1408
1409
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001410ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411ac_ls_di=`ls -di .` &&
1412ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05001413 { $as_echo "$as_me: error: working directory cannot be determined" >&2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001414 { (exit 1); exit 1; }; }
1415test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001416 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001417 { (exit 1); exit 1; }; }
1418
1419
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001420# Find the source files, if location was not specified.
1421if test -z "$srcdir"; then
1422 ac_srcdir_defaulted=yes
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001423 # Try the directory containing this script, then the parent directory.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001424 ac_confdir=`$as_dirname -- "$as_myself" ||
1425$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429$as_echo X"$as_myself" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431 s//\1/
1432 q
1433 }
1434 /^X\(\/\/\)[^/].*/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\/\)$/{
1439 s//\1/
1440 q
1441 }
1442 /^X\(\/\).*/{
1443 s//\1/
1444 q
1445 }
1446 s/.*/./; q'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001447 srcdir=$ac_confdir
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001448 if test ! -r "$srcdir/$ac_unique_file"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001449 srcdir=..
1450 fi
1451else
1452 ac_srcdir_defaulted=no
1453fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001454if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001456 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001457 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001458fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001459ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460ac_abs_confdir=`(
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001461 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001462 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001463 pwd)`
1464# When building in place, set srcdir=.
1465if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 srcdir=.
1467fi
1468# Remove unnecessary trailing slashes from srcdir.
1469# Double slashes in file names in object file debugging info
1470# mess up M-x gdb in Emacs.
1471case $srcdir in
1472*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473esac
1474for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001480
1481#
1482# Report the --help message.
1483#
1484if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1487 cat <<_ACEOF
Glenn Randers-Pehrsond84748a2009-06-24 08:17:34 -05001488\`configure' configures libpng 1.4.0beta65 to adapt to many kinds of systems.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001489
1490Usage: $0 [OPTION]... [VAR=VALUE]...
1491
1492To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493VAR=VALUE. See below for descriptions of some of the useful variables.
1494
1495Defaults for the options are specified in brackets.
1496
1497Configuration:
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1507
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001508Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001510 [$ac_default_prefix]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001512 [PREFIX]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001513
1514By default, \`make install' will install all the files in
1515\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517for instance \`--prefix=\$HOME'.
1518
1519For better control, use the options below.
1520
1521Fine tuning of the installation directories:
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001541_ACEOF
1542
1543 cat <<\_ACEOF
1544
1545Program names:
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1549
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001550System types:
1551 --build=BUILD configure for building on BUILD [guessed]
1552 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1553_ACEOF
1554fi
1555
1556if test -n "$ac_init_help"; then
1557 case $ac_init_help in
Glenn Randers-Pehrsond84748a2009-06-24 08:17:34 -05001558 short | recursive ) echo "Configuration of libpng 1.4.0beta65:";;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001559 esac
1560 cat <<\_ACEOF
1561
1562Optional Features:
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001563 --disable-option-checking ignore unrecognized --enable/--with options
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001564 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1565 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001566 --enable-maintainer-mode enable make rules and dependencies not useful
1567 (and sometimes confusing) to the casual installer
1568 --disable-dependency-tracking speeds up one-time build
1569 --enable-dependency-tracking do not reject slow dependency extractors
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001570 --enable-shared[=PKGS] build shared libraries [default=yes]
1571 --enable-static[=PKGS] build static libraries [default=yes]
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001572 --enable-fast-install[=PKGS]
1573 optimize for fast installation [default=yes]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001574 --disable-libtool-lock avoid locking (might break parallel builds)
1575
1576Optional Packages:
1577 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1578 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001579 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1580 --with-pic try to use only PIC/non-PIC objects [default=use
1581 both]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001582 --with-pkgconfigdir Use the specified pkgconfig dir (default is
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001583 libdir/pkgconfig)
1584 --with-binconfigs Generate shell libpng-config scripts as well as
1585 pkg-config data [default=yes]
1586 --with-libpng-compat Generate the obsolete libpng.so library
1587 [default=yes]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001588
1589Some influential environment variables:
1590 CC C compiler command
1591 CFLAGS C compiler flags
1592 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1593 nonstandard directory <lib dir>
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05001594 LIBS libraries to pass to the linker, e.g. -l<library>
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001595 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1596 you have headers in a nonstandard directory <include dir>
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001597 CPP C preprocessor
1598
1599Use these variables to override the choices made by `configure' or to help
1600it to find libraries and programs with nonstandard names/locations.
1601
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -06001602Report bugs to <png-mng-implement@lists.sourceforge.net>.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001603_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001604ac_status=$?
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001605fi
1606
1607if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001610 test -d "$ac_dir" ||
1611 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1612 continue
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001613 ac_builddir=.
1614
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001615case "$ac_dir" in
1616.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001619 # A ".." for each directory in $ac_dir_suffix.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624 esac ;;
1625esac
1626ac_abs_top_builddir=$ac_pwd
1627ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628# for backward compatibility:
1629ac_top_builddir=$ac_top_build_prefix
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001630
1631case $srcdir in
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001632 .) # We are building in place.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001633 ac_srcdir=.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001634 ac_top_srcdir=$ac_top_builddir_sub
1635 ac_abs_top_srcdir=$ac_pwd ;;
1636 [\\/]* | ?:[\\/]* ) # Absolute name.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001637 ac_srcdir=$srcdir$ac_dir_suffix;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001638 ac_top_srcdir=$srcdir
1639 ac_abs_top_srcdir=$srcdir ;;
1640 *) # Relative name.
1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001644esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001645ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001646
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001647 cd "$ac_dir" || { ac_status=$?; continue; }
1648 # Check for guested configure.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure" --help=recursive
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001655 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001656 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001657 fi || ac_status=$?
1658 cd "$ac_pwd" || { ac_status=$?; break; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001659 done
1660fi
1661
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001662test -n "$ac_init_help" && exit $ac_status
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001663if $ac_init_version; then
1664 cat <<\_ACEOF
Glenn Randers-Pehrsond84748a2009-06-24 08:17:34 -05001665libpng configure 1.4.0beta65
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05001666generated by GNU Autoconf 2.63
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001667
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001668Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050016692002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001670This configure script is free software; the Free Software Foundation
1671gives unlimited permission to copy, distribute and modify it.
1672_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001673 exit
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001674fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001675cat >config.log <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001676This file contains any messages produced by compilers while
1677running configure, to aid debugging if configure makes a mistake.
1678
Glenn Randers-Pehrsond84748a2009-06-24 08:17:34 -05001679It was created by libpng $as_me 1.4.0beta65, which was
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05001680generated by GNU Autoconf 2.63. Invocation command line was
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001681
1682 $ $0 $@
1683
1684_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001685exec 5>>config.log
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001686{
1687cat <<_ASUNAME
1688## --------- ##
1689## Platform. ##
1690## --------- ##
1691
1692hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1693uname -m = `(uname -m) 2>/dev/null || echo unknown`
1694uname -r = `(uname -r) 2>/dev/null || echo unknown`
1695uname -s = `(uname -s) 2>/dev/null || echo unknown`
1696uname -v = `(uname -v) 2>/dev/null || echo unknown`
1697
1698/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1699/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1700
1701/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1702/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1703/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001704/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001705/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1706/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1707/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1708
1709_ASUNAME
1710
1711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712for as_dir in $PATH
1713do
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001716 $as_echo "PATH: $as_dir"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001717done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001718IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001719
1720} >&5
1721
1722cat >&5 <<_ACEOF
1723
1724
1725## ----------- ##
1726## Core tests. ##
1727## ----------- ##
1728
1729_ACEOF
1730
1731
1732# Keep a trace of the command line.
1733# Strip out --no-create and --no-recursion so they do not pile up.
1734# Strip out --silent because we don't want to record it for future runs.
1735# Also quote any args containing shell meta-characters.
1736# Make two passes to allow for proper duplicate-argument suppression.
1737ac_configure_args=
1738ac_configure_args0=
1739ac_configure_args1=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001740ac_must_keep_next=false
1741for ac_pass in 1 2
1742do
1743 for ac_arg
1744 do
1745 case $ac_arg in
1746 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1748 | -silent | --silent | --silen | --sile | --sil)
1749 continue ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001750 *\'*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001751 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001752 esac
1753 case $ac_pass in
1754 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1755 2)
1756 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1757 if test $ac_must_keep_next = true; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001758 ac_must_keep_next=false # Got value, back to normal.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001759 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001760 case $ac_arg in
1761 *=* | --config-cache | -C | -disable-* | --disable-* \
1762 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1763 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1764 | -with-* | --with-* | -without-* | --without-* | --x)
1765 case "$ac_configure_args0 " in
1766 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1767 esac
1768 ;;
1769 -* ) ac_must_keep_next=true ;;
1770 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001771 fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001772 ac_configure_args="$ac_configure_args '$ac_arg'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001773 ;;
1774 esac
1775 done
1776done
1777$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1778$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1779
1780# When interrupted or exit'd, cleanup temporary files, and complete
1781# config.log. We remove comments because anyway the quotes in there
1782# would cause problems or look ugly.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001783# WARNING: Use '\'' to represent an apostrophe within the trap.
1784# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001785trap 'exit_status=$?
1786 # Save into config.log some information that might help in debugging.
1787 {
1788 echo
1789
1790 cat <<\_ASBOX
1791## ---------------- ##
1792## Cache variables. ##
1793## ---------------- ##
1794_ASBOX
1795 echo
1796 # The following way of writing the cache mishandles newlines in values,
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001797(
1798 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1799 eval ac_val=\$$ac_var
1800 case $ac_val in #(
1801 *${as_nl}*)
1802 case $ac_var in #(
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05001803 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1804$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001805 esac
1806 case $ac_var in #(
1807 _ | IFS | as_nl) ;; #(
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001808 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001809 *) $as_unset $ac_var ;;
1810 esac ;;
1811 esac
1812 done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001813 (set) 2>&1 |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001814 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1815 *${as_nl}ac_space=\ *)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001816 sed -n \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001817 "s/'\''/'\''\\\\'\'''\''/g;
1818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1819 ;; #(
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001820 *)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001821 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001822 ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001823 esac |
1824 sort
1825)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001826 echo
1827
1828 cat <<\_ASBOX
1829## ----------------- ##
1830## Output variables. ##
1831## ----------------- ##
1832_ASBOX
1833 echo
1834 for ac_var in $ac_subst_vars
1835 do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001836 eval ac_val=\$$ac_var
1837 case $ac_val in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001838 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001839 esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001840 $as_echo "$ac_var='\''$ac_val'\''"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001841 done | sort
1842 echo
1843
1844 if test -n "$ac_subst_files"; then
1845 cat <<\_ASBOX
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001846## ------------------- ##
1847## File substitutions. ##
1848## ------------------- ##
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001849_ASBOX
1850 echo
1851 for ac_var in $ac_subst_files
1852 do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001853 eval ac_val=\$$ac_var
1854 case $ac_val in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001855 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001856 esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001857 $as_echo "$ac_var='\''$ac_val'\''"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001858 done | sort
1859 echo
1860 fi
1861
1862 if test -s confdefs.h; then
1863 cat <<\_ASBOX
1864## ----------- ##
1865## confdefs.h. ##
1866## ----------- ##
1867_ASBOX
1868 echo
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001869 cat confdefs.h
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001870 echo
1871 fi
1872 test "$ac_signal" != 0 &&
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001873 $as_echo "$as_me: caught signal $ac_signal"
1874 $as_echo "$as_me: exit $exit_status"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001875 } >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001876 rm -f core *.core core.conftest.* &&
1877 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001878 exit $exit_status
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001879' 0
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001880for ac_signal in 1 2 13 15; do
1881 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1882done
1883ac_signal=0
1884
1885# confdefs.h avoids OS command line length limits that DEFS can exceed.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001886rm -f -r conftest* confdefs.h
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001887
1888# Predefined preprocessor variables.
1889
1890cat >>confdefs.h <<_ACEOF
1891#define PACKAGE_NAME "$PACKAGE_NAME"
1892_ACEOF
1893
1894
1895cat >>confdefs.h <<_ACEOF
1896#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1897_ACEOF
1898
1899
1900cat >>confdefs.h <<_ACEOF
1901#define PACKAGE_VERSION "$PACKAGE_VERSION"
1902_ACEOF
1903
1904
1905cat >>confdefs.h <<_ACEOF
1906#define PACKAGE_STRING "$PACKAGE_STRING"
1907_ACEOF
1908
1909
1910cat >>confdefs.h <<_ACEOF
1911#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1912_ACEOF
1913
1914
1915# Let the site file select an alternate cache file if it wants to.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001916# Prefer an explicitly selected file to automatically selected ones.
1917ac_site_file1=NONE
1918ac_site_file2=NONE
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001919if test -n "$CONFIG_SITE"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001920 ac_site_file1=$CONFIG_SITE
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001921elif test "x$prefix" != xNONE; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001922 ac_site_file1=$prefix/share/config.site
1923 ac_site_file2=$prefix/etc/config.site
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001924else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001925 ac_site_file1=$ac_default_prefix/share/config.site
1926 ac_site_file2=$ac_default_prefix/etc/config.site
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001927fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001928for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001929do
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001930 test "x$ac_site_file" = xNONE && continue
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001931 if test -r "$ac_site_file"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001932 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1933$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001934 sed 's/^/| /' "$ac_site_file" >&5
1935 . "$ac_site_file"
1936 fi
1937done
1938
1939if test -r "$cache_file"; then
1940 # Some versions of bash will fail to source /dev/null (special
1941 # files actually), so we avoid doing that.
1942 if test -f "$cache_file"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001943 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1944$as_echo "$as_me: loading cache $cache_file" >&6;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001945 case $cache_file in
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001946 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1947 *) . "./$cache_file";;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001948 esac
1949 fi
1950else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001951 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1952$as_echo "$as_me: creating cache $cache_file" >&6;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001953 >$cache_file
1954fi
1955
1956# Check that the precious variables saved in the cache have kept the same
1957# value.
1958ac_cache_corrupted=false
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001959for ac_var in $ac_precious_vars; do
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001960 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1961 eval ac_new_set=\$ac_env_${ac_var}_set
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001962 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1963 eval ac_new_val=\$ac_env_${ac_var}_value
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001964 case $ac_old_set,$ac_new_set in
1965 set,)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001966 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1967$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001968 ac_cache_corrupted=: ;;
1969 ,set)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001970 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1971$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001972 ac_cache_corrupted=: ;;
1973 ,);;
1974 *)
1975 if test "x$ac_old_val" != "x$ac_new_val"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001976 # differences in whitespace do not lead to failure.
1977 ac_old_val_w=`echo x $ac_old_val`
1978 ac_new_val_w=`echo x $ac_new_val`
1979 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1980 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1981$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1982 ac_cache_corrupted=:
1983 else
1984 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1985$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1986 eval $ac_var=\$ac_old_val
1987 fi
1988 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1989$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1990 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1991$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001992 fi;;
1993 esac
1994 # Pass precious variables to config.status.
1995 if test "$ac_new_set" = set; then
1996 case $ac_new_val in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001997 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001998 *) ac_arg=$ac_var=$ac_new_val ;;
1999 esac
2000 case " $ac_configure_args " in
2001 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2002 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2003 esac
2004 fi
2005done
2006if $ac_cache_corrupted; then
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05002007 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002009 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2010$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2011 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2012$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002013 { (exit 1); exit 1; }; }
2014fi
2015
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002040ac_ext=c
2041ac_cpp='$CPP $CPPFLAGS'
2042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2044ac_compiler_gnu=$ac_cv_c_compiler_gnu
2045
2046
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002047am__api_version='1.10'
2048
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002049ac_aux_dir=
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002050for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2051 if test -f "$ac_dir/install-sh"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002052 ac_aux_dir=$ac_dir
2053 ac_install_sh="$ac_aux_dir/install-sh -c"
2054 break
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002055 elif test -f "$ac_dir/install.sh"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002056 ac_aux_dir=$ac_dir
2057 ac_install_sh="$ac_aux_dir/install.sh -c"
2058 break
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002059 elif test -f "$ac_dir/shtool"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002060 ac_aux_dir=$ac_dir
2061 ac_install_sh="$ac_aux_dir/shtool install -c"
2062 break
2063 fi
2064done
2065if test -z "$ac_aux_dir"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002066 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2067$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002068 { (exit 1); exit 1; }; }
2069fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002070
2071# These three variables are undocumented and unsupported,
2072# and are intended to be withdrawn in a future Autoconf release.
2073# They can cause serious problems if a builder's source tree is in a directory
2074# whose full name contains unusual characters.
2075ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2076ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2077ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2078
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002079
2080# Find a good install program. We prefer a C program (faster),
2081# so one script is as good as another. But avoid the broken or
2082# incompatible versions:
2083# SysV /etc/install, /usr/sbin/install
2084# SunOS /usr/etc/install
2085# IRIX /sbin/install
2086# AIX /bin/install
2087# AmigaOS /C/install, which installs bootblocks on floppy discs
2088# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2089# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2090# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002091# OS/2's system install, which has a completely different semantic
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002092# ./install, which can be erroneously created by make from ./install.sh.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002093# Reject install programs that cannot install multiple files.
2094{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2095$as_echo_n "checking for a BSD-compatible install... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002096if test -z "$INSTALL"; then
2097if test "${ac_cv_path_install+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002098 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002099else
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101for as_dir in $PATH
2102do
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
2105 # Account for people who put trailing slashes in PATH elements.
2106case $as_dir/ in
2107 ./ | .// | /cC/* | \
2108 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002109 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002110 /usr/ucb/* ) ;;
2111 *)
2112 # OSF1 and SCO ODT 3.0 have their own names for install.
2113 # Don't use installbsd from OSF since it installs stuff as root
2114 # by default.
2115 for ac_prog in ginstall scoinst install; do
2116 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002117 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002118 if test $ac_prog = install &&
2119 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2120 # AIX install. It has an incompatible calling convention.
2121 :
2122 elif test $ac_prog = install &&
2123 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2124 # program-specific install script used by HP pwplus--don't use.
2125 :
2126 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002127 rm -rf conftest.one conftest.two conftest.dir
2128 echo one > conftest.one
2129 echo two > conftest.two
2130 mkdir conftest.dir
2131 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2132 test -s conftest.one && test -s conftest.two &&
2133 test -s conftest.dir/conftest.one &&
2134 test -s conftest.dir/conftest.two
2135 then
2136 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2137 break 3
2138 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002139 fi
2140 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002141 done
2142 done
2143 ;;
2144esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002145
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002146done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002147IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002148
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002149rm -rf conftest.one conftest.two conftest.dir
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002150
2151fi
2152 if test "${ac_cv_path_install+set}" = set; then
2153 INSTALL=$ac_cv_path_install
2154 else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002155 # As a last resort, use the slow shell script. Don't cache a
2156 # value for INSTALL within a source directory, because that will
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002157 # break other packages using the cache if that directory is
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002158 # removed, or if the value is a relative name.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002159 INSTALL=$ac_install_sh
2160 fi
2161fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002162{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2163$as_echo "$INSTALL" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002164
2165# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2166# It thinks the first close brace ends the variable substitution.
2167test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2168
2169test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2170
2171test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2172
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002173{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2174$as_echo_n "checking whether build environment is sane... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002175# Just in case
2176sleep 1
2177echo timestamp > conftest.file
2178# Do `set' in a subshell so we don't clobber the current shell's
2179# arguments. Must try -L first in case configure is actually a
2180# symlink; some systems play weird games with the mod time of symlinks
2181# (eg FreeBSD returns the mod time of the symlink's containing
2182# directory).
2183if (
2184 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2185 if test "$*" = "X"; then
2186 # -L didn't work.
2187 set X `ls -t $srcdir/configure conftest.file`
2188 fi
2189 rm -f conftest.file
2190 if test "$*" != "X $srcdir/configure conftest.file" \
2191 && test "$*" != "X conftest.file $srcdir/configure"; then
2192
2193 # If neither matched, then we have a broken ls. This can happen
2194 # if, for instance, CONFIG_SHELL is bash and it inherits a
2195 # broken ls alias from the environment. This has actually
2196 # happened. Such a system could not be considered "sane".
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002197 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002198alias in your environment" >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002199$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002200alias in your environment" >&2;}
2201 { (exit 1); exit 1; }; }
2202 fi
2203
2204 test "$2" = conftest.file
2205 )
2206then
2207 # Ok.
2208 :
2209else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002210 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002211Check your system clock" >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002212$as_echo "$as_me: error: newly created file is older than distributed files!
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002213Check your system clock" >&2;}
2214 { (exit 1); exit 1; }; }
2215fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002216{ $as_echo "$as_me:$LINENO: result: yes" >&5
2217$as_echo "yes" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002218test "$program_prefix" != NONE &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002219 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002220# Use a double $ so make ignores it.
2221test "$program_suffix" != NONE &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002222 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002223# Double any \ or $.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002224# By default was `s,x,x', remove it if useless.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002225ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2226program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002227
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002228# expand $ac_aux_dir to an absolute path
2229am_aux_dir=`cd $ac_aux_dir && pwd`
2230
2231test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2232# Use eval to expand $SHELL
2233if eval "$MISSING --run true"; then
2234 am_missing_run="$MISSING --run "
2235else
2236 am_missing_run=
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002237 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2238$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002239fi
2240
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002241{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2242$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2243if test -z "$MKDIR_P"; then
2244 if test "${ac_cv_path_mkdir+set}" = set; then
2245 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002246else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2249do
2250 IFS=$as_save_IFS
2251 test -z "$as_dir" && as_dir=.
2252 for ac_prog in mkdir gmkdir; do
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2255 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2256 'mkdir (GNU coreutils) '* | \
2257 'mkdir (coreutils) '* | \
2258 'mkdir (fileutils) '4.1*)
2259 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2260 break 3;;
2261 esac
2262 done
2263 done
2264done
2265IFS=$as_save_IFS
2266
2267fi
2268
2269 if test "${ac_cv_path_mkdir+set}" = set; then
2270 MKDIR_P="$ac_cv_path_mkdir -p"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002271 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002272 # As a last resort, use the slow shell script. Don't cache a
2273 # value for MKDIR_P within a source directory, because that will
2274 # break other packages using the cache if that directory is
2275 # removed, or if the value is a relative name.
2276 test -d ./--version && rmdir ./--version
2277 MKDIR_P="$ac_install_sh -d"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002278 fi
2279fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002280{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2281$as_echo "$MKDIR_P" >&6; }
2282
2283mkdir_p="$MKDIR_P"
2284case $mkdir_p in
2285 [\\/$]* | ?:[\\/]*) ;;
2286 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2287esac
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002288
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002289for ac_prog in gawk mawk nawk awk
2290do
2291 # Extract the first word of "$ac_prog", so it can be a program name with args.
2292set dummy $ac_prog; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002293{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2294$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002295if test "${ac_cv_prog_AWK+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002296 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002297else
2298 if test -n "$AWK"; then
2299 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2300else
2301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302for as_dir in $PATH
2303do
2304 IFS=$as_save_IFS
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002308 ac_cv_prog_AWK="$ac_prog"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002309 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002310 break 2
2311 fi
2312done
2313done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002314IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002315
2316fi
2317fi
2318AWK=$ac_cv_prog_AWK
2319if test -n "$AWK"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002320 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2321$as_echo "$AWK" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002322else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002323 { $as_echo "$as_me:$LINENO: result: no" >&5
2324$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002325fi
2326
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002327
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002328 test -n "$AWK" && break
2329done
2330
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002331{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2332$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2333set x ${MAKE-make}
2334ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002335if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002336 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002337else
2338 cat >conftest.make <<\_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002339SHELL = /bin/sh
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002340all:
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002341 @echo '@@@%%%=$(MAKE)=@@@%%%'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002342_ACEOF
2343# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002344case `${MAKE-make} -f conftest.make 2>/dev/null` in
2345 *@@@%%%=?*=@@@%%%*)
2346 eval ac_cv_prog_make_${ac_make}_set=yes;;
2347 *)
2348 eval ac_cv_prog_make_${ac_make}_set=no;;
2349esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002350rm -f conftest.make
2351fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002352if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002353 { $as_echo "$as_me:$LINENO: result: yes" >&5
2354$as_echo "yes" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002355 SET_MAKE=
2356else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002357 { $as_echo "$as_me:$LINENO: result: no" >&5
2358$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002359 SET_MAKE="MAKE=${MAKE-make}"
2360fi
2361
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002362rm -rf .tst 2>/dev/null
2363mkdir .tst 2>/dev/null
2364if test -d .tst; then
2365 am__leading_dot=.
2366else
2367 am__leading_dot=_
2368fi
2369rmdir .tst 2>/dev/null
2370
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002371if test "`cd $srcdir && pwd`" != "`pwd`"; then
2372 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2373 # is not polluted with repeated "-I."
2374 am__isrc=' -I$(srcdir)'
2375 # test to see if srcdir already configured
2376 if test -f $srcdir/config.status; then
2377 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2378$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002379 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002380 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002381fi
2382
2383# test whether we have cygpath
2384if test -z "$CYGPATH_W"; then
2385 if (cygpath --version) >/dev/null 2>/dev/null; then
2386 CYGPATH_W='cygpath -w'
2387 else
2388 CYGPATH_W=echo
2389 fi
2390fi
2391
2392
2393# Define the identity of the package.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002394 PACKAGE='libpng'
Glenn Randers-Pehrsond84748a2009-06-24 08:17:34 -05002395 VERSION='1.4.0beta65'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002396
2397
2398cat >>confdefs.h <<_ACEOF
2399#define PACKAGE "$PACKAGE"
2400_ACEOF
2401
2402
2403cat >>confdefs.h <<_ACEOF
2404#define VERSION "$VERSION"
2405_ACEOF
2406
2407# Some tools Automake needs.
2408
2409ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2410
2411
2412AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2413
2414
2415AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2416
2417
2418AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2419
2420
2421MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2422
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002423install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002424
2425# Installed binaries are usually stripped using `strip' when the user
2426# run `make install-strip'. However `strip' might not be the right
2427# tool to use in cross-compilation environments, therefore Automake
2428# will honor the `STRIP' environment variable to overrule this program.
2429if test "$cross_compiling" != no; then
2430 if test -n "$ac_tool_prefix"; then
2431 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2432set dummy ${ac_tool_prefix}strip; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002433{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2434$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002435if test "${ac_cv_prog_STRIP+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002436 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002437else
2438 if test -n "$STRIP"; then
2439 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2440else
2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442for as_dir in $PATH
2443do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002448 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002450 break 2
2451 fi
2452done
2453done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002454IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002455
2456fi
2457fi
2458STRIP=$ac_cv_prog_STRIP
2459if test -n "$STRIP"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002460 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2461$as_echo "$STRIP" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002462else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002463 { $as_echo "$as_me:$LINENO: result: no" >&5
2464$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002465fi
2466
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002467
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002468fi
2469if test -z "$ac_cv_prog_STRIP"; then
2470 ac_ct_STRIP=$STRIP
2471 # Extract the first word of "strip", so it can be a program name with args.
2472set dummy strip; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002473{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2474$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002475if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002476 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002477else
2478 if test -n "$ac_ct_STRIP"; then
2479 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2480else
2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002488 ac_cv_prog_ac_ct_STRIP="strip"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002489 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002490 break 2
2491 fi
2492done
2493done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002494IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002495
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002496fi
2497fi
2498ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2499if test -n "$ac_ct_STRIP"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002500 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2501$as_echo "$ac_ct_STRIP" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002502else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002503 { $as_echo "$as_me:$LINENO: result: no" >&5
2504$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002505fi
2506
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002507 if test "x$ac_ct_STRIP" = x; then
2508 STRIP=":"
2509 else
2510 case $cross_compiling:$ac_tool_warned in
2511yes:)
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05002512{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002514ac_tool_warned=yes ;;
2515esac
2516 STRIP=$ac_ct_STRIP
2517 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002518else
2519 STRIP="$ac_cv_prog_STRIP"
2520fi
2521
2522fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002523INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002524
2525# We need awk for the "check" target. The system "awk" is bad on
2526# some platforms.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002527# Always define AMTAR for backward compatibility.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002528
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002529AMTAR=${AMTAR-"${am_missing_run}tar"}
2530
2531am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2532
2533
2534
2535
2536
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002537{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2538$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002539 # Check whether --enable-maintainer-mode was given.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002540if test "${enable_maintainer_mode+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002541 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002542else
2543 USE_MAINTAINER_MODE=no
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002544fi
2545
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002546 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2547$as_echo "$USE_MAINTAINER_MODE" >&6; }
2548 if test $USE_MAINTAINER_MODE = yes; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002549 MAINTAINER_MODE_TRUE=
2550 MAINTAINER_MODE_FALSE='#'
2551else
2552 MAINTAINER_MODE_TRUE='#'
2553 MAINTAINER_MODE_FALSE=
2554fi
2555
2556 MAINT=$MAINTAINER_MODE_TRUE
2557
2558
2559
Glenn Randers-Pehrsond84748a2009-06-24 08:17:34 -05002560PNGLIB_VERSION=1.4.0beta65
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002561PNGLIB_MAJOR=1
2562PNGLIB_MINOR=4
2563PNGLIB_RELEASE=0
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002564
2565
2566
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002567ac_config_headers="$ac_config_headers config.h"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002568
2569
2570# Checks for programs.
2571ac_ext=c
2572ac_cpp='$CPP $CPPFLAGS'
2573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2575ac_compiler_gnu=$ac_cv_c_compiler_gnu
2576if test -n "$ac_tool_prefix"; then
2577 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2578set dummy ${ac_tool_prefix}gcc; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002579{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2580$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002581if test "${ac_cv_prog_CC+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002582 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002583else
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2586else
2587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588for as_dir in $PATH
2589do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002594 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002595 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002596 break 2
2597 fi
2598done
2599done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002600IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002601
2602fi
2603fi
2604CC=$ac_cv_prog_CC
2605if test -n "$CC"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002606 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2607$as_echo "$CC" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002608else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002609 { $as_echo "$as_me:$LINENO: result: no" >&5
2610$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002611fi
2612
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002613
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002614fi
2615if test -z "$ac_cv_prog_CC"; then
2616 ac_ct_CC=$CC
2617 # Extract the first word of "gcc", so it can be a program name with args.
2618set dummy gcc; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002619{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2620$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002621if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002622 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002623else
2624 if test -n "$ac_ct_CC"; then
2625 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2626else
2627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628for as_dir in $PATH
2629do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002634 ac_cv_prog_ac_ct_CC="gcc"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002635 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002636 break 2
2637 fi
2638done
2639done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002640IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002641
2642fi
2643fi
2644ac_ct_CC=$ac_cv_prog_ac_ct_CC
2645if test -n "$ac_ct_CC"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002646 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2647$as_echo "$ac_ct_CC" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002648else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002649 { $as_echo "$as_me:$LINENO: result: no" >&5
2650$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002651fi
2652
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002653 if test "x$ac_ct_CC" = x; then
2654 CC=""
2655 else
2656 case $cross_compiling:$ac_tool_warned in
2657yes:)
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05002658{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002660ac_tool_warned=yes ;;
2661esac
2662 CC=$ac_ct_CC
2663 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002664else
2665 CC="$ac_cv_prog_CC"
2666fi
2667
2668if test -z "$CC"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002669 if test -n "$ac_tool_prefix"; then
2670 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002671set dummy ${ac_tool_prefix}cc; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002672{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2673$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002674if test "${ac_cv_prog_CC+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002675 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002676else
2677 if test -n "$CC"; then
2678 ac_cv_prog_CC="$CC" # Let the user override the test.
2679else
2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681for as_dir in $PATH
2682do
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002687 ac_cv_prog_CC="${ac_tool_prefix}cc"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002688 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002689 break 2
2690 fi
2691done
2692done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002693IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002694
2695fi
2696fi
2697CC=$ac_cv_prog_CC
2698if test -n "$CC"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002699 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2700$as_echo "$CC" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002701else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002702 { $as_echo "$as_me:$LINENO: result: no" >&5
2703$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002704fi
2705
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002706
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002707 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002708fi
2709if test -z "$CC"; then
2710 # Extract the first word of "cc", so it can be a program name with args.
2711set dummy cc; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002712{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2713$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002714if test "${ac_cv_prog_CC+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002715 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002716else
2717 if test -n "$CC"; then
2718 ac_cv_prog_CC="$CC" # Let the user override the test.
2719else
2720 ac_prog_rejected=no
2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH
2723do
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002728 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2729 ac_prog_rejected=yes
2730 continue
2731 fi
2732 ac_cv_prog_CC="cc"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002733 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002734 break 2
2735 fi
2736done
2737done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002738IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002739
2740if test $ac_prog_rejected = yes; then
2741 # We found a bogon in the path, so make sure we never use it.
2742 set dummy $ac_cv_prog_CC
2743 shift
2744 if test $# != 0; then
2745 # We chose a different compiler from the bogus one.
2746 # However, it has the same basename, so the bogon will be chosen
2747 # first if we set CC to just the basename; use the full file name.
2748 shift
2749 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2750 fi
2751fi
2752fi
2753fi
2754CC=$ac_cv_prog_CC
2755if test -n "$CC"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002756 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2757$as_echo "$CC" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002758else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002759 { $as_echo "$as_me:$LINENO: result: no" >&5
2760$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002761fi
2762
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002763
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002764fi
2765if test -z "$CC"; then
2766 if test -n "$ac_tool_prefix"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002767 for ac_prog in cl.exe
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002768 do
2769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2770set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002771{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2772$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002773if test "${ac_cv_prog_CC+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002774 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002775else
2776 if test -n "$CC"; then
2777 ac_cv_prog_CC="$CC" # Let the user override the test.
2778else
2779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780for as_dir in $PATH
2781do
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002786 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002787 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002788 break 2
2789 fi
2790done
2791done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002792IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002793
2794fi
2795fi
2796CC=$ac_cv_prog_CC
2797if test -n "$CC"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002798 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2799$as_echo "$CC" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002800else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002801 { $as_echo "$as_me:$LINENO: result: no" >&5
2802$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002803fi
2804
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002805
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002806 test -n "$CC" && break
2807 done
2808fi
2809if test -z "$CC"; then
2810 ac_ct_CC=$CC
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002811 for ac_prog in cl.exe
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002812do
2813 # Extract the first word of "$ac_prog", so it can be a program name with args.
2814set dummy $ac_prog; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002815{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2816$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002817if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002818 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002819else
2820 if test -n "$ac_ct_CC"; then
2821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2822else
2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824for as_dir in $PATH
2825do
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002830 ac_cv_prog_ac_ct_CC="$ac_prog"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002831 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002832 break 2
2833 fi
2834done
2835done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002836IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002837
2838fi
2839fi
2840ac_ct_CC=$ac_cv_prog_ac_ct_CC
2841if test -n "$ac_ct_CC"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002842 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2843$as_echo "$ac_ct_CC" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002844else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002845 { $as_echo "$as_me:$LINENO: result: no" >&5
2846$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002847fi
2848
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002849
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002850 test -n "$ac_ct_CC" && break
2851done
2852
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002853 if test "x$ac_ct_CC" = x; then
2854 CC=""
2855 else
2856 case $cross_compiling:$ac_tool_warned in
2857yes:)
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05002858{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002860ac_tool_warned=yes ;;
2861esac
2862 CC=$ac_ct_CC
2863 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002864fi
2865
2866fi
2867
2868
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05002869test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2871{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002872See \`config.log' for more details." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002873$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002874See \`config.log' for more details." >&2;}
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05002875 { (exit 1); exit 1; }; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002876
2877# Provide some information about the compiler.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002878$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2879set X $ac_compile
2880ac_compiler=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002881{ (ac_try="$ac_compiler --version >&5"
2882case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2885esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2887$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002888 (eval "$ac_compiler --version >&5") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002889 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002891 (exit $ac_status); }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002892{ (ac_try="$ac_compiler -v >&5"
2893case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2898$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002899 (eval "$ac_compiler -v >&5") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002900 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002902 (exit $ac_status); }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002903{ (ac_try="$ac_compiler -V >&5"
2904case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2909$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002910 (eval "$ac_compiler -V >&5") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002911 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002913 (exit $ac_status); }
2914
2915cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002916/* confdefs.h. */
2917_ACEOF
2918cat confdefs.h >>conftest.$ac_ext
2919cat >>conftest.$ac_ext <<_ACEOF
2920/* end confdefs.h. */
2921
2922int
2923main ()
2924{
2925
2926 ;
2927 return 0;
2928}
2929_ACEOF
2930ac_clean_files_save=$ac_clean_files
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002931ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002932# Try to create an executable without -o first, disregard a.out.
2933# It will help us diagnose broken compilers, and finding out an intuition
2934# of exeext.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002935{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2936$as_echo_n "checking for C compiler default output file name... " >&6; }
2937ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2938
2939# The possible output files:
2940ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2941
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002942ac_rmfiles=
2943for ac_file in $ac_files
2944do
2945 case $ac_file in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002947 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2948 esac
2949done
2950rm -f $ac_rmfiles
2951
2952if { (ac_try="$ac_link_default"
2953case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2956esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2958$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002959 (eval "$ac_link_default") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002960 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002962 (exit $ac_status); }; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002963 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2964# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2965# in a Makefile. We should not override ac_cv_exeext if it was cached,
2966# so that the user can short-circuit this test for compilers unknown to
2967# Autoconf.
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002968for ac_file in $ac_files ''
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002969do
2970 test -f "$ac_file" || continue
2971 case $ac_file in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002973 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002974 [ab].out )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002975 # We found the default executable, but exeext='' is most
2976 # certainly right.
2977 break;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002978 *.* )
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002979 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2980 then :; else
2981 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2982 fi
2983 # We set ac_cv_exeext here because the later test for it is not
2984 # safe: cross compilers may not add the suffix if given an `-o'
2985 # argument, so we may need to know it at that point already.
2986 # Even if this section looks crufty: it has the advantage of
2987 # actually working.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002988 break;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002989 * )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002990 break;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002991 esac
2992done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002993test "$ac_cv_exeext" = no && ac_cv_exeext=
2994
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002995else
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002996 ac_file=''
2997fi
2998
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002999{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3000$as_echo "$ac_file" >&6; }
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05003001if test -z "$ac_file"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003002 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003003sed 's/^/| /' conftest.$ac_ext >&5
3004
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05003005{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003007{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003008See \`config.log' for more details." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003009$as_echo "$as_me: error: C compiler cannot create executables
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003010See \`config.log' for more details." >&2;}
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05003011 { (exit 77); exit 77; }; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003012fi
3013
3014ac_exeext=$ac_cv_exeext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003015
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003016# Check that the compiler produces executables we can run. If not, either
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003017# the compiler is broken, or we cross compile.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003018{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3019$as_echo_n "checking whether the C compiler works... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003020# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3021# If not cross compiling, check that we can run a simple program.
3022if test "$cross_compiling" != yes; then
3023 if { ac_try='./$ac_file'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003024 { (case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003028eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3029$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003030 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003031 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003033 (exit $ac_status); }; }; then
3034 cross_compiling=no
3035 else
3036 if test "$cross_compiling" = maybe; then
3037 cross_compiling=yes
3038 else
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05003039 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3041{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003042If you meant to cross compile, use \`--host'.
3043See \`config.log' for more details." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003044$as_echo "$as_me: error: cannot run C compiled programs.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003045If you meant to cross compile, use \`--host'.
3046See \`config.log' for more details." >&2;}
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05003047 { (exit 1); exit 1; }; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003048 fi
3049 fi
3050fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003051{ $as_echo "$as_me:$LINENO: result: yes" >&5
3052$as_echo "yes" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003053
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003054rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003055ac_clean_files=$ac_clean_files_save
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003056# Check that the compiler produces executables we can run. If not, either
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003057# the compiler is broken, or we cross compile.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003058{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3059$as_echo_n "checking whether we are cross compiling... " >&6; }
3060{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3061$as_echo "$cross_compiling" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003062
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003063{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3064$as_echo_n "checking for suffix of executables... " >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003065if { (ac_try="$ac_link"
3066case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3071$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003072 (eval "$ac_link") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003073 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003075 (exit $ac_status); }; then
3076 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3077# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3078# work properly (i.e., refer to `conftest.exe'), while it won't with
3079# `rm'.
3080for ac_file in conftest.exe conftest conftest.*; do
3081 test -f "$ac_file" || continue
3082 case $ac_file in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003084 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003085 break;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003086 * ) break;;
3087 esac
3088done
3089else
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05003090 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3092{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003093See \`config.log' for more details." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003094$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003095See \`config.log' for more details." >&2;}
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05003096 { (exit 1); exit 1; }; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003097fi
3098
3099rm -f conftest$ac_cv_exeext
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003100{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3101$as_echo "$ac_cv_exeext" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003102
3103rm -f conftest.$ac_ext
3104EXEEXT=$ac_cv_exeext
3105ac_exeext=$EXEEXT
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003106{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3107$as_echo_n "checking for suffix of object files... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003108if test "${ac_cv_objext+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003109 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003110else
3111 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003112/* confdefs.h. */
3113_ACEOF
3114cat confdefs.h >>conftest.$ac_ext
3115cat >>conftest.$ac_ext <<_ACEOF
3116/* end confdefs.h. */
3117
3118int
3119main ()
3120{
3121
3122 ;
3123 return 0;
3124}
3125_ACEOF
3126rm -f conftest.o conftest.obj
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003127if { (ac_try="$ac_compile"
3128case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3133$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003134 (eval "$ac_compile") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003135 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003137 (exit $ac_status); }; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003138 for ac_file in conftest.o conftest.obj conftest.*; do
3139 test -f "$ac_file" || continue;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003140 case $ac_file in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003142 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3143 break;;
3144 esac
3145done
3146else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003147 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003148sed 's/^/| /' conftest.$ac_ext >&5
3149
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05003150{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003152{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003153See \`config.log' for more details." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003154$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003155See \`config.log' for more details." >&2;}
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05003156 { (exit 1); exit 1; }; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003157fi
3158
3159rm -f conftest.$ac_cv_objext conftest.$ac_ext
3160fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003161{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3162$as_echo "$ac_cv_objext" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003163OBJEXT=$ac_cv_objext
3164ac_objext=$OBJEXT
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003165{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3166$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003167if test "${ac_cv_c_compiler_gnu+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003168 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003169else
3170 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003171/* confdefs.h. */
3172_ACEOF
3173cat confdefs.h >>conftest.$ac_ext
3174cat >>conftest.$ac_ext <<_ACEOF
3175/* end confdefs.h. */
3176
3177int
3178main ()
3179{
3180#ifndef __GNUC__
3181 choke me
3182#endif
3183
3184 ;
3185 return 0;
3186}
3187_ACEOF
3188rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003189if { (ac_try="$ac_compile"
3190case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3195$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003196 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003197 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003198 grep -v '^ *+' conftest.er1 >conftest.err
3199 rm -f conftest.er1
3200 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05003202 (exit $ac_status); } && {
3203 test -z "$ac_c_werror_flag" ||
3204 test ! -s conftest.err
3205 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003206 ac_compiler_gnu=yes
3207else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003208 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003209sed 's/^/| /' conftest.$ac_ext >&5
3210
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003211 ac_compiler_gnu=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003212fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003213
3214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003215ac_cv_c_compiler_gnu=$ac_compiler_gnu
3216
3217fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003218{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3219$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3220if test $ac_compiler_gnu = yes; then
3221 GCC=yes
3222else
3223 GCC=
3224fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003225ac_test_CFLAGS=${CFLAGS+set}
3226ac_save_CFLAGS=$CFLAGS
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003227{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3228$as_echo_n "checking whether $CC accepts -g... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003229if test "${ac_cv_prog_cc_g+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003230 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003231else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003232 ac_save_c_werror_flag=$ac_c_werror_flag
3233 ac_c_werror_flag=yes
3234 ac_cv_prog_cc_g=no
3235 CFLAGS="-g"
3236 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003237/* confdefs.h. */
3238_ACEOF
3239cat confdefs.h >>conftest.$ac_ext
3240cat >>conftest.$ac_ext <<_ACEOF
3241/* end confdefs.h. */
3242
3243int
3244main ()
3245{
3246
3247 ;
3248 return 0;
3249}
3250_ACEOF
3251rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003252if { (ac_try="$ac_compile"
3253case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3258$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003259 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003260 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003261 grep -v '^ *+' conftest.er1 >conftest.err
3262 rm -f conftest.er1
3263 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05003265 (exit $ac_status); } && {
3266 test -z "$ac_c_werror_flag" ||
3267 test ! -s conftest.err
3268 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003269 ac_cv_prog_cc_g=yes
3270else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003271 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003272sed 's/^/| /' conftest.$ac_ext >&5
3273
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003274 CFLAGS=""
3275 cat >conftest.$ac_ext <<_ACEOF
3276/* confdefs.h. */
3277_ACEOF
3278cat confdefs.h >>conftest.$ac_ext
3279cat >>conftest.$ac_ext <<_ACEOF
3280/* end confdefs.h. */
3281
3282int
3283main ()
3284{
3285
3286 ;
3287 return 0;
3288}
3289_ACEOF
3290rm -f conftest.$ac_objext
3291if { (ac_try="$ac_compile"
3292case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3297$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003298 (eval "$ac_compile") 2>conftest.er1
3299 ac_status=$?
3300 grep -v '^ *+' conftest.er1 >conftest.err
3301 rm -f conftest.er1
3302 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05003304 (exit $ac_status); } && {
3305 test -z "$ac_c_werror_flag" ||
3306 test ! -s conftest.err
3307 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003308 :
3309else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003310 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003311sed 's/^/| /' conftest.$ac_ext >&5
3312
3313 ac_c_werror_flag=$ac_save_c_werror_flag
3314 CFLAGS="-g"
3315 cat >conftest.$ac_ext <<_ACEOF
3316/* confdefs.h. */
3317_ACEOF
3318cat confdefs.h >>conftest.$ac_ext
3319cat >>conftest.$ac_ext <<_ACEOF
3320/* end confdefs.h. */
3321
3322int
3323main ()
3324{
3325
3326 ;
3327 return 0;
3328}
3329_ACEOF
3330rm -f conftest.$ac_objext
3331if { (ac_try="$ac_compile"
3332case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3337$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003338 (eval "$ac_compile") 2>conftest.er1
3339 ac_status=$?
3340 grep -v '^ *+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05003344 (exit $ac_status); } && {
3345 test -z "$ac_c_werror_flag" ||
3346 test ! -s conftest.err
3347 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003348 ac_cv_prog_cc_g=yes
3349else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003350 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003351sed 's/^/| /' conftest.$ac_ext >&5
3352
3353
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003354fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003355
3356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003357fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003358
3359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360fi
3361
3362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 ac_c_werror_flag=$ac_save_c_werror_flag
3364fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003365{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3366$as_echo "$ac_cv_prog_cc_g" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003367if test "$ac_test_CFLAGS" = set; then
3368 CFLAGS=$ac_save_CFLAGS
3369elif test $ac_cv_prog_cc_g = yes; then
3370 if test "$GCC" = yes; then
3371 CFLAGS="-g -O2"
3372 else
3373 CFLAGS="-g"
3374 fi
3375else
3376 if test "$GCC" = yes; then
3377 CFLAGS="-O2"
3378 else
3379 CFLAGS=
3380 fi
3381fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003382{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3383$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003384if test "${ac_cv_prog_cc_c89+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003385 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003386else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003387 ac_cv_prog_cc_c89=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003388ac_save_CC=$CC
3389cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003390/* confdefs.h. */
3391_ACEOF
3392cat confdefs.h >>conftest.$ac_ext
3393cat >>conftest.$ac_ext <<_ACEOF
3394/* end confdefs.h. */
3395#include <stdarg.h>
3396#include <stdio.h>
3397#include <sys/types.h>
3398#include <sys/stat.h>
3399/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3400struct buf { int x; };
3401FILE * (*rcsopen) (struct buf *, struct stat *, int);
3402static char *e (p, i)
3403 char **p;
3404 int i;
3405{
3406 return p[i];
3407}
3408static char *f (char * (*g) (char **, int), char **p, ...)
3409{
3410 char *s;
3411 va_list v;
3412 va_start (v,p);
3413 s = g (p, va_arg (v,int));
3414 va_end (v);
3415 return s;
3416}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003417
3418/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3419 function prototypes and stuff, but not '\xHH' hex character constants.
3420 These don't provoke an error unfortunately, instead are silently treated
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003421 as 'x'. The following induces an error, until -std is added to get
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003422 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3423 array size at least. It's necessary to write '\x00'==0 to get something
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003424 that's true only with -std. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003425int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3426
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003427/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3428 inside strings and character constants. */
3429#define FOO(x) 'x'
3430int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3431
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003432int test (int i, double x);
3433struct s1 {int (*f) (int a);};
3434struct s2 {int (*f) (double a);};
3435int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3436int argc;
3437char **argv;
3438int
3439main ()
3440{
3441return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3442 ;
3443 return 0;
3444}
3445_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003446for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3447 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003448do
3449 CC="$ac_save_CC $ac_arg"
3450 rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003451if { (ac_try="$ac_compile"
3452case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3455esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3457$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003458 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003459 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003460 grep -v '^ *+' conftest.er1 >conftest.err
3461 rm -f conftest.er1
3462 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05003464 (exit $ac_status); } && {
3465 test -z "$ac_c_werror_flag" ||
3466 test ! -s conftest.err
3467 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003468 ac_cv_prog_cc_c89=$ac_arg
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003469else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003470 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003471sed 's/^/| /' conftest.$ac_ext >&5
3472
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003473
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003474fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003475
3476rm -f core conftest.err conftest.$ac_objext
3477 test "x$ac_cv_prog_cc_c89" != "xno" && break
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003478done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003479rm -f conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003480CC=$ac_save_CC
3481
3482fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003483# AC_CACHE_VAL
3484case "x$ac_cv_prog_cc_c89" in
3485 x)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003486 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3487$as_echo "none needed" >&6; } ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003488 xno)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003489 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3490$as_echo "unsupported" >&6; } ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003491 *)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003492 CC="$CC $ac_cv_prog_cc_c89"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003493 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3494$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003495esac
3496
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003497
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003498ac_ext=c
3499ac_cpp='$CPP $CPPFLAGS'
3500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502ac_compiler_gnu=$ac_cv_c_compiler_gnu
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003503DEPDIR="${am__leading_dot}deps"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003504
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003505ac_config_commands="$ac_config_commands depfiles"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003506
3507
3508am_make=${MAKE-make}
3509cat > confinc << 'END'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003510am__doit:
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003511 @echo done
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003512.PHONY: am__doit
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003513END
3514# If we don't find an include directive, just comment out the code.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003515{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3516$as_echo_n "checking for style of include used by $am_make... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003517am__include="#"
3518am__quote=
3519_am_result=none
3520# First try GNU make style include.
3521echo "include confinc" > confmf
3522# We grep out `Entering directory' and `Leaving directory'
3523# messages which can occur if `w' ends up in MAKEFLAGS.
3524# In particular we don't look at `^make:' because GNU make might
3525# be invoked under some other name (usually "gmake"), in which
3526# case it prints its new name instead of `make'.
3527if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3528 am__include=include
3529 am__quote=
3530 _am_result=GNU
3531fi
3532# Now try BSD make style include.
3533if test "$am__include" = "#"; then
3534 echo '.include "confinc"' > confmf
3535 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3536 am__include=.include
3537 am__quote="\""
3538 _am_result=BSD
3539 fi
3540fi
3541
3542
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003543{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3544$as_echo "$_am_result" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003545rm -f confinc confmf
3546
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003547# Check whether --enable-dependency-tracking was given.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003548if test "${enable_dependency_tracking+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003549 enableval=$enable_dependency_tracking;
3550fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003551
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003552if test "x$enable_dependency_tracking" != xno; then
3553 am_depcomp="$ac_aux_dir/depcomp"
3554 AMDEPBACKSLASH='\'
3555fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003556 if test "x$enable_dependency_tracking" != xno; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003557 AMDEP_TRUE=
3558 AMDEP_FALSE='#'
3559else
3560 AMDEP_TRUE='#'
3561 AMDEP_FALSE=
3562fi
3563
3564
3565
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003566depcc="$CC" am_compiler_list=
3567
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003568{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3569$as_echo_n "checking dependency style of $depcc... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003570if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003571 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003572else
3573 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3574 # We make a subdir and do the tests there. Otherwise we can end up
3575 # making bogus files that we don't know about and never remove. For
3576 # instance it was reported that on HP-UX the gcc test will end up
3577 # making a dummy file named `D' -- because `-MD' means `put the output
3578 # in D'.
3579 mkdir conftest.dir
3580 # Copy depcomp to subdir because otherwise we won't find it if we're
3581 # using a relative directory.
3582 cp "$am_depcomp" conftest.dir
3583 cd conftest.dir
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003584 # We will build objects and dependencies in a subdirectory because
3585 # it helps to detect inapplicable dependency modes. For instance
3586 # both Tru64's cc and ICC support -MD to output dependencies as a
3587 # side effect of compilation, but ICC will put the dependencies in
3588 # the current directory while Tru64 will put them in the object
3589 # directory.
3590 mkdir sub
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003591
3592 am_cv_CC_dependencies_compiler_type=none
3593 if test "$am_compiler_list" = ""; then
3594 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3595 fi
3596 for depmode in $am_compiler_list; do
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003597 # Setup a source with many dependencies, because some compilers
3598 # like to wrap large dependency lists on column 80 (with \), and
3599 # we should not choose a depcomp mode which is confused by this.
3600 #
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003601 # We need to recreate these files for each test, as the compiler may
3602 # overwrite some of them when testing with obscure command lines.
3603 # This happens at least with the AIX C compiler.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003604 : > sub/conftest.c
3605 for i in 1 2 3 4 5 6; do
3606 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3607 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3608 # Solaris 8's {/usr,}/bin/sh.
3609 touch sub/conftst$i.h
3610 done
3611 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003612
3613 case $depmode in
3614 nosideeffect)
3615 # after this tag, mechanisms are not by side-effect, so they'll
3616 # only be used when explicitly requested
3617 if test "x$enable_dependency_tracking" = xyes; then
3618 continue
3619 else
3620 break
3621 fi
3622 ;;
3623 none) break ;;
3624 esac
3625 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3626 # mode. It turns out that the SunPro C++ compiler does not properly
3627 # handle `-M -o', and we need to detect this.
3628 if depmode=$depmode \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003629 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3630 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3631 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3632 >/dev/null 2>conftest.err &&
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003633 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003634 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3635 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003636 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003637 # icc doesn't choke on unknown options, it will just issue warnings
3638 # or remarks (even with -Werror). So we grep stderr for any message
3639 # that says an option was ignored or not supported.
3640 # When given -MP, icc 7.0 and 7.1 complain thusly:
3641 # icc: Command line warning: ignoring option '-M'; no argument required
3642 # The diagnosis changed in icc 8.0:
3643 # icc: Command line remark: option '-MP' not supported
3644 if (grep 'ignoring option' conftest.err ||
3645 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3646 am_cv_CC_dependencies_compiler_type=$depmode
3647 break
3648 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003649 fi
3650 done
3651
3652 cd ..
3653 rm -rf conftest.dir
3654else
3655 am_cv_CC_dependencies_compiler_type=none
3656fi
3657
3658fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003659{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3660$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003661CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3662
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003663 if
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003664 test "x$enable_dependency_tracking" != xno \
3665 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3666 am__fastdepCC_TRUE=
3667 am__fastdepCC_FALSE='#'
3668else
3669 am__fastdepCC_TRUE='#'
3670 am__fastdepCC_FALSE=
3671fi
3672
3673
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003674# Make sure we can run config.sub.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003675$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003676 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3677$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003678 { (exit 1); exit 1; }; }
3679
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003680{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3681$as_echo_n "checking build system type... " >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003682if test "${ac_cv_build+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003683 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003684else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003685 ac_build_alias=$build_alias
3686test "x$ac_build_alias" = x &&
3687 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3688test "x$ac_build_alias" = x &&
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003689 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3690$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003691 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003692ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003693 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3694$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003695 { (exit 1); exit 1; }; }
3696
3697fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003698{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3699$as_echo "$ac_cv_build" >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003700case $ac_cv_build in
3701*-*-*) ;;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003702*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3703$as_echo "$as_me: error: invalid value of canonical build" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003704 { (exit 1); exit 1; }; };;
3705esac
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003706build=$ac_cv_build
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003707ac_save_IFS=$IFS; IFS='-'
3708set x $ac_cv_build
3709shift
3710build_cpu=$1
3711build_vendor=$2
3712shift; shift
3713# Remember, the first character of IFS is used to create $*,
3714# except with old shells:
3715build_os=$*
3716IFS=$ac_save_IFS
3717case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003718
3719
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003720{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3721$as_echo_n "checking host system type... " >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003722if test "${ac_cv_host+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003723 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003724else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003725 if test "x$host_alias" = x; then
3726 ac_cv_host=$ac_cv_build
3727else
3728 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003729 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3730$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003731 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003732fi
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003733
3734fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003735{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3736$as_echo "$ac_cv_host" >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003737case $ac_cv_host in
3738*-*-*) ;;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003739*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3740$as_echo "$as_me: error: invalid value of canonical host" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003741 { (exit 1); exit 1; }; };;
3742esac
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003743host=$ac_cv_host
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003744ac_save_IFS=$IFS; IFS='-'
3745set x $ac_cv_host
3746shift
3747host_cpu=$1
3748host_vendor=$2
3749shift; shift
3750# Remember, the first character of IFS is used to create $*,
3751# except with old shells:
3752host_os=$*
3753IFS=$ac_save_IFS
3754case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003755
3756
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003757{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3758$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3759if test "${ac_cv_path_SED+set}" = set; then
3760 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003761else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003762 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3763 for ac_i in 1 2 3 4 5 6 7; do
3764 ac_script="$ac_script$as_nl$ac_script"
3765 done
3766 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3767 $as_unset ac_script || ac_script=
3768 if test -z "$SED"; then
3769 ac_path_SED_found=false
3770 # Loop through the user's path and test for each of PROGNAME-LIST
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772for as_dir in $PATH
3773do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_prog in sed gsed; do
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3779 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3780# Check for GNU ac_path_SED and select it if it is found.
3781 # Check for GNU $ac_path_SED
3782case `"$ac_path_SED" --version 2>&1` in
3783*GNU*)
3784 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3785*)
3786 ac_count=0
3787 $as_echo_n 0123456789 >"conftest.in"
3788 while :
3789 do
3790 cat "conftest.in" "conftest.in" >"conftest.tmp"
3791 mv "conftest.tmp" "conftest.in"
3792 cp "conftest.in" "conftest.nl"
3793 $as_echo '' >> "conftest.nl"
3794 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3796 ac_count=`expr $ac_count + 1`
3797 if test $ac_count -gt ${ac_path_SED_max-0}; then
3798 # Best one so far, save it but keep looking for a better one
3799 ac_cv_path_SED="$ac_path_SED"
3800 ac_path_SED_max=$ac_count
3801 fi
3802 # 10*(2^10) chars as input seems more than enough
3803 test $ac_count -gt 10 && break
3804 done
3805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3806esac
3807
3808 $ac_path_SED_found && break 3
3809 done
3810 done
3811done
3812IFS=$as_save_IFS
3813 if test -z "$ac_cv_path_SED"; then
3814 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3815$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3816 { (exit 1); exit 1; }; }
3817 fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003818else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003819 ac_cv_path_SED=$SED
3820fi
3821
3822fi
3823{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3824$as_echo "$ac_cv_path_SED" >&6; }
3825 SED="$ac_cv_path_SED"
3826 rm -f conftest.sed
3827
3828test -z "$SED" && SED=sed
3829Xsed="$SED -e 1s/^X//"
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3842$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3843if test "${ac_cv_path_GREP+set}" = set; then
3844 $as_echo_n "(cached) " >&6
3845else
3846 if test -z "$GREP"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003847 ac_path_GREP_found=false
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003848 # Loop through the user's path and test for each of PROGNAME-LIST
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003850for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3851do
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
3854 for ac_prog in grep ggrep; do
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3857 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3858# Check for GNU ac_path_GREP and select it if it is found.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003859 # Check for GNU $ac_path_GREP
3860case `"$ac_path_GREP" --version 2>&1` in
3861*GNU*)
3862 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3863*)
3864 ac_count=0
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003865 $as_echo_n 0123456789 >"conftest.in"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003866 while :
3867 do
3868 cat "conftest.in" "conftest.in" >"conftest.tmp"
3869 mv "conftest.tmp" "conftest.in"
3870 cp "conftest.in" "conftest.nl"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003871 $as_echo 'GREP' >> "conftest.nl"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003872 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3873 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3874 ac_count=`expr $ac_count + 1`
3875 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3876 # Best one so far, save it but keep looking for a better one
3877 ac_cv_path_GREP="$ac_path_GREP"
3878 ac_path_GREP_max=$ac_count
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003879 fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003880 # 10*(2^10) chars as input seems more than enough
3881 test $ac_count -gt 10 && break
3882 done
3883 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3884esac
3885
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003886 $ac_path_GREP_found && break 3
3887 done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003888 done
3889done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003890IFS=$as_save_IFS
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003891 if test -z "$ac_cv_path_GREP"; then
3892 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3893$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003894 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003895 fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003896else
3897 ac_cv_path_GREP=$GREP
3898fi
3899
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003900fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003901{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3902$as_echo "$ac_cv_path_GREP" >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003903 GREP="$ac_cv_path_GREP"
3904
3905
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003906{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3907$as_echo_n "checking for egrep... " >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003908if test "${ac_cv_path_EGREP+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003909 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003910else
3911 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3912 then ac_cv_path_EGREP="$GREP -E"
3913 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003914 if test -z "$EGREP"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003915 ac_path_EGREP_found=false
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003916 # Loop through the user's path and test for each of PROGNAME-LIST
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003918for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3919do
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
3922 for ac_prog in egrep; do
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3925 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3926# Check for GNU ac_path_EGREP and select it if it is found.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003927 # Check for GNU $ac_path_EGREP
3928case `"$ac_path_EGREP" --version 2>&1` in
3929*GNU*)
3930 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3931*)
3932 ac_count=0
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003933 $as_echo_n 0123456789 >"conftest.in"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003934 while :
3935 do
3936 cat "conftest.in" "conftest.in" >"conftest.tmp"
3937 mv "conftest.tmp" "conftest.in"
3938 cp "conftest.in" "conftest.nl"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003939 $as_echo 'EGREP' >> "conftest.nl"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003940 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3941 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3942 ac_count=`expr $ac_count + 1`
3943 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3944 # Best one so far, save it but keep looking for a better one
3945 ac_cv_path_EGREP="$ac_path_EGREP"
3946 ac_path_EGREP_max=$ac_count
3947 fi
3948 # 10*(2^10) chars as input seems more than enough
3949 test $ac_count -gt 10 && break
3950 done
3951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3952esac
3953
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003954 $ac_path_EGREP_found && break 3
3955 done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003956 done
3957done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003958IFS=$as_save_IFS
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003959 if test -z "$ac_cv_path_EGREP"; then
3960 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3961$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003962 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003963 fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003964else
3965 ac_cv_path_EGREP=$EGREP
3966fi
3967
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003968 fi
3969fi
3970{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3971$as_echo "$ac_cv_path_EGREP" >&6; }
3972 EGREP="$ac_cv_path_EGREP"
3973
3974
3975{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3976$as_echo_n "checking for fgrep... " >&6; }
3977if test "${ac_cv_path_FGREP+set}" = set; then
3978 $as_echo_n "(cached) " >&6
3979else
3980 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3981 then ac_cv_path_FGREP="$GREP -F"
3982 else
3983 if test -z "$FGREP"; then
3984 ac_path_FGREP_found=false
3985 # Loop through the user's path and test for each of PROGNAME-LIST
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3988do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_prog in fgrep; do
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3994 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3995# Check for GNU ac_path_FGREP and select it if it is found.
3996 # Check for GNU $ac_path_FGREP
3997case `"$ac_path_FGREP" --version 2>&1` in
3998*GNU*)
3999 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4000*)
4001 ac_count=0
4002 $as_echo_n 0123456789 >"conftest.in"
4003 while :
4004 do
4005 cat "conftest.in" "conftest.in" >"conftest.tmp"
4006 mv "conftest.tmp" "conftest.in"
4007 cp "conftest.in" "conftest.nl"
4008 $as_echo 'FGREP' >> "conftest.nl"
4009 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4011 ac_count=`expr $ac_count + 1`
4012 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4013 # Best one so far, save it but keep looking for a better one
4014 ac_cv_path_FGREP="$ac_path_FGREP"
4015 ac_path_FGREP_max=$ac_count
4016 fi
4017 # 10*(2^10) chars as input seems more than enough
4018 test $ac_count -gt 10 && break
4019 done
4020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4021esac
4022
4023 $ac_path_FGREP_found && break 3
4024 done
4025 done
4026done
4027IFS=$as_save_IFS
4028 if test -z "$ac_cv_path_FGREP"; then
4029 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4030$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4031 { (exit 1); exit 1; }; }
4032 fi
4033else
4034 ac_cv_path_FGREP=$FGREP
4035fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004036
4037 fi
4038fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004039{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4040$as_echo "$ac_cv_path_FGREP" >&6; }
4041 FGREP="$ac_cv_path_FGREP"
4042
4043
4044test -z "$GREP" && GREP=grep
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004061
4062
4063
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004064# Check whether --with-gnu-ld was given.
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004065if test "${with_gnu_ld+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004066 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004067else
4068 with_gnu_ld=no
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004069fi
4070
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004071ac_prog=ld
4072if test "$GCC" = yes; then
4073 # Check if gcc -print-prog-name=ld gives a path.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004074 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4075$as_echo_n "checking for ld used by $CC... " >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004076 case $host in
4077 *-*-mingw*)
4078 # gcc leaves a trailing carriage return which upsets mingw
4079 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4080 *)
4081 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4082 esac
4083 case $ac_prog in
4084 # Accept absolute paths.
4085 [\\/]* | ?:[\\/]*)
4086 re_direlt='/[^/][^/]*/\.\./'
4087 # Canonicalize the pathname of ld
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004088 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4089 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4090 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004091 done
4092 test -z "$LD" && LD="$ac_prog"
4093 ;;
4094 "")
4095 # If it fails, then pretend we aren't using GCC.
4096 ac_prog=ld
4097 ;;
4098 *)
4099 # If it is relative, then search for the first ld in PATH.
4100 with_gnu_ld=unknown
4101 ;;
4102 esac
4103elif test "$with_gnu_ld" = yes; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004104 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4105$as_echo_n "checking for GNU ld... " >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004106else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004107 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4108$as_echo_n "checking for non-GNU ld... " >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004109fi
4110if test "${lt_cv_path_LD+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004111 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004112else
4113 if test -z "$LD"; then
4114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4115 for ac_dir in $PATH; do
4116 IFS="$lt_save_ifs"
4117 test -z "$ac_dir" && ac_dir=.
4118 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4119 lt_cv_path_LD="$ac_dir/$ac_prog"
4120 # Check to see if the program is GNU ld. I'd rather use --version,
4121 # but apparently some variants of GNU ld only accept -v.
4122 # Break only if it was the GNU/non-GNU ld that we prefer.
4123 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4124 *GNU* | *'with BFD'*)
4125 test "$with_gnu_ld" != no && break
4126 ;;
4127 *)
4128 test "$with_gnu_ld" != yes && break
4129 ;;
4130 esac
4131 fi
4132 done
4133 IFS="$lt_save_ifs"
4134else
4135 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4136fi
4137fi
4138
4139LD="$lt_cv_path_LD"
4140if test -n "$LD"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004141 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4142$as_echo "$LD" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004143else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004144 { $as_echo "$as_me:$LINENO: result: no" >&5
4145$as_echo "no" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004146fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004147test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4148$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004149 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004150{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4151$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004152if test "${lt_cv_prog_gnu_ld+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004153 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004154else
4155 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4156case `$LD -v 2>&1 </dev/null` in
4157*GNU* | *'with BFD'*)
4158 lt_cv_prog_gnu_ld=yes
4159 ;;
4160*)
4161 lt_cv_prog_gnu_ld=no
4162 ;;
4163esac
4164fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004165{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4166$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004167with_gnu_ld=$lt_cv_prog_gnu_ld
4168
4169
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004170
4171
4172
4173
4174
4175
4176
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004177ac_ext=c
4178ac_cpp='$CPP $CPPFLAGS'
4179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181ac_compiler_gnu=$ac_cv_c_compiler_gnu
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004182{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4183$as_echo_n "checking how to run the C preprocessor... " >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004184# On Suns, sometimes $CPP names a directory.
4185if test -n "$CPP" && test -d "$CPP"; then
4186 CPP=
4187fi
4188if test -z "$CPP"; then
4189 if test "${ac_cv_prog_CPP+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004190 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004191else
4192 # Double quotes because CPP needs to be expanded
4193 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4194 do
4195 ac_preproc_ok=false
4196for ac_c_preproc_warn_flag in '' yes
4197do
4198 # Use a header file that comes with gcc, so configuring glibc
4199 # with a fresh cross-compiler works.
4200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4201 # <limits.h> exists even on freestanding compilers.
4202 # On the NeXT, cc -E runs the code through the compiler's parser,
4203 # not just through cpp. "Syntax error" is here to catch this case.
4204 cat >conftest.$ac_ext <<_ACEOF
4205/* confdefs.h. */
4206_ACEOF
4207cat confdefs.h >>conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
4209/* end confdefs.h. */
4210#ifdef __STDC__
4211# include <limits.h>
4212#else
4213# include <assert.h>
4214#endif
4215 Syntax error
4216_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004217if { (ac_try="$ac_cpp conftest.$ac_ext"
4218case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4223$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004225 ac_status=$?
4226 grep -v '^ *+' conftest.er1 >conftest.err
4227 rm -f conftest.er1
4228 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05004230 (exit $ac_status); } >/dev/null && {
4231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4232 test ! -s conftest.err
4233 }; then
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004234 :
4235else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004236 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004237sed 's/^/| /' conftest.$ac_ext >&5
4238
4239 # Broken: fails on valid input.
4240continue
4241fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004242
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004243rm -f conftest.err conftest.$ac_ext
4244
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004245 # OK, works on sane cases. Now check whether nonexistent headers
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004246 # can be detected and how.
4247 cat >conftest.$ac_ext <<_ACEOF
4248/* confdefs.h. */
4249_ACEOF
4250cat confdefs.h >>conftest.$ac_ext
4251cat >>conftest.$ac_ext <<_ACEOF
4252/* end confdefs.h. */
4253#include <ac_nonexistent.h>
4254_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004255if { (ac_try="$ac_cpp conftest.$ac_ext"
4256case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4261$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004263 ac_status=$?
4264 grep -v '^ *+' conftest.er1 >conftest.err
4265 rm -f conftest.er1
4266 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05004268 (exit $ac_status); } >/dev/null && {
4269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4270 test ! -s conftest.err
4271 }; then
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004272 # Broken: success on invalid input.
4273continue
4274else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004275 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004276sed 's/^/| /' conftest.$ac_ext >&5
4277
4278 # Passes both tests.
4279ac_preproc_ok=:
4280break
4281fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004282
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004283rm -f conftest.err conftest.$ac_ext
4284
4285done
4286# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4287rm -f conftest.err conftest.$ac_ext
4288if $ac_preproc_ok; then
4289 break
4290fi
4291
4292 done
4293 ac_cv_prog_CPP=$CPP
4294
4295fi
4296 CPP=$ac_cv_prog_CPP
4297else
4298 ac_cv_prog_CPP=$CPP
4299fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004300{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4301$as_echo "$CPP" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004302ac_preproc_ok=false
4303for ac_c_preproc_warn_flag in '' yes
4304do
4305 # Use a header file that comes with gcc, so configuring glibc
4306 # with a fresh cross-compiler works.
4307 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4308 # <limits.h> exists even on freestanding compilers.
4309 # On the NeXT, cc -E runs the code through the compiler's parser,
4310 # not just through cpp. "Syntax error" is here to catch this case.
4311 cat >conftest.$ac_ext <<_ACEOF
4312/* confdefs.h. */
4313_ACEOF
4314cat confdefs.h >>conftest.$ac_ext
4315cat >>conftest.$ac_ext <<_ACEOF
4316/* end confdefs.h. */
4317#ifdef __STDC__
4318# include <limits.h>
4319#else
4320# include <assert.h>
4321#endif
4322 Syntax error
4323_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004324if { (ac_try="$ac_cpp conftest.$ac_ext"
4325case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4330$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004332 ac_status=$?
4333 grep -v '^ *+' conftest.er1 >conftest.err
4334 rm -f conftest.er1
4335 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05004337 (exit $ac_status); } >/dev/null && {
4338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4339 test ! -s conftest.err
4340 }; then
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004341 :
4342else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004343 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004344sed 's/^/| /' conftest.$ac_ext >&5
4345
4346 # Broken: fails on valid input.
4347continue
4348fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004349
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004350rm -f conftest.err conftest.$ac_ext
4351
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004352 # OK, works on sane cases. Now check whether nonexistent headers
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004353 # can be detected and how.
4354 cat >conftest.$ac_ext <<_ACEOF
4355/* confdefs.h. */
4356_ACEOF
4357cat confdefs.h >>conftest.$ac_ext
4358cat >>conftest.$ac_ext <<_ACEOF
4359/* end confdefs.h. */
4360#include <ac_nonexistent.h>
4361_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004362if { (ac_try="$ac_cpp conftest.$ac_ext"
4363case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4366esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4368$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004370 ac_status=$?
4371 grep -v '^ *+' conftest.er1 >conftest.err
4372 rm -f conftest.er1
4373 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05004375 (exit $ac_status); } >/dev/null && {
4376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4377 test ! -s conftest.err
4378 }; then
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004379 # Broken: success on invalid input.
4380continue
4381else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004382 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004383sed 's/^/| /' conftest.$ac_ext >&5
4384
4385 # Passes both tests.
4386ac_preproc_ok=:
4387break
4388fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004389
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004390rm -f conftest.err conftest.$ac_ext
4391
4392done
4393# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4394rm -f conftest.err conftest.$ac_ext
4395if $ac_preproc_ok; then
4396 :
4397else
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05004398 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4400{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004401See \`config.log' for more details." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004402$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004403See \`config.log' for more details." >&2;}
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05004404 { (exit 1); exit 1; }; }; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004405fi
4406
4407ac_ext=c
4408ac_cpp='$CPP $CPPFLAGS'
4409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411ac_compiler_gnu=$ac_cv_c_compiler_gnu
4412
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004413if test -n "$ac_tool_prefix"; then
4414 # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
4415set dummy ${ac_tool_prefix}sed; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004416{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4417$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004418if test "${ac_cv_prog_SED+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004419 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004420else
4421 if test -n "$SED"; then
4422 ac_cv_prog_SED="$SED" # Let the user override the test.
4423else
4424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425for as_dir in $PATH
4426do
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05004430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004431 ac_cv_prog_SED="${ac_tool_prefix}sed"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004433 break 2
4434 fi
4435done
4436done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004437IFS=$as_save_IFS
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004438
4439fi
4440fi
4441SED=$ac_cv_prog_SED
4442if test -n "$SED"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004443 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4444$as_echo "$SED" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004445else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004446 { $as_echo "$as_me:$LINENO: result: no" >&5
4447$as_echo "no" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004448fi
4449
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004450
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004451fi
4452if test -z "$ac_cv_prog_SED"; then
4453 ac_ct_SED=$SED
4454 # Extract the first word of "sed", so it can be a program name with args.
4455set dummy sed; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004456{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4457$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004458if test "${ac_cv_prog_ac_ct_SED+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004459 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004460else
4461 if test -n "$ac_ct_SED"; then
4462 ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
4463else
4464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465for as_dir in $PATH
4466do
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05004470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004471 ac_cv_prog_ac_ct_SED="sed"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004473 break 2
4474 fi
4475done
4476done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004477IFS=$as_save_IFS
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004478
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004479fi
4480fi
4481ac_ct_SED=$ac_cv_prog_ac_ct_SED
4482if test -n "$ac_ct_SED"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004483 { $as_echo "$as_me:$LINENO: result: $ac_ct_SED" >&5
4484$as_echo "$ac_ct_SED" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004485else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004486 { $as_echo "$as_me:$LINENO: result: no" >&5
4487$as_echo "no" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004488fi
4489
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004490 if test "x$ac_ct_SED" = x; then
4491 SED=":"
4492 else
4493 case $cross_compiling:$ac_tool_warned in
4494yes:)
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05004495{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004497ac_tool_warned=yes ;;
4498esac
4499 SED=$ac_ct_SED
4500 fi
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004501else
4502 SED="$ac_cv_prog_SED"
4503fi
4504
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004505enable_win32_dll=yes
4506
4507case $host in
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05004508*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004509 if test -n "$ac_tool_prefix"; then
4510 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4511set dummy ${ac_tool_prefix}as; ac_word=$2
4512{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4513$as_echo_n "checking for $ac_word... " >&6; }
4514if test "${ac_cv_prog_AS+set}" = set; then
4515 $as_echo_n "(cached) " >&6
4516else
4517 if test -n "$AS"; then
4518 ac_cv_prog_AS="$AS" # Let the user override the test.
4519else
4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4527 ac_cv_prog_AS="${ac_tool_prefix}as"
4528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4530 fi
4531done
4532done
4533IFS=$as_save_IFS
4534
4535fi
4536fi
4537AS=$ac_cv_prog_AS
4538if test -n "$AS"; then
4539 { $as_echo "$as_me:$LINENO: result: $AS" >&5
4540$as_echo "$AS" >&6; }
4541else
4542 { $as_echo "$as_me:$LINENO: result: no" >&5
4543$as_echo "no" >&6; }
4544fi
4545
4546
4547fi
4548if test -z "$ac_cv_prog_AS"; then
4549 ac_ct_AS=$AS
4550 # Extract the first word of "as", so it can be a program name with args.
4551set dummy as; ac_word=$2
4552{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4553$as_echo_n "checking for $ac_word... " >&6; }
4554if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4555 $as_echo_n "(cached) " >&6
4556else
4557 if test -n "$ac_ct_AS"; then
4558 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 ac_cv_prog_ac_ct_AS="as"
4568 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 break 2
4570 fi
4571done
4572done
4573IFS=$as_save_IFS
4574
4575fi
4576fi
4577ac_ct_AS=$ac_cv_prog_ac_ct_AS
4578if test -n "$ac_ct_AS"; then
4579 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4580$as_echo "$ac_ct_AS" >&6; }
4581else
4582 { $as_echo "$as_me:$LINENO: result: no" >&5
4583$as_echo "no" >&6; }
4584fi
4585
4586 if test "x$ac_ct_AS" = x; then
4587 AS="false"
4588 else
4589 case $cross_compiling:$ac_tool_warned in
4590yes:)
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05004591{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004593ac_tool_warned=yes ;;
4594esac
4595 AS=$ac_ct_AS
4596 fi
4597else
4598 AS="$ac_cv_prog_AS"
4599fi
4600
4601 if test -n "$ac_tool_prefix"; then
4602 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4603set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4604{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4605$as_echo_n "checking for $ac_word... " >&6; }
4606if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4607 $as_echo_n "(cached) " >&6
4608else
4609 if test -n "$DLLTOOL"; then
4610 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4611else
4612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613for as_dir in $PATH
4614do
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4620 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4622 fi
4623done
4624done
4625IFS=$as_save_IFS
4626
4627fi
4628fi
4629DLLTOOL=$ac_cv_prog_DLLTOOL
4630if test -n "$DLLTOOL"; then
4631 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4632$as_echo "$DLLTOOL" >&6; }
4633else
4634 { $as_echo "$as_me:$LINENO: result: no" >&5
4635$as_echo "no" >&6; }
4636fi
4637
4638
4639fi
4640if test -z "$ac_cv_prog_DLLTOOL"; then
4641 ac_ct_DLLTOOL=$DLLTOOL
4642 # Extract the first word of "dlltool", so it can be a program name with args.
4643set dummy dlltool; ac_word=$2
4644{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4645$as_echo_n "checking for $ac_word... " >&6; }
4646if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4647 $as_echo_n "(cached) " >&6
4648else
4649 if test -n "$ac_ct_DLLTOOL"; then
4650 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4651else
4652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653for as_dir in $PATH
4654do
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4660 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4662 fi
4663done
4664done
4665IFS=$as_save_IFS
4666
4667fi
4668fi
4669ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4670if test -n "$ac_ct_DLLTOOL"; then
4671 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4672$as_echo "$ac_ct_DLLTOOL" >&6; }
4673else
4674 { $as_echo "$as_me:$LINENO: result: no" >&5
4675$as_echo "no" >&6; }
4676fi
4677
4678 if test "x$ac_ct_DLLTOOL" = x; then
4679 DLLTOOL="false"
4680 else
4681 case $cross_compiling:$ac_tool_warned in
4682yes:)
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05004683{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004685ac_tool_warned=yes ;;
4686esac
4687 DLLTOOL=$ac_ct_DLLTOOL
4688 fi
4689else
4690 DLLTOOL="$ac_cv_prog_DLLTOOL"
4691fi
4692
4693 if test -n "$ac_tool_prefix"; then
4694 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4695set dummy ${ac_tool_prefix}objdump; ac_word=$2
4696{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4697$as_echo_n "checking for $ac_word... " >&6; }
4698if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4699 $as_echo_n "(cached) " >&6
4700else
4701 if test -n "$OBJDUMP"; then
4702 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4703else
4704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705for as_dir in $PATH
4706do
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4714 fi
4715done
4716done
4717IFS=$as_save_IFS
4718
4719fi
4720fi
4721OBJDUMP=$ac_cv_prog_OBJDUMP
4722if test -n "$OBJDUMP"; then
4723 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4724$as_echo "$OBJDUMP" >&6; }
4725else
4726 { $as_echo "$as_me:$LINENO: result: no" >&5
4727$as_echo "no" >&6; }
4728fi
4729
4730
4731fi
4732if test -z "$ac_cv_prog_OBJDUMP"; then
4733 ac_ct_OBJDUMP=$OBJDUMP
4734 # Extract the first word of "objdump", so it can be a program name with args.
4735set dummy objdump; ac_word=$2
4736{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4737$as_echo_n "checking for $ac_word... " >&6; }
4738if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4739 $as_echo_n "(cached) " >&6
4740else
4741 if test -n "$ac_ct_OBJDUMP"; then
4742 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4743else
4744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745for as_dir in $PATH
4746do
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4752 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4754 fi
4755done
4756done
4757IFS=$as_save_IFS
4758
4759fi
4760fi
4761ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4762if test -n "$ac_ct_OBJDUMP"; then
4763 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4764$as_echo "$ac_ct_OBJDUMP" >&6; }
4765else
4766 { $as_echo "$as_me:$LINENO: result: no" >&5
4767$as_echo "no" >&6; }
4768fi
4769
4770 if test "x$ac_ct_OBJDUMP" = x; then
4771 OBJDUMP="false"
4772 else
4773 case $cross_compiling:$ac_tool_warned in
4774yes:)
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05004775{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004777ac_tool_warned=yes ;;
4778esac
4779 OBJDUMP=$ac_ct_OBJDUMP
4780 fi
4781else
4782 OBJDUMP="$ac_cv_prog_OBJDUMP"
4783fi
4784
4785 ;;
4786esac
4787
4788test -z "$AS" && AS=as
4789
4790
4791
4792
4793
4794test -z "$DLLTOOL" && DLLTOOL=dlltool
4795
4796
4797
4798
4799
4800test -z "$OBJDUMP" && OBJDUMP=objdump
4801
4802
4803
4804
4805
4806
4807
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004808# Find a good install program. We prefer a C program (faster),
4809# so one script is as good as another. But avoid the broken or
4810# incompatible versions:
4811# SysV /etc/install, /usr/sbin/install
4812# SunOS /usr/etc/install
4813# IRIX /sbin/install
4814# AIX /bin/install
4815# AmigaOS /C/install, which installs bootblocks on floppy discs
4816# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4817# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4818# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4819# OS/2's system install, which has a completely different semantic
4820# ./install, which can be erroneously created by make from ./install.sh.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004821# Reject install programs that cannot install multiple files.
4822{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4823$as_echo_n "checking for a BSD-compatible install... " >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004824if test -z "$INSTALL"; then
4825if test "${ac_cv_path_install+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004826 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004827else
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829for as_dir in $PATH
4830do
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 # Account for people who put trailing slashes in PATH elements.
4834case $as_dir/ in
4835 ./ | .// | /cC/* | \
4836 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4837 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4838 /usr/ucb/* ) ;;
4839 *)
4840 # OSF1 and SCO ODT 3.0 have their own names for install.
4841 # Don't use installbsd from OSF since it installs stuff as root
4842 # by default.
4843 for ac_prog in ginstall scoinst install; do
4844 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05004845 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004846 if test $ac_prog = install &&
4847 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4848 # AIX install. It has an incompatible calling convention.
4849 :
4850 elif test $ac_prog = install &&
4851 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4852 # program-specific install script used by HP pwplus--don't use.
4853 :
4854 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004855 rm -rf conftest.one conftest.two conftest.dir
4856 echo one > conftest.one
4857 echo two > conftest.two
4858 mkdir conftest.dir
4859 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4860 test -s conftest.one && test -s conftest.two &&
4861 test -s conftest.dir/conftest.one &&
4862 test -s conftest.dir/conftest.two
4863 then
4864 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4865 break 3
4866 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004867 fi
4868 fi
4869 done
4870 done
4871 ;;
4872esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004873
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004874done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004875IFS=$as_save_IFS
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004876
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004877rm -rf conftest.one conftest.two conftest.dir
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004878
4879fi
4880 if test "${ac_cv_path_install+set}" = set; then
4881 INSTALL=$ac_cv_path_install
4882 else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004883 # As a last resort, use the slow shell script. Don't cache a
4884 # value for INSTALL within a source directory, because that will
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004885 # break other packages using the cache if that directory is
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004886 # removed, or if the value is a relative name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004887 INSTALL=$ac_install_sh
4888 fi
4889fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004890{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4891$as_echo "$INSTALL" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004892
4893# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4894# It thinks the first close brace ends the variable substitution.
4895test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4896
4897test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4898
4899test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4900
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004901{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4902$as_echo_n "checking whether ln -s works... " >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004903LN_S=$as_ln_s
4904if test "$LN_S" = "ln -s"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004905 { $as_echo "$as_me:$LINENO: result: yes" >&5
4906$as_echo "yes" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004907else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004908 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4909$as_echo "no, using $LN_S" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004910fi
4911
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004912{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4913$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4914set x ${MAKE-make}
4915ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004916if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004917 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004918else
4919 cat >conftest.make <<\_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004920SHELL = /bin/sh
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004921all:
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004922 @echo '@@@%%%=$(MAKE)=@@@%%%'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004923_ACEOF
4924# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004925case `${MAKE-make} -f conftest.make 2>/dev/null` in
4926 *@@@%%%=?*=@@@%%%*)
4927 eval ac_cv_prog_make_${ac_make}_set=yes;;
4928 *)
4929 eval ac_cv_prog_make_${ac_make}_set=no;;
4930esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004931rm -f conftest.make
4932fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004933if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004934 { $as_echo "$as_me:$LINENO: result: yes" >&5
4935$as_echo "yes" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004936 SET_MAKE=
4937else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004938 { $as_echo "$as_me:$LINENO: result: no" >&5
4939$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004940 SET_MAKE="MAKE=${MAKE-make}"
4941fi
4942
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004943case `pwd` in
4944 *\ * | *\ *)
4945 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4946$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004947esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004948
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004949
4950
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05004951macro_version='2.2.6'
4952macro_revision='1.3012'
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966ltmain="$ac_aux_dir/ltmain.sh"
4967
4968{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4969$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004970if test "${lt_cv_path_NM+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004971 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004972else
4973 if test -n "$NM"; then
4974 # Let the user override the test.
4975 lt_cv_path_NM="$NM"
4976else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004977 lt_nm_to_check="${ac_tool_prefix}nm"
4978 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4979 lt_nm_to_check="$lt_nm_to_check nm"
4980 fi
4981 for lt_tmp_nm in $lt_nm_to_check; do
4982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4983 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4984 IFS="$lt_save_ifs"
4985 test -z "$ac_dir" && ac_dir=.
4986 tmp_nm="$ac_dir/$lt_tmp_nm"
4987 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4988 # Check to see if the nm accepts a BSD-compat flag.
4989 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4990 # nm: unknown option "B" ignored
4991 # Tru64's nm complains that /dev/null is an invalid object file
4992 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4993 */dev/null* | *'Invalid file or object type'*)
4994 lt_cv_path_NM="$tmp_nm -B"
4995 break
4996 ;;
4997 *)
4998 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4999 */dev/null*)
5000 lt_cv_path_NM="$tmp_nm -p"
5001 break
5002 ;;
5003 *)
5004 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5005 continue # so that we can try to find one that supports BSD flags
5006 ;;
5007 esac
5008 ;;
5009 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005010 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005011 done
5012 IFS="$lt_save_ifs"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005013 done
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005014 : ${lt_cv_path_NM=no}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005015fi
5016fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005017{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5018$as_echo "$lt_cv_path_NM" >&6; }
5019if test "$lt_cv_path_NM" != "no"; then
5020 NM="$lt_cv_path_NM"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005021else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005022 # Didn't find any BSD compatible name lister, look for dumpbin.
5023 if test -n "$ac_tool_prefix"; then
5024 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005025 do
5026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5027set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005028{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5029$as_echo_n "checking for $ac_word... " >&6; }
5030if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5031 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005032else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005033 if test -n "$DUMPBIN"; then
5034 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005035else
5036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037for as_dir in $PATH
5038do
5039 IFS=$as_save_IFS
5040 test -z "$as_dir" && as_dir=.
5041 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05005042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005043 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5044 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005045 break 2
5046 fi
5047done
5048done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005049IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005050
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005051fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005052fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005053DUMPBIN=$ac_cv_prog_DUMPBIN
5054if test -n "$DUMPBIN"; then
5055 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5056$as_echo "$DUMPBIN" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005057else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005058 { $as_echo "$as_me:$LINENO: result: no" >&5
5059$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005060fi
5061
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005062
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005063 test -n "$DUMPBIN" && break
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005064 done
5065fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005066if test -z "$DUMPBIN"; then
5067 ac_ct_DUMPBIN=$DUMPBIN
5068 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005069do
5070 # Extract the first word of "$ac_prog", so it can be a program name with args.
5071set dummy $ac_prog; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005072{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5073$as_echo_n "checking for $ac_word... " >&6; }
5074if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5075 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005076else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005077 if test -n "$ac_ct_DUMPBIN"; then
5078 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005079else
5080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081for as_dir in $PATH
5082do
5083 IFS=$as_save_IFS
5084 test -z "$as_dir" && as_dir=.
5085 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05005086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005087 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5088 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005089 break 2
5090 fi
5091done
5092done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005093IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005094
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005095fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005096fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005097ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5098if test -n "$ac_ct_DUMPBIN"; then
5099 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5100$as_echo "$ac_ct_DUMPBIN" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005101else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005102 { $as_echo "$as_me:$LINENO: result: no" >&5
5103$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005104fi
5105
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005106
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005107 test -n "$ac_ct_DUMPBIN" && break
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005108done
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005109
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005110 if test "x$ac_ct_DUMPBIN" = x; then
5111 DUMPBIN=":"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005112 else
5113 case $cross_compiling:$ac_tool_warned in
5114yes:)
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05005115{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005117ac_tool_warned=yes ;;
5118esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005119 DUMPBIN=$ac_ct_DUMPBIN
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005120 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005121fi
5122
5123
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005124 if test "$DUMPBIN" != ":"; then
5125 NM="$DUMPBIN"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005126 fi
5127fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005128test -z "$NM" && NM=nm
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005129
5130
5131
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005132
5133
5134
5135{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5136$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5137if test "${lt_cv_nm_interface+set}" = set; then
5138 $as_echo_n "(cached) " >&6
5139else
5140 lt_cv_nm_interface="BSD nm"
5141 echo "int some_variable = 0;" > conftest.$ac_ext
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05005142 (eval echo "\"\$as_me:5142: $ac_compile\"" >&5)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005143 (eval "$ac_compile" 2>conftest.err)
5144 cat conftest.err >&5
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05005145 (eval echo "\"\$as_me:5145: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005146 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5147 cat conftest.err >&5
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05005148 (eval echo "\"\$as_me:5148: output\"" >&5)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005149 cat conftest.out >&5
5150 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5151 lt_cv_nm_interface="MS dumpbin"
5152 fi
5153 rm -f conftest*
5154fi
5155{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5156$as_echo "$lt_cv_nm_interface" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005157
5158# find the maximum length of command line arguments
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005159{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5160$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005161if test "${lt_cv_sys_max_cmd_len+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005162 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005163else
5164 i=0
5165 teststring="ABCD"
5166
5167 case $build_os in
5168 msdosdjgpp*)
5169 # On DJGPP, this test can blow up pretty badly due to problems in libc
5170 # (any single argument exceeding 2000 bytes causes a buffer overrun
5171 # during glob expansion). Even if it were fixed, the result of this
5172 # check would be larger than it should be.
5173 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5174 ;;
5175
5176 gnu*)
5177 # Under GNU Hurd, this test is not required because there is
5178 # no limit to the length of command line arguments.
5179 # Libtool will interpret -1 as no limit whatsoever
5180 lt_cv_sys_max_cmd_len=-1;
5181 ;;
5182
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05005183 cygwin* | mingw* | cegcc*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005184 # On Win9x/ME, this test blows up -- it succeeds, but takes
5185 # about 5 minutes as the teststring grows exponentially.
5186 # Worse, since 9x/ME are not pre-emptively multitasking,
5187 # you end up with a "frozen" computer, even though with patience
5188 # the test eventually succeeds (with a max line length of 256k).
5189 # Instead, let's just punt: use the minimum linelength reported by
5190 # all of the supported platforms: 8192 (on NT/2K/XP).
5191 lt_cv_sys_max_cmd_len=8192;
5192 ;;
5193
5194 amigaos*)
5195 # On AmigaOS with pdksh, this test takes hours, literally.
5196 # So we just punt and use a minimum line length of 8192.
5197 lt_cv_sys_max_cmd_len=8192;
5198 ;;
5199
5200 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5201 # This has been around since 386BSD, at least. Likely further.
5202 if test -x /sbin/sysctl; then
5203 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5204 elif test -x /usr/sbin/sysctl; then
5205 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5206 else
5207 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5208 fi
5209 # And add a safety zone
5210 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5211 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5212 ;;
5213
5214 interix*)
5215 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5216 lt_cv_sys_max_cmd_len=196608
5217 ;;
5218
5219 osf*)
5220 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5221 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5222 # nice to cause kernel panics so lets avoid the loop below.
5223 # First set a reasonable default.
5224 lt_cv_sys_max_cmd_len=16384
5225 #
5226 if test -x /sbin/sysconfig; then
5227 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5228 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5229 esac
5230 fi
5231 ;;
5232 sco3.2v5*)
5233 lt_cv_sys_max_cmd_len=102400
5234 ;;
5235 sysv5* | sco5v6* | sysv4.2uw2*)
5236 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5237 if test -n "$kargmax"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005238 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005239 else
5240 lt_cv_sys_max_cmd_len=32768
5241 fi
5242 ;;
5243 *)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005244 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5245 if test -n "$lt_cv_sys_max_cmd_len"; then
5246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5247 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5248 else
5249 # Make teststring a little bigger before we do anything with it.
5250 # a 1K string should be a reasonable start.
5251 for i in 1 2 3 4 5 6 7 8 ; do
5252 teststring=$teststring$teststring
5253 done
5254 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5255 # If test is not a shell built-in, we'll probably end up computing a
5256 # maximum length that is only half of the actual maximum length, but
5257 # we can't tell.
5258 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5259 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5260 test $i != 17 # 1/2 MB should be enough
5261 do
5262 i=`expr $i + 1`
5263 teststring=$teststring$teststring
5264 done
5265 # Only check the string length outside the loop.
5266 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5267 teststring=
5268 # Add a significant safety factor because C++ compilers can tack on
5269 # massive amounts of additional arguments before passing them to the
5270 # linker. It appears as though 1/2 is a usable value.
5271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5272 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005273 ;;
5274 esac
5275
5276fi
5277
5278if test -n $lt_cv_sys_max_cmd_len ; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005279 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5280$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005281else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005282 { $as_echo "$as_me:$LINENO: result: none" >&5
5283$as_echo "none" >&6; }
5284fi
5285max_cmd_len=$lt_cv_sys_max_cmd_len
5286
5287
5288
5289
5290
5291
5292: ${CP="cp -f"}
5293: ${MV="mv -f"}
5294: ${RM="rm -f"}
5295
5296{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5297$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5298# Try some XSI features
5299xsi_shell=no
5300( _lt_dummy="a/b/c"
5301 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5302 = c,a/b,, \
5303 && eval 'test $(( 1 + 1 )) -eq 2 \
5304 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5305 && xsi_shell=yes
5306{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5307$as_echo "$xsi_shell" >&6; }
5308
5309
5310{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5311$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5312lt_shell_append=no
5313( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5314 >/dev/null 2>&1 \
5315 && lt_shell_append=yes
5316{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5317$as_echo "$lt_shell_append" >&6; }
5318
5319
5320if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5321 lt_unset=unset
5322else
5323 lt_unset=false
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005324fi
5325
5326
5327
5328
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005329
5330# test EBCDIC or ASCII
5331case `echo X|tr X '\101'` in
5332 A) # ASCII based system
5333 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5334 lt_SP2NL='tr \040 \012'
5335 lt_NL2SP='tr \015\012 \040\040'
5336 ;;
5337 *) # EBCDIC based system
5338 lt_SP2NL='tr \100 \n'
5339 lt_NL2SP='tr \r\n \100\100'
5340 ;;
5341esac
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5352$as_echo_n "checking for $LD option to reload object files... " >&6; }
5353if test "${lt_cv_ld_reload_flag+set}" = set; then
5354 $as_echo_n "(cached) " >&6
5355else
5356 lt_cv_ld_reload_flag='-r'
5357fi
5358{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5359$as_echo "$lt_cv_ld_reload_flag" >&6; }
5360reload_flag=$lt_cv_ld_reload_flag
5361case $reload_flag in
5362"" | " "*) ;;
5363*) reload_flag=" $reload_flag" ;;
5364esac
5365reload_cmds='$LD$reload_flag -o $output$reload_objs'
5366case $host_os in
5367 darwin*)
5368 if test "$GCC" = yes; then
5369 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5370 else
5371 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5372 fi
5373 ;;
5374esac
5375
5376
5377
5378
5379
5380
5381
5382
5383
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05005384if test -n "$ac_tool_prefix"; then
5385 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5386set dummy ${ac_tool_prefix}objdump; ac_word=$2
5387{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5388$as_echo_n "checking for $ac_word... " >&6; }
5389if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5390 $as_echo_n "(cached) " >&6
5391else
5392 if test -n "$OBJDUMP"; then
5393 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5394else
5395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396for as_dir in $PATH
5397do
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 break 2
5405 fi
5406done
5407done
5408IFS=$as_save_IFS
5409
5410fi
5411fi
5412OBJDUMP=$ac_cv_prog_OBJDUMP
5413if test -n "$OBJDUMP"; then
5414 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5415$as_echo "$OBJDUMP" >&6; }
5416else
5417 { $as_echo "$as_me:$LINENO: result: no" >&5
5418$as_echo "no" >&6; }
5419fi
5420
5421
5422fi
5423if test -z "$ac_cv_prog_OBJDUMP"; then
5424 ac_ct_OBJDUMP=$OBJDUMP
5425 # Extract the first word of "objdump", so it can be a program name with args.
5426set dummy objdump; ac_word=$2
5427{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5428$as_echo_n "checking for $ac_word... " >&6; }
5429if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5430 $as_echo_n "(cached) " >&6
5431else
5432 if test -n "$ac_ct_OBJDUMP"; then
5433 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5434else
5435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436for as_dir in $PATH
5437do
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5442 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5443 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5445 fi
5446done
5447done
5448IFS=$as_save_IFS
5449
5450fi
5451fi
5452ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5453if test -n "$ac_ct_OBJDUMP"; then
5454 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5455$as_echo "$ac_ct_OBJDUMP" >&6; }
5456else
5457 { $as_echo "$as_me:$LINENO: result: no" >&5
5458$as_echo "no" >&6; }
5459fi
5460
5461 if test "x$ac_ct_OBJDUMP" = x; then
5462 OBJDUMP="false"
5463 else
5464 case $cross_compiling:$ac_tool_warned in
5465yes:)
5466{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5468ac_tool_warned=yes ;;
5469esac
5470 OBJDUMP=$ac_ct_OBJDUMP
5471 fi
5472else
5473 OBJDUMP="$ac_cv_prog_OBJDUMP"
5474fi
5475
5476test -z "$OBJDUMP" && OBJDUMP=objdump
5477
5478
5479
5480
5481
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005482
5483{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5484$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5485if test "${lt_cv_deplibs_check_method+set}" = set; then
5486 $as_echo_n "(cached) " >&6
5487else
5488 lt_cv_file_magic_cmd='$MAGIC_CMD'
5489lt_cv_file_magic_test_file=
5490lt_cv_deplibs_check_method='unknown'
5491# Need to set the preceding variable on all platforms that support
5492# interlibrary dependencies.
5493# 'none' -- dependencies not supported.
5494# `unknown' -- same as none, but documents that we really don't know.
5495# 'pass_all' -- all dependencies passed with no checks.
5496# 'test_compile' -- check by making test program.
5497# 'file_magic [[regex]]' -- check by looking for files in library path
5498# which responds to the $file_magic_cmd with a given extended regex.
5499# If you have `file' or equivalent on your system and you're not sure
5500# whether `pass_all' will *always* work, you probably want this one.
5501
5502case $host_os in
5503aix[4-9]*)
5504 lt_cv_deplibs_check_method=pass_all
5505 ;;
5506
5507beos*)
5508 lt_cv_deplibs_check_method=pass_all
5509 ;;
5510
5511bsdi[45]*)
5512 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5513 lt_cv_file_magic_cmd='/usr/bin/file -L'
5514 lt_cv_file_magic_test_file=/shlib/libc.so
5515 ;;
5516
5517cygwin*)
5518 # func_win32_libid is a shell function defined in ltmain.sh
5519 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5520 lt_cv_file_magic_cmd='func_win32_libid'
5521 ;;
5522
5523mingw* | pw32*)
5524 # Base MSYS/MinGW do not provide the 'file' command needed by
5525 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5526 # unless we find 'file', for example because we are cross-compiling.
5527 if ( file / ) >/dev/null 2>&1; then
5528 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5529 lt_cv_file_magic_cmd='func_win32_libid'
5530 else
5531 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5532 lt_cv_file_magic_cmd='$OBJDUMP -f'
5533 fi
5534 ;;
5535
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05005536cegcc)
5537 # use the weaker test based on 'objdump'. See mingw*.
5538 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5539 lt_cv_file_magic_cmd='$OBJDUMP -f'
5540 ;;
5541
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005542darwin* | rhapsody*)
5543 lt_cv_deplibs_check_method=pass_all
5544 ;;
5545
5546freebsd* | dragonfly*)
5547 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5548 case $host_cpu in
5549 i*86 )
5550 # Not sure whether the presence of OpenBSD here was a mistake.
5551 # Let's accept both of them until this is cleared up.
5552 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5553 lt_cv_file_magic_cmd=/usr/bin/file
5554 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5555 ;;
5556 esac
5557 else
5558 lt_cv_deplibs_check_method=pass_all
5559 fi
5560 ;;
5561
5562gnu*)
5563 lt_cv_deplibs_check_method=pass_all
5564 ;;
5565
5566hpux10.20* | hpux11*)
5567 lt_cv_file_magic_cmd=/usr/bin/file
5568 case $host_cpu in
5569 ia64*)
5570 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5571 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5572 ;;
5573 hppa*64*)
5574 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5575 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5576 ;;
5577 *)
5578 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5579 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5580 ;;
5581 esac
5582 ;;
5583
5584interix[3-9]*)
5585 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5586 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5587 ;;
5588
5589irix5* | irix6* | nonstopux*)
5590 case $LD in
5591 *-32|*"-32 ") libmagic=32-bit;;
5592 *-n32|*"-n32 ") libmagic=N32;;
5593 *-64|*"-64 ") libmagic=64-bit;;
5594 *) libmagic=never-match;;
5595 esac
5596 lt_cv_deplibs_check_method=pass_all
5597 ;;
5598
5599# This must be Linux ELF.
5600linux* | k*bsd*-gnu)
5601 lt_cv_deplibs_check_method=pass_all
5602 ;;
5603
5604netbsd*)
5605 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5607 else
5608 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5609 fi
5610 ;;
5611
5612newos6*)
5613 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5614 lt_cv_file_magic_cmd=/usr/bin/file
5615 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5616 ;;
5617
5618*nto* | *qnx*)
5619 lt_cv_deplibs_check_method=pass_all
5620 ;;
5621
5622openbsd*)
5623 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5625 else
5626 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5627 fi
5628 ;;
5629
5630osf3* | osf4* | osf5*)
5631 lt_cv_deplibs_check_method=pass_all
5632 ;;
5633
5634rdos*)
5635 lt_cv_deplibs_check_method=pass_all
5636 ;;
5637
5638solaris*)
5639 lt_cv_deplibs_check_method=pass_all
5640 ;;
5641
5642sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5643 lt_cv_deplibs_check_method=pass_all
5644 ;;
5645
5646sysv4 | sysv4.3*)
5647 case $host_vendor in
5648 motorola)
5649 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]'
5650 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5651 ;;
5652 ncr)
5653 lt_cv_deplibs_check_method=pass_all
5654 ;;
5655 sequent)
5656 lt_cv_file_magic_cmd='/bin/file'
5657 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5658 ;;
5659 sni)
5660 lt_cv_file_magic_cmd='/bin/file'
5661 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5662 lt_cv_file_magic_test_file=/lib/libc.so
5663 ;;
5664 siemens)
5665 lt_cv_deplibs_check_method=pass_all
5666 ;;
5667 pc)
5668 lt_cv_deplibs_check_method=pass_all
5669 ;;
5670 esac
5671 ;;
5672
5673tpf*)
5674 lt_cv_deplibs_check_method=pass_all
5675 ;;
5676esac
5677
5678fi
5679{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5680$as_echo "$lt_cv_deplibs_check_method" >&6; }
5681file_magic_cmd=$lt_cv_file_magic_cmd
5682deplibs_check_method=$lt_cv_deplibs_check_method
5683test -z "$deplibs_check_method" && deplibs_check_method=unknown
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696if test -n "$ac_tool_prefix"; then
5697 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5698set dummy ${ac_tool_prefix}ar; ac_word=$2
5699{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5700$as_echo_n "checking for $ac_word... " >&6; }
5701if test "${ac_cv_prog_AR+set}" = set; then
5702 $as_echo_n "(cached) " >&6
5703else
5704 if test -n "$AR"; then
5705 ac_cv_prog_AR="$AR" # Let the user override the test.
5706else
5707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708for as_dir in $PATH
5709do
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5714 ac_cv_prog_AR="${ac_tool_prefix}ar"
5715 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 break 2
5717 fi
5718done
5719done
5720IFS=$as_save_IFS
5721
5722fi
5723fi
5724AR=$ac_cv_prog_AR
5725if test -n "$AR"; then
5726 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5727$as_echo "$AR" >&6; }
5728else
5729 { $as_echo "$as_me:$LINENO: result: no" >&5
5730$as_echo "no" >&6; }
5731fi
5732
5733
5734fi
5735if test -z "$ac_cv_prog_AR"; then
5736 ac_ct_AR=$AR
5737 # Extract the first word of "ar", so it can be a program name with args.
5738set dummy ar; ac_word=$2
5739{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5740$as_echo_n "checking for $ac_word... " >&6; }
5741if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5742 $as_echo_n "(cached) " >&6
5743else
5744 if test -n "$ac_ct_AR"; then
5745 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5746else
5747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748for as_dir in $PATH
5749do
5750 IFS=$as_save_IFS
5751 test -z "$as_dir" && as_dir=.
5752 for ac_exec_ext in '' $ac_executable_extensions; do
5753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5754 ac_cv_prog_ac_ct_AR="ar"
5755 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5756 break 2
5757 fi
5758done
5759done
5760IFS=$as_save_IFS
5761
5762fi
5763fi
5764ac_ct_AR=$ac_cv_prog_ac_ct_AR
5765if test -n "$ac_ct_AR"; then
5766 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5767$as_echo "$ac_ct_AR" >&6; }
5768else
5769 { $as_echo "$as_me:$LINENO: result: no" >&5
5770$as_echo "no" >&6; }
5771fi
5772
5773 if test "x$ac_ct_AR" = x; then
5774 AR="false"
5775 else
5776 case $cross_compiling:$ac_tool_warned in
5777yes:)
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05005778{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005780ac_tool_warned=yes ;;
5781esac
5782 AR=$ac_ct_AR
5783 fi
5784else
5785 AR="$ac_cv_prog_AR"
5786fi
5787
5788test -z "$AR" && AR=ar
5789test -z "$AR_FLAGS" && AR_FLAGS=cru
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801if test -n "$ac_tool_prefix"; then
5802 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5803set dummy ${ac_tool_prefix}strip; ac_word=$2
5804{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5805$as_echo_n "checking for $ac_word... " >&6; }
5806if test "${ac_cv_prog_STRIP+set}" = set; then
5807 $as_echo_n "(cached) " >&6
5808else
5809 if test -n "$STRIP"; then
5810 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5811else
5812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813for as_dir in $PATH
5814do
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5819 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5820 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5822 fi
5823done
5824done
5825IFS=$as_save_IFS
5826
5827fi
5828fi
5829STRIP=$ac_cv_prog_STRIP
5830if test -n "$STRIP"; then
5831 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5832$as_echo "$STRIP" >&6; }
5833else
5834 { $as_echo "$as_me:$LINENO: result: no" >&5
5835$as_echo "no" >&6; }
5836fi
5837
5838
5839fi
5840if test -z "$ac_cv_prog_STRIP"; then
5841 ac_ct_STRIP=$STRIP
5842 # Extract the first word of "strip", so it can be a program name with args.
5843set dummy strip; ac_word=$2
5844{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5845$as_echo_n "checking for $ac_word... " >&6; }
5846if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5847 $as_echo_n "(cached) " >&6
5848else
5849 if test -n "$ac_ct_STRIP"; then
5850 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5851else
5852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853for as_dir in $PATH
5854do
5855 IFS=$as_save_IFS
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5859 ac_cv_prog_ac_ct_STRIP="strip"
5860 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 break 2
5862 fi
5863done
5864done
5865IFS=$as_save_IFS
5866
5867fi
5868fi
5869ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5870if test -n "$ac_ct_STRIP"; then
5871 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5872$as_echo "$ac_ct_STRIP" >&6; }
5873else
5874 { $as_echo "$as_me:$LINENO: result: no" >&5
5875$as_echo "no" >&6; }
5876fi
5877
5878 if test "x$ac_ct_STRIP" = x; then
5879 STRIP=":"
5880 else
5881 case $cross_compiling:$ac_tool_warned in
5882yes:)
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05005883{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005885ac_tool_warned=yes ;;
5886esac
5887 STRIP=$ac_ct_STRIP
5888 fi
5889else
5890 STRIP="$ac_cv_prog_STRIP"
5891fi
5892
5893test -z "$STRIP" && STRIP=:
5894
5895
5896
5897
5898
5899
5900if test -n "$ac_tool_prefix"; then
5901 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5902set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5903{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5904$as_echo_n "checking for $ac_word... " >&6; }
5905if test "${ac_cv_prog_RANLIB+set}" = set; then
5906 $as_echo_n "(cached) " >&6
5907else
5908 if test -n "$RANLIB"; then
5909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5910else
5911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912for as_dir in $PATH
5913do
5914 IFS=$as_save_IFS
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5919 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 break 2
5921 fi
5922done
5923done
5924IFS=$as_save_IFS
5925
5926fi
5927fi
5928RANLIB=$ac_cv_prog_RANLIB
5929if test -n "$RANLIB"; then
5930 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5931$as_echo "$RANLIB" >&6; }
5932else
5933 { $as_echo "$as_me:$LINENO: result: no" >&5
5934$as_echo "no" >&6; }
5935fi
5936
5937
5938fi
5939if test -z "$ac_cv_prog_RANLIB"; then
5940 ac_ct_RANLIB=$RANLIB
5941 # Extract the first word of "ranlib", so it can be a program name with args.
5942set dummy ranlib; ac_word=$2
5943{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5944$as_echo_n "checking for $ac_word... " >&6; }
5945if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5946 $as_echo_n "(cached) " >&6
5947else
5948 if test -n "$ac_ct_RANLIB"; then
5949 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5950else
5951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952for as_dir in $PATH
5953do
5954 IFS=$as_save_IFS
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958 ac_cv_prog_ac_ct_RANLIB="ranlib"
5959 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 break 2
5961 fi
5962done
5963done
5964IFS=$as_save_IFS
5965
5966fi
5967fi
5968ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5969if test -n "$ac_ct_RANLIB"; then
5970 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5971$as_echo "$ac_ct_RANLIB" >&6; }
5972else
5973 { $as_echo "$as_me:$LINENO: result: no" >&5
5974$as_echo "no" >&6; }
5975fi
5976
5977 if test "x$ac_ct_RANLIB" = x; then
5978 RANLIB=":"
5979 else
5980 case $cross_compiling:$ac_tool_warned in
5981yes:)
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05005982{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005984ac_tool_warned=yes ;;
5985esac
5986 RANLIB=$ac_ct_RANLIB
5987 fi
5988else
5989 RANLIB="$ac_cv_prog_RANLIB"
5990fi
5991
5992test -z "$RANLIB" && RANLIB=:
5993
5994
5995
5996
5997
5998
5999# Determine commands to create old-style static archives.
6000old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6001old_postinstall_cmds='chmod 644 $oldlib'
6002old_postuninstall_cmds=
6003
6004if test -n "$RANLIB"; then
6005 case $host_os in
6006 openbsd*)
6007 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6008 ;;
6009 *)
6010 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6011 ;;
6012 esac
6013 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6014fi
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049# If no C compiler was specified, use CC.
6050LTCC=${LTCC-"$CC"}
6051
6052# If no C compiler flags were specified, use CFLAGS.
6053LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6054
6055# Allow CC to be a program name with arguments.
6056compiler=$CC
6057
6058
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006059# Check for command to grab the raw symbol name followed by C symbol from nm.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006060{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6061$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006062if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006063 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006064else
6065
6066# These are sane defaults that work on at least a few old systems.
6067# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6068
6069# Character class describing NM global symbol codes.
6070symcode='[BCDEGRST]'
6071
6072# Regexp to match symbols that can be accessed directly from C.
6073sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6074
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006075# Define system-specific variables.
6076case $host_os in
6077aix*)
6078 symcode='[BCDT]'
6079 ;;
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05006080cygwin* | mingw* | pw32* | cegcc*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006081 symcode='[ABCDGISTW]'
6082 ;;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006083hpux*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006084 if test "$host_cpu" = ia64; then
6085 symcode='[ABCDEGRST]'
6086 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006087 ;;
6088irix* | nonstopux*)
6089 symcode='[BCDEGRST]'
6090 ;;
6091osf*)
6092 symcode='[BCDEGQRST]'
6093 ;;
6094solaris*)
6095 symcode='[BDRT]'
6096 ;;
6097sco3.2v5*)
6098 symcode='[DT]'
6099 ;;
6100sysv4.2uw2*)
6101 symcode='[DT]'
6102 ;;
6103sysv5* | sco5v6* | unixware* | OpenUNIX*)
6104 symcode='[ABDT]'
6105 ;;
6106sysv4)
6107 symcode='[DFNSTU]'
6108 ;;
6109esac
6110
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006111# If we're using GNU nm, then use its standard symbol codes.
6112case `$NM -V 2>&1` in
6113*GNU* | *'with BFD'*)
6114 symcode='[ABCDGIRSTW]' ;;
6115esac
6116
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006117# Transform an extracted symbol line into a proper C declaration.
6118# Some systems (esp. on ia64) link data and code symbols differently,
6119# so use this general approach.
6120lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6121
6122# Transform an extracted symbol line into symbol name and symbol address
6123lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6124lt_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'"
6125
6126# Handle CRLF in mingw tool chain
6127opt_cr=
6128case $build_os in
6129mingw*)
6130 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6131 ;;
6132esac
6133
6134# Try without a prefix underscore, then with it.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006135for ac_symprfx in "" "_"; do
6136
6137 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6138 symxfrm="\\1 $ac_symprfx\\2 \\2"
6139
6140 # Write the raw and C identifiers.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006141 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6142 # Fake it for dumpbin and say T for any non-static function
6143 # and D for any global variable.
6144 # Also find C++ and __fastcall symbols from MSVC++,
6145 # which start with @ or ?.
6146 lt_cv_sys_global_symbol_pipe="$AWK '"\
6147" {last_section=section; section=\$ 3};"\
6148" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6149" \$ 0!~/External *\|/{next};"\
6150" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6151" {if(hide[section]) next};"\
6152" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6153" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6154" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6155" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6156" ' prfx=^$ac_symprfx"
6157 else
6158 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6159 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006160
6161 # Check to see that the pipe works correctly.
6162 pipe_works=no
6163
6164 rm -f conftest*
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006165 cat > conftest.$ac_ext <<_LT_EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006166#ifdef __cplusplus
6167extern "C" {
6168#endif
6169char nm_test_var;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006170void nm_test_func(void);
6171void nm_test_func(void){}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006172#ifdef __cplusplus
6173}
6174#endif
6175int main(){nm_test_var='a';nm_test_func();return(0);}
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006176_LT_EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006177
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179 (eval $ac_compile) 2>&5
6180 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006182 (exit $ac_status); }; then
6183 # Now try to grab the symbols.
6184 nlist=conftest.nm
6185 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6186 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6187 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006189 (exit $ac_status); } && test -s "$nlist"; then
6190 # Try sorting and uniquifying the output.
6191 if sort "$nlist" | uniq > "$nlist"T; then
6192 mv -f "$nlist"T "$nlist"
6193 else
6194 rm -f "$nlist"T
6195 fi
6196
6197 # Make sure that we snagged all the symbols we need.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006198 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6199 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6200 cat <<_LT_EOF > conftest.$ac_ext
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006201#ifdef __cplusplus
6202extern "C" {
6203#endif
6204
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006205_LT_EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006206 # Now generate the symbol file.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006207 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006208
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006209 cat <<_LT_EOF >> conftest.$ac_ext
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006210
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006211/* The mapping between symbol names and symbols. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006212const struct {
6213 const char *name;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006214 void *address;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006215}
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006216lt__PROGRAM__LTX_preloaded_symbols[] =
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006217{
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006218 { "@PROGRAM@", (void *) 0 },
6219_LT_EOF
6220 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6221 cat <<\_LT_EOF >> conftest.$ac_ext
6222 {0, (void *) 0}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006223};
6224
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006225/* This works around a problem in FreeBSD linker */
6226#ifdef FREEBSD_WORKAROUND
6227static const void *lt_preloaded_setup() {
6228 return lt__PROGRAM__LTX_preloaded_symbols;
6229}
6230#endif
6231
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006232#ifdef __cplusplus
6233}
6234#endif
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006235_LT_EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006236 # Now try linking the two files.
6237 mv conftest.$ac_objext conftstm.$ac_objext
6238 lt_save_LIBS="$LIBS"
6239 lt_save_CFLAGS="$CFLAGS"
6240 LIBS="conftstm.$ac_objext"
6241 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6243 (eval $ac_link) 2>&5
6244 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006246 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6247 pipe_works=yes
6248 fi
6249 LIBS="$lt_save_LIBS"
6250 CFLAGS="$lt_save_CFLAGS"
6251 else
6252 echo "cannot find nm_test_func in $nlist" >&5
6253 fi
6254 else
6255 echo "cannot find nm_test_var in $nlist" >&5
6256 fi
6257 else
6258 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6259 fi
6260 else
6261 echo "$progname: failed program was:" >&5
6262 cat conftest.$ac_ext >&5
6263 fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006264 rm -rf conftest* conftst*
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006265
6266 # Do not use the global_symbol_pipe unless it works.
6267 if test "$pipe_works" = yes; then
6268 break
6269 else
6270 lt_cv_sys_global_symbol_pipe=
6271 fi
6272done
6273
6274fi
6275
6276if test -z "$lt_cv_sys_global_symbol_pipe"; then
6277 lt_cv_sys_global_symbol_to_cdecl=
6278fi
6279if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006280 { $as_echo "$as_me:$LINENO: result: failed" >&5
6281$as_echo "failed" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006282else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006283 { $as_echo "$as_me:$LINENO: result: ok" >&5
6284$as_echo "ok" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006285fi
6286
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006287
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006288
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006289
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006290
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006291
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006292
6293
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006294
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006295
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006296
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006297
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006298
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006299
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006300
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006301
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006302
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006303
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006304
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006305
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006306
6307
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006308
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006309# Check whether --enable-libtool-lock was given.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006310if test "${enable_libtool_lock+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006311 enableval=$enable_libtool_lock;
6312fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006313
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006314test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006315
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006316# Some flags need to be propagated to the compiler or linker for good
6317# libtool support.
6318case $host in
6319ia64-*-hpux*)
6320 # Find out which ABI we are using.
6321 echo 'int i;' > conftest.$ac_ext
6322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006323 (eval $ac_compile) 2>&5
6324 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; then
6327 case `/usr/bin/file conftest.$ac_objext` in
6328 *ELF-32*)
6329 HPUX_IA64_MODE="32"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006330 ;;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006331 *ELF-64*)
6332 HPUX_IA64_MODE="64"
6333 ;;
6334 esac
6335 fi
6336 rm -rf conftest*
6337 ;;
6338*-*-irix6*)
6339 # Find out which ABI we are using.
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05006340 echo '#line 6340 "configure"' > conftest.$ac_ext
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342 (eval $ac_compile) 2>&5
6343 ac_status=$?
6344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; then
6346 if test "$lt_cv_prog_gnu_ld" = yes; then
6347 case `/usr/bin/file conftest.$ac_objext` in
6348 *32-bit*)
6349 LD="${LD-ld} -melf32bsmip"
6350 ;;
6351 *N32*)
6352 LD="${LD-ld} -melf32bmipn32"
6353 ;;
6354 *64-bit*)
6355 LD="${LD-ld} -melf64bmip"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006356 ;;
6357 esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006358 else
6359 case `/usr/bin/file conftest.$ac_objext` in
6360 *32-bit*)
6361 LD="${LD-ld} -32"
6362 ;;
6363 *N32*)
6364 LD="${LD-ld} -n32"
6365 ;;
6366 *64-bit*)
6367 LD="${LD-ld} -64"
6368 ;;
6369 esac
6370 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006371 fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006372 rm -rf conftest*
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006373 ;;
6374
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006375x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6376s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6377 # Find out which ABI we are using.
6378 echo 'int i;' > conftest.$ac_ext
6379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6380 (eval $ac_compile) 2>&5
6381 ac_status=$?
6382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; then
6384 case `/usr/bin/file conftest.o` in
6385 *32-bit*)
6386 case $host in
6387 x86_64-*kfreebsd*-gnu)
6388 LD="${LD-ld} -m elf_i386_fbsd"
6389 ;;
6390 x86_64-*linux*)
6391 LD="${LD-ld} -m elf_i386"
6392 ;;
6393 ppc64-*linux*|powerpc64-*linux*)
6394 LD="${LD-ld} -m elf32ppclinux"
6395 ;;
6396 s390x-*linux*)
6397 LD="${LD-ld} -m elf_s390"
6398 ;;
6399 sparc64-*linux*)
6400 LD="${LD-ld} -m elf32_sparc"
6401 ;;
6402 esac
6403 ;;
6404 *64-bit*)
6405 case $host in
6406 x86_64-*kfreebsd*-gnu)
6407 LD="${LD-ld} -m elf_x86_64_fbsd"
6408 ;;
6409 x86_64-*linux*)
6410 LD="${LD-ld} -m elf_x86_64"
6411 ;;
6412 ppc*-*linux*|powerpc*-*linux*)
6413 LD="${LD-ld} -m elf64ppc"
6414 ;;
6415 s390*-*linux*|s390*-*tpf*)
6416 LD="${LD-ld} -m elf64_s390"
6417 ;;
6418 sparc*-*linux*)
6419 LD="${LD-ld} -m elf64_sparc"
6420 ;;
6421 esac
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006422 ;;
6423 esac
6424 fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006425 rm -rf conftest*
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006426 ;;
6427
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006428*-*-sco3.2v5*)
6429 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6430 SAVE_CFLAGS="$CFLAGS"
6431 CFLAGS="$CFLAGS -belf"
6432 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6433$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6434if test "${lt_cv_cc_needs_belf+set}" = set; then
6435 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006436else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006437 ac_ext=c
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006438ac_cpp='$CPP $CPPFLAGS'
6439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6441ac_compiler_gnu=$ac_cv_c_compiler_gnu
6442
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006443 cat >conftest.$ac_ext <<_ACEOF
6444/* confdefs.h. */
6445_ACEOF
6446cat confdefs.h >>conftest.$ac_ext
6447cat >>conftest.$ac_ext <<_ACEOF
6448/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006449
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006450int
6451main ()
6452{
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006453
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006454 ;
6455 return 0;
6456}
6457_ACEOF
6458rm -f conftest.$ac_objext conftest$ac_exeext
6459if { (ac_try="$ac_link"
6460case "(($ac_try" in
6461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462 *) ac_try_echo=$ac_try;;
6463esac
6464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6465$as_echo "$ac_try_echo") >&5
6466 (eval "$ac_link") 2>conftest.er1
6467 ac_status=$?
6468 grep -v '^ *+' conftest.er1 >conftest.err
6469 rm -f conftest.er1
6470 cat conftest.err >&5
6471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } && {
6473 test -z "$ac_c_werror_flag" ||
6474 test ! -s conftest.err
6475 } && test -s conftest$ac_exeext && {
6476 test "$cross_compiling" = yes ||
6477 $as_test_x conftest$ac_exeext
6478 }; then
6479 lt_cv_cc_needs_belf=yes
6480else
6481 $as_echo "$as_me: failed program was:" >&5
6482sed 's/^/| /' conftest.$ac_ext >&5
6483
6484 lt_cv_cc_needs_belf=no
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006485fi
6486
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006487rm -rf conftest.dSYM
6488rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6489 conftest$ac_exeext conftest.$ac_ext
6490 ac_ext=c
6491ac_cpp='$CPP $CPPFLAGS'
6492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6494ac_compiler_gnu=$ac_cv_c_compiler_gnu
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006495
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006496fi
6497{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6498$as_echo "$lt_cv_cc_needs_belf" >&6; }
6499 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6500 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6501 CFLAGS="$SAVE_CFLAGS"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006502 fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006503 ;;
6504sparc*-*solaris*)
6505 # Find out which ABI we are using.
6506 echo 'int i;' > conftest.$ac_ext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6508 (eval $ac_compile) 2>&5
6509 ac_status=$?
6510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; then
6512 case `/usr/bin/file conftest.o` in
6513 *64-bit*)
6514 case $lt_cv_prog_gnu_ld in
6515 yes*) LD="${LD-ld} -m elf64_sparc" ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006516 *)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006517 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6518 LD="${LD-ld} -64"
6519 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006520 ;;
6521 esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006522 ;;
6523 esac
6524 fi
6525 rm -rf conftest*
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006526 ;;
6527esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006528
6529need_locks="$enable_libtool_lock"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006530
6531
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006532 case $host_os in
6533 rhapsody* | darwin*)
6534 if test -n "$ac_tool_prefix"; then
6535 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6536set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6537{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6538$as_echo_n "checking for $ac_word... " >&6; }
6539if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6540 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006541else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006542 if test -n "$DSYMUTIL"; then
6543 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6544else
6545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546for as_dir in $PATH
6547do
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6553 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 break 2
6555 fi
6556done
6557done
6558IFS=$as_save_IFS
6559
6560fi
6561fi
6562DSYMUTIL=$ac_cv_prog_DSYMUTIL
6563if test -n "$DSYMUTIL"; then
6564 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6565$as_echo "$DSYMUTIL" >&6; }
6566else
6567 { $as_echo "$as_me:$LINENO: result: no" >&5
6568$as_echo "no" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006569fi
6570
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006571
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006572fi
6573if test -z "$ac_cv_prog_DSYMUTIL"; then
6574 ac_ct_DSYMUTIL=$DSYMUTIL
6575 # Extract the first word of "dsymutil", so it can be a program name with args.
6576set dummy dsymutil; ac_word=$2
6577{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6578$as_echo_n "checking for $ac_word... " >&6; }
6579if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6580 $as_echo_n "(cached) " >&6
6581else
6582 if test -n "$ac_ct_DSYMUTIL"; then
6583 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6584else
6585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586for as_dir in $PATH
6587do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6593 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6595 fi
6596done
6597done
6598IFS=$as_save_IFS
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006599
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006600fi
6601fi
6602ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6603if test -n "$ac_ct_DSYMUTIL"; then
6604 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6605$as_echo "$ac_ct_DSYMUTIL" >&6; }
6606else
6607 { $as_echo "$as_me:$LINENO: result: no" >&5
6608$as_echo "no" >&6; }
6609fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006610
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006611 if test "x$ac_ct_DSYMUTIL" = x; then
6612 DSYMUTIL=":"
6613 else
6614 case $cross_compiling:$ac_tool_warned in
6615yes:)
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05006616{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006618ac_tool_warned=yes ;;
6619esac
6620 DSYMUTIL=$ac_ct_DSYMUTIL
6621 fi
6622else
6623 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6624fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006625
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006626 if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6628set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6629{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6630$as_echo_n "checking for $ac_word... " >&6; }
6631if test "${ac_cv_prog_NMEDIT+set}" = set; then
6632 $as_echo_n "(cached) " >&6
6633else
6634 if test -n "$NMEDIT"; then
6635 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6636else
6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638for as_dir in $PATH
6639do
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6645 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6647 fi
6648done
6649done
6650IFS=$as_save_IFS
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006651
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006652fi
6653fi
6654NMEDIT=$ac_cv_prog_NMEDIT
6655if test -n "$NMEDIT"; then
6656 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6657$as_echo "$NMEDIT" >&6; }
6658else
6659 { $as_echo "$as_me:$LINENO: result: no" >&5
6660$as_echo "no" >&6; }
6661fi
6662
6663
6664fi
6665if test -z "$ac_cv_prog_NMEDIT"; then
6666 ac_ct_NMEDIT=$NMEDIT
6667 # Extract the first word of "nmedit", so it can be a program name with args.
6668set dummy nmedit; ac_word=$2
6669{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6670$as_echo_n "checking for $ac_word... " >&6; }
6671if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6672 $as_echo_n "(cached) " >&6
6673else
6674 if test -n "$ac_ct_NMEDIT"; then
6675 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6676else
6677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
6679do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6685 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688done
6689done
6690IFS=$as_save_IFS
6691
6692fi
6693fi
6694ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6695if test -n "$ac_ct_NMEDIT"; then
6696 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6697$as_echo "$ac_ct_NMEDIT" >&6; }
6698else
6699 { $as_echo "$as_me:$LINENO: result: no" >&5
6700$as_echo "no" >&6; }
6701fi
6702
6703 if test "x$ac_ct_NMEDIT" = x; then
6704 NMEDIT=":"
6705 else
6706 case $cross_compiling:$ac_tool_warned in
6707yes:)
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05006708{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006710ac_tool_warned=yes ;;
6711esac
6712 NMEDIT=$ac_ct_NMEDIT
6713 fi
6714else
6715 NMEDIT="$ac_cv_prog_NMEDIT"
6716fi
6717
6718 if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6720set dummy ${ac_tool_prefix}lipo; ac_word=$2
6721{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6722$as_echo_n "checking for $ac_word... " >&6; }
6723if test "${ac_cv_prog_LIPO+set}" = set; then
6724 $as_echo_n "(cached) " >&6
6725else
6726 if test -n "$LIPO"; then
6727 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6728else
6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730for as_dir in $PATH
6731do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6737 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740done
6741done
6742IFS=$as_save_IFS
6743
6744fi
6745fi
6746LIPO=$ac_cv_prog_LIPO
6747if test -n "$LIPO"; then
6748 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6749$as_echo "$LIPO" >&6; }
6750else
6751 { $as_echo "$as_me:$LINENO: result: no" >&5
6752$as_echo "no" >&6; }
6753fi
6754
6755
6756fi
6757if test -z "$ac_cv_prog_LIPO"; then
6758 ac_ct_LIPO=$LIPO
6759 # Extract the first word of "lipo", so it can be a program name with args.
6760set dummy lipo; ac_word=$2
6761{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6762$as_echo_n "checking for $ac_word... " >&6; }
6763if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6764 $as_echo_n "(cached) " >&6
6765else
6766 if test -n "$ac_ct_LIPO"; then
6767 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6768else
6769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_prog_ac_ct_LIPO="lipo"
6777 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780done
6781done
6782IFS=$as_save_IFS
6783
6784fi
6785fi
6786ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6787if test -n "$ac_ct_LIPO"; then
6788 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6789$as_echo "$ac_ct_LIPO" >&6; }
6790else
6791 { $as_echo "$as_me:$LINENO: result: no" >&5
6792$as_echo "no" >&6; }
6793fi
6794
6795 if test "x$ac_ct_LIPO" = x; then
6796 LIPO=":"
6797 else
6798 case $cross_compiling:$ac_tool_warned in
6799yes:)
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05006800{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006802ac_tool_warned=yes ;;
6803esac
6804 LIPO=$ac_ct_LIPO
6805 fi
6806else
6807 LIPO="$ac_cv_prog_LIPO"
6808fi
6809
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05006810 if test -n "$ac_tool_prefix"; then
6811 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6812set dummy ${ac_tool_prefix}otool; ac_word=$2
6813{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6814$as_echo_n "checking for $ac_word... " >&6; }
6815if test "${ac_cv_prog_OTOOL+set}" = set; then
6816 $as_echo_n "(cached) " >&6
6817else
6818 if test -n "$OTOOL"; then
6819 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6820else
6821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822for as_dir in $PATH
6823do
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6828 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6829 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 break 2
6831 fi
6832done
6833done
6834IFS=$as_save_IFS
6835
6836fi
6837fi
6838OTOOL=$ac_cv_prog_OTOOL
6839if test -n "$OTOOL"; then
6840 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6841$as_echo "$OTOOL" >&6; }
6842else
6843 { $as_echo "$as_me:$LINENO: result: no" >&5
6844$as_echo "no" >&6; }
6845fi
6846
6847
6848fi
6849if test -z "$ac_cv_prog_OTOOL"; then
6850 ac_ct_OTOOL=$OTOOL
6851 # Extract the first word of "otool", so it can be a program name with args.
6852set dummy otool; ac_word=$2
6853{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6854$as_echo_n "checking for $ac_word... " >&6; }
6855if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6856 $as_echo_n "(cached) " >&6
6857else
6858 if test -n "$ac_ct_OTOOL"; then
6859 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6860else
6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6868 ac_cv_prog_ac_ct_OTOOL="otool"
6869 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872done
6873done
6874IFS=$as_save_IFS
6875
6876fi
6877fi
6878ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6879if test -n "$ac_ct_OTOOL"; then
6880 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6881$as_echo "$ac_ct_OTOOL" >&6; }
6882else
6883 { $as_echo "$as_me:$LINENO: result: no" >&5
6884$as_echo "no" >&6; }
6885fi
6886
6887 if test "x$ac_ct_OTOOL" = x; then
6888 OTOOL=":"
6889 else
6890 case $cross_compiling:$ac_tool_warned in
6891yes:)
6892{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894ac_tool_warned=yes ;;
6895esac
6896 OTOOL=$ac_ct_OTOOL
6897 fi
6898else
6899 OTOOL="$ac_cv_prog_OTOOL"
6900fi
6901
6902 if test -n "$ac_tool_prefix"; then
6903 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6904set dummy ${ac_tool_prefix}otool64; ac_word=$2
6905{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6906$as_echo_n "checking for $ac_word... " >&6; }
6907if test "${ac_cv_prog_OTOOL64+set}" = set; then
6908 $as_echo_n "(cached) " >&6
6909else
6910 if test -n "$OTOOL64"; then
6911 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6912else
6913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914for as_dir in $PATH
6915do
6916 IFS=$as_save_IFS
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6920 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6921 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 break 2
6923 fi
6924done
6925done
6926IFS=$as_save_IFS
6927
6928fi
6929fi
6930OTOOL64=$ac_cv_prog_OTOOL64
6931if test -n "$OTOOL64"; then
6932 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6933$as_echo "$OTOOL64" >&6; }
6934else
6935 { $as_echo "$as_me:$LINENO: result: no" >&5
6936$as_echo "no" >&6; }
6937fi
6938
6939
6940fi
6941if test -z "$ac_cv_prog_OTOOL64"; then
6942 ac_ct_OTOOL64=$OTOOL64
6943 # Extract the first word of "otool64", so it can be a program name with args.
6944set dummy otool64; ac_word=$2
6945{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6946$as_echo_n "checking for $ac_word... " >&6; }
6947if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6948 $as_echo_n "(cached) " >&6
6949else
6950 if test -n "$ac_ct_OTOOL64"; then
6951 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6952else
6953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954for as_dir in $PATH
6955do
6956 IFS=$as_save_IFS
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6960 ac_cv_prog_ac_ct_OTOOL64="otool64"
6961 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 break 2
6963 fi
6964done
6965done
6966IFS=$as_save_IFS
6967
6968fi
6969fi
6970ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6971if test -n "$ac_ct_OTOOL64"; then
6972 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6973$as_echo "$ac_ct_OTOOL64" >&6; }
6974else
6975 { $as_echo "$as_me:$LINENO: result: no" >&5
6976$as_echo "no" >&6; }
6977fi
6978
6979 if test "x$ac_ct_OTOOL64" = x; then
6980 OTOOL64=":"
6981 else
6982 case $cross_compiling:$ac_tool_warned in
6983yes:)
6984{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6986ac_tool_warned=yes ;;
6987esac
6988 OTOOL64=$ac_ct_OTOOL64
6989 fi
6990else
6991 OTOOL64="$ac_cv_prog_OTOOL64"
6992fi
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7021$as_echo_n "checking for -single_module linker flag... " >&6; }
7022if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7023 $as_echo_n "(cached) " >&6
7024else
7025 lt_cv_apple_cc_single_mod=no
7026 if test -z "${LT_MULTI_MODULE}"; then
7027 # By default we will add the -single_module flag. You can override
7028 # by either setting the environment variable LT_MULTI_MODULE
7029 # non-empty at configure time, or by adding -multi_module to the
7030 # link flags.
7031 rm -rf libconftest.dylib*
7032 echo "int foo(void){return 1;}" > conftest.c
7033 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7034-dynamiclib -Wl,-single_module conftest.c" >&5
7035 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7036 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7037 _lt_result=$?
7038 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7039 lt_cv_apple_cc_single_mod=yes
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007040 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007041 cat conftest.err >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007042 fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007043 rm -rf libconftest.dylib*
7044 rm -f conftest.*
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007045 fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007046fi
7047{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7048$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7049 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7050$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7051if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7052 $as_echo_n "(cached) " >&6
7053else
7054 lt_cv_ld_exported_symbols_list=no
7055 save_LDFLAGS=$LDFLAGS
7056 echo "_main" > conftest.sym
7057 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007058 cat >conftest.$ac_ext <<_ACEOF
7059/* confdefs.h. */
7060_ACEOF
7061cat confdefs.h >>conftest.$ac_ext
7062cat >>conftest.$ac_ext <<_ACEOF
7063/* end confdefs.h. */
7064
7065int
7066main ()
7067{
7068
7069 ;
7070 return 0;
7071}
7072_ACEOF
7073rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007074if { (ac_try="$ac_link"
7075case "(($ac_try" in
7076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7077 *) ac_try_echo=$ac_try;;
7078esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7080$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007081 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007082 ac_status=$?
7083 grep -v '^ *+' conftest.er1 >conftest.err
7084 rm -f conftest.er1
7085 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05007087 (exit $ac_status); } && {
7088 test -z "$ac_c_werror_flag" ||
7089 test ! -s conftest.err
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007090 } && test -s conftest$ac_exeext && {
7091 test "$cross_compiling" = yes ||
7092 $as_test_x conftest$ac_exeext
7093 }; then
7094 lt_cv_ld_exported_symbols_list=yes
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007095else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007096 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007097sed 's/^/| /' conftest.$ac_ext >&5
7098
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007099 lt_cv_ld_exported_symbols_list=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007100fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007101
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007102rm -rf conftest.dSYM
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05007103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007104 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007105 LDFLAGS="$save_LDFLAGS"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007106
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007107fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007108{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7109$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7110 case $host_os in
7111 rhapsody* | darwin1.[012])
7112 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7113 darwin1.*)
7114 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7115 darwin*) # darwin 5.x on
7116 # if running on 10.5 or later, the deployment target defaults
7117 # to the OS version, if on x86, and 10.4, the deployment
7118 # target defaults to 10.4. Don't you love it?
7119 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7120 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7121 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7122 10.[012]*)
7123 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7124 10.*)
7125 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007126 esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007127 ;;
7128 esac
7129 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7130 _lt_dar_single_mod='$single_module'
7131 fi
7132 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7133 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007134 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007135 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007136 fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007137 if test "$DSYMUTIL" != ":"; then
7138 _lt_dsymutil='~$DSYMUTIL $lib || :'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007139 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007140 _lt_dsymutil=
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007141 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007142 ;;
7143 esac
7144
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007145
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007146{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7147$as_echo_n "checking for ANSI C header files... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007148if test "${ac_cv_header_stdc+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007149 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007150else
7151 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007152/* confdefs.h. */
7153_ACEOF
7154cat confdefs.h >>conftest.$ac_ext
7155cat >>conftest.$ac_ext <<_ACEOF
7156/* end confdefs.h. */
7157#include <stdlib.h>
7158#include <stdarg.h>
7159#include <string.h>
7160#include <float.h>
7161
7162int
7163main ()
7164{
7165
7166 ;
7167 return 0;
7168}
7169_ACEOF
7170rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007171if { (ac_try="$ac_compile"
7172case "(($ac_try" in
7173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7174 *) ac_try_echo=$ac_try;;
7175esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7177$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007178 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007179 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007180 grep -v '^ *+' conftest.er1 >conftest.err
7181 rm -f conftest.er1
7182 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05007184 (exit $ac_status); } && {
7185 test -z "$ac_c_werror_flag" ||
7186 test ! -s conftest.err
7187 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007188 ac_cv_header_stdc=yes
7189else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007190 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007191sed 's/^/| /' conftest.$ac_ext >&5
7192
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007193 ac_cv_header_stdc=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007194fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007195
7196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007197
7198if test $ac_cv_header_stdc = yes; then
7199 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7200 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007201/* confdefs.h. */
7202_ACEOF
7203cat confdefs.h >>conftest.$ac_ext
7204cat >>conftest.$ac_ext <<_ACEOF
7205/* end confdefs.h. */
7206#include <string.h>
7207
7208_ACEOF
7209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7210 $EGREP "memchr" >/dev/null 2>&1; then
7211 :
7212else
7213 ac_cv_header_stdc=no
7214fi
7215rm -f conftest*
7216
7217fi
7218
7219if test $ac_cv_header_stdc = yes; then
7220 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7221 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007222/* confdefs.h. */
7223_ACEOF
7224cat confdefs.h >>conftest.$ac_ext
7225cat >>conftest.$ac_ext <<_ACEOF
7226/* end confdefs.h. */
7227#include <stdlib.h>
7228
7229_ACEOF
7230if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7231 $EGREP "free" >/dev/null 2>&1; then
7232 :
7233else
7234 ac_cv_header_stdc=no
7235fi
7236rm -f conftest*
7237
7238fi
7239
7240if test $ac_cv_header_stdc = yes; then
7241 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7242 if test "$cross_compiling" = yes; then
7243 :
7244else
7245 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007246/* confdefs.h. */
7247_ACEOF
7248cat confdefs.h >>conftest.$ac_ext
7249cat >>conftest.$ac_ext <<_ACEOF
7250/* end confdefs.h. */
7251#include <ctype.h>
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007252#include <stdlib.h>
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007253#if ((' ' & 0x0FF) == 0x020)
7254# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7255# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7256#else
7257# define ISLOWER(c) \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007258 (('a' <= (c) && (c) <= 'i') \
7259 || ('j' <= (c) && (c) <= 'r') \
7260 || ('s' <= (c) && (c) <= 'z'))
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007261# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7262#endif
7263
7264#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7265int
7266main ()
7267{
7268 int i;
7269 for (i = 0; i < 256; i++)
7270 if (XOR (islower (i), ISLOWER (i))
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007271 || toupper (i) != TOUPPER (i))
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007272 return 2;
7273 return 0;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007274}
7275_ACEOF
7276rm -f conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007277if { (ac_try="$ac_link"
7278case "(($ac_try" in
7279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280 *) ac_try_echo=$ac_try;;
7281esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7283$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007284 (eval "$ac_link") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007285 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007288 { (case "(($ac_try" in
7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7291esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7293$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007294 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007295 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007297 (exit $ac_status); }; }; then
7298 :
7299else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007300 $as_echo "$as_me: program exited with status $ac_status" >&5
7301$as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007302sed 's/^/| /' conftest.$ac_ext >&5
7303
7304( exit $ac_status )
7305ac_cv_header_stdc=no
7306fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007307rm -rf conftest.dSYM
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007308rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7309fi
7310
7311
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007312fi
7313fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007314{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7315$as_echo "$ac_cv_header_stdc" >&6; }
7316if test $ac_cv_header_stdc = yes; then
7317
7318cat >>confdefs.h <<\_ACEOF
7319#define STDC_HEADERS 1
7320_ACEOF
7321
7322fi
7323
7324# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7335 inttypes.h stdint.h unistd.h
7336do
7337as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7338{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7339$as_echo_n "checking for $ac_header... " >&6; }
7340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7341 $as_echo_n "(cached) " >&6
7342else
7343 cat >conftest.$ac_ext <<_ACEOF
7344/* confdefs.h. */
7345_ACEOF
7346cat confdefs.h >>conftest.$ac_ext
7347cat >>conftest.$ac_ext <<_ACEOF
7348/* end confdefs.h. */
7349$ac_includes_default
7350
7351#include <$ac_header>
7352_ACEOF
7353rm -f conftest.$ac_objext
7354if { (ac_try="$ac_compile"
7355case "(($ac_try" in
7356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7358esac
7359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7360$as_echo "$ac_try_echo") >&5
7361 (eval "$ac_compile") 2>conftest.er1
7362 ac_status=$?
7363 grep -v '^ *+' conftest.er1 >conftest.err
7364 rm -f conftest.er1
7365 cat conftest.err >&5
7366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } && {
7368 test -z "$ac_c_werror_flag" ||
7369 test ! -s conftest.err
7370 } && test -s conftest.$ac_objext; then
7371 eval "$as_ac_Header=yes"
7372else
7373 $as_echo "$as_me: failed program was:" >&5
7374sed 's/^/| /' conftest.$ac_ext >&5
7375
7376 eval "$as_ac_Header=no"
7377fi
7378
7379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380fi
7381ac_res=`eval 'as_val=${'$as_ac_Header'}
7382 $as_echo "$as_val"'`
7383 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7384$as_echo "$ac_res" >&6; }
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05007385as_val=`eval 'as_val=${'$as_ac_Header'}
7386 $as_echo "$as_val"'`
7387 if test "x$as_val" = x""yes; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007388 cat >>confdefs.h <<_ACEOF
7389#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7390_ACEOF
7391
7392fi
7393
7394done
7395
7396
7397
7398for ac_header in dlfcn.h
7399do
7400as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7401{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7402$as_echo_n "checking for $ac_header... " >&6; }
7403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7404 $as_echo_n "(cached) " >&6
7405else
7406 cat >conftest.$ac_ext <<_ACEOF
7407/* confdefs.h. */
7408_ACEOF
7409cat confdefs.h >>conftest.$ac_ext
7410cat >>conftest.$ac_ext <<_ACEOF
7411/* end confdefs.h. */
7412$ac_includes_default
7413
7414#include <$ac_header>
7415_ACEOF
7416rm -f conftest.$ac_objext
7417if { (ac_try="$ac_compile"
7418case "(($ac_try" in
7419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420 *) ac_try_echo=$ac_try;;
7421esac
7422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7423$as_echo "$ac_try_echo") >&5
7424 (eval "$ac_compile") 2>conftest.er1
7425 ac_status=$?
7426 grep -v '^ *+' conftest.er1 >conftest.err
7427 rm -f conftest.er1
7428 cat conftest.err >&5
7429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } && {
7431 test -z "$ac_c_werror_flag" ||
7432 test ! -s conftest.err
7433 } && test -s conftest.$ac_objext; then
7434 eval "$as_ac_Header=yes"
7435else
7436 $as_echo "$as_me: failed program was:" >&5
7437sed 's/^/| /' conftest.$ac_ext >&5
7438
7439 eval "$as_ac_Header=no"
7440fi
7441
7442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443fi
7444ac_res=`eval 'as_val=${'$as_ac_Header'}
7445 $as_echo "$as_val"'`
7446 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7447$as_echo "$ac_res" >&6; }
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05007448as_val=`eval 'as_val=${'$as_ac_Header'}
7449 $as_echo "$as_val"'`
7450 if test "x$as_val" = x""yes; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007451 cat >>confdefs.h <<_ACEOF
7452#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7453_ACEOF
7454
7455fi
7456
7457done
7458
7459
7460
7461# Set options
7462
7463
7464
7465 enable_dlopen=no
7466
7467
7468
7469 # Check whether --enable-shared was given.
7470if test "${enable_shared+set}" = set; then
7471 enableval=$enable_shared; p=${PACKAGE-default}
7472 case $enableval in
7473 yes) enable_shared=yes ;;
7474 no) enable_shared=no ;;
7475 *)
7476 enable_shared=no
7477 # Look at the argument we got. We use all the common list separators.
7478 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7479 for pkg in $enableval; do
7480 IFS="$lt_save_ifs"
7481 if test "X$pkg" = "X$p"; then
7482 enable_shared=yes
7483 fi
7484 done
7485 IFS="$lt_save_ifs"
7486 ;;
7487 esac
7488else
7489 enable_shared=yes
7490fi
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500 # Check whether --enable-static was given.
7501if test "${enable_static+set}" = set; then
7502 enableval=$enable_static; p=${PACKAGE-default}
7503 case $enableval in
7504 yes) enable_static=yes ;;
7505 no) enable_static=no ;;
7506 *)
7507 enable_static=no
7508 # Look at the argument we got. We use all the common list separators.
7509 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7510 for pkg in $enableval; do
7511 IFS="$lt_save_ifs"
7512 if test "X$pkg" = "X$p"; then
7513 enable_static=yes
7514 fi
7515 done
7516 IFS="$lt_save_ifs"
7517 ;;
7518 esac
7519else
7520 enable_static=yes
7521fi
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532# Check whether --with-pic was given.
7533if test "${with_pic+set}" = set; then
7534 withval=$with_pic; pic_mode="$withval"
7535else
7536 pic_mode=default
7537fi
7538
7539
7540test -z "$pic_mode" && pic_mode=default
7541
7542
7543
7544
7545
7546
7547
7548 # Check whether --enable-fast-install was given.
7549if test "${enable_fast_install+set}" = set; then
7550 enableval=$enable_fast_install; p=${PACKAGE-default}
7551 case $enableval in
7552 yes) enable_fast_install=yes ;;
7553 no) enable_fast_install=no ;;
7554 *)
7555 enable_fast_install=no
7556 # Look at the argument we got. We use all the common list separators.
7557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7558 for pkg in $enableval; do
7559 IFS="$lt_save_ifs"
7560 if test "X$pkg" = "X$p"; then
7561 enable_fast_install=yes
7562 fi
7563 done
7564 IFS="$lt_save_ifs"
7565 ;;
7566 esac
7567else
7568 enable_fast_install=yes
7569fi
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581# This can be used to rebuild libtool when needed
7582LIBTOOL_DEPS="$ltmain"
7583
7584# Always use our own libtool.
7585LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611test -z "$LN_S" && LN_S="ln -s"
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626if test -n "${ZSH_VERSION+set}" ; then
7627 setopt NO_GLOB_SUBST
7628fi
7629
7630{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7631$as_echo_n "checking for objdir... " >&6; }
7632if test "${lt_cv_objdir+set}" = set; then
7633 $as_echo_n "(cached) " >&6
7634else
7635 rm -f .libs 2>/dev/null
7636mkdir .libs 2>/dev/null
7637if test -d .libs; then
7638 lt_cv_objdir=.libs
7639else
7640 # MS-DOS does not allow filenames that begin with a dot.
7641 lt_cv_objdir=_libs
7642fi
7643rmdir .libs 2>/dev/null
7644fi
7645{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7646$as_echo "$lt_cv_objdir" >&6; }
7647objdir=$lt_cv_objdir
7648
7649
7650
7651
7652
7653cat >>confdefs.h <<_ACEOF
7654#define LT_OBJDIR "$lt_cv_objdir/"
7655_ACEOF
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673case $host_os in
7674aix3*)
7675 # AIX sometimes has problems with the GCC collect2 program. For some
7676 # reason, if we set the COLLECT_NAMES environment variable, the problems
7677 # vanish in a puff of smoke.
7678 if test "X${COLLECT_NAMES+set}" != Xset; then
7679 COLLECT_NAMES=
7680 export COLLECT_NAMES
7681 fi
7682 ;;
7683esac
7684
7685# Sed substitution that helps us do robust quoting. It backslashifies
7686# metacharacters that are still active within double-quoted strings.
7687sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7688
7689# Same as above, but do not quote variable references.
7690double_quote_subst='s/\(["`\\]\)/\\\1/g'
7691
7692# Sed substitution to delay expansion of an escaped shell variable in a
7693# double_quote_subst'ed string.
7694delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7695
7696# Sed substitution to delay expansion of an escaped single quote.
7697delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7698
7699# Sed substitution to avoid accidental globbing in evaled expressions
7700no_glob_subst='s/\*/\\\*/g'
7701
7702# Global variables:
7703ofile=libtool
7704can_build_shared=yes
7705
7706# All known linkers require a `.a' archive for static linking (except MSVC,
7707# which needs '.lib').
7708libext=a
7709
7710with_gnu_ld="$lt_cv_prog_gnu_ld"
7711
7712old_CC="$CC"
7713old_CFLAGS="$CFLAGS"
7714
7715# Set sane defaults for various variables
7716test -z "$CC" && CC=cc
7717test -z "$LTCC" && LTCC=$CC
7718test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7719test -z "$LD" && LD=ld
7720test -z "$ac_objext" && ac_objext=o
7721
7722for cc_temp in $compiler""; do
7723 case $cc_temp in
7724 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7725 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7726 \-*) ;;
7727 *) break;;
7728 esac
7729done
7730cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7731
7732
7733# Only perform the check for file, if the check method requires it
7734test -z "$MAGIC_CMD" && MAGIC_CMD=file
7735case $deplibs_check_method in
7736file_magic*)
7737 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7738 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7739$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7740if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7741 $as_echo_n "(cached) " >&6
7742else
7743 case $MAGIC_CMD in
7744[\\/*] | ?:[\\/]*)
7745 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7746 ;;
7747*)
7748 lt_save_MAGIC_CMD="$MAGIC_CMD"
7749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7750 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7751 for ac_dir in $ac_dummy; do
7752 IFS="$lt_save_ifs"
7753 test -z "$ac_dir" && ac_dir=.
7754 if test -f $ac_dir/${ac_tool_prefix}file; then
7755 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7756 if test -n "$file_magic_test_file"; then
7757 case $deplibs_check_method in
7758 "file_magic "*)
7759 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7760 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7761 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7762 $EGREP "$file_magic_regex" > /dev/null; then
7763 :
7764 else
7765 cat <<_LT_EOF 1>&2
7766
7767*** Warning: the command libtool uses to detect shared libraries,
7768*** $file_magic_cmd, produces output that libtool cannot recognize.
7769*** The result is that libtool may fail to recognize shared libraries
7770*** as such. This will affect the creation of libtool libraries that
7771*** depend on shared libraries, but programs linked with such libtool
7772*** libraries will work regardless of this problem. Nevertheless, you
7773*** may want to report the problem to your system manager and/or to
7774*** bug-libtool@gnu.org
7775
7776_LT_EOF
7777 fi ;;
7778 esac
7779 fi
7780 break
7781 fi
7782 done
7783 IFS="$lt_save_ifs"
7784 MAGIC_CMD="$lt_save_MAGIC_CMD"
7785 ;;
7786esac
7787fi
7788
7789MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7790if test -n "$MAGIC_CMD"; then
7791 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7792$as_echo "$MAGIC_CMD" >&6; }
7793else
7794 { $as_echo "$as_me:$LINENO: result: no" >&5
7795$as_echo "no" >&6; }
7796fi
7797
7798
7799
7800
7801
7802if test -z "$lt_cv_path_MAGIC_CMD"; then
7803 if test -n "$ac_tool_prefix"; then
7804 { $as_echo "$as_me:$LINENO: checking for file" >&5
7805$as_echo_n "checking for file... " >&6; }
7806if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7807 $as_echo_n "(cached) " >&6
7808else
7809 case $MAGIC_CMD in
7810[\\/*] | ?:[\\/]*)
7811 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7812 ;;
7813*)
7814 lt_save_MAGIC_CMD="$MAGIC_CMD"
7815 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7816 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7817 for ac_dir in $ac_dummy; do
7818 IFS="$lt_save_ifs"
7819 test -z "$ac_dir" && ac_dir=.
7820 if test -f $ac_dir/file; then
7821 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7822 if test -n "$file_magic_test_file"; then
7823 case $deplibs_check_method in
7824 "file_magic "*)
7825 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7826 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7827 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7828 $EGREP "$file_magic_regex" > /dev/null; then
7829 :
7830 else
7831 cat <<_LT_EOF 1>&2
7832
7833*** Warning: the command libtool uses to detect shared libraries,
7834*** $file_magic_cmd, produces output that libtool cannot recognize.
7835*** The result is that libtool may fail to recognize shared libraries
7836*** as such. This will affect the creation of libtool libraries that
7837*** depend on shared libraries, but programs linked with such libtool
7838*** libraries will work regardless of this problem. Nevertheless, you
7839*** may want to report the problem to your system manager and/or to
7840*** bug-libtool@gnu.org
7841
7842_LT_EOF
7843 fi ;;
7844 esac
7845 fi
7846 break
7847 fi
7848 done
7849 IFS="$lt_save_ifs"
7850 MAGIC_CMD="$lt_save_MAGIC_CMD"
7851 ;;
7852esac
7853fi
7854
7855MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7856if test -n "$MAGIC_CMD"; then
7857 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7858$as_echo "$MAGIC_CMD" >&6; }
7859else
7860 { $as_echo "$as_me:$LINENO: result: no" >&5
7861$as_echo "no" >&6; }
7862fi
7863
7864
7865 else
7866 MAGIC_CMD=:
7867 fi
7868fi
7869
7870 fi
7871 ;;
7872esac
7873
7874# Use C for the default configuration in the libtool script
7875
7876lt_save_CC="$CC"
7877ac_ext=c
7878ac_cpp='$CPP $CPPFLAGS'
7879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7881ac_compiler_gnu=$ac_cv_c_compiler_gnu
7882
7883
7884# Source file extension for C test sources.
7885ac_ext=c
7886
7887# Object file extension for compiled C test sources.
7888objext=o
7889objext=$objext
7890
7891# Code to be used in simple compile tests
7892lt_simple_compile_test_code="int some_variable = 0;"
7893
7894# Code to be used in simple link tests
7895lt_simple_link_test_code='int main(){return(0);}'
7896
7897
7898
7899
7900
7901
7902
7903# If no C compiler was specified, use CC.
7904LTCC=${LTCC-"$CC"}
7905
7906# If no C compiler flags were specified, use CFLAGS.
7907LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7908
7909# Allow CC to be a program name with arguments.
7910compiler=$CC
7911
7912# Save the default compiler, since it gets overwritten when the other
7913# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7914compiler_DEFAULT=$CC
7915
7916# save warnings/boilerplate of simple test code
7917ac_outfile=conftest.$ac_objext
7918echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7919eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7920_lt_compiler_boilerplate=`cat conftest.err`
7921$RM conftest*
7922
7923ac_outfile=conftest.$ac_objext
7924echo "$lt_simple_link_test_code" >conftest.$ac_ext
7925eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7926_lt_linker_boilerplate=`cat conftest.err`
7927$RM -r conftest*
7928
7929
7930if test -n "$compiler"; then
7931
7932lt_prog_compiler_no_builtin_flag=
7933
7934if test "$GCC" = yes; then
7935 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7936
7937 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7938$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7939if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7940 $as_echo_n "(cached) " >&6
7941else
7942 lt_cv_prog_compiler_rtti_exceptions=no
7943 ac_outfile=conftest.$ac_objext
7944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7945 lt_compiler_flag="-fno-rtti -fno-exceptions"
7946 # Insert the option either (1) after the last *FLAGS variable, or
7947 # (2) before a word containing "conftest.", or (3) at the end.
7948 # Note that $ac_compile itself does not contain backslashes and begins
7949 # with a dollar sign (not a hyphen), so the echo should work correctly.
7950 # The option is referenced via a variable to avoid confusing sed.
7951 lt_compile=`echo "$ac_compile" | $SED \
7952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7954 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05007955 (eval echo "\"\$as_me:7955: $lt_compile\"" >&5)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007956 (eval "$lt_compile" 2>conftest.err)
7957 ac_status=$?
7958 cat conftest.err >&5
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05007959 echo "$as_me:7959: \$? = $ac_status" >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007960 if (exit $ac_status) && test -s "$ac_outfile"; then
7961 # The compiler can only warn and ignore the option if not recognized
7962 # So say no if there are warnings other than the usual output.
7963 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7965 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7966 lt_cv_prog_compiler_rtti_exceptions=yes
7967 fi
7968 fi
7969 $RM conftest*
7970
7971fi
7972{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7973$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7974
7975if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7976 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7977else
7978 :
7979fi
7980
7981fi
7982
7983
7984
7985
7986
7987
7988 lt_prog_compiler_wl=
7989lt_prog_compiler_pic=
7990lt_prog_compiler_static=
7991
7992{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7993$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7994
7995 if test "$GCC" = yes; then
7996 lt_prog_compiler_wl='-Wl,'
7997 lt_prog_compiler_static='-static'
7998
7999 case $host_os in
8000 aix*)
8001 # All AIX code is PIC.
8002 if test "$host_cpu" = ia64; then
8003 # AIX 5 now supports IA64 processor
8004 lt_prog_compiler_static='-Bstatic'
8005 fi
8006 ;;
8007
8008 amigaos*)
8009 case $host_cpu in
8010 powerpc)
8011 # see comment about AmigaOS4 .so support
8012 lt_prog_compiler_pic='-fPIC'
8013 ;;
8014 m68k)
8015 # FIXME: we need at least 68020 code to build shared libraries, but
8016 # adding the `-m68020' flag to GCC prevents building anything better,
8017 # like `-m68040'.
8018 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8019 ;;
8020 esac
8021 ;;
8022
8023 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8024 # PIC is the default for these OSes.
8025 ;;
8026
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05008027 mingw* | cygwin* | pw32* | os2* | cegcc*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05008028 # This hack is so that the source file can tell whether it is being
8029 # built for inclusion in a dll (and should export symbols for example).
8030 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8031 # (--disable-auto-import) libraries
8032 lt_prog_compiler_pic='-DDLL_EXPORT'
8033 ;;
8034
8035 darwin* | rhapsody*)
8036 # PIC is the default on this platform
8037 # Common symbols not allowed in MH_DYLIB files
8038 lt_prog_compiler_pic='-fno-common'
8039 ;;
8040
8041 hpux*)
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05008042 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8043 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8044 # sets the default TLS model and affects inlining.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05008045 case $host_cpu in
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05008046 hppa*64*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05008047 # +Z the default
8048 ;;
8049 *)
8050 lt_prog_compiler_pic='-fPIC'
8051 ;;
8052 esac
8053 ;;
8054
8055 interix[3-9]*)
8056 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8057 # Instead, we relocate shared libraries at runtime.
8058 ;;
8059
8060 msdosdjgpp*)
8061 # Just because we use GCC doesn't mean we suddenly get shared libraries
8062 # on systems that don't support them.
8063 lt_prog_compiler_can_build_shared=no
8064 enable_shared=no
8065 ;;
8066
8067 *nto* | *qnx*)
8068 # QNX uses GNU C++, but need to define -shared option too, otherwise
8069 # it will coredump.
8070 lt_prog_compiler_pic='-fPIC -shared'
8071 ;;
8072
8073 sysv4*MP*)
8074 if test -d /usr/nec; then
8075 lt_prog_compiler_pic=-Kconform_pic
8076 fi
8077 ;;
8078
8079 *)
8080 lt_prog_compiler_pic='-fPIC'
8081 ;;
8082 esac
8083 else
8084 # PORTME Check for flag to pass linker flags through the system compiler.
8085 case $host_os in
8086 aix*)
8087 lt_prog_compiler_wl='-Wl,'
8088 if test "$host_cpu" = ia64; then
8089 # AIX 5 now supports IA64 processor
8090 lt_prog_compiler_static='-Bstatic'
8091 else
8092 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8093 fi
8094 ;;
8095
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05008096 mingw* | cygwin* | pw32* | os2* | cegcc*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05008097 # This hack is so that the source file can tell whether it is being
8098 # built for inclusion in a dll (and should export symbols for example).
8099 lt_prog_compiler_pic='-DDLL_EXPORT'
8100 ;;
8101
8102 hpux9* | hpux10* | hpux11*)
8103 lt_prog_compiler_wl='-Wl,'
8104 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8105 # not for PA HP-UX.
8106 case $host_cpu in
8107 hppa*64*|ia64*)
8108 # +Z the default
8109 ;;
8110 *)
8111 lt_prog_compiler_pic='+Z'
8112 ;;
8113 esac
8114 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8115 lt_prog_compiler_static='${wl}-a ${wl}archive'
8116 ;;
8117
8118 irix5* | irix6* | nonstopux*)
8119 lt_prog_compiler_wl='-Wl,'
8120 # PIC (with -KPIC) is the default.
8121 lt_prog_compiler_static='-non_shared'
8122 ;;
8123
8124 linux* | k*bsd*-gnu)
8125 case $cc_basename in
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05008126 # old Intel for x86_64 which still supported -KPIC.
8127 ecc*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05008128 lt_prog_compiler_wl='-Wl,'
8129 lt_prog_compiler_pic='-KPIC'
8130 lt_prog_compiler_static='-static'
8131 ;;
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05008132 # icc used to be incompatible with GCC.
8133 # ICC 10 doesn't accept -KPIC any more.
8134 icc* | ifort*)
8135 lt_prog_compiler_wl='-Wl,'
8136 lt_prog_compiler_pic='-fPIC'
8137 lt_prog_compiler_static='-static'
8138 ;;
8139 # Lahey Fortran 8.1.
8140 lf95*)
8141 lt_prog_compiler_wl='-Wl,'
8142 lt_prog_compiler_pic='--shared'
8143 lt_prog_compiler_static='--static'
8144 ;;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05008145 pgcc* | pgf77* | pgf90* | pgf95*)
8146 # Portland Group compilers (*not* the Pentium gcc compiler,
8147 # which looks to be a dead project)
8148 lt_prog_compiler_wl='-Wl,'
8149 lt_prog_compiler_pic='-fpic'
8150 lt_prog_compiler_static='-Bstatic'
8151 ;;
8152 ccc*)
8153 lt_prog_compiler_wl='-Wl,'
8154 # All Alpha code is PIC.
8155 lt_prog_compiler_static='-non_shared'
8156 ;;
8157 xl*)
8158 # IBM XL C 8.0/Fortran 10.1 on PPC
8159 lt_prog_compiler_wl='-Wl,'
8160 lt_prog_compiler_pic='-qpic'
8161 lt_prog_compiler_static='-qstaticlink'
8162 ;;
8163 *)
8164 case `$CC -V 2>&1 | sed 5q` in
8165 *Sun\ C*)
8166 # Sun C 5.9
8167 lt_prog_compiler_pic='-KPIC'
8168 lt_prog_compiler_static='-Bstatic'
8169 lt_prog_compiler_wl='-Wl,'
8170 ;;
8171 *Sun\ F*)
8172 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8173 lt_prog_compiler_pic='-KPIC'
8174 lt_prog_compiler_static='-Bstatic'
8175 lt_prog_compiler_wl=''
8176 ;;
8177 esac
8178 ;;
8179 esac
8180 ;;
8181
8182 newsos6)
8183 lt_prog_compiler_pic='-KPIC'
8184 lt_prog_compiler_static='-Bstatic'
8185 ;;
8186
8187 *nto* | *qnx*)
8188 # QNX uses GNU C++, but need to define -shared option too, otherwise
8189 # it will coredump.
8190 lt_prog_compiler_pic='-fPIC -shared'
8191 ;;
8192
8193 osf3* | osf4* | osf5*)
8194 lt_prog_compiler_wl='-Wl,'
8195 # All OSF/1 code is PIC.
8196 lt_prog_compiler_static='-non_shared'
8197 ;;
8198
8199 rdos*)
8200 lt_prog_compiler_static='-non_shared'
8201 ;;
8202
8203 solaris*)
8204 lt_prog_compiler_pic='-KPIC'
8205 lt_prog_compiler_static='-Bstatic'
8206 case $cc_basename in
8207 f77* | f90* | f95*)
8208 lt_prog_compiler_wl='-Qoption ld ';;
8209 *)
8210 lt_prog_compiler_wl='-Wl,';;
8211 esac
8212 ;;
8213
8214 sunos4*)
8215 lt_prog_compiler_wl='-Qoption ld '
8216 lt_prog_compiler_pic='-PIC'
8217 lt_prog_compiler_static='-Bstatic'
8218 ;;
8219
8220 sysv4 | sysv4.2uw2* | sysv4.3*)
8221 lt_prog_compiler_wl='-Wl,'
8222 lt_prog_compiler_pic='-KPIC'
8223 lt_prog_compiler_static='-Bstatic'
8224 ;;
8225
8226 sysv4*MP*)
8227 if test -d /usr/nec ;then
8228 lt_prog_compiler_pic='-Kconform_pic'
8229 lt_prog_compiler_static='-Bstatic'
8230 fi
8231 ;;
8232
8233 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8234 lt_prog_compiler_wl='-Wl,'
8235 lt_prog_compiler_pic='-KPIC'
8236 lt_prog_compiler_static='-Bstatic'
8237 ;;
8238
8239 unicos*)
8240 lt_prog_compiler_wl='-Wl,'
8241 lt_prog_compiler_can_build_shared=no
8242 ;;
8243
8244 uts4*)
8245 lt_prog_compiler_pic='-pic'
8246 lt_prog_compiler_static='-Bstatic'
8247 ;;
8248
8249 *)
8250 lt_prog_compiler_can_build_shared=no
8251 ;;
8252 esac
8253 fi
8254
8255case $host_os in
8256 # For platforms which do not support PIC, -DPIC is meaningless:
8257 *djgpp*)
8258 lt_prog_compiler_pic=
8259 ;;
8260 *)
8261 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8262 ;;
8263esac
8264{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8265$as_echo "$lt_prog_compiler_pic" >&6; }
8266
8267
8268
8269
8270
8271
8272#
8273# Check to make sure the PIC flag actually works.
8274#
8275if test -n "$lt_prog_compiler_pic"; then
8276 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8277$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8278if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8279 $as_echo_n "(cached) " >&6
8280else
8281 lt_cv_prog_compiler_pic_works=no
8282 ac_outfile=conftest.$ac_objext
8283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8284 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8285 # Insert the option either (1) after the last *FLAGS variable, or
8286 # (2) before a word containing "conftest.", or (3) at the end.
8287 # Note that $ac_compile itself does not contain backslashes and begins
8288 # with a dollar sign (not a hyphen), so the echo should work correctly.
8289 # The option is referenced via a variable to avoid confusing sed.
8290 lt_compile=`echo "$ac_compile" | $SED \
8291 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8293 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05008294 (eval echo "\"\$as_me:8294: $lt_compile\"" >&5)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05008295 (eval "$lt_compile" 2>conftest.err)
8296 ac_status=$?
8297 cat conftest.err >&5
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05008298 echo "$as_me:8298: \$? = $ac_status" >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05008299 if (exit $ac_status) && test -s "$ac_outfile"; then
8300 # The compiler can only warn and ignore the option if not recognized
8301 # So say no if there are warnings other than the usual output.
8302 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8304 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8305 lt_cv_prog_compiler_pic_works=yes
8306 fi
8307 fi
8308 $RM conftest*
8309
8310fi
8311{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8312$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8313
8314if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8315 case $lt_prog_compiler_pic in
8316 "" | " "*) ;;
8317 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8318 esac
8319else
8320 lt_prog_compiler_pic=
8321 lt_prog_compiler_can_build_shared=no
8322fi
8323
8324fi
8325
8326
8327
8328
8329
8330
8331#
8332# Check to make sure the static flag actually works.
8333#
8334wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8335{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8336$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8337if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8338 $as_echo_n "(cached) " >&6
8339else
8340 lt_cv_prog_compiler_static_works=no
8341 save_LDFLAGS="$LDFLAGS"
8342 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8343 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8344 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8345 # The linker can only warn and ignore the option if not recognized
8346 # So say no if there are warnings
8347 if test -s conftest.err; then
8348 # Append any errors to the config.log.
8349 cat conftest.err 1>&5
8350 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8352 if diff conftest.exp conftest.er2 >/dev/null; then
8353 lt_cv_prog_compiler_static_works=yes
8354 fi
8355 else
8356 lt_cv_prog_compiler_static_works=yes
8357 fi
8358 fi
8359 $RM -r conftest*
8360 LDFLAGS="$save_LDFLAGS"
8361
8362fi
8363{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8364$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8365
8366if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8367 :
8368else
8369 lt_prog_compiler_static=
8370fi
8371
8372
8373
8374
8375
8376
8377
8378 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8379$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8380if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8381 $as_echo_n "(cached) " >&6
8382else
8383 lt_cv_prog_compiler_c_o=no
8384 $RM -r conftest 2>/dev/null
8385 mkdir conftest
8386 cd conftest
8387 mkdir out
8388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8389
8390 lt_compiler_flag="-o out/conftest2.$ac_objext"
8391 # Insert the option either (1) after the last *FLAGS variable, or
8392 # (2) before a word containing "conftest.", or (3) at the end.
8393 # Note that $ac_compile itself does not contain backslashes and begins
8394 # with a dollar sign (not a hyphen), so the echo should work correctly.
8395 lt_compile=`echo "$ac_compile" | $SED \
8396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8398 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05008399 (eval echo "\"\$as_me:8399: $lt_compile\"" >&5)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05008400 (eval "$lt_compile" 2>out/conftest.err)
8401 ac_status=$?
8402 cat out/conftest.err >&5
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05008403 echo "$as_me:8403: \$? = $ac_status" >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05008404 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8405 then
8406 # The compiler can only warn and ignore the option if not recognized
8407 # So say no if there are warnings
8408 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8409 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8410 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8411 lt_cv_prog_compiler_c_o=yes
8412 fi
8413 fi
8414 chmod u+w . 2>&5
8415 $RM conftest*
8416 # SGI C++ compiler will create directory out/ii_files/ for
8417 # template instantiation
8418 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8419 $RM out/* && rmdir out
8420 cd ..
8421 $RM -r conftest
8422 $RM conftest*
8423
8424fi
8425{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8426$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8427
8428
8429
8430
8431
8432
8433 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8434$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8435if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8436 $as_echo_n "(cached) " >&6
8437else
8438 lt_cv_prog_compiler_c_o=no
8439 $RM -r conftest 2>/dev/null
8440 mkdir conftest
8441 cd conftest
8442 mkdir out
8443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8444
8445 lt_compiler_flag="-o out/conftest2.$ac_objext"
8446 # Insert the option either (1) after the last *FLAGS variable, or
8447 # (2) before a word containing "conftest.", or (3) at the end.
8448 # Note that $ac_compile itself does not contain backslashes and begins
8449 # with a dollar sign (not a hyphen), so the echo should work correctly.
8450 lt_compile=`echo "$ac_compile" | $SED \
8451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8453 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05008454 (eval echo "\"\$as_me:8454: $lt_compile\"" >&5)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05008455 (eval "$lt_compile" 2>out/conftest.err)
8456 ac_status=$?
8457 cat out/conftest.err >&5
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05008458 echo "$as_me:8458: \$? = $ac_status" >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05008459 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8460 then
8461 # The compiler can only warn and ignore the option if not recognized
8462 # So say no if there are warnings
8463 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8464 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8465 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8466 lt_cv_prog_compiler_c_o=yes
8467 fi
8468 fi
8469 chmod u+w . 2>&5
8470 $RM conftest*
8471 # SGI C++ compiler will create directory out/ii_files/ for
8472 # template instantiation
8473 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8474 $RM out/* && rmdir out
8475 cd ..
8476 $RM -r conftest
8477 $RM conftest*
8478
8479fi
8480{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8481$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8482
8483
8484
8485
8486hard_links="nottested"
8487if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8488 # do not overwrite the value of need_locks provided by the user
8489 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8490$as_echo_n "checking if we can lock with hard links... " >&6; }
8491 hard_links=yes
8492 $RM conftest*
8493 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8494 touch conftest.a
8495 ln conftest.a conftest.b 2>&5 || hard_links=no
8496 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8497 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8498$as_echo "$hard_links" >&6; }
8499 if test "$hard_links" = no; then
8500 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8501$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8502 need_locks=warn
8503 fi
8504else
8505 need_locks=no
8506fi
8507
8508
8509
8510
8511
8512
8513 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8514$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8515
8516 runpath_var=
8517 allow_undefined_flag=
8518 always_export_symbols=no
8519 archive_cmds=
8520 archive_expsym_cmds=
8521 compiler_needs_object=no
8522 enable_shared_with_static_runtimes=no
8523 export_dynamic_flag_spec=
8524 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8525 hardcode_automatic=no
8526 hardcode_direct=no
8527 hardcode_direct_absolute=no
8528 hardcode_libdir_flag_spec=
8529 hardcode_libdir_flag_spec_ld=
8530 hardcode_libdir_separator=
8531 hardcode_minus_L=no
8532 hardcode_shlibpath_var=unsupported
8533 inherit_rpath=no
8534 link_all_deplibs=unknown
8535 module_cmds=
8536 module_expsym_cmds=
8537 old_archive_from_new_cmds=
8538 old_archive_from_expsyms_cmds=
8539 thread_safe_flag_spec=
8540 whole_archive_flag_spec=
8541 # include_expsyms should be a list of space-separated symbols to be *always*
8542 # included in the symbol list
8543 include_expsyms=
8544 # exclude_expsyms can be an extended regexp of symbols to exclude
8545 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8546 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8547 # as well as any symbol that contains `d'.
8548 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8549 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8550 # platforms (ab)use it in PIC code, but their linkers get confused if
8551 # the symbol is explicitly referenced. Since portable code cannot
8552 # rely on this symbol name, it's probably fine to never include it in
8553 # preloaded symbol tables.
8554 # Exclude shared library initialization/finalization symbols.
8555 extract_expsyms_cmds=
8556
8557 case $host_os in
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05008558 cygwin* | mingw* | pw32* | cegcc*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05008559 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8560 # When not using gcc, we currently assume that we are using
8561 # Microsoft Visual C++.
8562 if test "$GCC" != yes; then
8563 with_gnu_ld=no
8564 fi
8565 ;;
8566 interix*)
8567 # we just hope/assume this is gcc and not c89 (= MSVC++)
8568 with_gnu_ld=yes
8569 ;;
8570 openbsd*)
8571 with_gnu_ld=no
8572 ;;
8573 esac
8574
8575 ld_shlibs=yes
8576 if test "$with_gnu_ld" = yes; then
8577 # If archive_cmds runs LD, not CC, wlarc should be empty
8578 wlarc='${wl}'
8579
8580 # Set some defaults for GNU ld with shared library support. These
8581 # are reset later if shared libraries are not supported. Putting them
8582 # here allows them to be overridden if necessary.
8583 runpath_var=LD_RUN_PATH
8584 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8585 export_dynamic_flag_spec='${wl}--export-dynamic'
8586 # ancient GNU ld didn't support --whole-archive et. al.
8587 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8588 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8589 else
8590 whole_archive_flag_spec=
8591 fi
8592 supports_anon_versioning=no
8593 case `$LD -v 2>&1` in
8594 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8595 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8596 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8597 *\ 2.11.*) ;; # other 2.11 versions
8598 *) supports_anon_versioning=yes ;;
8599 esac
8600
8601 # See if GNU ld supports shared libraries.
8602 case $host_os in
8603 aix[3-9]*)
8604 # On AIX/PPC, the GNU linker is very broken
8605 if test "$host_cpu" != ia64; then
8606 ld_shlibs=no
8607 cat <<_LT_EOF 1>&2
8608
8609*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8610*** to be unable to reliably create shared libraries on AIX.
8611*** Therefore, libtool is disabling shared libraries support. If you
8612*** really care for shared libraries, you may want to modify your PATH
8613*** so that a non-GNU linker is found, and then restart.
8614
8615_LT_EOF
8616 fi
8617 ;;
8618
8619 amigaos*)
8620 case $host_cpu in
8621 powerpc)
8622 # see comment about AmigaOS4 .so support
8623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8624 archive_expsym_cmds=''
8625 ;;
8626 m68k)
8627 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)'
8628 hardcode_libdir_flag_spec='-L$libdir'
8629 hardcode_minus_L=yes
8630 ;;
8631 esac
8632 ;;
8633
8634 beos*)
8635 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8636 allow_undefined_flag=unsupported
8637 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8638 # support --undefined. This deserves some investigation. FIXME
8639 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8640 else
8641 ld_shlibs=no
8642 fi
8643 ;;
8644
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05008645 cygwin* | mingw* | pw32* | cegcc*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05008646 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8647 # as there is no search path for DLLs.
8648 hardcode_libdir_flag_spec='-L$libdir'
8649 allow_undefined_flag=unsupported
8650 always_export_symbols=no
8651 enable_shared_with_static_runtimes=yes
8652 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8653
8654 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8656 # If the export-symbols file already is a .def file (1st line
8657 # is EXPORTS), use it as is; otherwise, prepend...
8658 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8659 cp $export_symbols $output_objdir/$soname.def;
8660 else
8661 echo EXPORTS > $output_objdir/$soname.def;
8662 cat $export_symbols >> $output_objdir/$soname.def;
8663 fi~
8664 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8665 else
8666 ld_shlibs=no
8667 fi
8668 ;;
8669
8670 interix[3-9]*)
8671 hardcode_direct=no
8672 hardcode_shlibpath_var=no
8673 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8674 export_dynamic_flag_spec='${wl}-E'
8675 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8676 # Instead, shared libraries are loaded at an image base (0x10000000 by
8677 # default) and relocated if they conflict, which is a slow very memory
8678 # consuming and fragmenting process. To avoid this, we pick a random,
8679 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8680 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8681 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8682 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'
8683 ;;
8684
8685 gnu* | linux* | tpf* | k*bsd*-gnu)
8686 tmp_diet=no
8687 if test "$host_os" = linux-dietlibc; then
8688 case $cc_basename in
8689 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8690 esac
8691 fi
8692 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8693 && test "$tmp_diet" = no
8694 then
8695 tmp_addflag=
8696 tmp_sharedflag='-shared'
8697 case $cc_basename,$host_cpu in
8698 pgcc*) # Portland Group C compiler
8699 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8700 tmp_addflag=' $pic_flag'
8701 ;;
8702 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8703 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8704 tmp_addflag=' $pic_flag -Mnomain' ;;
8705 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8706 tmp_addflag=' -i_dynamic' ;;
8707 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8708 tmp_addflag=' -i_dynamic -nofor_main' ;;
8709 ifc* | ifort*) # Intel Fortran compiler
8710 tmp_addflag=' -nofor_main' ;;
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05008711 lf95*) # Lahey Fortran 8.1
8712 whole_archive_flag_spec=
8713 tmp_sharedflag='--shared' ;;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05008714 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8715 tmp_sharedflag='-qmkshrobj'
8716 tmp_addflag= ;;
8717 esac
8718 case `$CC -V 2>&1 | sed 5q` in
8719 *Sun\ C*) # Sun C 5.9
8720 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8721 compiler_needs_object=yes
8722 tmp_sharedflag='-G' ;;
8723 *Sun\ F*) # Sun Fortran 8.3
8724 tmp_sharedflag='-G' ;;
8725 esac
8726 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8727
8728 if test "x$supports_anon_versioning" = xyes; then
8729 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8730 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8731 echo "local: *; };" >> $output_objdir/$libname.ver~
8732 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8733 fi
8734
8735 case $cc_basename in
8736 xlf*)
8737 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8738 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8739 hardcode_libdir_flag_spec=
8740 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8741 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8742 if test "x$supports_anon_versioning" = xyes; then
8743 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8744 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8745 echo "local: *; };" >> $output_objdir/$libname.ver~
8746 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8747 fi
8748 ;;
8749 esac
8750 else
8751 ld_shlibs=no
8752 fi
8753 ;;
8754
8755 netbsd*)
8756 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8757 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8758 wlarc=
8759 else
8760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8761 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8762 fi
8763 ;;
8764
8765 solaris*)
8766 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8767 ld_shlibs=no
8768 cat <<_LT_EOF 1>&2
8769
8770*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8771*** create shared libraries on Solaris systems. Therefore, libtool
8772*** is disabling shared libraries support. We urge you to upgrade GNU
8773*** binutils to release 2.9.1 or newer. Another option is to modify
8774*** your PATH or compiler configuration so that the native linker is
8775*** used, and then restart.
8776
8777_LT_EOF
8778 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8781 else
8782 ld_shlibs=no
8783 fi
8784 ;;
8785
8786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8787 case `$LD -v 2>&1` in
8788 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8789 ld_shlibs=no
8790 cat <<_LT_EOF 1>&2
8791
8792*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8793*** reliably create shared libraries on SCO systems. Therefore, libtool
8794*** is disabling shared libraries support. We urge you to upgrade GNU
8795*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8796*** your PATH or compiler configuration so that the native linker is
8797*** used, and then restart.
8798
8799_LT_EOF
8800 ;;
8801 *)
8802 # For security reasons, it is highly recommended that you always
8803 # use absolute paths for naming shared libraries, and exclude the
8804 # DT_RUNPATH tag from executables and libraries. But doing so
8805 # requires that you compile everything twice, which is a pain.
8806 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8809 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8810 else
8811 ld_shlibs=no
8812 fi
8813 ;;
8814 esac
8815 ;;
8816
8817 sunos4*)
8818 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8819 wlarc=
8820 hardcode_direct=yes
8821 hardcode_shlibpath_var=no
8822 ;;
8823
8824 *)
8825 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8828 else
8829 ld_shlibs=no
8830 fi
8831 ;;
8832 esac
8833
8834 if test "$ld_shlibs" = no; then
8835 runpath_var=
8836 hardcode_libdir_flag_spec=
8837 export_dynamic_flag_spec=
8838 whole_archive_flag_spec=
8839 fi
8840 else
8841 # PORTME fill in a description of your system's linker (not GNU ld)
8842 case $host_os in
8843 aix3*)
8844 allow_undefined_flag=unsupported
8845 always_export_symbols=yes
8846 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'
8847 # Note: this linker hardcodes the directories in LIBPATH if there
8848 # are no directories specified by -L.
8849 hardcode_minus_L=yes
8850 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8851 # Neither direct hardcoding nor static linking is supported with a
8852 # broken collect2.
8853 hardcode_direct=unsupported
8854 fi
8855 ;;
8856
8857 aix[4-9]*)
8858 if test "$host_cpu" = ia64; then
8859 # On IA64, the linker does run time linking by default, so we don't
8860 # have to do anything special.
8861 aix_use_runtimelinking=no
8862 exp_sym_flag='-Bexport'
8863 no_entry_flag=""
8864 else
8865 # If we're using GNU nm, then we don't want the "-C" option.
8866 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8867 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8868 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8869 else
8870 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'
8871 fi
8872 aix_use_runtimelinking=no
8873
8874 # Test if we are trying to use run time linking or normal
8875 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8876 # need to do runtime linking.
8877 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8878 for ld_flag in $LDFLAGS; do
8879 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8880 aix_use_runtimelinking=yes
8881 break
8882 fi
8883 done
8884 ;;
8885 esac
8886
8887 exp_sym_flag='-bexport'
8888 no_entry_flag='-bnoentry'
8889 fi
8890
8891 # When large executables or shared objects are built, AIX ld can
8892 # have problems creating the table of contents. If linking a library
8893 # or program results in "error TOC overflow" add -mminimal-toc to
8894 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8895 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8896
8897 archive_cmds=''
8898 hardcode_direct=yes
8899 hardcode_direct_absolute=yes
8900 hardcode_libdir_separator=':'
8901 link_all_deplibs=yes
8902 file_list_spec='${wl}-f,'
8903
8904 if test "$GCC" = yes; then
8905 case $host_os in aix4.[012]|aix4.[012].*)
8906 # We only want to do this on AIX 4.2 and lower, the check
8907 # below for broken collect2 doesn't work under 4.3+
8908 collect2name=`${CC} -print-prog-name=collect2`
8909 if test -f "$collect2name" &&
8910 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8911 then
8912 # We have reworked collect2
8913 :
8914 else
8915 # We have old collect2
8916 hardcode_direct=unsupported
8917 # It fails to find uninstalled libraries when the uninstalled
8918 # path is not listed in the libpath. Setting hardcode_minus_L
8919 # to unsupported forces relinking
8920 hardcode_minus_L=yes
8921 hardcode_libdir_flag_spec='-L$libdir'
8922 hardcode_libdir_separator=
8923 fi
8924 ;;
8925 esac
8926 shared_flag='-shared'
8927 if test "$aix_use_runtimelinking" = yes; then
8928 shared_flag="$shared_flag "'${wl}-G'
8929 fi
8930 else
8931 # not using gcc
8932 if test "$host_cpu" = ia64; then
8933 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8934 # chokes on -Wl,-G. The following line is correct:
8935 shared_flag='-G'
8936 else
8937 if test "$aix_use_runtimelinking" = yes; then
8938 shared_flag='${wl}-G'
8939 else
8940 shared_flag='${wl}-bM:SRE'
8941 fi
8942 fi
8943 fi
8944
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05008945 export_dynamic_flag_spec='${wl}-bexpall'
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05008946 # It seems that -bexpall does not export symbols beginning with
8947 # underscore (_), so it is better to generate a list of symbols to export.
8948 always_export_symbols=yes
8949 if test "$aix_use_runtimelinking" = yes; then
8950 # Warning - without using the other runtime loading flags (-brtl),
8951 # -berok will link without error, but may produce a broken library.
8952 allow_undefined_flag='-berok'
8953 # Determine the default libpath from the value encoded in an
8954 # empty executable.
8955 cat >conftest.$ac_ext <<_ACEOF
8956/* confdefs.h. */
8957_ACEOF
8958cat confdefs.h >>conftest.$ac_ext
8959cat >>conftest.$ac_ext <<_ACEOF
8960/* end confdefs.h. */
8961
8962int
8963main ()
8964{
8965
8966 ;
8967 return 0;
8968}
8969_ACEOF
8970rm -f conftest.$ac_objext conftest$ac_exeext
8971if { (ac_try="$ac_link"
8972case "(($ac_try" in
8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8975esac
8976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8977$as_echo "$ac_try_echo") >&5
8978 (eval "$ac_link") 2>conftest.er1
8979 ac_status=$?
8980 grep -v '^ *+' conftest.er1 >conftest.err
8981 rm -f conftest.er1
8982 cat conftest.err >&5
8983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } && {
8985 test -z "$ac_c_werror_flag" ||
8986 test ! -s conftest.err
8987 } && test -s conftest$ac_exeext && {
8988 test "$cross_compiling" = yes ||
8989 $as_test_x conftest$ac_exeext
8990 }; then
8991
8992lt_aix_libpath_sed='
8993 /Import File Strings/,/^$/ {
8994 /^0/ {
8995 s/^0 *\(.*\)$/\1/
8996 p
8997 }
8998 }'
8999aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9000# Check for a 64-bit object if we didn't find anything.
9001if test -z "$aix_libpath"; then
9002 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9003fi
9004else
9005 $as_echo "$as_me: failed program was:" >&5
9006sed 's/^/| /' conftest.$ac_ext >&5
9007
9008
9009fi
9010
9011rm -rf conftest.dSYM
9012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9013 conftest$ac_exeext conftest.$ac_ext
9014if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9015
9016 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9017 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9018 else
9019 if test "$host_cpu" = ia64; then
9020 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9021 allow_undefined_flag="-z nodefs"
9022 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"
9023 else
9024 # Determine the default libpath from the value encoded in an
9025 # empty executable.
9026 cat >conftest.$ac_ext <<_ACEOF
9027/* confdefs.h. */
9028_ACEOF
9029cat confdefs.h >>conftest.$ac_ext
9030cat >>conftest.$ac_ext <<_ACEOF
9031/* end confdefs.h. */
9032
9033int
9034main ()
9035{
9036
9037 ;
9038 return 0;
9039}
9040_ACEOF
9041rm -f conftest.$ac_objext conftest$ac_exeext
9042if { (ac_try="$ac_link"
9043case "(($ac_try" in
9044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9045 *) ac_try_echo=$ac_try;;
9046esac
9047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9048$as_echo "$ac_try_echo") >&5
9049 (eval "$ac_link") 2>conftest.er1
9050 ac_status=$?
9051 grep -v '^ *+' conftest.er1 >conftest.err
9052 rm -f conftest.er1
9053 cat conftest.err >&5
9054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } && {
9056 test -z "$ac_c_werror_flag" ||
9057 test ! -s conftest.err
9058 } && test -s conftest$ac_exeext && {
9059 test "$cross_compiling" = yes ||
9060 $as_test_x conftest$ac_exeext
9061 }; then
9062
9063lt_aix_libpath_sed='
9064 /Import File Strings/,/^$/ {
9065 /^0/ {
9066 s/^0 *\(.*\)$/\1/
9067 p
9068 }
9069 }'
9070aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9071# Check for a 64-bit object if we didn't find anything.
9072if test -z "$aix_libpath"; then
9073 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9074fi
9075else
9076 $as_echo "$as_me: failed program was:" >&5
9077sed 's/^/| /' conftest.$ac_ext >&5
9078
9079
9080fi
9081
9082rm -rf conftest.dSYM
9083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9084 conftest$ac_exeext conftest.$ac_ext
9085if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9086
9087 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9088 # Warning - without using the other run time loading flags,
9089 # -berok will link without error, but may produce a broken library.
9090 no_undefined_flag=' ${wl}-bernotok'
9091 allow_undefined_flag=' ${wl}-berok'
9092 # Exported symbols can be pulled into shared objects from archives
9093 whole_archive_flag_spec='$convenience'
9094 archive_cmds_need_lc=yes
9095 # This is similar to how AIX traditionally builds its shared libraries.
9096 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'
9097 fi
9098 fi
9099 ;;
9100
9101 amigaos*)
9102 case $host_cpu in
9103 powerpc)
9104 # see comment about AmigaOS4 .so support
9105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9106 archive_expsym_cmds=''
9107 ;;
9108 m68k)
9109 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)'
9110 hardcode_libdir_flag_spec='-L$libdir'
9111 hardcode_minus_L=yes
9112 ;;
9113 esac
9114 ;;
9115
9116 bsdi[45]*)
9117 export_dynamic_flag_spec=-rdynamic
9118 ;;
9119
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05009120 cygwin* | mingw* | pw32* | cegcc*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05009121 # When not using gcc, we currently assume that we are using
9122 # Microsoft Visual C++.
9123 # hardcode_libdir_flag_spec is actually meaningless, as there is
9124 # no search path for DLLs.
9125 hardcode_libdir_flag_spec=' '
9126 allow_undefined_flag=unsupported
9127 # Tell ltmain to make .lib files, not .a files.
9128 libext=lib
9129 # Tell ltmain to make .dll files, not .so files.
9130 shrext_cmds=".dll"
9131 # FIXME: Setting linknames here is a bad hack.
9132 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9133 # The linker will automatically build a .lib file if we build a DLL.
9134 old_archive_from_new_cmds='true'
9135 # FIXME: Should let the user specify the lib program.
9136 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9137 fix_srcfile_path='`cygpath -w "$srcfile"`'
9138 enable_shared_with_static_runtimes=yes
9139 ;;
9140
9141 darwin* | rhapsody*)
9142
9143
9144 archive_cmds_need_lc=no
9145 hardcode_direct=no
9146 hardcode_automatic=yes
9147 hardcode_shlibpath_var=unsupported
9148 whole_archive_flag_spec=''
9149 link_all_deplibs=yes
9150 allow_undefined_flag="$_lt_dar_allow_undefined"
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05009151 case $cc_basename in
9152 ifort*) _lt_dar_can_shared=yes ;;
9153 *) _lt_dar_can_shared=$GCC ;;
9154 esac
9155 if test "$_lt_dar_can_shared" = "yes"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05009156 output_verbose_link_cmd=echo
9157 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9158 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9159 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}"
9160 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}"
9161
9162 else
9163 ld_shlibs=no
9164 fi
9165
9166 ;;
9167
9168 dgux*)
9169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9170 hardcode_libdir_flag_spec='-L$libdir'
9171 hardcode_shlibpath_var=no
9172 ;;
9173
9174 freebsd1*)
9175 ld_shlibs=no
9176 ;;
9177
9178 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9179 # support. Future versions do this automatically, but an explicit c++rt0.o
9180 # does not break anything, and helps significantly (at the cost of a little
9181 # extra space).
9182 freebsd2.2*)
9183 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9184 hardcode_libdir_flag_spec='-R$libdir'
9185 hardcode_direct=yes
9186 hardcode_shlibpath_var=no
9187 ;;
9188
9189 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9190 freebsd2*)
9191 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9192 hardcode_direct=yes
9193 hardcode_minus_L=yes
9194 hardcode_shlibpath_var=no
9195 ;;
9196
9197 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9198 freebsd* | dragonfly*)
9199 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9200 hardcode_libdir_flag_spec='-R$libdir'
9201 hardcode_direct=yes
9202 hardcode_shlibpath_var=no
9203 ;;
9204
9205 hpux9*)
9206 if test "$GCC" = yes; then
9207 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'
9208 else
9209 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'
9210 fi
9211 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9212 hardcode_libdir_separator=:
9213 hardcode_direct=yes
9214
9215 # hardcode_minus_L: Not really in the search PATH,
9216 # but as the default location of the library.
9217 hardcode_minus_L=yes
9218 export_dynamic_flag_spec='${wl}-E'
9219 ;;
9220
9221 hpux10*)
9222 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9223 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9224 else
9225 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9226 fi
9227 if test "$with_gnu_ld" = no; then
9228 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9229 hardcode_libdir_flag_spec_ld='+b $libdir'
9230 hardcode_libdir_separator=:
9231 hardcode_direct=yes
9232 hardcode_direct_absolute=yes
9233 export_dynamic_flag_spec='${wl}-E'
9234 # hardcode_minus_L: Not really in the search PATH,
9235 # but as the default location of the library.
9236 hardcode_minus_L=yes
9237 fi
9238 ;;
9239
9240 hpux11*)
9241 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9242 case $host_cpu in
9243 hppa*64*)
9244 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9245 ;;
9246 ia64*)
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05009247 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05009248 ;;
9249 *)
9250 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9251 ;;
9252 esac
9253 else
9254 case $host_cpu in
9255 hppa*64*)
9256 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9257 ;;
9258 ia64*)
9259 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9260 ;;
9261 *)
9262 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9263 ;;
9264 esac
9265 fi
9266 if test "$with_gnu_ld" = no; then
9267 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9268 hardcode_libdir_separator=:
9269
9270 case $host_cpu in
9271 hppa*64*|ia64*)
9272 hardcode_direct=no
9273 hardcode_shlibpath_var=no
9274 ;;
9275 *)
9276 hardcode_direct=yes
9277 hardcode_direct_absolute=yes
9278 export_dynamic_flag_spec='${wl}-E'
9279
9280 # hardcode_minus_L: Not really in the search PATH,
9281 # but as the default location of the library.
9282 hardcode_minus_L=yes
9283 ;;
9284 esac
9285 fi
9286 ;;
9287
9288 irix5* | irix6* | nonstopux*)
9289 if test "$GCC" = yes; then
9290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9291 # Try to use the -exported_symbol ld option, if it does not
9292 # work, assume that -exports_file does not work either and
9293 # implicitly export all symbols.
9294 save_LDFLAGS="$LDFLAGS"
9295 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9296 cat >conftest.$ac_ext <<_ACEOF
9297int foo(void) {}
9298_ACEOF
9299rm -f conftest.$ac_objext conftest$ac_exeext
9300if { (ac_try="$ac_link"
9301case "(($ac_try" in
9302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9303 *) ac_try_echo=$ac_try;;
9304esac
9305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9306$as_echo "$ac_try_echo") >&5
9307 (eval "$ac_link") 2>conftest.er1
9308 ac_status=$?
9309 grep -v '^ *+' conftest.er1 >conftest.err
9310 rm -f conftest.er1
9311 cat conftest.err >&5
9312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } && {
9314 test -z "$ac_c_werror_flag" ||
9315 test ! -s conftest.err
9316 } && test -s conftest$ac_exeext && {
9317 test "$cross_compiling" = yes ||
9318 $as_test_x conftest$ac_exeext
9319 }; then
9320 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9321
9322else
9323 $as_echo "$as_me: failed program was:" >&5
9324sed 's/^/| /' conftest.$ac_ext >&5
9325
9326
9327fi
9328
9329rm -rf conftest.dSYM
9330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9331 conftest$ac_exeext conftest.$ac_ext
9332 LDFLAGS="$save_LDFLAGS"
9333 else
9334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9335 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9336 fi
9337 archive_cmds_need_lc='no'
9338 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9339 hardcode_libdir_separator=:
9340 inherit_rpath=yes
9341 link_all_deplibs=yes
9342 ;;
9343
9344 netbsd*)
9345 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9346 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9347 else
9348 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9349 fi
9350 hardcode_libdir_flag_spec='-R$libdir'
9351 hardcode_direct=yes
9352 hardcode_shlibpath_var=no
9353 ;;
9354
9355 newsos6)
9356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9357 hardcode_direct=yes
9358 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9359 hardcode_libdir_separator=:
9360 hardcode_shlibpath_var=no
9361 ;;
9362
9363 *nto* | *qnx*)
9364 ;;
9365
9366 openbsd*)
9367 if test -f /usr/libexec/ld.so; then
9368 hardcode_direct=yes
9369 hardcode_shlibpath_var=no
9370 hardcode_direct_absolute=yes
9371 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9372 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9373 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9374 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9375 export_dynamic_flag_spec='${wl}-E'
9376 else
9377 case $host_os in
9378 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9380 hardcode_libdir_flag_spec='-R$libdir'
9381 ;;
9382 *)
9383 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9384 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9385 ;;
9386 esac
9387 fi
9388 else
9389 ld_shlibs=no
9390 fi
9391 ;;
9392
9393 os2*)
9394 hardcode_libdir_flag_spec='-L$libdir'
9395 hardcode_minus_L=yes
9396 allow_undefined_flag=unsupported
9397 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'
9398 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9399 ;;
9400
9401 osf3*)
9402 if test "$GCC" = yes; then
9403 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9404 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9405 else
9406 allow_undefined_flag=' -expect_unresolved \*'
9407 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9408 fi
9409 archive_cmds_need_lc='no'
9410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9411 hardcode_libdir_separator=:
9412 ;;
9413
9414 osf4* | osf5*) # as osf3* with the addition of -msym flag
9415 if test "$GCC" = yes; then
9416 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9417 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9418 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9419 else
9420 allow_undefined_flag=' -expect_unresolved \*'
9421 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9422 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~
9423 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9424
9425 # Both c and cxx compiler support -rpath directly
9426 hardcode_libdir_flag_spec='-rpath $libdir'
9427 fi
9428 archive_cmds_need_lc='no'
9429 hardcode_libdir_separator=:
9430 ;;
9431
9432 solaris*)
9433 no_undefined_flag=' -z defs'
9434 if test "$GCC" = yes; then
9435 wlarc='${wl}'
9436 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9438 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9439 else
9440 case `$CC -V 2>&1` in
9441 *"Compilers 5.0"*)
9442 wlarc=''
9443 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9444 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9445 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9446 ;;
9447 *)
9448 wlarc='${wl}'
9449 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9450 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9451 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9452 ;;
9453 esac
9454 fi
9455 hardcode_libdir_flag_spec='-R$libdir'
9456 hardcode_shlibpath_var=no
9457 case $host_os in
9458 solaris2.[0-5] | solaris2.[0-5].*) ;;
9459 *)
9460 # The compiler driver will combine and reorder linker options,
9461 # but understands `-z linker_flag'. GCC discards it without `$wl',
9462 # but is careful enough not to reorder.
9463 # Supported since Solaris 2.6 (maybe 2.5.1?)
9464 if test "$GCC" = yes; then
9465 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9466 else
9467 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9468 fi
9469 ;;
9470 esac
9471 link_all_deplibs=yes
9472 ;;
9473
9474 sunos4*)
9475 if test "x$host_vendor" = xsequent; then
9476 # Use $CC to link under sequent, because it throws in some extra .o
9477 # files that make .init and .fini sections work.
9478 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9479 else
9480 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9481 fi
9482 hardcode_libdir_flag_spec='-L$libdir'
9483 hardcode_direct=yes
9484 hardcode_minus_L=yes
9485 hardcode_shlibpath_var=no
9486 ;;
9487
9488 sysv4)
9489 case $host_vendor in
9490 sni)
9491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9492 hardcode_direct=yes # is this really true???
9493 ;;
9494 siemens)
9495 ## LD is ld it makes a PLAMLIB
9496 ## CC just makes a GrossModule.
9497 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9498 reload_cmds='$CC -r -o $output$reload_objs'
9499 hardcode_direct=no
9500 ;;
9501 motorola)
9502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9503 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9504 ;;
9505 esac
9506 runpath_var='LD_RUN_PATH'
9507 hardcode_shlibpath_var=no
9508 ;;
9509
9510 sysv4.3*)
9511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9512 hardcode_shlibpath_var=no
9513 export_dynamic_flag_spec='-Bexport'
9514 ;;
9515
9516 sysv4*MP*)
9517 if test -d /usr/nec; then
9518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9519 hardcode_shlibpath_var=no
9520 runpath_var=LD_RUN_PATH
9521 hardcode_runpath_var=yes
9522 ld_shlibs=yes
9523 fi
9524 ;;
9525
9526 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9527 no_undefined_flag='${wl}-z,text'
9528 archive_cmds_need_lc=no
9529 hardcode_shlibpath_var=no
9530 runpath_var='LD_RUN_PATH'
9531
9532 if test "$GCC" = yes; then
9533 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9534 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9535 else
9536 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9537 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9538 fi
9539 ;;
9540
9541 sysv5* | sco3.2v5* | sco5v6*)
9542 # Note: We can NOT use -z defs as we might desire, because we do not
9543 # link with -lc, and that would cause any symbols used from libc to
9544 # always be unresolved, which means just about no library would
9545 # ever link correctly. If we're not using GNU ld we use -z text
9546 # though, which does catch some bad symbols but isn't as heavy-handed
9547 # as -z defs.
9548 no_undefined_flag='${wl}-z,text'
9549 allow_undefined_flag='${wl}-z,nodefs'
9550 archive_cmds_need_lc=no
9551 hardcode_shlibpath_var=no
9552 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9553 hardcode_libdir_separator=':'
9554 link_all_deplibs=yes
9555 export_dynamic_flag_spec='${wl}-Bexport'
9556 runpath_var='LD_RUN_PATH'
9557
9558 if test "$GCC" = yes; then
9559 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9560 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9561 else
9562 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9563 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9564 fi
9565 ;;
9566
9567 uts4*)
9568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9569 hardcode_libdir_flag_spec='-L$libdir'
9570 hardcode_shlibpath_var=no
9571 ;;
9572
9573 *)
9574 ld_shlibs=no
9575 ;;
9576 esac
9577
9578 if test x$host_vendor = xsni; then
9579 case $host in
9580 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9581 export_dynamic_flag_spec='${wl}-Blargedynsym'
9582 ;;
9583 esac
9584 fi
9585 fi
9586
9587{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9588$as_echo "$ld_shlibs" >&6; }
9589test "$ld_shlibs" = no && can_build_shared=no
9590
9591with_gnu_ld=$with_gnu_ld
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607#
9608# Do we need to explicitly link libc?
9609#
9610case "x$archive_cmds_need_lc" in
9611x|xyes)
9612 # Assume -lc should be added
9613 archive_cmds_need_lc=yes
9614
9615 if test "$enable_shared" = yes && test "$GCC" = yes; then
9616 case $archive_cmds in
9617 *'~'*)
9618 # FIXME: we may have to deal with multi-command sequences.
9619 ;;
9620 '$CC '*)
9621 # Test whether the compiler implicitly links with -lc since on some
9622 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9623 # to ld, don't add -lc before -lgcc.
9624 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9625$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9626 $RM conftest*
9627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9628
9629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9630 (eval $ac_compile) 2>&5
9631 ac_status=$?
9632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } 2>conftest.err; then
9634 soname=conftest
9635 lib=conftest
9636 libobjs=conftest.$ac_objext
9637 deplibs=
9638 wl=$lt_prog_compiler_wl
9639 pic_flag=$lt_prog_compiler_pic
9640 compiler_flags=-v
9641 linker_flags=-v
9642 verstring=
9643 output_objdir=.
9644 libname=conftest
9645 lt_save_allow_undefined_flag=$allow_undefined_flag
9646 allow_undefined_flag=
9647 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9648 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9649 ac_status=$?
9650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }
9652 then
9653 archive_cmds_need_lc=no
9654 else
9655 archive_cmds_need_lc=yes
9656 fi
9657 allow_undefined_flag=$lt_save_allow_undefined_flag
9658 else
9659 cat conftest.err 1>&5
9660 fi
9661 $RM conftest*
9662 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9663$as_echo "$archive_cmds_need_lc" >&6; }
9664 ;;
9665 esac
9666 fi
9667 ;;
9668esac
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9827$as_echo_n "checking dynamic linker characteristics... " >&6; }
9828
9829if test "$GCC" = yes; then
9830 case $host_os in
9831 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9832 *) lt_awk_arg="/^libraries:/" ;;
9833 esac
9834 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9835 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9836 # if the path contains ";" then we assume it to be the separator
9837 # otherwise default to the standard path separator (i.e. ":") - it is
9838 # assumed that no part of a normal pathname contains ";" but that should
9839 # okay in the real world where ";" in dirpaths is itself problematic.
9840 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9841 else
9842 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9843 fi
9844 # Ok, now we have the path, separated by spaces, we can step through it
9845 # and add multilib dir if necessary.
9846 lt_tmp_lt_search_path_spec=
9847 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9848 for lt_sys_path in $lt_search_path_spec; do
9849 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9850 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9851 else
9852 test -d "$lt_sys_path" && \
9853 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9854 fi
9855 done
9856 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9857BEGIN {RS=" "; FS="/|\n";} {
9858 lt_foo="";
9859 lt_count=0;
9860 for (lt_i = NF; lt_i > 0; lt_i--) {
9861 if ($lt_i != "" && $lt_i != ".") {
9862 if ($lt_i == "..") {
9863 lt_count++;
9864 } else {
9865 if (lt_count == 0) {
9866 lt_foo="/" $lt_i lt_foo;
9867 } else {
9868 lt_count--;
9869 }
9870 }
9871 }
9872 }
9873 if (lt_foo != "") { lt_freq[lt_foo]++; }
9874 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9875}'`
9876 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9877else
9878 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9879fi
9880library_names_spec=
9881libname_spec='lib$name'
9882soname_spec=
9883shrext_cmds=".so"
9884postinstall_cmds=
9885postuninstall_cmds=
9886finish_cmds=
9887finish_eval=
9888shlibpath_var=
9889shlibpath_overrides_runpath=unknown
9890version_type=none
9891dynamic_linker="$host_os ld.so"
9892sys_lib_dlsearch_path_spec="/lib /usr/lib"
9893need_lib_prefix=unknown
9894hardcode_into_libs=no
9895
9896# when you set need_version to no, make sure it does not cause -set_version
9897# flags to be left without arguments
9898need_version=unknown
9899
9900case $host_os in
9901aix3*)
9902 version_type=linux
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9904 shlibpath_var=LIBPATH
9905
9906 # AIX 3 has no versioning support, so we append a major version to the name.
9907 soname_spec='${libname}${release}${shared_ext}$major'
9908 ;;
9909
9910aix[4-9]*)
9911 version_type=linux
9912 need_lib_prefix=no
9913 need_version=no
9914 hardcode_into_libs=yes
9915 if test "$host_cpu" = ia64; then
9916 # AIX 5 supports IA64
9917 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9918 shlibpath_var=LD_LIBRARY_PATH
9919 else
9920 # With GCC up to 2.95.x, collect2 would create an import file
9921 # for dependence libraries. The import file would start with
9922 # the line `#! .'. This would cause the generated library to
9923 # depend on `.', always an invalid library. This was fixed in
9924 # development snapshots of GCC prior to 3.0.
9925 case $host_os in
9926 aix4 | aix4.[01] | aix4.[01].*)
9927 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9928 echo ' yes '
9929 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9930 :
9931 else
9932 can_build_shared=no
9933 fi
9934 ;;
9935 esac
9936 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9937 # soname into executable. Probably we can add versioning support to
9938 # collect2, so additional links can be useful in future.
9939 if test "$aix_use_runtimelinking" = yes; then
9940 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9941 # instead of lib<name>.a to let people know that these are not
9942 # typical AIX shared libraries.
9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9944 else
9945 # We preserve .a as extension for shared libraries through AIX4.2
9946 # and later when we are not doing run time linking.
9947 library_names_spec='${libname}${release}.a $libname.a'
9948 soname_spec='${libname}${release}${shared_ext}$major'
9949 fi
9950 shlibpath_var=LIBPATH
9951 fi
9952 ;;
9953
9954amigaos*)
9955 case $host_cpu in
9956 powerpc)
9957 # Since July 2007 AmigaOS4 officially supports .so libraries.
9958 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9960 ;;
9961 m68k)
9962 library_names_spec='$libname.ixlibrary $libname.a'
9963 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9964 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9965 ;;
9966 esac
9967 ;;
9968
9969beos*)
9970 library_names_spec='${libname}${shared_ext}'
9971 dynamic_linker="$host_os ld.so"
9972 shlibpath_var=LIBRARY_PATH
9973 ;;
9974
9975bsdi[45]*)
9976 version_type=linux
9977 need_version=no
9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9979 soname_spec='${libname}${release}${shared_ext}$major'
9980 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9981 shlibpath_var=LD_LIBRARY_PATH
9982 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9983 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9984 # the default ld.so.conf also contains /usr/contrib/lib and
9985 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9986 # libtool to hard-code these into programs
9987 ;;
9988
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05009989cygwin* | mingw* | pw32* | cegcc*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05009990 version_type=windows
9991 shrext_cmds=".dll"
9992 need_version=no
9993 need_lib_prefix=no
9994
9995 case $GCC,$host_os in
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -05009996 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05009997 library_names_spec='$libname.dll.a'
9998 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9999 postinstall_cmds='base_file=`basename \${file}`~
10000 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10001 dldir=$destdir/`dirname \$dlpath`~
10002 test -d \$dldir || mkdir -p \$dldir~
10003 $install_prog $dir/$dlname \$dldir/$dlname~
10004 chmod a+x \$dldir/$dlname~
10005 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10006 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10007 fi'
10008 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10009 dlpath=$dir/\$dldll~
10010 $RM \$dlpath'
10011 shlibpath_overrides_runpath=yes
10012
10013 case $host_os in
10014 cygwin*)
10015 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10016 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10017 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10018 ;;
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050010019 mingw* | cegcc*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050010020 # MinGW DLLs use traditional 'lib' prefix
10021 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10022 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10023 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10024 # It is most probably a Windows format PATH printed by
10025 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10026 # path with ; separators, and with drive letters. We can handle the
10027 # drive letters (cygwin fileutils understands them), so leave them,
10028 # especially as we might pass files found there to a mingw objdump,
10029 # which wouldn't understand a cygwinified path. Ahh.
10030 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10031 else
10032 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10033 fi
10034 ;;
10035 pw32*)
10036 # pw32 DLLs use 'pw' prefix rather than 'lib'
10037 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10038 ;;
10039 esac
10040 ;;
10041
10042 *)
10043 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10044 ;;
10045 esac
10046 dynamic_linker='Win32 ld.exe'
10047 # FIXME: first we should search . and the directory the executable is in
10048 shlibpath_var=PATH
10049 ;;
10050
10051darwin* | rhapsody*)
10052 dynamic_linker="$host_os dyld"
10053 version_type=darwin
10054 need_lib_prefix=no
10055 need_version=no
10056 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10057 soname_spec='${libname}${release}${major}$shared_ext'
10058 shlibpath_overrides_runpath=yes
10059 shlibpath_var=DYLD_LIBRARY_PATH
10060 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10061
10062 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10063 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10064 ;;
10065
10066dgux*)
10067 version_type=linux
10068 need_lib_prefix=no
10069 need_version=no
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10071 soname_spec='${libname}${release}${shared_ext}$major'
10072 shlibpath_var=LD_LIBRARY_PATH
10073 ;;
10074
10075freebsd1*)
10076 dynamic_linker=no
10077 ;;
10078
10079freebsd* | dragonfly*)
10080 # DragonFly does not have aout. When/if they implement a new
10081 # versioning mechanism, adjust this.
10082 if test -x /usr/bin/objformat; then
10083 objformat=`/usr/bin/objformat`
10084 else
10085 case $host_os in
10086 freebsd[123]*) objformat=aout ;;
10087 *) objformat=elf ;;
10088 esac
10089 fi
10090 version_type=freebsd-$objformat
10091 case $version_type in
10092 freebsd-elf*)
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10094 need_version=no
10095 need_lib_prefix=no
10096 ;;
10097 freebsd-*)
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10099 need_version=yes
10100 ;;
10101 esac
10102 shlibpath_var=LD_LIBRARY_PATH
10103 case $host_os in
10104 freebsd2*)
10105 shlibpath_overrides_runpath=yes
10106 ;;
10107 freebsd3.[01]* | freebsdelf3.[01]*)
10108 shlibpath_overrides_runpath=yes
10109 hardcode_into_libs=yes
10110 ;;
10111 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10112 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10113 shlibpath_overrides_runpath=no
10114 hardcode_into_libs=yes
10115 ;;
10116 *) # from 4.6 on, and DragonFly
10117 shlibpath_overrides_runpath=yes
10118 hardcode_into_libs=yes
10119 ;;
10120 esac
10121 ;;
10122
10123gnu*)
10124 version_type=linux
10125 need_lib_prefix=no
10126 need_version=no
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 shlibpath_var=LD_LIBRARY_PATH
10130 hardcode_into_libs=yes
10131 ;;
10132
10133hpux9* | hpux10* | hpux11*)
10134 # Give a soname corresponding to the major version so that dld.sl refuses to
10135 # link against other versions.
10136 version_type=sunos
10137 need_lib_prefix=no
10138 need_version=no
10139 case $host_cpu in
10140 ia64*)
10141 shrext_cmds='.so'
10142 hardcode_into_libs=yes
10143 dynamic_linker="$host_os dld.so"
10144 shlibpath_var=LD_LIBRARY_PATH
10145 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147 soname_spec='${libname}${release}${shared_ext}$major'
10148 if test "X$HPUX_IA64_MODE" = X32; then
10149 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10150 else
10151 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10152 fi
10153 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10154 ;;
10155 hppa*64*)
10156 shrext_cmds='.sl'
10157 hardcode_into_libs=yes
10158 dynamic_linker="$host_os dld.sl"
10159 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10164 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10165 ;;
10166 *)
10167 shrext_cmds='.sl'
10168 dynamic_linker="$host_os dld.sl"
10169 shlibpath_var=SHLIB_PATH
10170 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 ;;
10174 esac
10175 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10176 postinstall_cmds='chmod 555 $lib'
10177 ;;
10178
10179interix[3-9]*)
10180 version_type=linux
10181 need_lib_prefix=no
10182 need_version=no
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10184 soname_spec='${libname}${release}${shared_ext}$major'
10185 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10186 shlibpath_var=LD_LIBRARY_PATH
10187 shlibpath_overrides_runpath=no
10188 hardcode_into_libs=yes
10189 ;;
10190
10191irix5* | irix6* | nonstopux*)
10192 case $host_os in
10193 nonstopux*) version_type=nonstopux ;;
10194 *)
10195 if test "$lt_cv_prog_gnu_ld" = yes; then
10196 version_type=linux
10197 else
10198 version_type=irix
10199 fi ;;
10200 esac
10201 need_lib_prefix=no
10202 need_version=no
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10205 case $host_os in
10206 irix5* | nonstopux*)
10207 libsuff= shlibsuff=
10208 ;;
10209 *)
10210 case $LD in # libtool.m4 will add one of these switches to LD
10211 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10212 libsuff= shlibsuff= libmagic=32-bit;;
10213 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10214 libsuff=32 shlibsuff=N32 libmagic=N32;;
10215 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10216 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10217 *) libsuff= shlibsuff= libmagic=never-match;;
10218 esac
10219 ;;
10220 esac
10221 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10222 shlibpath_overrides_runpath=no
10223 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10224 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10225 hardcode_into_libs=yes
10226 ;;
10227
10228# No shared lib support for Linux oldld, aout, or coff.
10229linux*oldld* | linux*aout* | linux*coff*)
10230 dynamic_linker=no
10231 ;;
10232
10233# This must be Linux ELF.
10234linux* | k*bsd*-gnu)
10235 version_type=linux
10236 need_lib_prefix=no
10237 need_version=no
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239 soname_spec='${libname}${release}${shared_ext}$major'
10240 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10241 shlibpath_var=LD_LIBRARY_PATH
10242 shlibpath_overrides_runpath=no
10243 # Some binutils ld are patched to set DT_RUNPATH
10244 save_LDFLAGS=$LDFLAGS
10245 save_libdir=$libdir
10246 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10247 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10248 cat >conftest.$ac_ext <<_ACEOF
10249/* confdefs.h. */
10250_ACEOF
10251cat confdefs.h >>conftest.$ac_ext
10252cat >>conftest.$ac_ext <<_ACEOF
10253/* end confdefs.h. */
10254
10255int
10256main ()
10257{
10258
10259 ;
10260 return 0;
10261}
10262_ACEOF
10263rm -f conftest.$ac_objext conftest$ac_exeext
10264if { (ac_try="$ac_link"
10265case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10268esac
10269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10270$as_echo "$ac_try_echo") >&5
10271 (eval "$ac_link") 2>conftest.er1
10272 ac_status=$?
10273 grep -v '^ *+' conftest.er1 >conftest.err
10274 rm -f conftest.er1
10275 cat conftest.err >&5
10276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); } && {
10278 test -z "$ac_c_werror_flag" ||
10279 test ! -s conftest.err
10280 } && test -s conftest$ac_exeext && {
10281 test "$cross_compiling" = yes ||
10282 $as_test_x conftest$ac_exeext
10283 }; then
10284 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10285 shlibpath_overrides_runpath=yes
10286fi
10287
10288else
10289 $as_echo "$as_me: failed program was:" >&5
10290sed 's/^/| /' conftest.$ac_ext >&5
10291
10292
10293fi
10294
10295rm -rf conftest.dSYM
10296rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10297 conftest$ac_exeext conftest.$ac_ext
10298 LDFLAGS=$save_LDFLAGS
10299 libdir=$save_libdir
10300
10301 # This implies no fast_install, which is unacceptable.
10302 # Some rework will be needed to allow for fast_install
10303 # before this can be enabled.
10304 hardcode_into_libs=yes
10305
10306 # Append ld.so.conf contents to the search path
10307 if test -f /etc/ld.so.conf; then
10308 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;/^$/d' | tr '\n' ' '`
10309 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10310 fi
10311
10312 # We used to test for /lib/ld.so.1 and disable shared libraries on
10313 # powerpc, because MkLinux only supported shared libraries with the
10314 # GNU dynamic linker. Since this was broken with cross compilers,
10315 # most powerpc-linux boxes support dynamic linking these days and
10316 # people can always --disable-shared, the test was removed, and we
10317 # assume the GNU/Linux dynamic linker is in use.
10318 dynamic_linker='GNU/Linux ld.so'
10319 ;;
10320
10321netbsd*)
10322 version_type=sunos
10323 need_lib_prefix=no
10324 need_version=no
10325 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10328 dynamic_linker='NetBSD (a.out) ld.so'
10329 else
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10331 soname_spec='${libname}${release}${shared_ext}$major'
10332 dynamic_linker='NetBSD ld.elf_so'
10333 fi
10334 shlibpath_var=LD_LIBRARY_PATH
10335 shlibpath_overrides_runpath=yes
10336 hardcode_into_libs=yes
10337 ;;
10338
10339newsos6)
10340 version_type=linux
10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342 shlibpath_var=LD_LIBRARY_PATH
10343 shlibpath_overrides_runpath=yes
10344 ;;
10345
10346*nto* | *qnx*)
10347 version_type=qnx
10348 need_lib_prefix=no
10349 need_version=no
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10352 shlibpath_var=LD_LIBRARY_PATH
10353 shlibpath_overrides_runpath=no
10354 hardcode_into_libs=yes
10355 dynamic_linker='ldqnx.so'
10356 ;;
10357
10358openbsd*)
10359 version_type=sunos
10360 sys_lib_dlsearch_path_spec="/usr/lib"
10361 need_lib_prefix=no
10362 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10363 case $host_os in
10364 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10365 *) need_version=no ;;
10366 esac
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10368 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10371 case $host_os in
10372 openbsd2.[89] | openbsd2.[89].*)
10373 shlibpath_overrides_runpath=no
10374 ;;
10375 *)
10376 shlibpath_overrides_runpath=yes
10377 ;;
10378 esac
10379 else
10380 shlibpath_overrides_runpath=yes
10381 fi
10382 ;;
10383
10384os2*)
10385 libname_spec='$name'
10386 shrext_cmds=".dll"
10387 need_lib_prefix=no
10388 library_names_spec='$libname${shared_ext} $libname.a'
10389 dynamic_linker='OS/2 ld.exe'
10390 shlibpath_var=LIBPATH
10391 ;;
10392
10393osf3* | osf4* | osf5*)
10394 version_type=osf
10395 need_lib_prefix=no
10396 need_version=no
10397 soname_spec='${libname}${release}${shared_ext}$major'
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10399 shlibpath_var=LD_LIBRARY_PATH
10400 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10401 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10402 ;;
10403
10404rdos*)
10405 dynamic_linker=no
10406 ;;
10407
10408solaris*)
10409 version_type=linux
10410 need_lib_prefix=no
10411 need_version=no
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10413 soname_spec='${libname}${release}${shared_ext}$major'
10414 shlibpath_var=LD_LIBRARY_PATH
10415 shlibpath_overrides_runpath=yes
10416 hardcode_into_libs=yes
10417 # ldd complains unless libraries are executable
10418 postinstall_cmds='chmod +x $lib'
10419 ;;
10420
10421sunos4*)
10422 version_type=sunos
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10424 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10425 shlibpath_var=LD_LIBRARY_PATH
10426 shlibpath_overrides_runpath=yes
10427 if test "$with_gnu_ld" = yes; then
10428 need_lib_prefix=no
10429 fi
10430 need_version=yes
10431 ;;
10432
10433sysv4 | sysv4.3*)
10434 version_type=linux
10435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10436 soname_spec='${libname}${release}${shared_ext}$major'
10437 shlibpath_var=LD_LIBRARY_PATH
10438 case $host_vendor in
10439 sni)
10440 shlibpath_overrides_runpath=no
10441 need_lib_prefix=no
10442 runpath_var=LD_RUN_PATH
10443 ;;
10444 siemens)
10445 need_lib_prefix=no
10446 ;;
10447 motorola)
10448 need_lib_prefix=no
10449 need_version=no
10450 shlibpath_overrides_runpath=no
10451 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10452 ;;
10453 esac
10454 ;;
10455
10456sysv4*MP*)
10457 if test -d /usr/nec ;then
10458 version_type=linux
10459 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10460 soname_spec='$libname${shared_ext}.$major'
10461 shlibpath_var=LD_LIBRARY_PATH
10462 fi
10463 ;;
10464
10465sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10466 version_type=freebsd-elf
10467 need_lib_prefix=no
10468 need_version=no
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 shlibpath_var=LD_LIBRARY_PATH
10472 shlibpath_overrides_runpath=yes
10473 hardcode_into_libs=yes
10474 if test "$with_gnu_ld" = yes; then
10475 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10476 else
10477 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10478 case $host_os in
10479 sco3.2v5*)
10480 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10481 ;;
10482 esac
10483 fi
10484 sys_lib_dlsearch_path_spec='/usr/lib'
10485 ;;
10486
10487tpf*)
10488 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10489 version_type=linux
10490 need_lib_prefix=no
10491 need_version=no
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050010492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050010493 shlibpath_var=LD_LIBRARY_PATH
10494 shlibpath_overrides_runpath=no
10495 hardcode_into_libs=yes
10496 ;;
10497
10498uts4*)
10499 version_type=linux
10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501 soname_spec='${libname}${release}${shared_ext}$major'
10502 shlibpath_var=LD_LIBRARY_PATH
10503 ;;
10504
10505*)
10506 dynamic_linker=no
10507 ;;
10508esac
10509{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10510$as_echo "$dynamic_linker" >&6; }
10511test "$dynamic_linker" = no && can_build_shared=no
10512
10513variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10514if test "$GCC" = yes; then
10515 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10516fi
10517
10518if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10519 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10520fi
10521if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10522 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10523fi
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10612$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10613hardcode_action=
10614if test -n "$hardcode_libdir_flag_spec" ||
10615 test -n "$runpath_var" ||
10616 test "X$hardcode_automatic" = "Xyes" ; then
10617
10618 # We can hardcode non-existent directories.
10619 if test "$hardcode_direct" != no &&
10620 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10621 # have to relink, otherwise we might link with an installed library
10622 # when we should be linking with a yet-to-be-installed one
10623 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10624 test "$hardcode_minus_L" != no; then
10625 # Linking always hardcodes the temporary library directory.
10626 hardcode_action=relink
10627 else
10628 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10629 hardcode_action=immediate
10630 fi
10631else
10632 # We cannot hardcode anything, or else we can only hardcode existing
10633 # directories.
10634 hardcode_action=unsupported
10635fi
10636{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10637$as_echo "$hardcode_action" >&6; }
10638
10639if test "$hardcode_action" = relink ||
10640 test "$inherit_rpath" = yes; then
10641 # Fast installation is not supported
10642 enable_fast_install=no
10643elif test "$shlibpath_overrides_runpath" = yes ||
10644 test "$enable_shared" = no; then
10645 # Fast installation is not necessary
10646 enable_fast_install=needless
10647fi
10648
10649
10650
10651
10652
10653
10654 if test "x$enable_dlopen" != xyes; then
10655 enable_dlopen=unknown
10656 enable_dlopen_self=unknown
10657 enable_dlopen_self_static=unknown
10658else
10659 lt_cv_dlopen=no
10660 lt_cv_dlopen_libs=
10661
10662 case $host_os in
10663 beos*)
10664 lt_cv_dlopen="load_add_on"
10665 lt_cv_dlopen_libs=
10666 lt_cv_dlopen_self=yes
10667 ;;
10668
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050010669 mingw* | pw32* | cegcc*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050010670 lt_cv_dlopen="LoadLibrary"
10671 lt_cv_dlopen_libs=
10672 ;;
10673
10674 cygwin*)
10675 lt_cv_dlopen="dlopen"
10676 lt_cv_dlopen_libs=
10677 ;;
10678
10679 darwin*)
10680 # if libdl is installed we need to link against it
10681 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10682$as_echo_n "checking for dlopen in -ldl... " >&6; }
10683if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10684 $as_echo_n "(cached) " >&6
10685else
10686 ac_check_lib_save_LIBS=$LIBS
10687LIBS="-ldl $LIBS"
10688cat >conftest.$ac_ext <<_ACEOF
10689/* confdefs.h. */
10690_ACEOF
10691cat confdefs.h >>conftest.$ac_ext
10692cat >>conftest.$ac_ext <<_ACEOF
10693/* end confdefs.h. */
10694
10695/* Override any GCC internal prototype to avoid an error.
10696 Use char because int might match the return type of a GCC
10697 builtin and then its argument prototype would still apply. */
10698#ifdef __cplusplus
10699extern "C"
10700#endif
10701char dlopen ();
10702int
10703main ()
10704{
10705return dlopen ();
10706 ;
10707 return 0;
10708}
10709_ACEOF
10710rm -f conftest.$ac_objext conftest$ac_exeext
10711if { (ac_try="$ac_link"
10712case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10715esac
10716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10717$as_echo "$ac_try_echo") >&5
10718 (eval "$ac_link") 2>conftest.er1
10719 ac_status=$?
10720 grep -v '^ *+' conftest.er1 >conftest.err
10721 rm -f conftest.er1
10722 cat conftest.err >&5
10723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } && {
10725 test -z "$ac_c_werror_flag" ||
10726 test ! -s conftest.err
10727 } && test -s conftest$ac_exeext && {
10728 test "$cross_compiling" = yes ||
10729 $as_test_x conftest$ac_exeext
10730 }; then
10731 ac_cv_lib_dl_dlopen=yes
10732else
10733 $as_echo "$as_me: failed program was:" >&5
10734sed 's/^/| /' conftest.$ac_ext >&5
10735
10736 ac_cv_lib_dl_dlopen=no
10737fi
10738
10739rm -rf conftest.dSYM
10740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10741 conftest$ac_exeext conftest.$ac_ext
10742LIBS=$ac_check_lib_save_LIBS
10743fi
10744{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10745$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050010746if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050010747 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10748else
10749
10750 lt_cv_dlopen="dyld"
10751 lt_cv_dlopen_libs=
10752 lt_cv_dlopen_self=yes
10753
10754fi
10755
10756 ;;
10757
10758 *)
10759 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10760$as_echo_n "checking for shl_load... " >&6; }
10761if test "${ac_cv_func_shl_load+set}" = set; then
10762 $as_echo_n "(cached) " >&6
10763else
10764 cat >conftest.$ac_ext <<_ACEOF
10765/* confdefs.h. */
10766_ACEOF
10767cat confdefs.h >>conftest.$ac_ext
10768cat >>conftest.$ac_ext <<_ACEOF
10769/* end confdefs.h. */
10770/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10772#define shl_load innocuous_shl_load
10773
10774/* System header to define __stub macros and hopefully few prototypes,
10775 which can conflict with char shl_load (); below.
10776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10777 <limits.h> exists even on freestanding compilers. */
10778
10779#ifdef __STDC__
10780# include <limits.h>
10781#else
10782# include <assert.h>
10783#endif
10784
10785#undef shl_load
10786
10787/* Override any GCC internal prototype to avoid an error.
10788 Use char because int might match the return type of a GCC
10789 builtin and then its argument prototype would still apply. */
10790#ifdef __cplusplus
10791extern "C"
10792#endif
10793char shl_load ();
10794/* The GNU C library defines this for functions which it implements
10795 to always fail with ENOSYS. Some functions are actually named
10796 something starting with __ and the normal name is an alias. */
10797#if defined __stub_shl_load || defined __stub___shl_load
10798choke me
10799#endif
10800
10801int
10802main ()
10803{
10804return shl_load ();
10805 ;
10806 return 0;
10807}
10808_ACEOF
10809rm -f conftest.$ac_objext conftest$ac_exeext
10810if { (ac_try="$ac_link"
10811case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10814esac
10815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10816$as_echo "$ac_try_echo") >&5
10817 (eval "$ac_link") 2>conftest.er1
10818 ac_status=$?
10819 grep -v '^ *+' conftest.er1 >conftest.err
10820 rm -f conftest.er1
10821 cat conftest.err >&5
10822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } && {
10824 test -z "$ac_c_werror_flag" ||
10825 test ! -s conftest.err
10826 } && test -s conftest$ac_exeext && {
10827 test "$cross_compiling" = yes ||
10828 $as_test_x conftest$ac_exeext
10829 }; then
10830 ac_cv_func_shl_load=yes
10831else
10832 $as_echo "$as_me: failed program was:" >&5
10833sed 's/^/| /' conftest.$ac_ext >&5
10834
10835 ac_cv_func_shl_load=no
10836fi
10837
10838rm -rf conftest.dSYM
10839rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10840 conftest$ac_exeext conftest.$ac_ext
10841fi
10842{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10843$as_echo "$ac_cv_func_shl_load" >&6; }
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050010844if test "x$ac_cv_func_shl_load" = x""yes; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050010845 lt_cv_dlopen="shl_load"
10846else
10847 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10848$as_echo_n "checking for shl_load in -ldld... " >&6; }
10849if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10850 $as_echo_n "(cached) " >&6
10851else
10852 ac_check_lib_save_LIBS=$LIBS
10853LIBS="-ldld $LIBS"
10854cat >conftest.$ac_ext <<_ACEOF
10855/* confdefs.h. */
10856_ACEOF
10857cat confdefs.h >>conftest.$ac_ext
10858cat >>conftest.$ac_ext <<_ACEOF
10859/* end confdefs.h. */
10860
10861/* Override any GCC internal prototype to avoid an error.
10862 Use char because int might match the return type of a GCC
10863 builtin and then its argument prototype would still apply. */
10864#ifdef __cplusplus
10865extern "C"
10866#endif
10867char shl_load ();
10868int
10869main ()
10870{
10871return shl_load ();
10872 ;
10873 return 0;
10874}
10875_ACEOF
10876rm -f conftest.$ac_objext conftest$ac_exeext
10877if { (ac_try="$ac_link"
10878case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10881esac
10882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10883$as_echo "$ac_try_echo") >&5
10884 (eval "$ac_link") 2>conftest.er1
10885 ac_status=$?
10886 grep -v '^ *+' conftest.er1 >conftest.err
10887 rm -f conftest.er1
10888 cat conftest.err >&5
10889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } && {
10891 test -z "$ac_c_werror_flag" ||
10892 test ! -s conftest.err
10893 } && test -s conftest$ac_exeext && {
10894 test "$cross_compiling" = yes ||
10895 $as_test_x conftest$ac_exeext
10896 }; then
10897 ac_cv_lib_dld_shl_load=yes
10898else
10899 $as_echo "$as_me: failed program was:" >&5
10900sed 's/^/| /' conftest.$ac_ext >&5
10901
10902 ac_cv_lib_dld_shl_load=no
10903fi
10904
10905rm -rf conftest.dSYM
10906rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10907 conftest$ac_exeext conftest.$ac_ext
10908LIBS=$ac_check_lib_save_LIBS
10909fi
10910{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10911$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050010912if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050010913 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10914else
10915 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10916$as_echo_n "checking for dlopen... " >&6; }
10917if test "${ac_cv_func_dlopen+set}" = set; then
10918 $as_echo_n "(cached) " >&6
10919else
10920 cat >conftest.$ac_ext <<_ACEOF
10921/* confdefs.h. */
10922_ACEOF
10923cat confdefs.h >>conftest.$ac_ext
10924cat >>conftest.$ac_ext <<_ACEOF
10925/* end confdefs.h. */
10926/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10928#define dlopen innocuous_dlopen
10929
10930/* System header to define __stub macros and hopefully few prototypes,
10931 which can conflict with char dlopen (); below.
10932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10933 <limits.h> exists even on freestanding compilers. */
10934
10935#ifdef __STDC__
10936# include <limits.h>
10937#else
10938# include <assert.h>
10939#endif
10940
10941#undef dlopen
10942
10943/* Override any GCC internal prototype to avoid an error.
10944 Use char because int might match the return type of a GCC
10945 builtin and then its argument prototype would still apply. */
10946#ifdef __cplusplus
10947extern "C"
10948#endif
10949char dlopen ();
10950/* The GNU C library defines this for functions which it implements
10951 to always fail with ENOSYS. Some functions are actually named
10952 something starting with __ and the normal name is an alias. */
10953#if defined __stub_dlopen || defined __stub___dlopen
10954choke me
10955#endif
10956
10957int
10958main ()
10959{
10960return dlopen ();
10961 ;
10962 return 0;
10963}
10964_ACEOF
10965rm -f conftest.$ac_objext conftest$ac_exeext
10966if { (ac_try="$ac_link"
10967case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10970esac
10971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10972$as_echo "$ac_try_echo") >&5
10973 (eval "$ac_link") 2>conftest.er1
10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
10978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_c_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest$ac_exeext && {
10983 test "$cross_compiling" = yes ||
10984 $as_test_x conftest$ac_exeext
10985 }; then
10986 ac_cv_func_dlopen=yes
10987else
10988 $as_echo "$as_me: failed program was:" >&5
10989sed 's/^/| /' conftest.$ac_ext >&5
10990
10991 ac_cv_func_dlopen=no
10992fi
10993
10994rm -rf conftest.dSYM
10995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10996 conftest$ac_exeext conftest.$ac_ext
10997fi
10998{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10999$as_echo "$ac_cv_func_dlopen" >&6; }
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050011000if test "x$ac_cv_func_dlopen" = x""yes; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011001 lt_cv_dlopen="dlopen"
11002else
11003 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11004$as_echo_n "checking for dlopen in -ldl... " >&6; }
11005if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11006 $as_echo_n "(cached) " >&6
11007else
11008 ac_check_lib_save_LIBS=$LIBS
11009LIBS="-ldl $LIBS"
11010cat >conftest.$ac_ext <<_ACEOF
11011/* confdefs.h. */
11012_ACEOF
11013cat confdefs.h >>conftest.$ac_ext
11014cat >>conftest.$ac_ext <<_ACEOF
11015/* end confdefs.h. */
11016
11017/* Override any GCC internal prototype to avoid an error.
11018 Use char because int might match the return type of a GCC
11019 builtin and then its argument prototype would still apply. */
11020#ifdef __cplusplus
11021extern "C"
11022#endif
11023char dlopen ();
11024int
11025main ()
11026{
11027return dlopen ();
11028 ;
11029 return 0;
11030}
11031_ACEOF
11032rm -f conftest.$ac_objext conftest$ac_exeext
11033if { (ac_try="$ac_link"
11034case "(($ac_try" in
11035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11036 *) ac_try_echo=$ac_try;;
11037esac
11038eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11039$as_echo "$ac_try_echo") >&5
11040 (eval "$ac_link") 2>conftest.er1
11041 ac_status=$?
11042 grep -v '^ *+' conftest.er1 >conftest.err
11043 rm -f conftest.er1
11044 cat conftest.err >&5
11045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } && {
11047 test -z "$ac_c_werror_flag" ||
11048 test ! -s conftest.err
11049 } && test -s conftest$ac_exeext && {
11050 test "$cross_compiling" = yes ||
11051 $as_test_x conftest$ac_exeext
11052 }; then
11053 ac_cv_lib_dl_dlopen=yes
11054else
11055 $as_echo "$as_me: failed program was:" >&5
11056sed 's/^/| /' conftest.$ac_ext >&5
11057
11058 ac_cv_lib_dl_dlopen=no
11059fi
11060
11061rm -rf conftest.dSYM
11062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11063 conftest$ac_exeext conftest.$ac_ext
11064LIBS=$ac_check_lib_save_LIBS
11065fi
11066{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11067$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050011068if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011069 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11070else
11071 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11072$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11073if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11074 $as_echo_n "(cached) " >&6
11075else
11076 ac_check_lib_save_LIBS=$LIBS
11077LIBS="-lsvld $LIBS"
11078cat >conftest.$ac_ext <<_ACEOF
11079/* confdefs.h. */
11080_ACEOF
11081cat confdefs.h >>conftest.$ac_ext
11082cat >>conftest.$ac_ext <<_ACEOF
11083/* end confdefs.h. */
11084
11085/* Override any GCC internal prototype to avoid an error.
11086 Use char because int might match the return type of a GCC
11087 builtin and then its argument prototype would still apply. */
11088#ifdef __cplusplus
11089extern "C"
11090#endif
11091char dlopen ();
11092int
11093main ()
11094{
11095return dlopen ();
11096 ;
11097 return 0;
11098}
11099_ACEOF
11100rm -f conftest.$ac_objext conftest$ac_exeext
11101if { (ac_try="$ac_link"
11102case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11105esac
11106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11107$as_echo "$ac_try_echo") >&5
11108 (eval "$ac_link") 2>conftest.er1
11109 ac_status=$?
11110 grep -v '^ *+' conftest.er1 >conftest.err
11111 rm -f conftest.er1
11112 cat conftest.err >&5
11113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } && {
11115 test -z "$ac_c_werror_flag" ||
11116 test ! -s conftest.err
11117 } && test -s conftest$ac_exeext && {
11118 test "$cross_compiling" = yes ||
11119 $as_test_x conftest$ac_exeext
11120 }; then
11121 ac_cv_lib_svld_dlopen=yes
11122else
11123 $as_echo "$as_me: failed program was:" >&5
11124sed 's/^/| /' conftest.$ac_ext >&5
11125
11126 ac_cv_lib_svld_dlopen=no
11127fi
11128
11129rm -rf conftest.dSYM
11130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11131 conftest$ac_exeext conftest.$ac_ext
11132LIBS=$ac_check_lib_save_LIBS
11133fi
11134{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11135$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050011136if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011137 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11138else
11139 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11140$as_echo_n "checking for dld_link in -ldld... " >&6; }
11141if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11142 $as_echo_n "(cached) " >&6
11143else
11144 ac_check_lib_save_LIBS=$LIBS
11145LIBS="-ldld $LIBS"
11146cat >conftest.$ac_ext <<_ACEOF
11147/* confdefs.h. */
11148_ACEOF
11149cat confdefs.h >>conftest.$ac_ext
11150cat >>conftest.$ac_ext <<_ACEOF
11151/* end confdefs.h. */
11152
11153/* Override any GCC internal prototype to avoid an error.
11154 Use char because int might match the return type of a GCC
11155 builtin and then its argument prototype would still apply. */
11156#ifdef __cplusplus
11157extern "C"
11158#endif
11159char dld_link ();
11160int
11161main ()
11162{
11163return dld_link ();
11164 ;
11165 return 0;
11166}
11167_ACEOF
11168rm -f conftest.$ac_objext conftest$ac_exeext
11169if { (ac_try="$ac_link"
11170case "(($ac_try" in
11171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172 *) ac_try_echo=$ac_try;;
11173esac
11174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11175$as_echo "$ac_try_echo") >&5
11176 (eval "$ac_link") 2>conftest.er1
11177 ac_status=$?
11178 grep -v '^ *+' conftest.er1 >conftest.err
11179 rm -f conftest.er1
11180 cat conftest.err >&5
11181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } && {
11183 test -z "$ac_c_werror_flag" ||
11184 test ! -s conftest.err
11185 } && test -s conftest$ac_exeext && {
11186 test "$cross_compiling" = yes ||
11187 $as_test_x conftest$ac_exeext
11188 }; then
11189 ac_cv_lib_dld_dld_link=yes
11190else
11191 $as_echo "$as_me: failed program was:" >&5
11192sed 's/^/| /' conftest.$ac_ext >&5
11193
11194 ac_cv_lib_dld_dld_link=no
11195fi
11196
11197rm -rf conftest.dSYM
11198rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11199 conftest$ac_exeext conftest.$ac_ext
11200LIBS=$ac_check_lib_save_LIBS
11201fi
11202{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11203$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050011204if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011205 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11206fi
11207
11208
11209fi
11210
11211
11212fi
11213
11214
11215fi
11216
11217
11218fi
11219
11220
11221fi
11222
11223 ;;
11224 esac
11225
11226 if test "x$lt_cv_dlopen" != xno; then
11227 enable_dlopen=yes
11228 else
11229 enable_dlopen=no
11230 fi
11231
11232 case $lt_cv_dlopen in
11233 dlopen)
11234 save_CPPFLAGS="$CPPFLAGS"
11235 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11236
11237 save_LDFLAGS="$LDFLAGS"
11238 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11239
11240 save_LIBS="$LIBS"
11241 LIBS="$lt_cv_dlopen_libs $LIBS"
11242
11243 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11244$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11245if test "${lt_cv_dlopen_self+set}" = set; then
11246 $as_echo_n "(cached) " >&6
11247else
11248 if test "$cross_compiling" = yes; then :
11249 lt_cv_dlopen_self=cross
11250else
11251 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11252 lt_status=$lt_dlunknown
11253 cat > conftest.$ac_ext <<_LT_EOF
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050011254#line 11254 "configure"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011255#include "confdefs.h"
11256
11257#if HAVE_DLFCN_H
11258#include <dlfcn.h>
11259#endif
11260
11261#include <stdio.h>
11262
11263#ifdef RTLD_GLOBAL
11264# define LT_DLGLOBAL RTLD_GLOBAL
11265#else
11266# ifdef DL_GLOBAL
11267# define LT_DLGLOBAL DL_GLOBAL
11268# else
11269# define LT_DLGLOBAL 0
11270# endif
11271#endif
11272
11273/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11274 find out it does not work in some platform. */
11275#ifndef LT_DLLAZY_OR_NOW
11276# ifdef RTLD_LAZY
11277# define LT_DLLAZY_OR_NOW RTLD_LAZY
11278# else
11279# ifdef DL_LAZY
11280# define LT_DLLAZY_OR_NOW DL_LAZY
11281# else
11282# ifdef RTLD_NOW
11283# define LT_DLLAZY_OR_NOW RTLD_NOW
11284# else
11285# ifdef DL_NOW
11286# define LT_DLLAZY_OR_NOW DL_NOW
11287# else
11288# define LT_DLLAZY_OR_NOW 0
11289# endif
11290# endif
11291# endif
11292# endif
11293#endif
11294
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011295void fnord() { int i=42;}
11296int main ()
11297{
11298 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11299 int status = $lt_dlunknown;
11300
11301 if (self)
11302 {
11303 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11304 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11305 /* dlclose (self); */
11306 }
11307 else
11308 puts (dlerror ());
11309
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050011310 return status;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011311}
11312_LT_EOF
11313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11314 (eval $ac_link) 2>&5
11315 ac_status=$?
11316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11318 (./conftest; exit; ) >&5 2>/dev/null
11319 lt_status=$?
11320 case x$lt_status in
11321 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11322 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11323 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11324 esac
11325 else :
11326 # compilation failed
11327 lt_cv_dlopen_self=no
11328 fi
11329fi
11330rm -fr conftest*
11331
11332
11333fi
11334{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11335$as_echo "$lt_cv_dlopen_self" >&6; }
11336
11337 if test "x$lt_cv_dlopen_self" = xyes; then
11338 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11339 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11340$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11341if test "${lt_cv_dlopen_self_static+set}" = set; then
11342 $as_echo_n "(cached) " >&6
11343else
11344 if test "$cross_compiling" = yes; then :
11345 lt_cv_dlopen_self_static=cross
11346else
11347 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11348 lt_status=$lt_dlunknown
11349 cat > conftest.$ac_ext <<_LT_EOF
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050011350#line 11350 "configure"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011351#include "confdefs.h"
11352
11353#if HAVE_DLFCN_H
11354#include <dlfcn.h>
11355#endif
11356
11357#include <stdio.h>
11358
11359#ifdef RTLD_GLOBAL
11360# define LT_DLGLOBAL RTLD_GLOBAL
11361#else
11362# ifdef DL_GLOBAL
11363# define LT_DLGLOBAL DL_GLOBAL
11364# else
11365# define LT_DLGLOBAL 0
11366# endif
11367#endif
11368
11369/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11370 find out it does not work in some platform. */
11371#ifndef LT_DLLAZY_OR_NOW
11372# ifdef RTLD_LAZY
11373# define LT_DLLAZY_OR_NOW RTLD_LAZY
11374# else
11375# ifdef DL_LAZY
11376# define LT_DLLAZY_OR_NOW DL_LAZY
11377# else
11378# ifdef RTLD_NOW
11379# define LT_DLLAZY_OR_NOW RTLD_NOW
11380# else
11381# ifdef DL_NOW
11382# define LT_DLLAZY_OR_NOW DL_NOW
11383# else
11384# define LT_DLLAZY_OR_NOW 0
11385# endif
11386# endif
11387# endif
11388# endif
11389#endif
11390
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011391void fnord() { int i=42;}
11392int main ()
11393{
11394 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11395 int status = $lt_dlunknown;
11396
11397 if (self)
11398 {
11399 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11400 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11401 /* dlclose (self); */
11402 }
11403 else
11404 puts (dlerror ());
11405
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050011406 return status;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011407}
11408_LT_EOF
11409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11410 (eval $ac_link) 2>&5
11411 ac_status=$?
11412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11414 (./conftest; exit; ) >&5 2>/dev/null
11415 lt_status=$?
11416 case x$lt_status in
11417 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11418 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11419 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11420 esac
11421 else :
11422 # compilation failed
11423 lt_cv_dlopen_self_static=no
11424 fi
11425fi
11426rm -fr conftest*
11427
11428
11429fi
11430{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11431$as_echo "$lt_cv_dlopen_self_static" >&6; }
11432 fi
11433
11434 CPPFLAGS="$save_CPPFLAGS"
11435 LDFLAGS="$save_LDFLAGS"
11436 LIBS="$save_LIBS"
11437 ;;
11438 esac
11439
11440 case $lt_cv_dlopen_self in
11441 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11442 *) enable_dlopen_self=unknown ;;
11443 esac
11444
11445 case $lt_cv_dlopen_self_static in
11446 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11447 *) enable_dlopen_self_static=unknown ;;
11448 esac
11449fi
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467striplib=
11468old_striplib=
11469{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11470$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11471if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11472 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11473 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11474 { $as_echo "$as_me:$LINENO: result: yes" >&5
11475$as_echo "yes" >&6; }
11476else
11477# FIXME - insert some real tests, host_os isn't really good enough
11478 case $host_os in
11479 darwin*)
11480 if test -n "$STRIP" ; then
11481 striplib="$STRIP -x"
11482 old_striplib="$STRIP -S"
11483 { $as_echo "$as_me:$LINENO: result: yes" >&5
11484$as_echo "yes" >&6; }
11485 else
11486 { $as_echo "$as_me:$LINENO: result: no" >&5
11487$as_echo "no" >&6; }
11488 fi
11489 ;;
11490 *)
11491 { $as_echo "$as_me:$LINENO: result: no" >&5
11492$as_echo "no" >&6; }
11493 ;;
11494 esac
11495fi
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508 # Report which library types will actually be built
11509 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11510$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11511 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11512$as_echo "$can_build_shared" >&6; }
11513
11514 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11515$as_echo_n "checking whether to build shared libraries... " >&6; }
11516 test "$can_build_shared" = "no" && enable_shared=no
11517
11518 # On AIX, shared libraries and static libraries use the same namespace, and
11519 # are all built from PIC.
11520 case $host_os in
11521 aix3*)
11522 test "$enable_shared" = yes && enable_static=no
11523 if test -n "$RANLIB"; then
11524 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11525 postinstall_cmds='$RANLIB $lib'
11526 fi
11527 ;;
11528
11529 aix[4-9]*)
11530 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11531 test "$enable_shared" = yes && enable_static=no
11532 fi
11533 ;;
11534 esac
11535 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11536$as_echo "$enable_shared" >&6; }
11537
11538 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11539$as_echo_n "checking whether to build static libraries... " >&6; }
11540 # Make sure either enable_shared or enable_static is yes.
11541 test "$enable_shared" = yes || enable_static=yes
11542 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11543$as_echo "$enable_static" >&6; }
11544
11545
11546
11547
11548fi
11549ac_ext=c
11550ac_cpp='$CPP $CPPFLAGS'
11551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11553ac_compiler_gnu=$ac_cv_c_compiler_gnu
11554
11555CC="$lt_save_CC"
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569 ac_config_commands="$ac_config_commands libtool"
11570
11571
11572
11573
11574# Only expand once:
11575
11576
11577
11578# Checks for header files.
11579{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11580$as_echo_n "checking for ANSI C header files... " >&6; }
11581if test "${ac_cv_header_stdc+set}" = set; then
11582 $as_echo_n "(cached) " >&6
11583else
11584 cat >conftest.$ac_ext <<_ACEOF
11585/* confdefs.h. */
11586_ACEOF
11587cat confdefs.h >>conftest.$ac_ext
11588cat >>conftest.$ac_ext <<_ACEOF
11589/* end confdefs.h. */
11590#include <stdlib.h>
11591#include <stdarg.h>
11592#include <string.h>
11593#include <float.h>
11594
11595int
11596main ()
11597{
11598
11599 ;
11600 return 0;
11601}
11602_ACEOF
11603rm -f conftest.$ac_objext
11604if { (ac_try="$ac_compile"
11605case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11608esac
11609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11610$as_echo "$ac_try_echo") >&5
11611 (eval "$ac_compile") 2>conftest.er1
11612 ac_status=$?
11613 grep -v '^ *+' conftest.er1 >conftest.err
11614 rm -f conftest.er1
11615 cat conftest.err >&5
11616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } && {
11618 test -z "$ac_c_werror_flag" ||
11619 test ! -s conftest.err
11620 } && test -s conftest.$ac_objext; then
11621 ac_cv_header_stdc=yes
11622else
11623 $as_echo "$as_me: failed program was:" >&5
11624sed 's/^/| /' conftest.$ac_ext >&5
11625
11626 ac_cv_header_stdc=no
11627fi
11628
11629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11630
11631if test $ac_cv_header_stdc = yes; then
11632 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11633 cat >conftest.$ac_ext <<_ACEOF
11634/* confdefs.h. */
11635_ACEOF
11636cat confdefs.h >>conftest.$ac_ext
11637cat >>conftest.$ac_ext <<_ACEOF
11638/* end confdefs.h. */
11639#include <string.h>
11640
11641_ACEOF
11642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11643 $EGREP "memchr" >/dev/null 2>&1; then
11644 :
11645else
11646 ac_cv_header_stdc=no
11647fi
11648rm -f conftest*
11649
11650fi
11651
11652if test $ac_cv_header_stdc = yes; then
11653 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11654 cat >conftest.$ac_ext <<_ACEOF
11655/* confdefs.h. */
11656_ACEOF
11657cat confdefs.h >>conftest.$ac_ext
11658cat >>conftest.$ac_ext <<_ACEOF
11659/* end confdefs.h. */
11660#include <stdlib.h>
11661
11662_ACEOF
11663if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11664 $EGREP "free" >/dev/null 2>&1; then
11665 :
11666else
11667 ac_cv_header_stdc=no
11668fi
11669rm -f conftest*
11670
11671fi
11672
11673if test $ac_cv_header_stdc = yes; then
11674 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11675 if test "$cross_compiling" = yes; then
11676 :
11677else
11678 cat >conftest.$ac_ext <<_ACEOF
11679/* confdefs.h. */
11680_ACEOF
11681cat confdefs.h >>conftest.$ac_ext
11682cat >>conftest.$ac_ext <<_ACEOF
11683/* end confdefs.h. */
11684#include <ctype.h>
11685#include <stdlib.h>
11686#if ((' ' & 0x0FF) == 0x020)
11687# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11688# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11689#else
11690# define ISLOWER(c) \
11691 (('a' <= (c) && (c) <= 'i') \
11692 || ('j' <= (c) && (c) <= 'r') \
11693 || ('s' <= (c) && (c) <= 'z'))
11694# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11695#endif
11696
11697#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11698int
11699main ()
11700{
11701 int i;
11702 for (i = 0; i < 256; i++)
11703 if (XOR (islower (i), ISLOWER (i))
11704 || toupper (i) != TOUPPER (i))
11705 return 2;
11706 return 0;
11707}
11708_ACEOF
11709rm -f conftest$ac_exeext
11710if { (ac_try="$ac_link"
11711case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11714esac
11715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11716$as_echo "$ac_try_echo") >&5
11717 (eval "$ac_link") 2>&5
11718 ac_status=$?
11719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11721 { (case "(($ac_try" in
11722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723 *) ac_try_echo=$ac_try;;
11724esac
11725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11726$as_echo "$ac_try_echo") >&5
11727 (eval "$ac_try") 2>&5
11728 ac_status=$?
11729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 :
11732else
11733 $as_echo "$as_me: program exited with status $ac_status" >&5
11734$as_echo "$as_me: failed program was:" >&5
11735sed 's/^/| /' conftest.$ac_ext >&5
11736
11737( exit $ac_status )
11738ac_cv_header_stdc=no
11739fi
11740rm -rf conftest.dSYM
11741rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11742fi
11743
11744
11745fi
11746fi
11747{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11748$as_echo "$ac_cv_header_stdc" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011749if test $ac_cv_header_stdc = yes; then
11750
11751cat >>confdefs.h <<\_ACEOF
11752#define STDC_HEADERS 1
11753_ACEOF
11754
11755fi
11756
11757
11758
11759
11760
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011761for ac_header in malloc.h stdlib.h string.h strings.h
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011762do
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011763as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011765 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11766$as_echo_n "checking for $ac_header... " >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011768 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011769fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011770ac_res=`eval 'as_val=${'$as_ac_Header'}
11771 $as_echo "$as_val"'`
11772 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11773$as_echo "$ac_res" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011774else
11775 # Is the header compilable?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011776{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11777$as_echo_n "checking $ac_header usability... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011778cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011779/* confdefs.h. */
11780_ACEOF
11781cat confdefs.h >>conftest.$ac_ext
11782cat >>conftest.$ac_ext <<_ACEOF
11783/* end confdefs.h. */
11784$ac_includes_default
11785#include <$ac_header>
11786_ACEOF
11787rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011788if { (ac_try="$ac_compile"
11789case "(($ac_try" in
11790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791 *) ac_try_echo=$ac_try;;
11792esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11794$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011795 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011796 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011797 grep -v '^ *+' conftest.er1 >conftest.err
11798 rm -f conftest.er1
11799 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050011801 (exit $ac_status); } && {
11802 test -z "$ac_c_werror_flag" ||
11803 test ! -s conftest.err
11804 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011805 ac_header_compiler=yes
11806else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011807 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011808sed 's/^/| /' conftest.$ac_ext >&5
11809
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011810 ac_header_compiler=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011811fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011812
11813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011814{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11815$as_echo "$ac_header_compiler" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011816
11817# Is the header present?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011818{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11819$as_echo_n "checking $ac_header presence... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011820cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011821/* confdefs.h. */
11822_ACEOF
11823cat confdefs.h >>conftest.$ac_ext
11824cat >>conftest.$ac_ext <<_ACEOF
11825/* end confdefs.h. */
11826#include <$ac_header>
11827_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011828if { (ac_try="$ac_cpp conftest.$ac_ext"
11829case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11832esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11834$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011836 ac_status=$?
11837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050011841 (exit $ac_status); } >/dev/null && {
11842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11843 test ! -s conftest.err
11844 }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011845 ac_header_preproc=yes
11846else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011847 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011848sed 's/^/| /' conftest.$ac_ext >&5
11849
11850 ac_header_preproc=no
11851fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011852
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011853rm -f conftest.err conftest.$ac_ext
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011854{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11855$as_echo "$ac_header_preproc" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011856
11857# So? What about this header?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011858case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11859 yes:no: )
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11861$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11863$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011864 ac_header_preproc=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011865 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011866 no:yes:* )
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11868$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11870$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11872$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11874$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11876$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11878$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011879 ( cat <<\_ASBOX
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011880## ------------------------------------------------------ ##
11881## Report this to png-mng-implement@lists.sourceforge.net ##
11882## ------------------------------------------------------ ##
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011883_ASBOX
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011884 ) | sed "s/^/$as_me: WARNING: /" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011885 ;;
11886esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011887{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11888$as_echo_n "checking for $ac_header... " >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011890 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011891else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011892 eval "$as_ac_Header=\$ac_header_preproc"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011893fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011894ac_res=`eval 'as_val=${'$as_ac_Header'}
11895 $as_echo "$as_val"'`
11896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11897$as_echo "$ac_res" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011898
11899fi
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050011900as_val=`eval 'as_val=${'$as_ac_Header'}
11901 $as_echo "$as_val"'`
11902 if test "x$as_val" = x""yes; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011903 cat >>confdefs.h <<_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011904#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011905_ACEOF
11906
11907fi
11908
11909done
11910
11911
11912# Checks for typedefs, structures, and compiler characteristics.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011913{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11914$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011915if test "${ac_cv_c_const+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011916 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011917else
11918 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011919/* confdefs.h. */
11920_ACEOF
11921cat confdefs.h >>conftest.$ac_ext
11922cat >>conftest.$ac_ext <<_ACEOF
11923/* end confdefs.h. */
11924
11925int
11926main ()
11927{
11928/* FIXME: Include the comments suggested by Paul. */
11929#ifndef __cplusplus
11930 /* Ultrix mips cc rejects this. */
11931 typedef int charset[2];
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050011932 const charset cs;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011933 /* SunOS 4.1.1 cc rejects this. */
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050011934 char const *const *pcpcc;
11935 char **ppc;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011936 /* NEC SVR4.0.2 mips cc rejects this. */
11937 struct point {int x, y;};
11938 static struct point const zero = {0,0};
11939 /* AIX XL C 1.02.0.0 rejects this.
11940 It does not let you subtract one const X* pointer from another in
11941 an arm of an if-expression whose if-part is not a constant
11942 expression */
11943 const char *g = "string";
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050011944 pcpcc = &g + (g ? g-g : 0);
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011945 /* HPUX 7.0 cc rejects these. */
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050011946 ++pcpcc;
11947 ppc = (char**) pcpcc;
11948 pcpcc = (char const *const *) ppc;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011949 { /* SCO 3.2v4 cc rejects this. */
11950 char *t;
11951 char const *s = 0 ? (char *) 0 : (char const *) 0;
11952
11953 *t++ = 0;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011954 if (s) return 0;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011955 }
11956 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11957 int x[] = {25, 17};
11958 const int *foo = &x[0];
11959 ++foo;
11960 }
11961 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11962 typedef const int *iptr;
11963 iptr p = 0;
11964 ++p;
11965 }
11966 { /* AIX XL C 1.02.0.0 rejects this saying
11967 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11968 struct s { int j; const int *ap[3]; };
11969 struct s *b; b->j = 5;
11970 }
11971 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11972 const int foo = 10;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011973 if (!foo) return 0;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011974 }
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050011975 return !cs[0] && !zero.x;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011976#endif
11977
11978 ;
11979 return 0;
11980}
11981_ACEOF
11982rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011983if { (ac_try="$ac_compile"
11984case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11987esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11989$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011990 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011991 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011992 grep -v '^ *+' conftest.er1 >conftest.err
11993 rm -f conftest.er1
11994 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050011996 (exit $ac_status); } && {
11997 test -z "$ac_c_werror_flag" ||
11998 test ! -s conftest.err
11999 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012000 ac_cv_c_const=yes
12001else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012002 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012003sed 's/^/| /' conftest.$ac_ext >&5
12004
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012005 ac_cv_c_const=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012006fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012007
12008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012009fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012010{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12011$as_echo "$ac_cv_c_const" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012012if test $ac_cv_c_const = no; then
12013
12014cat >>confdefs.h <<\_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012015#define const /**/
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012016_ACEOF
12017
12018fi
12019
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012020{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
12021$as_echo_n "checking for size_t... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012022if test "${ac_cv_type_size_t+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012023 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012024else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012025 ac_cv_type_size_t=no
12026cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012027/* confdefs.h. */
12028_ACEOF
12029cat confdefs.h >>conftest.$ac_ext
12030cat >>conftest.$ac_ext <<_ACEOF
12031/* end confdefs.h. */
12032$ac_includes_default
12033int
12034main ()
12035{
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012036if (sizeof (size_t))
12037 return 0;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012038 ;
12039 return 0;
12040}
12041_ACEOF
12042rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012043if { (ac_try="$ac_compile"
12044case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12047esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12049$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012050 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012051 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012052 grep -v '^ *+' conftest.er1 >conftest.err
12053 rm -f conftest.er1
12054 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012056 (exit $ac_status); } && {
12057 test -z "$ac_c_werror_flag" ||
12058 test ! -s conftest.err
12059 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012060 cat >conftest.$ac_ext <<_ACEOF
12061/* confdefs.h. */
12062_ACEOF
12063cat confdefs.h >>conftest.$ac_ext
12064cat >>conftest.$ac_ext <<_ACEOF
12065/* end confdefs.h. */
12066$ac_includes_default
12067int
12068main ()
12069{
12070if (sizeof ((size_t)))
12071 return 0;
12072 ;
12073 return 0;
12074}
12075_ACEOF
12076rm -f conftest.$ac_objext
12077if { (ac_try="$ac_compile"
12078case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12081esac
12082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12083$as_echo "$ac_try_echo") >&5
12084 (eval "$ac_compile") 2>conftest.er1
12085 ac_status=$?
12086 grep -v '^ *+' conftest.er1 >conftest.err
12087 rm -f conftest.er1
12088 cat conftest.err >&5
12089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); } && {
12091 test -z "$ac_c_werror_flag" ||
12092 test ! -s conftest.err
12093 } && test -s conftest.$ac_objext; then
12094 :
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012095else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012096 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012097sed 's/^/| /' conftest.$ac_ext >&5
12098
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012099 ac_cv_type_size_t=yes
12100fi
12101
12102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12103else
12104 $as_echo "$as_me: failed program was:" >&5
12105sed 's/^/| /' conftest.$ac_ext >&5
12106
12107
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012108fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012109
12110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012111fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012112{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12113$as_echo "$ac_cv_type_size_t" >&6; }
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050012114if test "x$ac_cv_type_size_t" = x""yes; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012115 :
12116else
12117
12118cat >>confdefs.h <<_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012119#define size_t unsigned int
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012120_ACEOF
12121
12122fi
12123
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012124{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12125$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012126if test "${ac_cv_struct_tm+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012127 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012128else
12129 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012130/* confdefs.h. */
12131_ACEOF
12132cat confdefs.h >>conftest.$ac_ext
12133cat >>conftest.$ac_ext <<_ACEOF
12134/* end confdefs.h. */
12135#include <sys/types.h>
12136#include <time.h>
12137
12138int
12139main ()
12140{
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012141struct tm tm;
12142 int *p = &tm.tm_sec;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012143 return !p;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012144 ;
12145 return 0;
12146}
12147_ACEOF
12148rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012149if { (ac_try="$ac_compile"
12150case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12153esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12155$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012156 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012157 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012158 grep -v '^ *+' conftest.er1 >conftest.err
12159 rm -f conftest.er1
12160 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012162 (exit $ac_status); } && {
12163 test -z "$ac_c_werror_flag" ||
12164 test ! -s conftest.err
12165 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012166 ac_cv_struct_tm=time.h
12167else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012168 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012169sed 's/^/| /' conftest.$ac_ext >&5
12170
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012171 ac_cv_struct_tm=sys/time.h
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012172fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012173
12174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012175fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012176{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12177$as_echo "$ac_cv_struct_tm" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012178if test $ac_cv_struct_tm = sys/time.h; then
12179
12180cat >>confdefs.h <<\_ACEOF
12181#define TM_IN_SYS_TIME 1
12182_ACEOF
12183
12184fi
12185
12186
12187# Checks for library functions.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012188{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
12189$as_echo_n "checking for working strtod... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012190if test "${ac_cv_func_strtod+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012191 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012192else
12193 if test "$cross_compiling" = yes; then
12194 ac_cv_func_strtod=no
12195else
12196 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012197/* confdefs.h. */
12198_ACEOF
12199cat confdefs.h >>conftest.$ac_ext
12200cat >>conftest.$ac_ext <<_ACEOF
12201/* end confdefs.h. */
12202
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012203$ac_includes_default
12204#ifndef strtod
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012205double strtod ();
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012206#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012207int
12208main()
12209{
12210 {
12211 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12212 char *string = " +69";
12213 char *term;
12214 double value;
12215 value = strtod (string, &term);
12216 if (value != 69 || term != (string + 4))
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012217 return 1;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012218 }
12219
12220 {
12221 /* Under Solaris 2.4, strtod returns the wrong value for the
12222 terminating character under some conditions. */
12223 char *string = "NaN";
12224 char *term;
12225 strtod (string, &term);
12226 if (term != string && *(term - 1) == 0)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012227 return 1;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012228 }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012229 return 0;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012230}
12231
12232_ACEOF
12233rm -f conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012234if { (ac_try="$ac_link"
12235case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12238esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12240$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012241 (eval "$ac_link") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012242 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012245 { (case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12248esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012249eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12250$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012251 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012252 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012254 (exit $ac_status); }; }; then
12255 ac_cv_func_strtod=yes
12256else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012257 $as_echo "$as_me: program exited with status $ac_status" >&5
12258$as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012259sed 's/^/| /' conftest.$ac_ext >&5
12260
12261( exit $ac_status )
12262ac_cv_func_strtod=no
12263fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012264rm -rf conftest.dSYM
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012266fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012267
12268
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012269fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012270{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
12271$as_echo "$ac_cv_func_strtod" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012272if test $ac_cv_func_strtod = no; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012273 case " $LIBOBJS " in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012274 *" strtod.$ac_objext "* ) ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012275 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12276 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012277esac
12278
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012279{ $as_echo "$as_me:$LINENO: checking for pow" >&5
12280$as_echo_n "checking for pow... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012281if test "${ac_cv_func_pow+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012282 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012283else
12284 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012285/* confdefs.h. */
12286_ACEOF
12287cat confdefs.h >>conftest.$ac_ext
12288cat >>conftest.$ac_ext <<_ACEOF
12289/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012290/* Define pow to an innocuous variant, in case <limits.h> declares pow.
12291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12292#define pow innocuous_pow
12293
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012294/* System header to define __stub macros and hopefully few prototypes,
12295 which can conflict with char pow (); below.
12296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12297 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012298
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012299#ifdef __STDC__
12300# include <limits.h>
12301#else
12302# include <assert.h>
12303#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012304
12305#undef pow
12306
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012307/* Override any GCC internal prototype to avoid an error.
12308 Use char because int might match the return type of a GCC
12309 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012310#ifdef __cplusplus
12311extern "C"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012312#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012313char pow ();
12314/* The GNU C library defines this for functions which it implements
12315 to always fail with ENOSYS. Some functions are actually named
12316 something starting with __ and the normal name is an alias. */
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012317#if defined __stub_pow || defined __stub___pow
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012318choke me
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012319#endif
12320
12321int
12322main ()
12323{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012324return pow ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012325 ;
12326 return 0;
12327}
12328_ACEOF
12329rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012330if { (ac_try="$ac_link"
12331case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12336$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012337 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012338 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012339 grep -v '^ *+' conftest.er1 >conftest.err
12340 rm -f conftest.er1
12341 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012343 (exit $ac_status); } && {
12344 test -z "$ac_c_werror_flag" ||
12345 test ! -s conftest.err
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012346 } && test -s conftest$ac_exeext && {
12347 test "$cross_compiling" = yes ||
12348 $as_test_x conftest$ac_exeext
12349 }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012350 ac_cv_func_pow=yes
12351else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012352 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012353sed 's/^/| /' conftest.$ac_ext >&5
12354
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012355 ac_cv_func_pow=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012356fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012357
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012358rm -rf conftest.dSYM
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012359rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012360 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012361fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012362{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
12363$as_echo "$ac_cv_func_pow" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012364
12365if test $ac_cv_func_pow = no; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012366 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
12367$as_echo_n "checking for pow in -lm... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012368if test "${ac_cv_lib_m_pow+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012369 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012370else
12371 ac_check_lib_save_LIBS=$LIBS
12372LIBS="-lm $LIBS"
12373cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012374/* confdefs.h. */
12375_ACEOF
12376cat confdefs.h >>conftest.$ac_ext
12377cat >>conftest.$ac_ext <<_ACEOF
12378/* end confdefs.h. */
12379
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012380/* Override any GCC internal prototype to avoid an error.
12381 Use char because int might match the return type of a GCC
12382 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012383#ifdef __cplusplus
12384extern "C"
12385#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012386char pow ();
12387int
12388main ()
12389{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012390return pow ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012391 ;
12392 return 0;
12393}
12394_ACEOF
12395rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012396if { (ac_try="$ac_link"
12397case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12400esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12402$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012403 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012404 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012405 grep -v '^ *+' conftest.er1 >conftest.err
12406 rm -f conftest.er1
12407 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012409 (exit $ac_status); } && {
12410 test -z "$ac_c_werror_flag" ||
12411 test ! -s conftest.err
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012412 } && test -s conftest$ac_exeext && {
12413 test "$cross_compiling" = yes ||
12414 $as_test_x conftest$ac_exeext
12415 }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012416 ac_cv_lib_m_pow=yes
12417else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012418 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012419sed 's/^/| /' conftest.$ac_ext >&5
12420
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012421 ac_cv_lib_m_pow=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012422fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012423
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012424rm -rf conftest.dSYM
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012425rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012426 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012427LIBS=$ac_check_lib_save_LIBS
12428fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012429{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
12430$as_echo "$ac_cv_lib_m_pow" >&6; }
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050012431if test "x$ac_cv_lib_m_pow" = x""yes; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012432 POW_LIB=-lm
12433else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012434 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
12435$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012436fi
12437
12438fi
12439
12440fi
12441
12442
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012443for ac_func in memset
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012444do
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012445as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12446{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12447$as_echo_n "checking for $ac_func... " >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012448if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012449 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012450else
12451 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012452/* confdefs.h. */
12453_ACEOF
12454cat confdefs.h >>conftest.$ac_ext
12455cat >>conftest.$ac_ext <<_ACEOF
12456/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012457/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12459#define $ac_func innocuous_$ac_func
12460
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012461/* System header to define __stub macros and hopefully few prototypes,
12462 which can conflict with char $ac_func (); below.
12463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12464 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012465
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012466#ifdef __STDC__
12467# include <limits.h>
12468#else
12469# include <assert.h>
12470#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012471
12472#undef $ac_func
12473
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012474/* Override any GCC internal prototype to avoid an error.
12475 Use char because int might match the return type of a GCC
12476 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012477#ifdef __cplusplus
12478extern "C"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012479#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012480char $ac_func ();
12481/* The GNU C library defines this for functions which it implements
12482 to always fail with ENOSYS. Some functions are actually named
12483 something starting with __ and the normal name is an alias. */
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012484#if defined __stub_$ac_func || defined __stub___$ac_func
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012485choke me
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012486#endif
12487
12488int
12489main ()
12490{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012491return $ac_func ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012492 ;
12493 return 0;
12494}
12495_ACEOF
12496rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012497if { (ac_try="$ac_link"
12498case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12501esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12503$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012504 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012505 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012506 grep -v '^ *+' conftest.er1 >conftest.err
12507 rm -f conftest.er1
12508 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012510 (exit $ac_status); } && {
12511 test -z "$ac_c_werror_flag" ||
12512 test ! -s conftest.err
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012513 } && test -s conftest$ac_exeext && {
12514 test "$cross_compiling" = yes ||
12515 $as_test_x conftest$ac_exeext
12516 }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012517 eval "$as_ac_var=yes"
12518else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012519 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012520sed 's/^/| /' conftest.$ac_ext >&5
12521
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012522 eval "$as_ac_var=no"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012523fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012524
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012525rm -rf conftest.dSYM
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012526rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012527 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012528fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012529ac_res=`eval 'as_val=${'$as_ac_var'}
12530 $as_echo "$as_val"'`
12531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12532$as_echo "$ac_res" >&6; }
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050012533as_val=`eval 'as_val=${'$as_ac_var'}
12534 $as_echo "$as_val"'`
12535 if test "x$as_val" = x""yes; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012536 cat >>confdefs.h <<_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012537#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012538_ACEOF
12539
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012540else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012541 { { $as_echo "$as_me:$LINENO: error: memset not found in libc" >&5
12542$as_echo "$as_me: error: memset not found in libc" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012543 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012544fi
12545done
12546
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012547
12548for ac_func in pow
12549do
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012550as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12551{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12552$as_echo_n "checking for $ac_func... " >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012553if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012554 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012555else
12556 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012557/* confdefs.h. */
12558_ACEOF
12559cat confdefs.h >>conftest.$ac_ext
12560cat >>conftest.$ac_ext <<_ACEOF
12561/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012562/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12564#define $ac_func innocuous_$ac_func
12565
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012566/* System header to define __stub macros and hopefully few prototypes,
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012567 which can conflict with char $ac_func (); below.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12569 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012570
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012571#ifdef __STDC__
12572# include <limits.h>
12573#else
12574# include <assert.h>
12575#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012576
12577#undef $ac_func
12578
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012579/* Override any GCC internal prototype to avoid an error.
12580 Use char because int might match the return type of a GCC
12581 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012582#ifdef __cplusplus
12583extern "C"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012584#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012585char $ac_func ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012586/* The GNU C library defines this for functions which it implements
12587 to always fail with ENOSYS. Some functions are actually named
12588 something starting with __ and the normal name is an alias. */
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012589#if defined __stub_$ac_func || defined __stub___$ac_func
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012590choke me
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012591#endif
12592
12593int
12594main ()
12595{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012596return $ac_func ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012597 ;
12598 return 0;
12599}
12600_ACEOF
12601rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012602if { (ac_try="$ac_link"
12603case "(($ac_try" in
12604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12606esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12608$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012609 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012610 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012611 grep -v '^ *+' conftest.er1 >conftest.err
12612 rm -f conftest.er1
12613 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012615 (exit $ac_status); } && {
12616 test -z "$ac_c_werror_flag" ||
12617 test ! -s conftest.err
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012618 } && test -s conftest$ac_exeext && {
12619 test "$cross_compiling" = yes ||
12620 $as_test_x conftest$ac_exeext
12621 }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012622 eval "$as_ac_var=yes"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012623else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012624 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012625sed 's/^/| /' conftest.$ac_ext >&5
12626
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012627 eval "$as_ac_var=no"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012628fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012629
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012630rm -rf conftest.dSYM
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012631rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012632 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012633fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012634ac_res=`eval 'as_val=${'$as_ac_var'}
12635 $as_echo "$as_val"'`
12636 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12637$as_echo "$ac_res" >&6; }
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050012638as_val=`eval 'as_val=${'$as_ac_var'}
12639 $as_echo "$as_val"'`
12640 if test "x$as_val" = x""yes; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012641 cat >>confdefs.h <<_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012642#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012643_ACEOF
12644
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012645else
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060012646
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012647{ $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
12648$as_echo_n "checking for pow in -lm... " >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012649if test "${ac_cv_lib_m_pow+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012650 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012651else
12652 ac_check_lib_save_LIBS=$LIBS
12653LIBS="-lm $LIBS"
12654cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012655/* confdefs.h. */
12656_ACEOF
12657cat confdefs.h >>conftest.$ac_ext
12658cat >>conftest.$ac_ext <<_ACEOF
12659/* end confdefs.h. */
12660
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012661/* Override any GCC internal prototype to avoid an error.
12662 Use char because int might match the return type of a GCC
12663 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012664#ifdef __cplusplus
12665extern "C"
12666#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012667char pow ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012668int
12669main ()
12670{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012671return pow ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012672 ;
12673 return 0;
12674}
12675_ACEOF
12676rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012677if { (ac_try="$ac_link"
12678case "(($ac_try" in
12679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12680 *) ac_try_echo=$ac_try;;
12681esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12683$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012684 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012685 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012686 grep -v '^ *+' conftest.er1 >conftest.err
12687 rm -f conftest.er1
12688 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012690 (exit $ac_status); } && {
12691 test -z "$ac_c_werror_flag" ||
12692 test ! -s conftest.err
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012693 } && test -s conftest$ac_exeext && {
12694 test "$cross_compiling" = yes ||
12695 $as_test_x conftest$ac_exeext
12696 }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012697 ac_cv_lib_m_pow=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012698else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012699 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012700sed 's/^/| /' conftest.$ac_ext >&5
12701
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012702 ac_cv_lib_m_pow=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012703fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012704
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012705rm -rf conftest.dSYM
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012706rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012707 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012708LIBS=$ac_check_lib_save_LIBS
12709fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012710{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
12711$as_echo "$ac_cv_lib_m_pow" >&6; }
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050012712if test "x$ac_cv_lib_m_pow" = x""yes; then
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060012713 cat >>confdefs.h <<_ACEOF
12714#define HAVE_LIBM 1
12715_ACEOF
12716
12717 LIBS="-lm $LIBS"
12718
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012719else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012720 { { $as_echo "$as_me:$LINENO: error: cannot find pow" >&5
12721$as_echo "$as_me: error: cannot find pow" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012722 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012723fi
12724
12725fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012726done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012727
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060012728
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012729{ $as_echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
12730$as_echo_n "checking for zlibVersion in -lz... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012731if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012732 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012733else
12734 ac_check_lib_save_LIBS=$LIBS
12735LIBS="-lz $LIBS"
12736cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012737/* confdefs.h. */
12738_ACEOF
12739cat confdefs.h >>conftest.$ac_ext
12740cat >>conftest.$ac_ext <<_ACEOF
12741/* end confdefs.h. */
12742
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012743/* Override any GCC internal prototype to avoid an error.
12744 Use char because int might match the return type of a GCC
12745 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012746#ifdef __cplusplus
12747extern "C"
12748#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012749char zlibVersion ();
12750int
12751main ()
12752{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012753return zlibVersion ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012754 ;
12755 return 0;
12756}
12757_ACEOF
12758rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012759if { (ac_try="$ac_link"
12760case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12763esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12765$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012766 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012767 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012768 grep -v '^ *+' conftest.er1 >conftest.err
12769 rm -f conftest.er1
12770 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012772 (exit $ac_status); } && {
12773 test -z "$ac_c_werror_flag" ||
12774 test ! -s conftest.err
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012775 } && test -s conftest$ac_exeext && {
12776 test "$cross_compiling" = yes ||
12777 $as_test_x conftest$ac_exeext
12778 }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012779 ac_cv_lib_z_zlibVersion=yes
12780else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012781 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012782sed 's/^/| /' conftest.$ac_ext >&5
12783
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012784 ac_cv_lib_z_zlibVersion=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012785fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012786
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012787rm -rf conftest.dSYM
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012789 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012790LIBS=$ac_check_lib_save_LIBS
12791fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012792{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
12793$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050012794if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060012795 cat >>confdefs.h <<_ACEOF
12796#define HAVE_LIBZ 1
12797_ACEOF
12798
12799 LIBS="-lz $LIBS"
12800
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012801else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012802 { { $as_echo "$as_me:$LINENO: error: zlib not installed" >&5
12803$as_echo "$as_me: error: zlib not installed" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012804 { (exit 1); exit 1; }; }
12805fi
12806
12807
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012808LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050012809LIBPNG_DEFINES=$LIBPNG_DEFINES
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050012810
Glenn Randers-Pehrsonb3870ab2006-05-11 09:43:09 -050012811
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012812{ $as_echo "$as_me:$LINENO: checking if libraries can be versioned" >&5
12813$as_echo_n "checking if libraries can be versioned... " >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060012814GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
12815if test "$GLD"; then
12816 have_ld_version_script=yes
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012817 { $as_echo "$as_me:$LINENO: result: yes" >&5
12818$as_echo "yes" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060012819else
12820 have_ld_version_script=no
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012821 { $as_echo "$as_me:$LINENO: result: no" >&5
12822$as_echo "no" >&6; }
12823 { $as_echo "$as_me:$LINENO: WARNING: *** You have not enabled versioned symbols." >&5
12824$as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060012825fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012826 if test "$have_ld_version_script" = "yes"; then
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060012827 HAVE_LD_VERSION_SCRIPT_TRUE=
12828 HAVE_LD_VERSION_SCRIPT_FALSE='#'
12829else
12830 HAVE_LD_VERSION_SCRIPT_TRUE='#'
12831 HAVE_LD_VERSION_SCRIPT_FALSE=
12832fi
12833
12834
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012835if test "$have_ld_version_script" = "yes"; then
12836 { $as_echo "$as_me:$LINENO: checking for symbol prefix" >&5
12837$as_echo_n "checking for symbol prefix... " >&6; }
12838 SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
12839 | ${CPP-${CC-gcc} -E} - 2>&1 \
12840 | ${EGREP-grep} "^PREFIX=" \
12841 | ${SED-sed} "s:^PREFIX=::"`
12842
12843 { $as_echo "$as_me:$LINENO: result: $SYMBOL_PREFIX" >&5
12844$as_echo "$SYMBOL_PREFIX" >&6; }
12845fi
12846
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012847# Substitutions for .in files
12848
12849
12850
12851
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012852
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012853# Additional arguments (and substitutions)
12854# Allow the pkg-config directory to be set
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012855
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012856# Check whether --with-pkgconfigdir was given.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012857if test "${with_pkgconfigdir+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012858 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012859else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012860 pkgconfigdir='${libdir}/pkgconfig'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012861fi
12862
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012863
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012864
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012865{ $as_echo "$as_me:$LINENO: pkgconfig directory is ${pkgconfigdir}" >&5
12866$as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012867
12868# Make the *-config binary config scripts optional
12869
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012870# Check whether --with-binconfigs was given.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012871if test "${with_binconfigs+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012872 withval=$with_binconfigs; if test "${withval}" = no; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012873 binconfigs=
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012874 { $as_echo "$as_me:$LINENO: libpng-config scripts will not be built" >&5
12875$as_echo "$as_me: libpng-config scripts will not be built" >&6;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012876 else
12877 binconfigs='${binconfigs}'
12878 fi
12879else
12880 binconfigs='${binconfigs}'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012881fi
12882
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012883
12884
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012885# Allow the old version number library, libpng.so, to be removed from
12886# the build
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012887
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012888# Check whether --with-libpng-compat was given.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012889if test "${with_libpng_compat+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012890 withval=$with_libpng_compat; if test "${withval}" = no; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012891 compatlib=
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012892 { $as_echo "$as_me:$LINENO: libpng.so will not be built" >&5
12893$as_echo "$as_me: libpng.so will not be built" >&6;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012894 else
12895 compatlib=libpng.la
12896 fi
12897else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012898 compatlib=libpng.la
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012899fi
12900
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012901
12902
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012903# Config files, substituting as above
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012904ac_config_files="$ac_config_files Makefile libpng.pc:scripts/libpng.pc-configure.in"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012905
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012906ac_config_files="$ac_config_files libpng-config:scripts/libpng-config.in"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012907
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012908
12909cat >confcache <<\_ACEOF
12910# This file is a shell script that caches the results of configure
12911# tests run on this system so they can be shared between configure
12912# scripts and configure runs, see configure's option --config-cache.
12913# It is not useful on other systems. If it contains results you don't
12914# want to keep, you may remove or edit it.
12915#
12916# config.status only pays attention to the cache file if you give it
12917# the --recheck option to rerun configure.
12918#
12919# `ac_cv_env_foo' variables (set or unset) will be overridden when
12920# loading this file, other *unset* `ac_cv_foo' will be assigned the
12921# following values.
12922
12923_ACEOF
12924
12925# The following way of writing the cache mishandles newlines in values,
12926# but we know of no workaround that is simple, portable, and efficient.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012927# So, we kill variables containing newlines.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012928# Ultrix sh set writes to stderr and can't be redirected directly,
12929# and sets the high bit in the cache file unless we assign to the vars.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012930(
12931 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12932 eval ac_val=\$$ac_var
12933 case $ac_val in #(
12934 *${as_nl}*)
12935 case $ac_var in #(
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050012936 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12937$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012938 esac
12939 case $ac_var in #(
12940 _ | IFS | as_nl) ;; #(
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012942 *) $as_unset $ac_var ;;
12943 esac ;;
12944 esac
12945 done
12946
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012947 (set) 2>&1 |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012948 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12949 *${as_nl}ac_space=\ *)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012950 # `set' does not quote correctly, so add quotes (double-quote
12951 # substitution turns \\\\ into \\, and sed turns \\ into \).
12952 sed -n \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012953 "s/'/'\\\\''/g;
12954 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012955 ;; #(
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012956 *)
12957 # `set' quotes correctly as required by POSIX, so do not add quotes.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012958 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012959 ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012960 esac |
12961 sort
12962) |
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012963 sed '
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012964 /^ac_cv_env_/b end
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012965 t clear
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012966 :clear
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012967 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12968 t end
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012969 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12970 :end' >>confcache
12971if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12972 if test -w "$cache_file"; then
12973 test "x$cache_file" != "x/dev/null" &&
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012974 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12975$as_echo "$as_me: updating cache $cache_file" >&6;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012976 cat confcache >$cache_file
12977 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012978 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12979$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012980 fi
12981fi
12982rm -f confcache
12983
12984test "x$prefix" = xNONE && prefix=$ac_default_prefix
12985# Let make expand exec_prefix.
12986test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12987
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012988DEFS=-DHAVE_CONFIG_H
12989
12990ac_libobjs=
12991ac_ltlibobjs=
12992for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12993 # 1. Remove the extension, and $U if already installed.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012994 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012995 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012996 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12997 # will be set to the directory where LIBOBJS objects are built.
12998 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12999 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013000done
13001LIBOBJS=$ac_libobjs
13002
13003LTLIBOBJS=$ac_ltlibobjs
13004
13005
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013006if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013007 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013008Usually this means the macro was only invoked conditionally." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013009$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013010Usually this means the macro was only invoked conditionally." >&2;}
13011 { (exit 1); exit 1; }; }
13012fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013013if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013014 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013015Usually this means the macro was only invoked conditionally." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013016$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013017Usually this means the macro was only invoked conditionally." >&2;}
13018 { (exit 1); exit 1; }; }
13019fi
13020if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013021 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013022Usually this means the macro was only invoked conditionally." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013023$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013024Usually this means the macro was only invoked conditionally." >&2;}
13025 { (exit 1); exit 1; }; }
13026fi
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060013027if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013028 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060013029Usually this means the macro was only invoked conditionally." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013030$as_echo "$as_me: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060013031Usually this means the macro was only invoked conditionally." >&2;}
13032 { (exit 1); exit 1; }; }
13033fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013034
13035: ${CONFIG_STATUS=./config.status}
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013036ac_write_fail=0
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013037ac_clean_files_save=$ac_clean_files
13038ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013039{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13040$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13041cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013042#! $SHELL
13043# Generated by $as_me.
13044# Run this file to recreate the current configuration.
13045# Compiler output produced by configure, useful for debugging
13046# configure, is in config.log if it exists.
13047
13048debug=false
13049ac_cs_recheck=false
13050ac_cs_silent=false
13051SHELL=\${CONFIG_SHELL-$SHELL}
13052_ACEOF
13053
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013055## --------------------- ##
13056## M4sh Initialization. ##
13057## --------------------- ##
13058
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050013059# Be more Bourne compatible
13060DUALCASE=1; export DUALCASE # for MKS sh
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013061if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13062 emulate sh
13063 NULLCMD=:
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013064 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013065 # is contrary to our usage. Disable this feature.
13066 alias -g '${1+"$@"}'='"$@"'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013067 setopt NO_GLOB_SUBST
13068else
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050013069 case `(set -o) 2>/dev/null` in
13070 *posix*) set -o posix ;;
13071esac
13072
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013073fi
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050013074
13075
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013076
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013077
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013078# PATH needs CR
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013079# Avoid depending upon Character Ranges.
13080as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13081as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13082as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13083as_cr_digits='0123456789'
13084as_cr_alnum=$as_cr_Letters$as_cr_digits
13085
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013086as_nl='
13087'
13088export as_nl
13089# Printing a long string crashes Solaris 7 /usr/bin/printf.
13090as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13091as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13092as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13093if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13094 as_echo='printf %s\n'
13095 as_echo_n='printf %s'
13096else
13097 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13098 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13099 as_echo_n='/usr/ucb/echo -n'
13100 else
13101 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13102 as_echo_n_body='eval
13103 arg=$1;
13104 case $arg in
13105 *"$as_nl"*)
13106 expr "X$arg" : "X\\(.*\\)$as_nl";
13107 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13108 esac;
13109 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13110 '
13111 export as_echo_n_body
13112 as_echo_n='sh -c $as_echo_n_body as_echo'
13113 fi
13114 export as_echo_body
13115 as_echo='sh -c $as_echo_body as_echo'
13116fi
13117
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013118# The user is always right.
13119if test "${PATH_SEPARATOR+set}" != set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013120 PATH_SEPARATOR=:
13121 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13122 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13123 PATH_SEPARATOR=';'
13124 }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013125fi
13126
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013127# Support unset when possible.
13128if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13129 as_unset=unset
13130else
13131 as_unset=false
13132fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013133
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013134
13135# IFS
13136# We need space, tab and new line, in precisely that order. Quoting is
13137# there to prevent editors from complaining about space-tab.
13138# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13139# splitting by setting IFS to empty value.)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013140IFS=" "" $as_nl"
13141
13142# Find who we are. Look in the path if we contain no directory separator.
13143case $0 in
13144 *[\\/]* ) as_myself=$0 ;;
13145 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013146for as_dir in $PATH
13147do
13148 IFS=$as_save_IFS
13149 test -z "$as_dir" && as_dir=.
13150 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13151done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013152IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013153
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013154 ;;
13155esac
13156# We did not find ourselves, most probably we were run as `sh COMMAND'
13157# in which case we are not to be found in the path.
13158if test "x$as_myself" = x; then
13159 as_myself=$0
13160fi
13161if test ! -f "$as_myself"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013162 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013163 { (exit 1); exit 1; }
13164fi
13165
13166# Work around bugs in pre-3.0 UWIN ksh.
13167for as_var in ENV MAIL MAILPATH
13168do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13169done
13170PS1='$ '
13171PS2='> '
13172PS4='+ '
13173
13174# NLS nuisances.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013175LC_ALL=C
13176export LC_ALL
13177LANGUAGE=C
13178export LANGUAGE
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013179
13180# Required to use basename.
13181if expr a : '\(a\)' >/dev/null 2>&1 &&
13182 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13183 as_expr=expr
13184else
13185 as_expr=false
13186fi
13187
13188if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13189 as_basename=basename
13190else
13191 as_basename=false
13192fi
13193
13194
13195# Name of the executable.
13196as_me=`$as_basename -- "$0" ||
13197$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13198 X"$0" : 'X\(//\)$' \| \
13199 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013200$as_echo X/"$0" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013201 sed '/^.*\/\([^/][^/]*\)\/*$/{
13202 s//\1/
13203 q
13204 }
13205 /^X\/\(\/\/\)$/{
13206 s//\1/
13207 q
13208 }
13209 /^X\/\(\/\).*/{
13210 s//\1/
13211 q
13212 }
13213 s/.*/./; q'`
13214
13215# CDPATH.
13216$as_unset CDPATH
13217
13218
13219
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013220 as_lineno_1=$LINENO
13221 as_lineno_2=$LINENO
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013222 test "x$as_lineno_1" != "x$as_lineno_2" &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013223 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013224
13225 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13226 # uniformly replaced by the line number. The first 'sed' inserts a
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013227 # line-number line after each line using $LINENO; the second 'sed'
13228 # does the real work. The second script uses 'N' to pair each
13229 # line-number line with the line containing $LINENO, and appends
13230 # trailing '-' during substitution so that $LINENO is not a special
13231 # case at line end.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013232 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013233 # scripts with optimization help from Paolo Bonzini. Blame Lee
13234 # E. McMahon (1931-1989) for sed's syntax. :-)
13235 sed -n '
13236 p
13237 /[$]LINENO/=
13238 ' <$as_myself |
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013239 sed '
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013240 s/[$]LINENO.*/&-/
13241 t lineno
13242 b
13243 :lineno
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013244 N
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013245 :loop
13246 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013247 t loop
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013248 s/-\n.*//
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013249 ' >$as_me.lineno &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013250 chmod +x "$as_me.lineno" ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013251 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013252 { (exit 1); exit 1; }; }
13253
13254 # Don't try to exec as it changes $[0], causing all sort of problems
13255 # (the dirname of $[0] is not the place where we might find the
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013256 # original and so on. Autoconf is especially sensitive to this).
13257 . "./$as_me.lineno"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013258 # Exit status is that of the last command.
13259 exit
13260}
13261
13262
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013263if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13264 as_dirname=dirname
13265else
13266 as_dirname=false
13267fi
13268
13269ECHO_C= ECHO_N= ECHO_T=
13270case `echo -n x` in
13271-n*)
13272 case `echo 'x\c'` in
13273 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13274 *) ECHO_C='\c';;
13275 esac;;
13276*)
13277 ECHO_N='-n';;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013278esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013279if expr a : '\(a\)' >/dev/null 2>&1 &&
13280 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013281 as_expr=expr
13282else
13283 as_expr=false
13284fi
13285
13286rm -f conf$$ conf$$.exe conf$$.file
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013287if test -d conf$$.dir; then
13288 rm -f conf$$.dir/conf$$.file
13289else
13290 rm -f conf$$.dir
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013291 mkdir conf$$.dir 2>/dev/null
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013292fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013293if (echo >conf$$.file) 2>/dev/null; then
13294 if ln -s conf$$.file conf$$ 2>/dev/null; then
13295 as_ln_s='ln -s'
13296 # ... but there are two gotchas:
13297 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13298 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13299 # In both cases, we have to default to `cp -p'.
13300 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13301 as_ln_s='cp -p'
13302 elif ln conf$$.file conf$$ 2>/dev/null; then
13303 as_ln_s=ln
13304 else
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013305 as_ln_s='cp -p'
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013306 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013307else
13308 as_ln_s='cp -p'
13309fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013310rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13311rmdir conf$$.dir 2>/dev/null
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013312
13313if mkdir -p . 2>/dev/null; then
13314 as_mkdir_p=:
13315else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013316 test -d ./-p && rmdir ./-p
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013317 as_mkdir_p=false
13318fi
13319
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050013320if test -x / >/dev/null 2>&1; then
13321 as_test_x='test -x'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013322else
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050013323 if ls -dL / >/dev/null 2>&1; then
13324 as_ls_L_option=L
13325 else
13326 as_ls_L_option=
13327 fi
13328 as_test_x='
13329 eval sh -c '\''
13330 if test -d "$1"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013331 test -d "$1/.";
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050013332 else
13333 case $1 in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013334 -*)set "./$1";;
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050013335 esac;
13336 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13337 ???[sx]*):;;*)false;;esac;fi
13338 '\'' sh
13339 '
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013340fi
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050013341as_executable_p=$as_test_x
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013342
13343# Sed expression to map a string onto a valid CPP name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013344as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013345
13346# Sed expression to map a string onto a valid variable name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013347as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013348
13349
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013350exec 6>&1
13351
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013352# Save the log message, to keep $[0] and so on meaningful, and to
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013353# report actual input values of CONFIG_FILES etc. instead of their
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013354# values after options handling.
13355ac_log="
Glenn Randers-Pehrsond84748a2009-06-24 08:17:34 -050013356This file was extended by libpng $as_me 1.4.0beta65, which was
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050013357generated by GNU Autoconf 2.63. Invocation command line was
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013358
13359 CONFIG_FILES = $CONFIG_FILES
13360 CONFIG_HEADERS = $CONFIG_HEADERS
13361 CONFIG_LINKS = $CONFIG_LINKS
13362 CONFIG_COMMANDS = $CONFIG_COMMANDS
13363 $ $0 $@
13364
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013365on `(hostname || uname -n) 2>/dev/null | sed 1q`
13366"
13367
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013368_ACEOF
13369
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050013370case $ac_config_files in *"
13371"*) set x $ac_config_files; shift; ac_config_files=$*;;
13372esac
13373
13374case $ac_config_headers in *"
13375"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13376esac
13377
13378
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013380# Files that config.status was made for.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013381config_files="$ac_config_files"
13382config_headers="$ac_config_headers"
13383config_commands="$ac_config_commands"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013384
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013385_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013386
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013388ac_cs_usage="\
13389\`$as_me' instantiates files from templates according to the
13390current configuration.
13391
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050013392Usage: $0 [OPTION]... [FILE]...
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013393
13394 -h, --help print this help, then exit
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050013395 -V, --version print version number and configuration settings, then exit
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050013396 -q, --quiet, --silent
13397 do not print progress messages
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013398 -d, --debug don't remove temporary files
13399 --recheck update $as_me by reconfiguring in the same conditions
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050013400 --file=FILE[:TEMPLATE]
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013401 instantiate the configuration file FILE
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050013402 --header=FILE[:TEMPLATE]
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013403 instantiate the configuration header FILE
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013404
13405Configuration files:
13406$config_files
13407
13408Configuration headers:
13409$config_headers
13410
13411Configuration commands:
13412$config_commands
13413
13414Report bugs to <bug-autoconf@gnu.org>."
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013415
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013416_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013418ac_cs_version="\\
Glenn Randers-Pehrsond84748a2009-06-24 08:17:34 -050013419libpng config.status 1.4.0beta65
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050013420configured by $0, generated by GNU Autoconf 2.63,
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013421 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013422
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013423Copyright (C) 2008 Free Software Foundation, Inc.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013424This config.status script is free software; the Free Software Foundation
13425gives unlimited permission to copy, distribute and modify it."
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013426
13427ac_pwd='$ac_pwd'
13428srcdir='$srcdir'
13429INSTALL='$INSTALL'
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013430MKDIR_P='$MKDIR_P'
13431AWK='$AWK'
13432test -n "\$AWK" || AWK=awk
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013433_ACEOF
13434
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13436# The default lists apply if the user does not specify any file.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013437ac_need_defaults=:
13438while test $# != 0
13439do
13440 case $1 in
13441 --*=*)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013442 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13443 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013444 ac_shift=:
13445 ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013446 *)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013447 ac_option=$1
13448 ac_optarg=$2
13449 ac_shift=shift
13450 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013451 esac
13452
13453 case $ac_option in
13454 # Handling of the options.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013455 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13456 ac_cs_recheck=: ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013457 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013458 $as_echo "$ac_cs_version"; exit ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013459 --debug | --debu | --deb | --de | --d | -d )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013460 debug=: ;;
13461 --file | --fil | --fi | --f )
13462 $ac_shift
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013463 case $ac_optarg in
13464 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13465 esac
13466 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013467 ac_need_defaults=false;;
13468 --header | --heade | --head | --hea )
13469 $ac_shift
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013470 case $ac_optarg in
13471 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13472 esac
13473 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013474 ac_need_defaults=false;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013475 --he | --h)
13476 # Conflict between --help and --header
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013477 { $as_echo "$as_me: error: ambiguous option: $1
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013478Try \`$0 --help' for more information." >&2
13479 { (exit 1); exit 1; }; };;
13480 --help | --hel | -h )
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013481 $as_echo "$ac_cs_usage"; exit ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013482 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13483 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13484 ac_cs_silent=: ;;
13485
13486 # This is an error.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013487 -*) { $as_echo "$as_me: error: unrecognized option: $1
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013488Try \`$0 --help' for more information." >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013489 { (exit 1); exit 1; }; } ;;
13490
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013491 *) ac_config_targets="$ac_config_targets $1"
13492 ac_need_defaults=false ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013493
13494 esac
13495 shift
13496done
13497
13498ac_configure_extra_args=
13499
13500if $ac_cs_silent; then
13501 exec 6>/dev/null
13502 ac_configure_extra_args="$ac_configure_extra_args --silent"
13503fi
13504
13505_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013507if \$ac_cs_recheck; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013508 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13509 shift
13510 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13511 CONFIG_SHELL='$SHELL'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013512 export CONFIG_SHELL
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013513 exec "\$@"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013514fi
13515
13516_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013518exec 5>>config.log
13519{
13520 echo
13521 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13522## Running $as_me. ##
13523_ASBOX
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013524 $as_echo "$ac_log"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013525} >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013526
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013527_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013529#
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013530# INIT-COMMANDS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013531#
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013532AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13533
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013534
13535# The HP-UX ksh and POSIX shell print the target directory to stdout
13536# if CDPATH is set.
13537(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13538
13539sed_quote_subst='$sed_quote_subst'
13540double_quote_subst='$double_quote_subst'
13541delay_variable_subst='$delay_variable_subst'
13542SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13543Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13544GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13545EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13546FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13547LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13548AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13549DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13550OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13551macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13552macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13553enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13554enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13555pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13556enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13557host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13558host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13559host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13560build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13561build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13562build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13563NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13564LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13565max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13566ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13567exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13568lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13569lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13570lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13571reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13572reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13573deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13574file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13575AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13576AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13577STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13578RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13579old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13580old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13581old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13582CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13583CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13584compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13585GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13586lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13587lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13588lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13589lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13590objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13591SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13592ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13593MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13594lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13595lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13596lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13597lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13598lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13599need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13600DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13601NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13602LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050013603OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13604OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013605libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13606shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13607extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13608archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13609enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13610export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13611whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13612compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13613old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13614old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13615archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13616archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13617module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13618module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13619with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13620allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13621no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13622hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13623hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13624hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13625hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13626hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13627hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13628hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13629hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13630inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13631link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13632fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13633always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13634export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13635exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13636include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13637prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13638file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13639variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13640need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13641need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13642version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13643runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13644shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13645shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13646libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13647library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13648soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13649postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13650postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13651finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13652finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13653hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13654sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13655sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13656hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13657enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13658enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13659enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13660old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13661striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13662
13663LTCC='$LTCC'
13664LTCFLAGS='$LTCFLAGS'
13665compiler='$compiler_DEFAULT'
13666
13667# Quote evaled strings.
13668for var in SED \
13669GREP \
13670EGREP \
13671FGREP \
13672LD \
13673NM \
13674LN_S \
13675lt_SP2NL \
13676lt_NL2SP \
13677reload_flag \
13678deplibs_check_method \
13679file_magic_cmd \
13680AR \
13681AR_FLAGS \
13682STRIP \
13683RANLIB \
13684CC \
13685CFLAGS \
13686compiler \
13687lt_cv_sys_global_symbol_pipe \
13688lt_cv_sys_global_symbol_to_cdecl \
13689lt_cv_sys_global_symbol_to_c_name_address \
13690lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13691SHELL \
13692ECHO \
13693lt_prog_compiler_no_builtin_flag \
13694lt_prog_compiler_wl \
13695lt_prog_compiler_pic \
13696lt_prog_compiler_static \
13697lt_cv_prog_compiler_c_o \
13698need_locks \
13699DSYMUTIL \
13700NMEDIT \
13701LIPO \
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050013702OTOOL \
13703OTOOL64 \
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013704shrext_cmds \
13705export_dynamic_flag_spec \
13706whole_archive_flag_spec \
13707compiler_needs_object \
13708with_gnu_ld \
13709allow_undefined_flag \
13710no_undefined_flag \
13711hardcode_libdir_flag_spec \
13712hardcode_libdir_flag_spec_ld \
13713hardcode_libdir_separator \
13714fix_srcfile_path \
13715exclude_expsyms \
13716include_expsyms \
13717file_list_spec \
13718variables_saved_for_relink \
13719libname_spec \
13720library_names_spec \
13721soname_spec \
13722finish_eval \
13723old_striplib \
13724striplib; do
13725 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13726 *[\\\\\\\`\\"\\\$]*)
13727 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13728 ;;
13729 *)
13730 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13731 ;;
13732 esac
13733done
13734
13735# Double-quote double-evaled strings.
13736for var in reload_cmds \
13737old_postinstall_cmds \
13738old_postuninstall_cmds \
13739old_archive_cmds \
13740extract_expsyms_cmds \
13741old_archive_from_new_cmds \
13742old_archive_from_expsyms_cmds \
13743archive_cmds \
13744archive_expsym_cmds \
13745module_cmds \
13746module_expsym_cmds \
13747export_symbols_cmds \
13748prelink_cmds \
13749postinstall_cmds \
13750postuninstall_cmds \
13751finish_cmds \
13752sys_lib_search_path_spec \
13753sys_lib_dlsearch_path_spec; do
13754 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13755 *[\\\\\\\`\\"\\\$]*)
13756 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13757 ;;
13758 *)
13759 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13760 ;;
13761 esac
13762done
13763
13764# Fix-up fallback echo if it was mangled by the above quoting rules.
13765case \$lt_ECHO in
13766*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13767 ;;
13768esac
13769
13770ac_aux_dir='$ac_aux_dir'
13771xsi_shell='$xsi_shell'
13772lt_shell_append='$lt_shell_append'
13773
13774# See if we are running on zsh, and set the options which allow our
13775# commands through without removal of \ escapes INIT.
13776if test -n "\${ZSH_VERSION+set}" ; then
13777 setopt NO_GLOB_SUBST
13778fi
13779
13780
13781 PACKAGE='$PACKAGE'
13782 VERSION='$VERSION'
13783 TIMESTAMP='$TIMESTAMP'
13784 RM='$RM'
13785 ofile='$ofile'
13786
13787
13788
13789
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013790_ACEOF
13791
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013793
13794# Handling of arguments.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013795for ac_config_target in $ac_config_targets
13796do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013797 case $ac_config_target in
13798 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13799 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013800 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013801 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013802 "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:scripts/libpng.pc-configure.in" ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013803 "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:scripts/libpng-config.in" ;;
13804
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013805 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13806$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013807 { (exit 1); exit 1; }; };;
13808 esac
13809done
13810
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013811
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013812# If the user did not use the arguments to specify the items to instantiate,
13813# then the envvar interface is used. Set only those that are not.
13814# We use the long form for the default assignment because of an extremely
13815# bizarre bug on SunOS 4.1.3.
13816if $ac_need_defaults; then
13817 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13818 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13819 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13820fi
13821
13822# Have a temporary directory for convenience. Make it in the build tree
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013823# simply because there is no reason against having it here, and in addition,
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013824# creating and moving files from /tmp can sometimes cause problems.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013825# Hook for its removal unless debugging.
13826# Note that there is a small window in which the directory will not be cleaned:
13827# after its creation but before its name has been assigned to `$tmp'.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013828$debug ||
13829{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013830 tmp=
13831 trap 'exit_status=$?
13832 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13833' 0
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013834 trap '{ (exit 1); exit 1; }' 1 2 13 15
13835}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013836# Create a (secure) tmp directory for tmp files.
13837
13838{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013839 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013840 test -n "$tmp" && test -d "$tmp"
13841} ||
13842{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013843 tmp=./conf$$-$RANDOM
13844 (umask 077 && mkdir "$tmp")
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013845} ||
13846{
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013847 $as_echo "$as_me: cannot create a temporary directory in ." >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013848 { (exit 1); exit 1; }
13849}
13850
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013851# Set up the scripts for CONFIG_FILES section.
13852# No need to generate them if there are no CONFIG_FILES.
13853# This happens for instance with `./config.status config.h'.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013854if test -n "$CONFIG_FILES"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013855
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013856
13857ac_cr=' '
13858ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13859if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13860 ac_cs_awk_cr='\\r'
13861else
13862 ac_cs_awk_cr=$ac_cr
13863fi
13864
13865echo 'BEGIN {' >"$tmp/subs1.awk" &&
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013866_ACEOF
13867
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013868
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013869{
13870 echo "cat >conf$$subs.awk <<_ACEOF" &&
13871 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13872 echo "_ACEOF"
13873} >conf$$subs.sh ||
13874 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13875$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13876 { (exit 1); exit 1; }; }
13877ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013878ac_delim='%!_!# '
13879for ac_last_try in false false false false false :; do
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013880 . ./conf$$subs.sh ||
13881 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13882$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13883 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013884
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050013885 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13886 if test $ac_delim_n = $ac_delim_num; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013887 break
13888 elif $ac_last_try; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013889 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13890$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013891 { (exit 1); exit 1; }; }
13892 else
13893 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013894 fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013895done
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013896rm -f conf$$subs.sh
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013897
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13899cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013900_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013901sed -n '
13902h
13903s/^/S["/; s/!.*/"]=/
13904p
13905g
13906s/^[^!]*!//
13907:repl
13908t repl
13909s/'"$ac_delim"'$//
13910t delim
13911:nl
13912h
13913s/\(.\{148\}\).*/\1/
13914t more1
13915s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13916p
13917n
13918b repl
13919:more1
13920s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13921p
13922g
13923s/.\{148\}//
13924t nl
13925:delim
13926h
13927s/\(.\{148\}\).*/\1/
13928t more2
13929s/["\\]/\\&/g; s/^/"/; s/$/"/
13930p
13931b
13932:more2
13933s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13934p
13935g
13936s/.\{148\}//
13937t delim
13938' <conf$$subs.awk | sed '
13939/^[^""]/{
13940 N
13941 s/\n//
13942}
13943' >>$CONFIG_STATUS || ac_write_fail=1
13944rm -f conf$$subs.awk
13945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13946_ACAWK
13947cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13948 for (key in S) S_is_set[key] = 1
13949 FS = ""
13950
13951}
13952{
13953 line = $ 0
13954 nfields = split(line, field, "@")
13955 substed = 0
13956 len = length(field[1])
13957 for (i = 2; i < nfields; i++) {
13958 key = field[i]
13959 keylen = length(key)
13960 if (S_is_set[key]) {
13961 value = S[key]
13962 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13963 len += length(value) + length(field[++i])
13964 substed = 1
13965 } else
13966 len += 1 + keylen
13967 }
13968
13969 print line
13970}
13971
13972_ACAWK
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013973_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13975if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13976 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13977else
13978 cat
13979fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13980 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13981$as_echo "$as_me: error: could not setup config files machinery" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013982 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013983_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013984
13985# VPATH may cause trouble with some makes, so we remove $(srcdir),
13986# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13987# trailing colons and then remove the whole line if VPATH becomes empty
13988# (actually we leave an empty line to preserve line numbers).
13989if test "x$srcdir" = x.; then
13990 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13991s/:*\$(srcdir):*/:/
13992s/:*\${srcdir}:*/:/
13993s/:*@srcdir@:*/:/
13994s/^\([^=]*=[ ]*\):*/\1/
13995s/:*$//
13996s/^[^=]*=[ ]*$//
13997}'
13998fi
13999
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014001fi # test -n "$CONFIG_FILES"
14002
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014003# Set up the scripts for CONFIG_HEADERS section.
14004# No need to generate them if there are no CONFIG_HEADERS.
14005# This happens for instance with `./config.status Makefile'.
14006if test -n "$CONFIG_HEADERS"; then
14007cat >"$tmp/defines.awk" <<\_ACAWK ||
14008BEGIN {
14009_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014010
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014011# Transform confdefs.h into an awk script `defines.awk', embedded as
14012# here-document in config.status, that substitutes the proper values into
14013# config.h.in to produce config.h.
14014
14015# Create a delimiter string that does not exist in confdefs.h, to ease
14016# handling of long lines.
14017ac_delim='%!_!# '
14018for ac_last_try in false false :; do
14019 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14020 if test -z "$ac_t"; then
14021 break
14022 elif $ac_last_try; then
14023 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14024$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14025 { (exit 1); exit 1; }; }
14026 else
14027 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14028 fi
14029done
14030
14031# For the awk script, D is an array of macro values keyed by name,
14032# likewise P contains macro parameters if any. Preserve backslash
14033# newline sequences.
14034
14035ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14036sed -n '
14037s/.\{148\}/&'"$ac_delim"'/g
14038t rset
14039:rset
14040s/^[ ]*#[ ]*define[ ][ ]*/ /
14041t def
14042d
14043:def
14044s/\\$//
14045t bsnl
14046s/["\\]/\\&/g
14047s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14048D["\1"]=" \3"/p
14049s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14050d
14051:bsnl
14052s/["\\]/\\&/g
14053s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14054D["\1"]=" \3\\\\\\n"\\/p
14055t cont
14056s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14057t cont
14058d
14059:cont
14060n
14061s/.\{148\}/&'"$ac_delim"'/g
14062t clear
14063:clear
14064s/\\$//
14065t bsnlc
14066s/["\\]/\\&/g; s/^/"/; s/$/"/p
14067d
14068:bsnlc
14069s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14070b cont
14071' <confdefs.h | sed '
14072s/'"$ac_delim"'/"\\\
14073"/g' >>$CONFIG_STATUS || ac_write_fail=1
14074
14075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14076 for (key in D) D_is_set[key] = 1
14077 FS = ""
14078}
14079/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14080 line = \$ 0
14081 split(line, arg, " ")
14082 if (arg[1] == "#") {
14083 defundef = arg[2]
14084 mac1 = arg[3]
14085 } else {
14086 defundef = substr(arg[1], 2)
14087 mac1 = arg[2]
14088 }
14089 split(mac1, mac2, "(") #)
14090 macro = mac2[1]
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050014091 prefix = substr(line, 1, index(line, defundef) - 1)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014092 if (D_is_set[macro]) {
14093 # Preserve the white space surrounding the "#".
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014094 print prefix "define", macro P[macro] D[macro]
14095 next
14096 } else {
14097 # Replace #undef with comments. This is necessary, for example,
14098 # in the case of _POSIX_SOURCE, which is predefined and required
14099 # on some systems where configure will not decide to define it.
14100 if (defundef == "undef") {
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050014101 print "/*", prefix defundef, macro, "*/"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014102 next
14103 }
14104 }
14105}
14106{ print }
14107_ACAWK
14108_ACEOF
14109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14110 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14111$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14112 { (exit 1); exit 1; }; }
14113fi # test -n "$CONFIG_HEADERS"
14114
14115
14116eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14117shift
14118for ac_tag
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014119do
14120 case $ac_tag in
14121 :[FHLC]) ac_mode=$ac_tag; continue;;
14122 esac
14123 case $ac_mode$ac_tag in
14124 :[FHL]*:*);;
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050014125 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14126$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014127 { (exit 1); exit 1; }; };;
14128 :[FH]-) ac_tag=-:-;;
14129 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14130 esac
14131 ac_save_IFS=$IFS
14132 IFS=:
14133 set x $ac_tag
14134 IFS=$ac_save_IFS
14135 shift
14136 ac_file=$1
14137 shift
14138
14139 case $ac_mode in
14140 :L) ac_source=$1;;
14141 :[FH])
14142 ac_file_inputs=
14143 for ac_f
14144 do
14145 case $ac_f in
14146 -) ac_f="$tmp/stdin";;
14147 *) # Look for the file first in the build tree, then in the source tree
14148 # (if the path is not absolute). The absolute path cannot be DOS-style,
14149 # because $ac_f cannot contain `:'.
14150 test -f "$ac_f" ||
14151 case $ac_f in
14152 [\\/$]*) false;;
14153 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14154 esac ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014155 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14156$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014157 { (exit 1); exit 1; }; };;
14158 esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014159 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14160 ac_file_inputs="$ac_file_inputs '$ac_f'"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014161 done
14162
14163 # Let's still pretend it is `configure' which instantiates (i.e., don't
14164 # use $as_me), people would be surprised to read:
14165 # /* config.h. Generated by config.status. */
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014166 configure_input='Generated from '`
14167 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14168 `' by configure.'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014169 if test x"$ac_file" != x-; then
14170 configure_input="$ac_file. $configure_input"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014171 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14172$as_echo "$as_me: creating $ac_file" >&6;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014173 fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014174 # Neutralize special characters interpreted by sed in replacement strings.
14175 case $configure_input in #(
14176 *\&* | *\|* | *\\* )
14177 ac_sed_conf_input=`$as_echo "$configure_input" |
14178 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14179 *) ac_sed_conf_input=$configure_input;;
14180 esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014181
14182 case $ac_tag in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014183 *:-:* | *:-) cat >"$tmp/stdin" \
14184 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14185$as_echo "$as_me: error: could not create $ac_file" >&2;}
14186 { (exit 1); exit 1; }; } ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014187 esac
14188 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014189 esac
14190
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014191 ac_dir=`$as_dirname -- "$ac_file" ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014192$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014193 X"$ac_file" : 'X\(//\)[^/]' \| \
14194 X"$ac_file" : 'X\(//\)$' \| \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014195 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014196$as_echo X"$ac_file" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14198 s//\1/
14199 q
14200 }
14201 /^X\(\/\/\)[^/].*/{
14202 s//\1/
14203 q
14204 }
14205 /^X\(\/\/\)$/{
14206 s//\1/
14207 q
14208 }
14209 /^X\(\/\).*/{
14210 s//\1/
14211 q
14212 }
14213 s/.*/./; q'`
14214 { as_dir="$ac_dir"
14215 case $as_dir in #(
14216 -*) as_dir=./$as_dir;;
14217 esac
14218 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014219 as_dirs=
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014220 while :; do
14221 case $as_dir in #(
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014222 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014223 *) as_qdir=$as_dir;;
14224 esac
14225 as_dirs="'$as_qdir' $as_dirs"
14226 as_dir=`$as_dirname -- "$as_dir" ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014227$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014228 X"$as_dir" : 'X\(//\)[^/]' \| \
14229 X"$as_dir" : 'X\(//\)$' \| \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014230 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014231$as_echo X"$as_dir" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14233 s//\1/
14234 q
14235 }
14236 /^X\(\/\/\)[^/].*/{
14237 s//\1/
14238 q
14239 }
14240 /^X\(\/\/\)$/{
14241 s//\1/
14242 q
14243 }
14244 /^X\(\/\).*/{
14245 s//\1/
14246 q
14247 }
14248 s/.*/./; q'`
14249 test -d "$as_dir" && break
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014250 done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014251 test -z "$as_dirs" || eval "mkdir $as_dirs"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014252 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14253$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014254 { (exit 1); exit 1; }; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014255 ac_builddir=.
14256
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014257case "$ac_dir" in
14258.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14259*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014260 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014261 # A ".." for each directory in $ac_dir_suffix.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014262 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014263 case $ac_top_builddir_sub in
14264 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14265 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14266 esac ;;
14267esac
14268ac_abs_top_builddir=$ac_pwd
14269ac_abs_builddir=$ac_pwd$ac_dir_suffix
14270# for backward compatibility:
14271ac_top_builddir=$ac_top_build_prefix
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014272
14273case $srcdir in
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014274 .) # We are building in place.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014275 ac_srcdir=.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014276 ac_top_srcdir=$ac_top_builddir_sub
14277 ac_abs_top_srcdir=$ac_pwd ;;
14278 [\\/]* | ?:[\\/]* ) # Absolute name.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014279 ac_srcdir=$srcdir$ac_dir_suffix;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014280 ac_top_srcdir=$srcdir
14281 ac_abs_top_srcdir=$srcdir ;;
14282 *) # Relative name.
14283 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14284 ac_top_srcdir=$ac_top_build_prefix$srcdir
14285 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014286esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014287ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014288
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014289
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014290 case $ac_mode in
14291 :F)
14292 #
14293 # CONFIG_FILE
14294 #
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014295
14296 case $INSTALL in
14297 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014298 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014299 esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014300 ac_MKDIR_P=$MKDIR_P
14301 case $MKDIR_P in
14302 [\\/$]* | ?:[\\/]* ) ;;
14303 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14304 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014305_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014306
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014308# If the template does not know about datarootdir, expand it.
14309# FIXME: This hack should be removed a few years after 2.60.
14310ac_datarootdir_hack=; ac_datarootdir_seen=
14311
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014312ac_sed_dataroot='
14313/datarootdir/ {
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014314 p
14315 q
14316}
14317/@datadir@/p
14318/@docdir@/p
14319/@infodir@/p
14320/@localedir@/p
14321/@mandir@/p
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014322'
14323case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014324*datarootdir*) ac_datarootdir_seen=yes;;
14325*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014326 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14327$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014328_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014330 ac_datarootdir_hack='
14331 s&@datadir@&$datadir&g
14332 s&@docdir@&$docdir&g
14333 s&@infodir@&$infodir&g
14334 s&@localedir@&$localedir&g
14335 s&@mandir@&$mandir&g
14336 s&\\\${datarootdir}&$datarootdir&g' ;;
14337esac
14338_ACEOF
14339
14340# Neutralize VPATH when `$srcdir' = `.'.
14341# Shell code in configure.ac might set extrasub.
14342# FIXME: do we really want to maintain this feature?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14344ac_sed_extra="$ac_vpsub
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014345$extrasub
14346_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014348:t
14349/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014350s|@configure_input@|$ac_sed_conf_input|;t t
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014351s&@top_builddir@&$ac_top_builddir_sub&;t t
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014352s&@top_build_prefix@&$ac_top_build_prefix&;t t
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014353s&@srcdir@&$ac_srcdir&;t t
14354s&@abs_srcdir@&$ac_abs_srcdir&;t t
14355s&@top_srcdir@&$ac_top_srcdir&;t t
14356s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14357s&@builddir@&$ac_builddir&;t t
14358s&@abs_builddir@&$ac_abs_builddir&;t t
14359s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14360s&@INSTALL@&$ac_INSTALL&;t t
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014361s&@MKDIR_P@&$ac_MKDIR_P&;t t
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014362$ac_datarootdir_hack
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014363"
14364eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14365 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14366$as_echo "$as_me: error: could not create $ac_file" >&2;}
14367 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014368
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014369test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14370 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14371 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014372 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014373which seems to be undefined. Please make sure it is defined." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014374$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014375which seems to be undefined. Please make sure it is defined." >&2;}
14376
14377 rm -f "$tmp/stdin"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014378 case $ac_file in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014379 -) cat "$tmp/out" && rm -f "$tmp/out";;
14380 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14381 esac \
14382 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14383$as_echo "$as_me: error: could not create $ac_file" >&2;}
14384 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014385 ;;
14386 :H)
14387 #
14388 # CONFIG_HEADER
14389 #
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014390 if test x"$ac_file" != x-; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014391 {
14392 $as_echo "/* $configure_input */" \
14393 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14394 } >"$tmp/config.h" \
14395 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14396$as_echo "$as_me: error: could not create $ac_file" >&2;}
14397 { (exit 1); exit 1; }; }
14398 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14399 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14400$as_echo "$as_me: $ac_file is unchanged" >&6;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014401 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014402 rm -f "$ac_file"
14403 mv "$tmp/config.h" "$ac_file" \
14404 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14405$as_echo "$as_me: error: could not create $ac_file" >&2;}
14406 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014407 fi
14408 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014409 $as_echo "/* $configure_input */" \
14410 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14411 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14412$as_echo "$as_me: error: could not create -" >&2;}
14413 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014414 fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014415# Compute "$ac_file"'s index in $config_headers.
14416_am_arg="$ac_file"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014417_am_stamp_count=1
14418for _am_header in $config_headers :; do
14419 case $_am_header in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014420 $_am_arg | $_am_arg:* )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014421 break ;;
14422 * )
14423 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14424 esac
14425done
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014426echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14427$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14428 X"$_am_arg" : 'X\(//\)[^/]' \| \
14429 X"$_am_arg" : 'X\(//\)$' \| \
14430 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14431$as_echo X"$_am_arg" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14433 s//\1/
14434 q
14435 }
14436 /^X\(\/\/\)[^/].*/{
14437 s//\1/
14438 q
14439 }
14440 /^X\(\/\/\)$/{
14441 s//\1/
14442 q
14443 }
14444 /^X\(\/\).*/{
14445 s//\1/
14446 q
14447 }
14448 s/.*/./; q'`/stamp-h$_am_stamp_count
14449 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014450
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014451 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14452$as_echo "$as_me: executing $ac_file commands" >&6;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014453 ;;
14454 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014455
14456
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014457 case $ac_file$ac_mode in
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050014458 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
14459# are listed without --file. Let's play safe and only enable the eval
14460# if we detect the quoting.
14461case $CONFIG_FILES in
14462*\'*) eval set x "$CONFIG_FILES" ;;
14463*) set x $CONFIG_FILES ;;
14464esac
14465shift
14466for mf
14467do
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014468 # Strip MF so we end up with the name of the file.
14469 mf=`echo "$mf" | sed -e 's/:.*$//'`
14470 # Check whether this is an Automake generated Makefile or not.
14471 # We used to match only the files named `Makefile.in', but
14472 # some people rename them; so instead we look at the file content.
14473 # Grep'ing the first line is not enough: some people post-process
14474 # each Makefile.in and add a new line on top of each file to say so.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014475 # Grep'ing the whole file is not good either: AIX grep has a line
14476 # limit of 2048, but all sed's we know have understand at least 4000.
14477 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014478 dirpart=`$as_dirname -- "$mf" ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014479$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014480 X"$mf" : 'X\(//\)[^/]' \| \
14481 X"$mf" : 'X\(//\)$' \| \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014482 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014483$as_echo X"$mf" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14485 s//\1/
14486 q
14487 }
14488 /^X\(\/\/\)[^/].*/{
14489 s//\1/
14490 q
14491 }
14492 /^X\(\/\/\)$/{
14493 s//\1/
14494 q
14495 }
14496 /^X\(\/\).*/{
14497 s//\1/
14498 q
14499 }
14500 s/.*/./; q'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014501 else
14502 continue
14503 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014504 # Extract the definition of DEPDIR, am__include, and am__quote
14505 # from the Makefile without running `make'.
14506 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014507 test -z "$DEPDIR" && continue
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014508 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14509 test -z "am__include" && continue
14510 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014511 # When using ansi2knr, U may be empty or an underscore; expand it
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014512 U=`sed -n 's/^U = //p' < "$mf"`
14513 # Find all dependency output files, they are included files with
14514 # $(DEPDIR) in their names. We invoke sed twice because it is the
14515 # simplest approach to changing $(DEPDIR) to its actual value in the
14516 # expansion.
14517 for file in `sed -n "
14518 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014519 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14520 # Make sure the directory exists.
14521 test -f "$dirpart/$file" && continue
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014522 fdir=`$as_dirname -- "$file" ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014523$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014524 X"$file" : 'X\(//\)[^/]' \| \
14525 X"$file" : 'X\(//\)$' \| \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014526 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014527$as_echo X"$file" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14529 s//\1/
14530 q
14531 }
14532 /^X\(\/\/\)[^/].*/{
14533 s//\1/
14534 q
14535 }
14536 /^X\(\/\/\)$/{
14537 s//\1/
14538 q
14539 }
14540 /^X\(\/\).*/{
14541 s//\1/
14542 q
14543 }
14544 s/.*/./; q'`
14545 { as_dir=$dirpart/$fdir
14546 case $as_dir in #(
14547 -*) as_dir=./$as_dir;;
14548 esac
14549 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014550 as_dirs=
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014551 while :; do
14552 case $as_dir in #(
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014553 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014554 *) as_qdir=$as_dir;;
14555 esac
14556 as_dirs="'$as_qdir' $as_dirs"
14557 as_dir=`$as_dirname -- "$as_dir" ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014558$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014559 X"$as_dir" : 'X\(//\)[^/]' \| \
14560 X"$as_dir" : 'X\(//\)$' \| \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014561 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014562$as_echo X"$as_dir" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14564 s//\1/
14565 q
14566 }
14567 /^X\(\/\/\)[^/].*/{
14568 s//\1/
14569 q
14570 }
14571 /^X\(\/\/\)$/{
14572 s//\1/
14573 q
14574 }
14575 /^X\(\/\).*/{
14576 s//\1/
14577 q
14578 }
14579 s/.*/./; q'`
14580 test -d "$as_dir" && break
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014581 done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014582 test -z "$as_dirs" || eval "mkdir $as_dirs"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014583 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14584$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014585 { (exit 1); exit 1; }; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014586 # echo "creating $dirpart/$file"
14587 echo '# dummy' > "$dirpart/$file"
14588 done
14589done
14590 ;;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014591 "libtool":C)
14592
14593 # See if we are running on zsh, and set the options which allow our
14594 # commands through without removal of \ escapes.
14595 if test -n "${ZSH_VERSION+set}" ; then
14596 setopt NO_GLOB_SUBST
14597 fi
14598
14599 cfgfile="${ofile}T"
14600 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14601 $RM "$cfgfile"
14602
14603 cat <<_LT_EOF >> "$cfgfile"
14604#! $SHELL
14605
14606# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14607# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14608# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14609# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14610#
14611# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14612# 2006, 2007, 2008 Free Software Foundation, Inc.
14613# Written by Gordon Matzigkeit, 1996
14614#
14615# This file is part of GNU Libtool.
14616#
14617# GNU Libtool is free software; you can redistribute it and/or
14618# modify it under the terms of the GNU General Public License as
14619# published by the Free Software Foundation; either version 2 of
14620# the License, or (at your option) any later version.
14621#
14622# As a special exception to the GNU General Public License,
14623# if you distribute this file as part of a program or library that
14624# is built using GNU Libtool, you may include this file under the
14625# same distribution terms that you use for the rest of that program.
14626#
14627# GNU Libtool is distributed in the hope that it will be useful,
14628# but WITHOUT ANY WARRANTY; without even the implied warranty of
14629# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14630# GNU General Public License for more details.
14631#
14632# You should have received a copy of the GNU General Public License
14633# along with GNU Libtool; see the file COPYING. If not, a copy
14634# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14635# obtained by writing to the Free Software Foundation, Inc.,
14636# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14637
14638
14639# The names of the tagged configurations supported by this script.
14640available_tags=""
14641
14642# ### BEGIN LIBTOOL CONFIG
14643
14644# A sed program that does not truncate output.
14645SED=$lt_SED
14646
14647# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14648Xsed="\$SED -e 1s/^X//"
14649
14650# A grep program that handles long lines.
14651GREP=$lt_GREP
14652
14653# An ERE matcher.
14654EGREP=$lt_EGREP
14655
14656# A literal string matcher.
14657FGREP=$lt_FGREP
14658
14659# Assembler program.
14660AS=$AS
14661
14662# DLL creation program.
14663DLLTOOL=$DLLTOOL
14664
14665# Object dumper program.
14666OBJDUMP=$OBJDUMP
14667
14668# Which release of libtool.m4 was used?
14669macro_version=$macro_version
14670macro_revision=$macro_revision
14671
14672# Whether or not to build shared libraries.
14673build_libtool_libs=$enable_shared
14674
14675# Whether or not to build static libraries.
14676build_old_libs=$enable_static
14677
14678# What type of objects to build.
14679pic_mode=$pic_mode
14680
14681# Whether or not to optimize for fast installation.
14682fast_install=$enable_fast_install
14683
14684# The host system.
14685host_alias=$host_alias
14686host=$host
14687host_os=$host_os
14688
14689# The build system.
14690build_alias=$build_alias
14691build=$build
14692build_os=$build_os
14693
14694# A BSD- or MS-compatible name lister.
14695NM=$lt_NM
14696
14697# Whether we need soft or hard links.
14698LN_S=$lt_LN_S
14699
14700# What is the maximum length of a command?
14701max_cmd_len=$max_cmd_len
14702
14703# Object file suffix (normally "o").
14704objext=$ac_objext
14705
14706# Executable file suffix (normally "").
14707exeext=$exeext
14708
14709# whether the shell understands "unset".
14710lt_unset=$lt_unset
14711
14712# turn spaces into newlines.
14713SP2NL=$lt_lt_SP2NL
14714
14715# turn newlines into spaces.
14716NL2SP=$lt_lt_NL2SP
14717
14718# How to create reloadable object files.
14719reload_flag=$lt_reload_flag
14720reload_cmds=$lt_reload_cmds
14721
14722# Method to check whether dependent libraries are shared objects.
14723deplibs_check_method=$lt_deplibs_check_method
14724
14725# Command to use when deplibs_check_method == "file_magic".
14726file_magic_cmd=$lt_file_magic_cmd
14727
14728# The archiver.
14729AR=$lt_AR
14730AR_FLAGS=$lt_AR_FLAGS
14731
14732# A symbol stripping program.
14733STRIP=$lt_STRIP
14734
14735# Commands used to install an old-style archive.
14736RANLIB=$lt_RANLIB
14737old_postinstall_cmds=$lt_old_postinstall_cmds
14738old_postuninstall_cmds=$lt_old_postuninstall_cmds
14739
14740# A C compiler.
14741LTCC=$lt_CC
14742
14743# LTCC compiler flags.
14744LTCFLAGS=$lt_CFLAGS
14745
14746# Take the output of nm and produce a listing of raw symbols and C names.
14747global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14748
14749# Transform the output of nm in a proper C declaration.
14750global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14751
14752# Transform the output of nm in a C name address pair.
14753global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14754
14755# Transform the output of nm in a C name address pair when lib prefix is needed.
14756global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14757
14758# The name of the directory that contains temporary libtool files.
14759objdir=$objdir
14760
14761# Shell to use when invoking shell scripts.
14762SHELL=$lt_SHELL
14763
14764# An echo program that does not interpret backslashes.
14765ECHO=$lt_ECHO
14766
14767# Used to examine libraries when file_magic_cmd begins with "file".
14768MAGIC_CMD=$MAGIC_CMD
14769
14770# Must we lock files when doing compilation?
14771need_locks=$lt_need_locks
14772
14773# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14774DSYMUTIL=$lt_DSYMUTIL
14775
14776# Tool to change global to local symbols on Mac OS X.
14777NMEDIT=$lt_NMEDIT
14778
14779# Tool to manipulate fat objects and archives on Mac OS X.
14780LIPO=$lt_LIPO
14781
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050014782# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14783OTOOL=$lt_OTOOL
14784
14785# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14786OTOOL64=$lt_OTOOL64
14787
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014788# Old archive suffix (normally "a").
14789libext=$libext
14790
14791# Shared library suffix (normally ".so").
14792shrext_cmds=$lt_shrext_cmds
14793
14794# The commands to extract the exported symbol list from a shared archive.
14795extract_expsyms_cmds=$lt_extract_expsyms_cmds
14796
14797# Variables whose values should be saved in libtool wrapper scripts and
14798# restored at link time.
14799variables_saved_for_relink=$lt_variables_saved_for_relink
14800
14801# Do we need the "lib" prefix for modules?
14802need_lib_prefix=$need_lib_prefix
14803
14804# Do we need a version for libraries?
14805need_version=$need_version
14806
14807# Library versioning type.
14808version_type=$version_type
14809
14810# Shared library runtime path variable.
14811runpath_var=$runpath_var
14812
14813# Shared library path variable.
14814shlibpath_var=$shlibpath_var
14815
14816# Is shlibpath searched before the hard-coded library search path?
14817shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14818
14819# Format of library name prefix.
14820libname_spec=$lt_libname_spec
14821
14822# List of archive names. First name is the real one, the rest are links.
14823# The last name is the one that the linker finds with -lNAME
14824library_names_spec=$lt_library_names_spec
14825
14826# The coded name of the library, if different from the real name.
14827soname_spec=$lt_soname_spec
14828
14829# Command to use after installation of a shared archive.
14830postinstall_cmds=$lt_postinstall_cmds
14831
14832# Command to use after uninstallation of a shared archive.
14833postuninstall_cmds=$lt_postuninstall_cmds
14834
14835# Commands used to finish a libtool library installation in a directory.
14836finish_cmds=$lt_finish_cmds
14837
14838# As "finish_cmds", except a single script fragment to be evaled but
14839# not shown.
14840finish_eval=$lt_finish_eval
14841
14842# Whether we should hardcode library paths into libraries.
14843hardcode_into_libs=$hardcode_into_libs
14844
14845# Compile-time system search path for libraries.
14846sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14847
14848# Run-time system search path for libraries.
14849sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14850
14851# Whether dlopen is supported.
14852dlopen_support=$enable_dlopen
14853
14854# Whether dlopen of programs is supported.
14855dlopen_self=$enable_dlopen_self
14856
14857# Whether dlopen of statically linked programs is supported.
14858dlopen_self_static=$enable_dlopen_self_static
14859
14860# Commands to strip libraries.
14861old_striplib=$lt_old_striplib
14862striplib=$lt_striplib
14863
14864
14865# The linker used to build libraries.
14866LD=$lt_LD
14867
14868# Commands used to build an old-style archive.
14869old_archive_cmds=$lt_old_archive_cmds
14870
14871# A language specific compiler.
14872CC=$lt_compiler
14873
14874# Is the compiler the GNU compiler?
14875with_gcc=$GCC
14876
14877# Compiler flag to turn off builtin functions.
14878no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14879
14880# How to pass a linker flag through the compiler.
14881wl=$lt_lt_prog_compiler_wl
14882
14883# Additional compiler flags for building library objects.
14884pic_flag=$lt_lt_prog_compiler_pic
14885
14886# Compiler flag to prevent dynamic linking.
14887link_static_flag=$lt_lt_prog_compiler_static
14888
14889# Does compiler simultaneously support -c and -o options?
14890compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14891
14892# Whether or not to add -lc for building shared libraries.
14893build_libtool_need_lc=$archive_cmds_need_lc
14894
14895# Whether or not to disallow shared libs when runtime libs are static.
14896allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14897
14898# Compiler flag to allow reflexive dlopens.
14899export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14900
14901# Compiler flag to generate shared objects directly from archives.
14902whole_archive_flag_spec=$lt_whole_archive_flag_spec
14903
14904# Whether the compiler copes with passing no objects directly.
14905compiler_needs_object=$lt_compiler_needs_object
14906
14907# Create an old-style archive from a shared archive.
14908old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14909
14910# Create a temporary old-style archive to link instead of a shared archive.
14911old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14912
14913# Commands used to build a shared archive.
14914archive_cmds=$lt_archive_cmds
14915archive_expsym_cmds=$lt_archive_expsym_cmds
14916
14917# Commands used to build a loadable module if different from building
14918# a shared archive.
14919module_cmds=$lt_module_cmds
14920module_expsym_cmds=$lt_module_expsym_cmds
14921
14922# Whether we are building with GNU ld or not.
14923with_gnu_ld=$lt_with_gnu_ld
14924
14925# Flag that allows shared libraries with undefined symbols to be built.
14926allow_undefined_flag=$lt_allow_undefined_flag
14927
14928# Flag that enforces no undefined symbols.
14929no_undefined_flag=$lt_no_undefined_flag
14930
14931# Flag to hardcode \$libdir into a binary during linking.
14932# This must work even if \$libdir does not exist
14933hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14934
14935# If ld is used when linking, flag to hardcode \$libdir into a binary
14936# during linking. This must work even if \$libdir does not exist.
14937hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14938
14939# Whether we need a single "-rpath" flag with a separated argument.
14940hardcode_libdir_separator=$lt_hardcode_libdir_separator
14941
14942# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14943# DIR into the resulting binary.
14944hardcode_direct=$hardcode_direct
14945
14946# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14947# DIR into the resulting binary and the resulting library dependency is
14948# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14949# library is relocated.
14950hardcode_direct_absolute=$hardcode_direct_absolute
14951
14952# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14953# into the resulting binary.
14954hardcode_minus_L=$hardcode_minus_L
14955
14956# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14957# into the resulting binary.
14958hardcode_shlibpath_var=$hardcode_shlibpath_var
14959
14960# Set to "yes" if building a shared library automatically hardcodes DIR
14961# into the library and all subsequent libraries and executables linked
14962# against it.
14963hardcode_automatic=$hardcode_automatic
14964
14965# Set to yes if linker adds runtime paths of dependent libraries
14966# to runtime path list.
14967inherit_rpath=$inherit_rpath
14968
14969# Whether libtool must link a program against all its dependency libraries.
14970link_all_deplibs=$link_all_deplibs
14971
14972# Fix the shell variable \$srcfile for the compiler.
14973fix_srcfile_path=$lt_fix_srcfile_path
14974
14975# Set to "yes" if exported symbols are required.
14976always_export_symbols=$always_export_symbols
14977
14978# The commands to list exported symbols.
14979export_symbols_cmds=$lt_export_symbols_cmds
14980
14981# Symbols that should not be listed in the preloaded symbols.
14982exclude_expsyms=$lt_exclude_expsyms
14983
14984# Symbols that must always be exported.
14985include_expsyms=$lt_include_expsyms
14986
14987# Commands necessary for linking programs (against libraries) with templates.
14988prelink_cmds=$lt_prelink_cmds
14989
14990# Specify filename containing input files.
14991file_list_spec=$lt_file_list_spec
14992
14993# How to hardcode a shared library path into an executable.
14994hardcode_action=$hardcode_action
14995
14996# ### END LIBTOOL CONFIG
14997
14998_LT_EOF
14999
15000 case $host_os in
15001 aix3*)
15002 cat <<\_LT_EOF >> "$cfgfile"
15003# AIX sometimes has problems with the GCC collect2 program. For some
15004# reason, if we set the COLLECT_NAMES environment variable, the problems
15005# vanish in a puff of smoke.
15006if test "X${COLLECT_NAMES+set}" != Xset; then
15007 COLLECT_NAMES=
15008 export COLLECT_NAMES
15009fi
15010_LT_EOF
15011 ;;
15012 esac
15013
15014
15015ltmain="$ac_aux_dir/ltmain.sh"
15016
15017
15018 # We use sed instead of cat because bash on DJGPP gets confused if
15019 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15020 # text mode, it properly converts lines to CR/LF. This bash problem
15021 # is reportedly fixed, but why not run on old versions too?
15022 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15023 || (rm -f "$cfgfile"; exit 1)
15024
15025 case $xsi_shell in
15026 yes)
15027 cat << \_LT_EOF >> "$cfgfile"
15028
15029# func_dirname file append nondir_replacement
15030# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15031# otherwise set result to NONDIR_REPLACEMENT.
15032func_dirname ()
15033{
15034 case ${1} in
15035 */*) func_dirname_result="${1%/*}${2}" ;;
15036 * ) func_dirname_result="${3}" ;;
15037 esac
15038}
15039
15040# func_basename file
15041func_basename ()
15042{
15043 func_basename_result="${1##*/}"
15044}
15045
15046# func_dirname_and_basename file append nondir_replacement
15047# perform func_basename and func_dirname in a single function
15048# call:
15049# dirname: Compute the dirname of FILE. If nonempty,
15050# add APPEND to the result, otherwise set result
15051# to NONDIR_REPLACEMENT.
15052# value returned in "$func_dirname_result"
15053# basename: Compute filename of FILE.
15054# value retuned in "$func_basename_result"
15055# Implementation must be kept synchronized with func_dirname
15056# and func_basename. For efficiency, we do not delegate to
15057# those functions but instead duplicate the functionality here.
15058func_dirname_and_basename ()
15059{
15060 case ${1} in
15061 */*) func_dirname_result="${1%/*}${2}" ;;
15062 * ) func_dirname_result="${3}" ;;
15063 esac
15064 func_basename_result="${1##*/}"
15065}
15066
15067# func_stripname prefix suffix name
15068# strip PREFIX and SUFFIX off of NAME.
15069# PREFIX and SUFFIX must not contain globbing or regex special
15070# characters, hashes, percent signs, but SUFFIX may contain a leading
15071# dot (in which case that matches only a dot).
15072func_stripname ()
15073{
15074 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15075 # positional parameters, so assign one to ordinary parameter first.
15076 func_stripname_result=${3}
15077 func_stripname_result=${func_stripname_result#"${1}"}
15078 func_stripname_result=${func_stripname_result%"${2}"}
15079}
15080
15081# func_opt_split
15082func_opt_split ()
15083{
15084 func_opt_split_opt=${1%%=*}
15085 func_opt_split_arg=${1#*=}
15086}
15087
15088# func_lo2o object
15089func_lo2o ()
15090{
15091 case ${1} in
15092 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15093 *) func_lo2o_result=${1} ;;
15094 esac
15095}
15096
15097# func_xform libobj-or-source
15098func_xform ()
15099{
15100 func_xform_result=${1%.*}.lo
15101}
15102
15103# func_arith arithmetic-term...
15104func_arith ()
15105{
15106 func_arith_result=$(( $* ))
15107}
15108
15109# func_len string
15110# STRING may not start with a hyphen.
15111func_len ()
15112{
15113 func_len_result=${#1}
15114}
15115
15116_LT_EOF
15117 ;;
15118 *) # Bourne compatible functions.
15119 cat << \_LT_EOF >> "$cfgfile"
15120
15121# func_dirname file append nondir_replacement
15122# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15123# otherwise set result to NONDIR_REPLACEMENT.
15124func_dirname ()
15125{
15126 # Extract subdirectory from the argument.
15127 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15128 if test "X$func_dirname_result" = "X${1}"; then
15129 func_dirname_result="${3}"
15130 else
15131 func_dirname_result="$func_dirname_result${2}"
15132 fi
15133}
15134
15135# func_basename file
15136func_basename ()
15137{
15138 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15139}
15140
15141
15142# func_stripname prefix suffix name
15143# strip PREFIX and SUFFIX off of NAME.
15144# PREFIX and SUFFIX must not contain globbing or regex special
15145# characters, hashes, percent signs, but SUFFIX may contain a leading
15146# dot (in which case that matches only a dot).
15147# func_strip_suffix prefix name
15148func_stripname ()
15149{
15150 case ${2} in
15151 .*) func_stripname_result=`$ECHO "X${3}" \
15152 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15153 *) func_stripname_result=`$ECHO "X${3}" \
15154 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15155 esac
15156}
15157
15158# sed scripts:
15159my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15160my_sed_long_arg='1s/^-[^=]*=//'
15161
15162# func_opt_split
15163func_opt_split ()
15164{
15165 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15166 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15167}
15168
15169# func_lo2o object
15170func_lo2o ()
15171{
15172 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15173}
15174
15175# func_xform libobj-or-source
15176func_xform ()
15177{
15178 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15179}
15180
15181# func_arith arithmetic-term...
15182func_arith ()
15183{
15184 func_arith_result=`expr "$@"`
15185}
15186
15187# func_len string
15188# STRING may not start with a hyphen.
15189func_len ()
15190{
15191 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15192}
15193
15194_LT_EOF
15195esac
15196
15197case $lt_shell_append in
15198 yes)
15199 cat << \_LT_EOF >> "$cfgfile"
15200
15201# func_append var value
15202# Append VALUE to the end of shell variable VAR.
15203func_append ()
15204{
15205 eval "$1+=\$2"
15206}
15207_LT_EOF
15208 ;;
15209 *)
15210 cat << \_LT_EOF >> "$cfgfile"
15211
15212# func_append var value
15213# Append VALUE to the end of shell variable VAR.
15214func_append ()
15215{
15216 eval "$1=\$$1\$2"
15217}
15218
15219_LT_EOF
15220 ;;
15221 esac
15222
15223
15224 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15225 || (rm -f "$cfgfile"; exit 1)
15226
15227 mv -f "$cfgfile" "$ofile" ||
15228 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15229 chmod +x "$ofile"
15230
15231 ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060015232 "libpng-config":F) chmod +x libpng-config ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060015233
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060015234 esac
15235done # for ac_tag
15236
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060015237
15238{ (exit 0); exit 0; }
15239_ACEOF
15240chmod +x $CONFIG_STATUS
15241ac_clean_files=$ac_clean_files_save
15242
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050015243test $ac_write_fail = 0 ||
15244 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15245$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15246 { (exit 1); exit 1; }; }
15247
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060015248
15249# configure is writing to config.log, and then calls config.status.
15250# config.status does its own redirection, appending to config.log.
15251# Unfortunately, on DOS this fails, as config.log is still kept open
15252# by configure, so config.status won't be able to write to it; its
15253# output is simply discarded. So we exec the FD to /dev/null,
15254# effectively closing config.log, so it can be properly (re)opened and
15255# appended to by config.status. When coming back to configure, we
15256# need to make the FD available again.
15257if test "$no_create" != yes; then
15258 ac_cs_success=:
15259 ac_config_status_args=
15260 test "$silent" = yes &&
15261 ac_config_status_args="$ac_config_status_args --quiet"
15262 exec 5>/dev/null
15263 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15264 exec 5>>config.log
15265 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15266 # would make configure fail if this is the last instruction.
15267 $ac_cs_success || { (exit 1); exit 1; }
15268fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050015269if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Glenn Randers-Pehrson glennrp@comcast.net0a2547e2009-05-02 15:23:38 -050015270 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15271$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050015272fi
Glenn Randers-Pehrson520a7642000-03-21 05:13:06 -060015273