blob: 9b204e0cb0c406c304a59e553b87b9266747bbd4 [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-Pehrsonae4bd5c2006-11-16 20:35:49 -06003# Generated by GNU Autoconf 2.60 for libpng 1.4.0beta15
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,
8# 2002, 2003, 2004, 2005, 2006 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-Pehrson917648e2004-12-02 18:14:51 -060015# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022 setopt NO_GLOB_SUBST
23else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060025fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060026BIN_SH=xpg4; export BIN_SH # for Tru64
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060027DUALCASE=1; export DUALCASE # for MKS sh
Glenn Randers-Pehrson5b5dcf82004-07-17 22:45:44 -050028
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060029
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060030# PATH needs CR
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060031# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49fi
50
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060051# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54else
55 as_unset=false
56fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060057
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060058
59# IFS
60# We need space, tab and new line, in precisely that order. Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" "" $as_nl"
67
68# Find who we are. Look in the path if we contain no directory separator.
69case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060072for as_dir in $PATH
73do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060078IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060079
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060080 ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85 as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
105do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600110 fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117else
118 as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123else
124 as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155else
156 as_have_required=no
157fi
158
159 if test $as_have_required = yes && (eval ":
160(as_func_return () {
161 (exit \$1)
162}
163as_func_success () {
164 as_func_return 0
165}
166as_func_failure () {
167 as_func_return 1
168}
169as_func_ret_success () {
170 return 0
171}
172as_func_ret_failure () {
173 return 1
174}
175
176exitcode=0
177if as_func_success; then
178 :
179else
180 exitcode=1
181 echo as_func_success failed.
182fi
183
184if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190 :
191else
192 exitcode=1
193 echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203else
204 exitcode=1
205 echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216 :
217else
218 as_candidate_shells=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600224 case $as_dir in
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600225 /*)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230done
231IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274 (exit $1)
275}
276as_func_success () {
277 as_func_return 0
278}
279as_func_failure () {
280 as_func_return 1
281}
282as_func_ret_success () {
283 return 0
284}
285as_func_ret_failure () {
286 return 1
287}
288
289exitcode=0
290if as_func_success; then
291 :
292else
293 exitcode=1
294 echo as_func_success failed.
295fi
296
297if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303 :
304else
305 exitcode=1
306 echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316else
317 exitcode=1
318 echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600326 test "x$as_lineno_1" != "x$as_lineno_2" &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331 break
332fi
333
334fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363 (exit \$1)
364}
365as_func_success () {
366 as_func_return 0
367}
368as_func_failure () {
369 as_func_return 1
370}
371as_func_ret_success () {
372 return 0
373}
374as_func_ret_failure () {
375 return 1
376}
377
378exitcode=0
379if as_func_success; then
380 :
381else
382 exitcode=1
383 echo as_func_success failed.
384fi
385
386if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392 :
393else
394 exitcode=1
395 echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405else
406 exitcode=1
407 echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415}
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600438 sed '
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600443 N
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600446 t loop
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600447 s/-\n.*//
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600448 ' >$as_me.lineno &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600449 chmod +x "$as_me.lineno" ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600457 # Exit status is that of the last command.
458 exit
459}
460
461
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464else
465 as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475*)
476 ECHO_N='-n';;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600477esac
478
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600479if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600481 as_expr=expr
482else
483 as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600487if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600501 as_ln_s='cp -p'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600502elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504else
505 as_ln_s='cp -p'
506fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600509
510if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600513 test -d ./-p && rmdir ./-p
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600514 as_mkdir_p=false
515fi
516
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600517# Find out whether ``test -x'' works. Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526else
527 as_executable_p=:
528fi
529rm -f conf$$.file
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600530
531# Sed expression to map a string onto a valid CPP name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600532as_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 -0600533
534# Sed expression to map a string onto a valid variable name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600536
537
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600538
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600539
540# Check that we are running under the correct shell.
541SHELL=${CONFIG_SHELL-/bin/sh}
542
543case X$ECHO in
544X*--fallback-echo)
545 # Remove one level of quotation (which was required for Make).
546 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
547 ;;
548esac
549
550echo=${ECHO-echo}
551if test "X$1" = X--no-reexec; then
552 # Discard the --no-reexec flag, and continue.
553 shift
554elif test "X$1" = X--fallback-echo; then
555 # Avoid inline document here, it may be left over
556 :
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600557elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600558 # Yippee, $echo works!
559 :
560else
561 # Restart under the correct shell.
562 exec $SHELL "$0" --no-reexec ${1+"$@"}
563fi
564
565if test "X$1" = X--fallback-echo; then
566 # used as fallback echo
567 shift
568 cat <<EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600569$*
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600570EOF
571 exit 0
572fi
573
574# The HP-UX ksh and POSIX shell print the target directory to stdout
575# if CDPATH is set.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600577
578if test -z "$ECHO"; then
579if test "X${echo_test_string+set}" != Xset; then
580# find a string as large as possible, as long as the shell can cope with it
581 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600583 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
584 echo_test_string=`eval $cmd` &&
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600585 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
586 then
587 break
588 fi
589 done
590fi
591
592if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
593 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
594 test "X$echo_testing_string" = "X$echo_test_string"; then
595 :
596else
597 # The Solaris, AIX, and Digital Unix default echo programs unquote
598 # backslashes. This makes it impossible to quote backslashes using
599 # echo "$something" | sed 's/\\/\\\\/g'
600 #
601 # So, first we look for a working echo in the user's PATH.
602
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600604 for dir in $PATH /usr/ucb; do
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600605 IFS="$lt_save_ifs"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 echo="$dir/echo"
611 break
612 fi
613 done
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600614 IFS="$lt_save_ifs"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600615
616 if test "X$echo" = Xecho; then
617 # We didn't find a better echo, so look for alternatives.
618 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
619 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
621 # This shell has a builtin print -r that does the trick.
622 echo='print -r'
623 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
624 test "X$CONFIG_SHELL" != X/bin/ksh; then
625 # If we have ksh, try running configure again with it.
626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627 export ORIGINAL_CONFIG_SHELL
628 CONFIG_SHELL=/bin/ksh
629 export CONFIG_SHELL
630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631 else
632 # Try using printf.
633 echo='printf %s\n'
634 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # Cool, printf works
638 :
639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644 export CONFIG_SHELL
645 SHELL="$CONFIG_SHELL"
646 export SHELL
647 echo="$CONFIG_SHELL $0 --fallback-echo"
648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649 test "X$echo_testing_string" = 'X\t' &&
650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 echo="$CONFIG_SHELL $0 --fallback-echo"
653 else
654 # maybe with a smaller string...
655 prev=:
656
657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
659 then
660 break
661 fi
662 prev="$cmd"
663 done
664
665 if test "$prev" != 'sed 50q "$0"'; then
666 echo_test_string=`eval $prev`
667 export echo_test_string
668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669 else
670 # Oops. We lost completely, so just stick with echo.
671 echo=echo
672 fi
673 fi
674 fi
675 fi
676fi
677fi
678
679# Copy echo and quote the copy suitably for passing to libtool from
680# the Makefile, instead of quoting the original, which is used later.
681ECHO=$echo
682if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684fi
685
686
687
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600688
689tagnames=${tagnames+${tagnames},}CXX
690
691tagnames=${tagnames+${tagnames},}F77
692
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600693exec 7<&0 </dev/null 6>&1
694
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600695# Name of the host.
696# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697# so uname gets run too.
698ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
699
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600700#
701# Initializations.
702#
703ac_default_prefix=/usr/local
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600704ac_clean_files=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600705ac_config_libobj_dir=.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600706LIBOBJS=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600707cross_compiling=no
708subdirs=
709MFLAGS=
710MAKEFLAGS=
711SHELL=${CONFIG_SHELL-/bin/sh}
712
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600713# Identity of this package.
714PACKAGE_NAME='libpng'
715PACKAGE_TARNAME='libpng'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600716PACKAGE_VERSION='1.4.0beta15'
717PACKAGE_STRING='libpng 1.4.0beta15'
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -0600718PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600719
720ac_unique_file="pngget.c"
721# Factoring default headers for most tests.
722ac_includes_default="\
723#include <stdio.h>
724#if HAVE_SYS_TYPES_H
725# include <sys/types.h>
726#endif
727#if HAVE_SYS_STAT_H
728# include <sys/stat.h>
729#endif
730#if STDC_HEADERS
731# include <stdlib.h>
732# include <stddef.h>
733#else
734# if HAVE_STDLIB_H
735# include <stdlib.h>
736# endif
737#endif
738#if HAVE_STRING_H
739# if !STDC_HEADERS && HAVE_MEMORY_H
740# include <memory.h>
741# endif
742# include <string.h>
743#endif
744#if HAVE_STRINGS_H
745# include <strings.h>
746#endif
747#if HAVE_INTTYPES_H
748# include <inttypes.h>
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600749#endif
750#if HAVE_STDINT_H
751# include <stdint.h>
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600752#endif
753#if HAVE_UNISTD_H
754# include <unistd.h>
755#endif"
756
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600757ac_subst_vars='SHELL
758PATH_SEPARATOR
759PACKAGE_NAME
760PACKAGE_TARNAME
761PACKAGE_VERSION
762PACKAGE_STRING
763PACKAGE_BUGREPORT
764exec_prefix
765prefix
766program_transform_name
767bindir
768sbindir
769libexecdir
770datarootdir
771datadir
772sysconfdir
773sharedstatedir
774localstatedir
775includedir
776oldincludedir
777docdir
778infodir
779htmldir
780dvidir
781pdfdir
782psdir
783libdir
784localedir
785mandir
786DEFS
787ECHO_C
788ECHO_N
789ECHO_T
790LIBS
791build_alias
792host_alias
793target_alias
794INSTALL_PROGRAM
795INSTALL_SCRIPT
796INSTALL_DATA
797CYGPATH_W
798PACKAGE
799VERSION
800ACLOCAL
801AUTOCONF
802AUTOMAKE
803AUTOHEADER
804MAKEINFO
805install_sh
806STRIP
807INSTALL_STRIP_PROGRAM
808mkdir_p
809AWK
810SET_MAKE
811am__leading_dot
812AMTAR
813am__tar
814am__untar
815MAINTAINER_MODE_TRUE
816MAINTAINER_MODE_FALSE
817MAINT
818CC
819CFLAGS
820LDFLAGS
821CPPFLAGS
822ac_ct_CC
823EXEEXT
824OBJEXT
825DEPDIR
826am__include
827am__quote
828AMDEP_TRUE
829AMDEP_FALSE
830AMDEPBACKSLASH
831CCDEPMODE
832am__fastdepCC_TRUE
833am__fastdepCC_FALSE
834build
835build_cpu
836build_vendor
837build_os
838host
839host_cpu
840host_vendor
841host_os
842GREP
843EGREP
844CPP
845SED
846LN_S
847ECHO
848AR
849RANLIB
850CXX
851CXXFLAGS
852ac_ct_CXX
853CXXDEPMODE
854am__fastdepCXX_TRUE
855am__fastdepCXX_FALSE
856CXXCPP
857F77
858FFLAGS
859ac_ct_F77
860LIBTOOL
861POW_LIB
862LIBOBJS
863LIBPNG_NO_MMX
864LIBPNG_DEFINES
865HAVE_LD_VERSION_SCRIPT_TRUE
866HAVE_LD_VERSION_SCRIPT_FALSE
867PNGLIB_VERSION
868PNGLIB_MAJOR
869PNGLIB_MINOR
870pkgconfigdir
871binconfigs
872compatlib
873LTLIBOBJS'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600874ac_subst_files=''
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600875 ac_precious_vars='build_alias
876host_alias
877target_alias
878CC
879CFLAGS
880LDFLAGS
881CPPFLAGS
882CPP
883CXX
884CXXFLAGS
885CCC
886CXXCPP
887F77
888FFLAGS'
889
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600890
891# Initialize some variables set by options.
892ac_init_help=
893ac_init_version=false
894# The variables have the same names as the options, with
895# dashes changed to underlines.
896cache_file=/dev/null
897exec_prefix=NONE
898no_create=
899no_recursion=
900prefix=NONE
901program_prefix=NONE
902program_suffix=NONE
903program_transform_name=s,x,x,
904silent=
905site=
906srcdir=
907verbose=
908x_includes=NONE
909x_libraries=NONE
910
911# Installation directory options.
912# These are left unexpanded so users can "make install exec_prefix=/foo"
913# and all the variables that are supposed to be based on exec_prefix
914# by default will actually change.
915# Use braces instead of parens because sh, perl, etc. also accept them.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600916# (The list follows the same order as the GNU Coding Standards.)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600917bindir='${exec_prefix}/bin'
918sbindir='${exec_prefix}/sbin'
919libexecdir='${exec_prefix}/libexec'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600920datarootdir='${prefix}/share'
921datadir='${datarootdir}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600922sysconfdir='${prefix}/etc'
923sharedstatedir='${prefix}/com'
924localstatedir='${prefix}/var'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600925includedir='${prefix}/include'
926oldincludedir='/usr/include'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600927docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928infodir='${datarootdir}/info'
929htmldir='${docdir}'
930dvidir='${docdir}'
931pdfdir='${docdir}'
932psdir='${docdir}'
933libdir='${exec_prefix}/lib'
934localedir='${datarootdir}/locale'
935mandir='${datarootdir}/man'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600936
937ac_prev=
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600938ac_dashdash=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600939for ac_option
940do
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600943 eval $ac_prev=\$ac_option
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600944 ac_prev=
945 continue
946 fi
947
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600948 case $ac_option in
949 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 *) ac_optarg=yes ;;
951 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600952
953 # Accept the important Cygnus configure options, so we can diagnose typos.
954
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600955 case $ac_dashdash$ac_option in
956 --)
957 ac_dashdash=yes ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600958
959 -bindir | --bindir | --bindi | --bind | --bin | --bi)
960 ac_prev=bindir ;;
961 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
962 bindir=$ac_optarg ;;
963
964 -build | --build | --buil | --bui | --bu)
965 ac_prev=build_alias ;;
966 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
967 build_alias=$ac_optarg ;;
968
969 -cache-file | --cache-file | --cache-fil | --cache-fi \
970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971 ac_prev=cache_file ;;
972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974 cache_file=$ac_optarg ;;
975
976 --config-cache | -C)
977 cache_file=config.cache ;;
978
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600979 -datadir | --datadir | --datadi | --datad)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600980 ac_prev=datadir ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600981 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600982 datadir=$ac_optarg ;;
983
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600984 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985 | --dataroo | --dataro | --datar)
986 ac_prev=datarootdir ;;
987 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989 datarootdir=$ac_optarg ;;
990
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600991 -disable-* | --disable-*)
992 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
995 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
996 { (exit 1); exit 1; }; }
997 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600998 eval enable_$ac_feature=no ;;
999
1000 -docdir | --docdir | --docdi | --doc | --do)
1001 ac_prev=docdir ;;
1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003 docdir=$ac_optarg ;;
1004
1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006 ac_prev=dvidir ;;
1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008 dvidir=$ac_optarg ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001009
1010 -enable-* | --enable-*)
1011 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1014 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1015 { (exit 1); exit 1; }; }
1016 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001017 eval enable_$ac_feature=\$ac_optarg ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001018
1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021 | --exec | --exe | --ex)
1022 ac_prev=exec_prefix ;;
1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025 | --exec=* | --exe=* | --ex=*)
1026 exec_prefix=$ac_optarg ;;
1027
1028 -gas | --gas | --ga | --g)
1029 # Obsolete; use --with-gas.
1030 with_gas=yes ;;
1031
1032 -help | --help | --hel | --he | -h)
1033 ac_init_help=long ;;
1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035 ac_init_help=recursive ;;
1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037 ac_init_help=short ;;
1038
1039 -host | --host | --hos | --ho)
1040 ac_prev=host_alias ;;
1041 -host=* | --host=* | --hos=* | --ho=*)
1042 host_alias=$ac_optarg ;;
1043
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045 ac_prev=htmldir ;;
1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047 | --ht=*)
1048 htmldir=$ac_optarg ;;
1049
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001050 -includedir | --includedir | --includedi | --included | --include \
1051 | --includ | --inclu | --incl | --inc)
1052 ac_prev=includedir ;;
1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054 | --includ=* | --inclu=* | --incl=* | --inc=*)
1055 includedir=$ac_optarg ;;
1056
1057 -infodir | --infodir | --infodi | --infod | --info | --inf)
1058 ac_prev=infodir ;;
1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060 infodir=$ac_optarg ;;
1061
1062 -libdir | --libdir | --libdi | --libd)
1063 ac_prev=libdir ;;
1064 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065 libdir=$ac_optarg ;;
1066
1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068 | --libexe | --libex | --libe)
1069 ac_prev=libexecdir ;;
1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071 | --libexe=* | --libex=* | --libe=*)
1072 libexecdir=$ac_optarg ;;
1073
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001074 -localedir | --localedir | --localedi | --localed | --locale)
1075 ac_prev=localedir ;;
1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077 localedir=$ac_optarg ;;
1078
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001079 -localstatedir | --localstatedir | --localstatedi | --localstated \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001080 | --localstate | --localstat | --localsta | --localst | --locals)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001081 ac_prev=localstatedir ;;
1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001084 localstatedir=$ac_optarg ;;
1085
1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087 ac_prev=mandir ;;
1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089 mandir=$ac_optarg ;;
1090
1091 -nfp | --nfp | --nf)
1092 # Obsolete; use --without-fp.
1093 with_fp=no ;;
1094
1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096 | --no-cr | --no-c | -n)
1097 no_create=yes ;;
1098
1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101 no_recursion=yes ;;
1102
1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105 | --oldin | --oldi | --old | --ol | --o)
1106 ac_prev=oldincludedir ;;
1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110 oldincludedir=$ac_optarg ;;
1111
1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113 ac_prev=prefix ;;
1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115 prefix=$ac_optarg ;;
1116
1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118 | --program-pre | --program-pr | --program-p)
1119 ac_prev=program_prefix ;;
1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122 program_prefix=$ac_optarg ;;
1123
1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125 | --program-suf | --program-su | --program-s)
1126 ac_prev=program_suffix ;;
1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129 program_suffix=$ac_optarg ;;
1130
1131 -program-transform-name | --program-transform-name \
1132 | --program-transform-nam | --program-transform-na \
1133 | --program-transform-n | --program-transform- \
1134 | --program-transform | --program-transfor \
1135 | --program-transfo | --program-transf \
1136 | --program-trans | --program-tran \
1137 | --progr-tra | --program-tr | --program-t)
1138 ac_prev=program_transform_name ;;
1139 -program-transform-name=* | --program-transform-name=* \
1140 | --program-transform-nam=* | --program-transform-na=* \
1141 | --program-transform-n=* | --program-transform-=* \
1142 | --program-transform=* | --program-transfor=* \
1143 | --program-transfo=* | --program-transf=* \
1144 | --program-trans=* | --program-tran=* \
1145 | --progr-tra=* | --program-tr=* | --program-t=*)
1146 program_transform_name=$ac_optarg ;;
1147
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149 ac_prev=pdfdir ;;
1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151 pdfdir=$ac_optarg ;;
1152
1153 -psdir | --psdir | --psdi | --psd | --ps)
1154 ac_prev=psdir ;;
1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156 psdir=$ac_optarg ;;
1157
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159 | -silent | --silent | --silen | --sile | --sil)
1160 silent=yes ;;
1161
1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163 ac_prev=sbindir ;;
1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165 | --sbi=* | --sb=*)
1166 sbindir=$ac_optarg ;;
1167
1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170 | --sharedst | --shareds | --shared | --share | --shar \
1171 | --sha | --sh)
1172 ac_prev=sharedstatedir ;;
1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176 | --sha=* | --sh=*)
1177 sharedstatedir=$ac_optarg ;;
1178
1179 -site | --site | --sit)
1180 ac_prev=site ;;
1181 -site=* | --site=* | --sit=*)
1182 site=$ac_optarg ;;
1183
1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185 ac_prev=srcdir ;;
1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187 srcdir=$ac_optarg ;;
1188
1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190 | --syscon | --sysco | --sysc | --sys | --sy)
1191 ac_prev=sysconfdir ;;
1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194 sysconfdir=$ac_optarg ;;
1195
1196 -target | --target | --targe | --targ | --tar | --ta | --t)
1197 ac_prev=target_alias ;;
1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199 target_alias=$ac_optarg ;;
1200
1201 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202 verbose=yes ;;
1203
1204 -version | --version | --versio | --versi | --vers | -V)
1205 ac_init_version=: ;;
1206
1207 -with-* | --with-*)
1208 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1211 { echo "$as_me: error: invalid package name: $ac_package" >&2
1212 { (exit 1); exit 1; }; }
1213 ac_package=`echo $ac_package| sed 's/-/_/g'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001214 eval with_$ac_package=\$ac_optarg ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001215
1216 -without-* | --without-*)
1217 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1220 { echo "$as_me: error: invalid package name: $ac_package" >&2
1221 { (exit 1); exit 1; }; }
1222 ac_package=`echo $ac_package | sed 's/-/_/g'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001223 eval with_$ac_package=no ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001224
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1228
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1235
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1242
1243 -*) { echo "$as_me: error: unrecognized option: $ac_option
1244Try \`$0 --help' for more information." >&2
1245 { (exit 1); exit 1; }; }
1246 ;;
1247
1248 *=*)
1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1252 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1253 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001254 eval $ac_envvar=\$ac_optarg
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001255 export $ac_envvar ;;
1256
1257 *)
1258 # FIXME: should be removed in autoconf 3.0.
1259 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1263 ;;
1264
1265 esac
1266done
1267
1268if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 { echo "$as_me: error: missing argument to $ac_option" >&2
1271 { (exit 1); exit 1; }; }
1272fi
1273
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001274# Be sure to have absolute directory names.
1275for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276 datadir sysconfdir sharedstatedir localstatedir includedir \
1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278 libdir localedir mandir
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001279do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001280 eval ac_val=\$$ac_var
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001281 case $ac_val in
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001284 esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001285 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1286 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001287done
1288
1289# There might be people who depend on the old broken behavior: `$host'
1290# used to hold the argument of --host etc.
1291# FIXME: To remove some day.
1292build=$build_alias
1293host=$host_alias
1294target=$target_alias
1295
1296# FIXME: To remove some day.
1297if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1304 fi
1305fi
1306
1307ac_tool_prefix=
1308test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310test "$silent" = yes && exec 6>/dev/null
1311
1312
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001313ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314ac_ls_di=`ls -di .` &&
1315ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 { echo "$as_me: error: Working directory cannot be determined" >&2
1317 { (exit 1); exit 1; }; }
1318test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 { echo "$as_me: error: pwd does not report name of working directory" >&2
1320 { (exit 1); exit 1; }; }
1321
1322
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001323# Find the source files, if location was not specified.
1324if test -z "$srcdir"; then
1325 ac_srcdir_defaulted=yes
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir=`$as_dirname -- "$0" ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001328$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001329 X"$0" : 'X\(//\)[^/]' \| \
1330 X"$0" : 'X\(//\)$' \| \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001331 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001332echo X"$0" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)[^/].*/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\/\)$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\).*/{
1346 s//\1/
1347 q
1348 }
1349 s/.*/./; q'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001350 srcdir=$ac_confdir
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001351 if test ! -r "$srcdir/$ac_unique_file"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001352 srcdir=..
1353 fi
1354else
1355 ac_srcdir_defaulted=no
1356fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001357if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001360 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001361fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001362ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363ac_abs_confdir=`(
1364 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001365 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001366 pwd)`
1367# When building in place, set srcdir=.
1368if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 srcdir=.
1370fi
1371# Remove unnecessary trailing slashes from srcdir.
1372# Double slashes in file names in object file debugging info
1373# mess up M-x gdb in Emacs.
1374case $srcdir in
1375*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376esac
1377for ac_var in $ac_precious_vars; do
1378 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_${ac_var}_value=\$${ac_var}
1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001383
1384#
1385# Report the --help message.
1386#
1387if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1390 cat <<_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001391\`configure' configures libpng 1.4.0beta15 to adapt to many kinds of systems.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001392
1393Usage: $0 [OPTION]... [VAR=VALUE]...
1394
1395To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396VAR=VALUE. See below for descriptions of some of the useful variables.
1397
1398Defaults for the options are specified in brackets.
1399
1400Configuration:
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1410
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001411Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001413 [$ac_default_prefix]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001415 [PREFIX]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001416
1417By default, \`make install' will install all the files in
1418\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420for instance \`--prefix=\$HOME'.
1421
1422For better control, use the options below.
1423
1424Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001444_ACEOF
1445
1446 cat <<\_ACEOF
1447
1448Program names:
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1452
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001453System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456_ACEOF
1457fi
1458
1459if test -n "$ac_init_help"; then
1460 case $ac_init_help in
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001461 short | recursive ) echo "Configuration of libpng 1.4.0beta15:";;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001462 esac
1463 cat <<\_ACEOF
1464
1465Optional Features:
1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001468 --enable-maintainer-mode enable make rules and dependencies not useful
1469 (and sometimes confusing) to the casual installer
1470 --disable-dependency-tracking speeds up one-time build
1471 --enable-dependency-tracking do not reject slow dependency extractors
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001472 --enable-shared[=PKGS] build shared libraries [default=yes]
1473 --enable-static[=PKGS] build static libraries [default=yes]
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001474 --enable-fast-install[=PKGS]
1475 optimize for fast installation [default=yes]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001476 --disable-libtool-lock avoid locking (might break parallel builds)
1477
1478Optional Packages:
1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1482 --with-pic try to use only PIC/non-PIC objects [default=use
1483 both]
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001484 --with-tags[=TAGS] include additional configurations [automatic]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001485 --with-pkgconfigdir Use the specified pkgconfig dir (default is
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001486 libdir/pkgconfig)
1487 --with-binconfigs Generate shell libpng-config scripts as well as
1488 pkg-config data [default=yes]
1489 --with-libpng-compat Generate the obsolete libpng.so library
1490 [default=yes]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001491
1492Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001497 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1498 you have headers in a nonstandard directory <include dir>
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001499 CPP C preprocessor
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001500 CXX C++ compiler command
1501 CXXFLAGS C++ compiler flags
1502 CXXCPP C++ preprocessor
1503 F77 Fortran 77 compiler command
1504 FFLAGS Fortran 77 compiler flags
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001505
1506Use these variables to override the choices made by `configure' or to help
1507it to find libraries and programs with nonstandard names/locations.
1508
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -06001509Report bugs to <png-mng-implement@lists.sourceforge.net>.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001510_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001511ac_status=$?
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001512fi
1513
1514if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001517 test -d "$ac_dir" || continue
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001518 ac_builddir=.
1519
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001520case "$ac_dir" in
1521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530esac
1531ac_abs_top_builddir=$ac_pwd
1532ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533# for backward compatibility:
1534ac_top_builddir=$ac_top_build_prefix
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001535
1536case $srcdir in
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001537 .) # We are building in place.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001538 ac_srcdir=.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001542 ac_srcdir=$srcdir$ac_dir_suffix;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001549esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001551
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001560 else
1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001564 done
1565fi
1566
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001567test -n "$ac_init_help" && exit $ac_status
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001568if $ac_init_version; then
1569 cat <<\_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001570libpng configure 1.4.0beta15
1571generated by GNU Autoconf 2.60
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001572
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001573Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15742002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001575This configure script is free software; the Free Software Foundation
1576gives unlimited permission to copy, distribute and modify it.
1577_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001578 exit
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001579fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001580cat >config.log <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001581This file contains any messages produced by compilers while
1582running configure, to aid debugging if configure makes a mistake.
1583
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001584It was created by libpng $as_me 1.4.0beta15, which was
1585generated by GNU Autoconf 2.60. Invocation command line was
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001586
1587 $ $0 $@
1588
1589_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001590exec 5>>config.log
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001591{
1592cat <<_ASUNAME
1593## --------- ##
1594## Platform. ##
1595## --------- ##
1596
1597hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
1603/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1605
1606/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1607/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1608/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001609/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001610/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1611/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1612/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1613
1614_ASUNAME
1615
1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 echo "PATH: $as_dir"
1622done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001623IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001624
1625} >&5
1626
1627cat >&5 <<_ACEOF
1628
1629
1630## ----------- ##
1631## Core tests. ##
1632## ----------- ##
1633
1634_ACEOF
1635
1636
1637# Keep a trace of the command line.
1638# Strip out --no-create and --no-recursion so they do not pile up.
1639# Strip out --silent because we don't want to record it for future runs.
1640# Also quote any args containing shell meta-characters.
1641# Make two passes to allow for proper duplicate-argument suppression.
1642ac_configure_args=
1643ac_configure_args0=
1644ac_configure_args1=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001645ac_must_keep_next=false
1646for ac_pass in 1 2
1647do
1648 for ac_arg
1649 do
1650 case $ac_arg in
1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653 | -silent | --silent | --silen | --sile | --sil)
1654 continue ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001655 *\'*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657 esac
1658 case $ac_pass in
1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660 2)
1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662 if test $ac_must_keep_next = true; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001663 ac_must_keep_next=false # Got value, back to normal.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001664 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001665 case $ac_arg in
1666 *=* | --config-cache | -C | -disable-* | --disable-* \
1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669 | -with-* | --with-* | -without-* | --without-* | --x)
1670 case "$ac_configure_args0 " in
1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672 esac
1673 ;;
1674 -* ) ac_must_keep_next=true ;;
1675 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001676 fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001677 ac_configure_args="$ac_configure_args '$ac_arg'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001678 ;;
1679 esac
1680 done
1681done
1682$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684
1685# When interrupted or exit'd, cleanup temporary files, and complete
1686# config.log. We remove comments because anyway the quotes in there
1687# would cause problems or look ugly.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001688# WARNING: Use '\'' to represent an apostrophe within the trap.
1689# 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 -06001690trap 'exit_status=$?
1691 # Save into config.log some information that might help in debugging.
1692 {
1693 echo
1694
1695 cat <<\_ASBOX
1696## ---------------- ##
1697## Cache variables. ##
1698## ---------------- ##
1699_ASBOX
1700 echo
1701 # The following way of writing the cache mishandles newlines in values,
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001702(
1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704 eval ac_val=\$$ac_var
1705 case $ac_val in #(
1706 *${as_nl}*)
1707 case $ac_var in #(
1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710 esac
1711 case $ac_var in #(
1712 _ | IFS | as_nl) ;; #(
1713 *) $as_unset $ac_var ;;
1714 esac ;;
1715 esac
1716 done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001717 (set) 2>&1 |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001720 sed -n \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 ;; #(
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001724 *)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001726 ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001727 esac |
1728 sort
1729)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001730 echo
1731
1732 cat <<\_ASBOX
1733## ----------------- ##
1734## Output variables. ##
1735## ----------------- ##
1736_ASBOX
1737 echo
1738 for ac_var in $ac_subst_vars
1739 do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001740 eval ac_val=\$$ac_var
1741 case $ac_val in
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743 esac
1744 echo "$ac_var='\''$ac_val'\''"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001745 done | sort
1746 echo
1747
1748 if test -n "$ac_subst_files"; then
1749 cat <<\_ASBOX
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001750## ------------------- ##
1751## File substitutions. ##
1752## ------------------- ##
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001753_ASBOX
1754 echo
1755 for ac_var in $ac_subst_files
1756 do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001757 eval ac_val=\$$ac_var
1758 case $ac_val in
1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 esac
1761 echo "$ac_var='\''$ac_val'\''"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001762 done | sort
1763 echo
1764 fi
1765
1766 if test -s confdefs.h; then
1767 cat <<\_ASBOX
1768## ----------- ##
1769## confdefs.h. ##
1770## ----------- ##
1771_ASBOX
1772 echo
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001773 cat confdefs.h
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001774 echo
1775 fi
1776 test "$ac_signal" != 0 &&
1777 echo "$as_me: caught signal $ac_signal"
1778 echo "$as_me: exit $exit_status"
1779 } >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001782 exit $exit_status
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001783' 0
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001784for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786done
1787ac_signal=0
1788
1789# confdefs.h avoids OS command line length limits that DEFS can exceed.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001790rm -f -r conftest* confdefs.h
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001791
1792# Predefined preprocessor variables.
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_NAME "$PACKAGE_NAME"
1796_ACEOF
1797
1798
1799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801_ACEOF
1802
1803
1804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_VERSION "$PACKAGE_VERSION"
1806_ACEOF
1807
1808
1809cat >>confdefs.h <<_ACEOF
1810#define PACKAGE_STRING "$PACKAGE_STRING"
1811_ACEOF
1812
1813
1814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816_ACEOF
1817
1818
1819# Let the site file select an alternate cache file if it wants to.
1820# Prefer explicitly selected file to automatically selected ones.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001821if test -n "$CONFIG_SITE"; then
1822 set x "$CONFIG_SITE"
1823elif test "x$prefix" != xNONE; then
1824 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825else
1826 set x "$ac_default_prefix/share/config.site" \
1827 "$ac_default_prefix/etc/config.site"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001828fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001829shift
1830for ac_site_file
1831do
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001832 if test -r "$ac_site_file"; then
1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834echo "$as_me: loading site script $ac_site_file" >&6;}
1835 sed 's/^/| /' "$ac_site_file" >&5
1836 . "$ac_site_file"
1837 fi
1838done
1839
1840if test -r "$cache_file"; then
1841 # Some versions of bash will fail to source /dev/null (special
1842 # files actually), so we avoid doing that.
1843 if test -f "$cache_file"; then
1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845echo "$as_me: loading cache $cache_file" >&6;}
1846 case $cache_file in
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848 *) . "./$cache_file";;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001849 esac
1850 fi
1851else
1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853echo "$as_me: creating cache $cache_file" >&6;}
1854 >$cache_file
1855fi
1856
1857# Check that the precious variables saved in the cache have kept the same
1858# value.
1859ac_cache_corrupted=false
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001860for ac_var in $ac_precious_vars; do
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001865 case $ac_old_set,$ac_new_set in
1866 set,)
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1870 ,set)
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1874 ,);;
1875 *)
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001878echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001880echo "$as_me: former value: $ac_old_val" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001882echo "$as_me: current value: $ac_new_val" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001883 ac_cache_corrupted=:
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001884 fi;;
1885 esac
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1888 case $ac_new_val in
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001890 *) ac_arg=$ac_var=$ac_new_val ;;
1891 esac
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895 esac
1896 fi
1897done
1898if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1904fi
1905
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001930ac_ext=c
1931ac_cpp='$CPP $CPPFLAGS'
1932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935
1936
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001937am__api_version="1.9"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001938ac_aux_dir=
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001939for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1940 if test -f "$ac_dir/install-sh"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001941 ac_aux_dir=$ac_dir
1942 ac_install_sh="$ac_aux_dir/install-sh -c"
1943 break
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001944 elif test -f "$ac_dir/install.sh"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/install.sh -c"
1947 break
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001948 elif test -f "$ac_dir/shtool"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001949 ac_aux_dir=$ac_dir
1950 ac_install_sh="$ac_aux_dir/shtool install -c"
1951 break
1952 fi
1953done
1954if test -z "$ac_aux_dir"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001955 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1956echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001957 { (exit 1); exit 1; }; }
1958fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001959
1960# These three variables are undocumented and unsupported,
1961# and are intended to be withdrawn in a future Autoconf release.
1962# They can cause serious problems if a builder's source tree is in a directory
1963# whose full name contains unusual characters.
1964ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1965ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1966ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1967
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001968
1969# Find a good install program. We prefer a C program (faster),
1970# so one script is as good as another. But avoid the broken or
1971# incompatible versions:
1972# SysV /etc/install, /usr/sbin/install
1973# SunOS /usr/etc/install
1974# IRIX /sbin/install
1975# AIX /bin/install
1976# AmigaOS /C/install, which installs bootblocks on floppy discs
1977# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1978# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1979# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001980# OS/2's system install, which has a completely different semantic
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001981# ./install, which can be erroneously created by make from ./install.sh.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001982{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1983echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001984if test -z "$INSTALL"; then
1985if test "${ac_cv_path_install+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1987else
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989for as_dir in $PATH
1990do
1991 IFS=$as_save_IFS
1992 test -z "$as_dir" && as_dir=.
1993 # Account for people who put trailing slashes in PATH elements.
1994case $as_dir/ in
1995 ./ | .// | /cC/* | \
1996 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001997 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001998 /usr/ucb/* ) ;;
1999 *)
2000 # OSF1 and SCO ODT 3.0 have their own names for install.
2001 # Don't use installbsd from OSF since it installs stuff as root
2002 # by default.
2003 for ac_prog in ginstall scoinst install; do
2004 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002005 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002006 if test $ac_prog = install &&
2007 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2008 # AIX install. It has an incompatible calling convention.
2009 :
2010 elif test $ac_prog = install &&
2011 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2012 # program-specific install script used by HP pwplus--don't use.
2013 :
2014 else
2015 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2016 break 3
2017 fi
2018 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002019 done
2020 done
2021 ;;
2022esac
2023done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002024IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002025
2026
2027fi
2028 if test "${ac_cv_path_install+set}" = set; then
2029 INSTALL=$ac_cv_path_install
2030 else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002031 # As a last resort, use the slow shell script. Don't cache a
2032 # value for INSTALL within a source directory, because that will
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002033 # break other packages using the cache if that directory is
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002034 # removed, or if the value is a relative name.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002035 INSTALL=$ac_install_sh
2036 fi
2037fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002038{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2039echo "${ECHO_T}$INSTALL" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002040
2041# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2042# It thinks the first close brace ends the variable substitution.
2043test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2044
2045test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2046
2047test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2048
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002049{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2050echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002051# Just in case
2052sleep 1
2053echo timestamp > conftest.file
2054# Do `set' in a subshell so we don't clobber the current shell's
2055# arguments. Must try -L first in case configure is actually a
2056# symlink; some systems play weird games with the mod time of symlinks
2057# (eg FreeBSD returns the mod time of the symlink's containing
2058# directory).
2059if (
2060 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2061 if test "$*" = "X"; then
2062 # -L didn't work.
2063 set X `ls -t $srcdir/configure conftest.file`
2064 fi
2065 rm -f conftest.file
2066 if test "$*" != "X $srcdir/configure conftest.file" \
2067 && test "$*" != "X conftest.file $srcdir/configure"; then
2068
2069 # If neither matched, then we have a broken ls. This can happen
2070 # if, for instance, CONFIG_SHELL is bash and it inherits a
2071 # broken ls alias from the environment. This has actually
2072 # happened. Such a system could not be considered "sane".
2073 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2074alias in your environment" >&5
2075echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2076alias in your environment" >&2;}
2077 { (exit 1); exit 1; }; }
2078 fi
2079
2080 test "$2" = conftest.file
2081 )
2082then
2083 # Ok.
2084 :
2085else
2086 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2087Check your system clock" >&5
2088echo "$as_me: error: newly created file is older than distributed files!
2089Check your system clock" >&2;}
2090 { (exit 1); exit 1; }; }
2091fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002092{ echo "$as_me:$LINENO: result: yes" >&5
2093echo "${ECHO_T}yes" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002094test "$program_prefix" != NONE &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002095 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002096# Use a double $ so make ignores it.
2097test "$program_suffix" != NONE &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002098 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002099# Double any \ or $. echo might interpret backslashes.
2100# By default was `s,x,x', remove it if useless.
2101cat <<\_ACEOF >conftest.sed
2102s/[\\$]/&&/g;s/;s,x,x,$//
2103_ACEOF
2104program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002105rm -f conftest.sed
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002106
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002107# expand $ac_aux_dir to an absolute path
2108am_aux_dir=`cd $ac_aux_dir && pwd`
2109
2110test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2111# Use eval to expand $SHELL
2112if eval "$MISSING --run true"; then
2113 am_missing_run="$MISSING --run "
2114else
2115 am_missing_run=
2116 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2117echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2118fi
2119
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002120if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2121 # We used to keeping the `.' as first argument, in order to
2122 # allow $(mkdir_p) to be used without argument. As in
2123 # $(mkdir_p) $(somedir)
2124 # where $(somedir) is conditionally defined. However this is wrong
2125 # for two reasons:
2126 # 1. if the package is installed by a user who cannot write `.'
2127 # make install will fail,
2128 # 2. the above comment should most certainly read
2129 # $(mkdir_p) $(DESTDIR)$(somedir)
2130 # so it does not work when $(somedir) is undefined and
2131 # $(DESTDIR) is not.
2132 # To support the latter case, we have to write
2133 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2134 # so the `.' trick is pointless.
2135 mkdir_p='mkdir -p --'
2136else
2137 # On NextStep and OpenStep, the `mkdir' command does not
2138 # recognize any option. It will interpret all options as
2139 # directories to create, and then abort because `.' already
2140 # exists.
2141 for d in ./-p ./--version;
2142 do
2143 test -d $d && rmdir $d
2144 done
2145 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2146 if test -f "$ac_aux_dir/mkinstalldirs"; then
2147 mkdir_p='$(mkinstalldirs)'
2148 else
2149 mkdir_p='$(install_sh) -d'
2150 fi
2151fi
2152
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002153for ac_prog in gawk mawk nawk awk
2154do
2155 # Extract the first word of "$ac_prog", so it can be a program name with args.
2156set dummy $ac_prog; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002159if test "${ac_cv_prog_AWK+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2161else
2162 if test -n "$AWK"; then
2163 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2164else
2165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166for as_dir in $PATH
2167do
2168 IFS=$as_save_IFS
2169 test -z "$as_dir" && as_dir=.
2170 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002172 ac_cv_prog_AWK="$ac_prog"
2173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 break 2
2175 fi
2176done
2177done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002178IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002179
2180fi
2181fi
2182AWK=$ac_cv_prog_AWK
2183if test -n "$AWK"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002184 { echo "$as_me:$LINENO: result: $AWK" >&5
2185echo "${ECHO_T}$AWK" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002186else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002187 { echo "$as_me:$LINENO: result: no" >&5
2188echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002189fi
2190
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002191
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002192 test -n "$AWK" && break
2193done
2194
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002195{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2196echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2197set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2198if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002199 echo $ECHO_N "(cached) $ECHO_C" >&6
2200else
2201 cat >conftest.make <<\_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002202SHELL = /bin/sh
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002203all:
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002204 @echo '@@@%%%=$(MAKE)=@@@%%%'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002205_ACEOF
2206# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002207case `${MAKE-make} -f conftest.make 2>/dev/null` in
2208 *@@@%%%=?*=@@@%%%*)
2209 eval ac_cv_prog_make_${ac_make}_set=yes;;
2210 *)
2211 eval ac_cv_prog_make_${ac_make}_set=no;;
2212esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002213rm -f conftest.make
2214fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002215if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2216 { echo "$as_me:$LINENO: result: yes" >&5
2217echo "${ECHO_T}yes" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002218 SET_MAKE=
2219else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002220 { echo "$as_me:$LINENO: result: no" >&5
2221echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002222 SET_MAKE="MAKE=${MAKE-make}"
2223fi
2224
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002225rm -rf .tst 2>/dev/null
2226mkdir .tst 2>/dev/null
2227if test -d .tst; then
2228 am__leading_dot=.
2229else
2230 am__leading_dot=_
2231fi
2232rmdir .tst 2>/dev/null
2233
2234# test to see if srcdir already configured
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002235if test "`cd $srcdir && pwd`" != "`pwd`" &&
2236 test -f $srcdir/config.status; then
2237 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2238echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2239 { (exit 1); exit 1; }; }
2240fi
2241
2242# test whether we have cygpath
2243if test -z "$CYGPATH_W"; then
2244 if (cygpath --version) >/dev/null 2>/dev/null; then
2245 CYGPATH_W='cygpath -w'
2246 else
2247 CYGPATH_W=echo
2248 fi
2249fi
2250
2251
2252# Define the identity of the package.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002253 PACKAGE='libpng'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002254 VERSION='1.4.0beta15'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002255
2256
2257cat >>confdefs.h <<_ACEOF
2258#define PACKAGE "$PACKAGE"
2259_ACEOF
2260
2261
2262cat >>confdefs.h <<_ACEOF
2263#define VERSION "$VERSION"
2264_ACEOF
2265
2266# Some tools Automake needs.
2267
2268ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2269
2270
2271AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2272
2273
2274AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2275
2276
2277AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2278
2279
2280MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2281
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002282install_sh=${install_sh-"$am_aux_dir/install-sh"}
2283
2284# Installed binaries are usually stripped using `strip' when the user
2285# run `make install-strip'. However `strip' might not be the right
2286# tool to use in cross-compilation environments, therefore Automake
2287# will honor the `STRIP' environment variable to overrule this program.
2288if test "$cross_compiling" != no; then
2289 if test -n "$ac_tool_prefix"; then
2290 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2291set dummy ${ac_tool_prefix}strip; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002292{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002294if test "${ac_cv_prog_STRIP+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296else
2297 if test -n "$STRIP"; then
2298 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2299else
2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301for as_dir in $PATH
2302do
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002307 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2310 fi
2311done
2312done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002313IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002314
2315fi
2316fi
2317STRIP=$ac_cv_prog_STRIP
2318if test -n "$STRIP"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002319 { echo "$as_me:$LINENO: result: $STRIP" >&5
2320echo "${ECHO_T}$STRIP" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002321else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002322 { echo "$as_me:$LINENO: result: no" >&5
2323echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002324fi
2325
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002326
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002327fi
2328if test -z "$ac_cv_prog_STRIP"; then
2329 ac_ct_STRIP=$STRIP
2330 # Extract the first word of "strip", so it can be a program name with args.
2331set dummy strip; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002332{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002334if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336else
2337 if test -n "$ac_ct_STRIP"; then
2338 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2339else
2340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341for as_dir in $PATH
2342do
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002347 ac_cv_prog_ac_ct_STRIP="strip"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 break 2
2350 fi
2351done
2352done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002353IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002354
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002355fi
2356fi
2357ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2358if test -n "$ac_ct_STRIP"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002359 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2360echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002361else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002362 { echo "$as_me:$LINENO: result: no" >&5
2363echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002364fi
2365
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002366 if test "x$ac_ct_STRIP" = x; then
2367 STRIP=":"
2368 else
2369 case $cross_compiling:$ac_tool_warned in
2370yes:)
2371{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2372whose name does not start with the host triplet. If you think this
2373configuration is useful to you, please write to autoconf@gnu.org." >&5
2374echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2375whose name does not start with the host triplet. If you think this
2376configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2377ac_tool_warned=yes ;;
2378esac
2379 STRIP=$ac_ct_STRIP
2380 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002381else
2382 STRIP="$ac_cv_prog_STRIP"
2383fi
2384
2385fi
2386INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2387
2388# We need awk for the "check" target. The system "awk" is bad on
2389# some platforms.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002390# Always define AMTAR for backward compatibility.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002391
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002392AMTAR=${AMTAR-"${am_missing_run}tar"}
2393
2394am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2395
2396
2397
2398
2399
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002400{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2401echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2402 # Check whether --enable-maintainer-mode was given.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002403if test "${enable_maintainer_mode+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002404 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002405else
2406 USE_MAINTAINER_MODE=no
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002407fi
2408
2409 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2410echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002411
2412
2413if test $USE_MAINTAINER_MODE = yes; then
2414 MAINTAINER_MODE_TRUE=
2415 MAINTAINER_MODE_FALSE='#'
2416else
2417 MAINTAINER_MODE_TRUE='#'
2418 MAINTAINER_MODE_FALSE=
2419fi
2420
2421 MAINT=$MAINTAINER_MODE_TRUE
2422
2423
2424
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002425PNGLIB_VERSION=1.4.0beta15
Glenn Randers-Pehrson17218292006-04-20 07:20:46 -05002426PNGLIB_MAJOR=14
2427PNGLIB_MINOR=0
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002428
2429
2430
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002431ac_config_headers="$ac_config_headers config.h"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002432
2433
2434# Checks for programs.
2435ac_ext=c
2436ac_cpp='$CPP $CPPFLAGS'
2437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2439ac_compiler_gnu=$ac_cv_c_compiler_gnu
2440if test -n "$ac_tool_prefix"; then
2441 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2442set dummy ${ac_tool_prefix}gcc; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002443{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002445if test "${ac_cv_prog_CC+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2447else
2448 if test -n "$CC"; then
2449 ac_cv_prog_CC="$CC" # Let the user override the test.
2450else
2451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452for as_dir in $PATH
2453do
2454 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002458 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 break 2
2461 fi
2462done
2463done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002464IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002465
2466fi
2467fi
2468CC=$ac_cv_prog_CC
2469if test -n "$CC"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002470 { echo "$as_me:$LINENO: result: $CC" >&5
2471echo "${ECHO_T}$CC" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002472else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002473 { echo "$as_me:$LINENO: result: no" >&5
2474echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002475fi
2476
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002477
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002478fi
2479if test -z "$ac_cv_prog_CC"; then
2480 ac_ct_CC=$CC
2481 # Extract the first word of "gcc", so it can be a program name with args.
2482set dummy gcc; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002483{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002485if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487else
2488 if test -n "$ac_ct_CC"; then
2489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2490else
2491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492for as_dir in $PATH
2493do
2494 IFS=$as_save_IFS
2495 test -z "$as_dir" && as_dir=.
2496 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002498 ac_cv_prog_ac_ct_CC="gcc"
2499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 break 2
2501 fi
2502done
2503done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002504IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002505
2506fi
2507fi
2508ac_ct_CC=$ac_cv_prog_ac_ct_CC
2509if test -n "$ac_ct_CC"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002510 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2511echo "${ECHO_T}$ac_ct_CC" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002512else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002513 { echo "$as_me:$LINENO: result: no" >&5
2514echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002515fi
2516
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002517 if test "x$ac_ct_CC" = x; then
2518 CC=""
2519 else
2520 case $cross_compiling:$ac_tool_warned in
2521yes:)
2522{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2523whose name does not start with the host triplet. If you think this
2524configuration is useful to you, please write to autoconf@gnu.org." >&5
2525echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2526whose name does not start with the host triplet. If you think this
2527configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2528ac_tool_warned=yes ;;
2529esac
2530 CC=$ac_ct_CC
2531 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002532else
2533 CC="$ac_cv_prog_CC"
2534fi
2535
2536if test -z "$CC"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002537 if test -n "$ac_tool_prefix"; then
2538 # 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 -06002539set dummy ${ac_tool_prefix}cc; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002540{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002542if test "${ac_cv_prog_CC+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544else
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC="$CC" # Let the user override the test.
2547else
2548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549for as_dir in $PATH
2550do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002555 ac_cv_prog_CC="${ac_tool_prefix}cc"
2556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2558 fi
2559done
2560done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002561IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002562
2563fi
2564fi
2565CC=$ac_cv_prog_CC
2566if test -n "$CC"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002567 { echo "$as_me:$LINENO: result: $CC" >&5
2568echo "${ECHO_T}$CC" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002569else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002570 { echo "$as_me:$LINENO: result: no" >&5
2571echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002572fi
2573
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002574
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002575 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002576fi
2577if test -z "$CC"; then
2578 # Extract the first word of "cc", so it can be a program name with args.
2579set dummy cc; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002580{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002582if test "${ac_cv_prog_CC+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2584else
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC="$CC" # Let the user override the test.
2587else
2588 ac_prog_rejected=no
2589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590for as_dir in $PATH
2591do
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002596 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2597 ac_prog_rejected=yes
2598 continue
2599 fi
2600 ac_cv_prog_CC="cc"
2601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 break 2
2603 fi
2604done
2605done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002606IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002607
2608if test $ac_prog_rejected = yes; then
2609 # We found a bogon in the path, so make sure we never use it.
2610 set dummy $ac_cv_prog_CC
2611 shift
2612 if test $# != 0; then
2613 # We chose a different compiler from the bogus one.
2614 # However, it has the same basename, so the bogon will be chosen
2615 # first if we set CC to just the basename; use the full file name.
2616 shift
2617 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2618 fi
2619fi
2620fi
2621fi
2622CC=$ac_cv_prog_CC
2623if test -n "$CC"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002624 { echo "$as_me:$LINENO: result: $CC" >&5
2625echo "${ECHO_T}$CC" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002626else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002627 { echo "$as_me:$LINENO: result: no" >&5
2628echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002629fi
2630
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002631
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002632fi
2633if test -z "$CC"; then
2634 if test -n "$ac_tool_prefix"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002635 for ac_prog in cl.exe
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002636 do
2637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2638set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002641if test "${ac_cv_prog_CC+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2643else
2644 if test -n "$CC"; then
2645 ac_cv_prog_CC="$CC" # Let the user override the test.
2646else
2647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002654 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2657 fi
2658done
2659done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002660IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002661
2662fi
2663fi
2664CC=$ac_cv_prog_CC
2665if test -n "$CC"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002666 { echo "$as_me:$LINENO: result: $CC" >&5
2667echo "${ECHO_T}$CC" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002668else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002669 { echo "$as_me:$LINENO: result: no" >&5
2670echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002671fi
2672
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002673
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002674 test -n "$CC" && break
2675 done
2676fi
2677if test -z "$CC"; then
2678 ac_ct_CC=$CC
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002679 for ac_prog in cl.exe
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002680do
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682set dummy $ac_prog; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002683{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002685if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2687else
2688 if test -n "$ac_ct_CC"; then
2689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2690else
2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002698 ac_cv_prog_ac_ct_CC="$ac_prog"
2699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 break 2
2701 fi
2702done
2703done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002704IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002705
2706fi
2707fi
2708ac_ct_CC=$ac_cv_prog_ac_ct_CC
2709if test -n "$ac_ct_CC"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002710 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2711echo "${ECHO_T}$ac_ct_CC" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002712else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002713 { echo "$as_me:$LINENO: result: no" >&5
2714echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002715fi
2716
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002717
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002718 test -n "$ac_ct_CC" && break
2719done
2720
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002721 if test "x$ac_ct_CC" = x; then
2722 CC=""
2723 else
2724 case $cross_compiling:$ac_tool_warned in
2725yes:)
2726{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2727whose name does not start with the host triplet. If you think this
2728configuration is useful to you, please write to autoconf@gnu.org." >&5
2729echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2730whose name does not start with the host triplet. If you think this
2731configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2732ac_tool_warned=yes ;;
2733esac
2734 CC=$ac_ct_CC
2735 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002736fi
2737
2738fi
2739
2740
2741test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2742See \`config.log' for more details." >&5
2743echo "$as_me: error: no acceptable C compiler found in \$PATH
2744See \`config.log' for more details." >&2;}
2745 { (exit 1); exit 1; }; }
2746
2747# Provide some information about the compiler.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002748echo "$as_me:$LINENO: checking for C compiler version" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002749ac_compiler=`set X $ac_compile; echo $2`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002750{ (ac_try="$ac_compiler --version >&5"
2751case "(($ac_try" in
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2754esac
2755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756 (eval "$ac_compiler --version >&5") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002760{ (ac_try="$ac_compiler -v >&5"
2761case "(($ac_try" in
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2764esac
2765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766 (eval "$ac_compiler -v >&5") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002770{ (ac_try="$ac_compiler -V >&5"
2771case "(($ac_try" in
2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773 *) ac_try_echo=$ac_try;;
2774esac
2775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2776 (eval "$ac_compiler -V >&5") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }
2780
2781cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002782/* confdefs.h. */
2783_ACEOF
2784cat confdefs.h >>conftest.$ac_ext
2785cat >>conftest.$ac_ext <<_ACEOF
2786/* end confdefs.h. */
2787
2788int
2789main ()
2790{
2791
2792 ;
2793 return 0;
2794}
2795_ACEOF
2796ac_clean_files_save=$ac_clean_files
2797ac_clean_files="$ac_clean_files a.out a.exe b.out"
2798# Try to create an executable without -o first, disregard a.out.
2799# It will help us diagnose broken compilers, and finding out an intuition
2800# of exeext.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002801{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2802echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002803ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002804#
2805# List of possible output files, starting from the most likely.
2806# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2807# only as a last resort. b.out is created by i960 compilers.
2808ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2809#
2810# The IRIX 6 linker writes into existing files which may not be
2811# executable, retaining their permissions. Remove them first so a
2812# subsequent execution test works.
2813ac_rmfiles=
2814for ac_file in $ac_files
2815do
2816 case $ac_file in
2817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2818 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2819 esac
2820done
2821rm -f $ac_rmfiles
2822
2823if { (ac_try="$ac_link_default"
2824case "(($ac_try" in
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2827esac
2828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2829 (eval "$ac_link_default") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002830 ac_status=$?
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002833 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2834# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2835# in a Makefile. We should not override ac_cv_exeext if it was cached,
2836# so that the user can short-circuit this test for compilers unknown to
2837# Autoconf.
2838for ac_file in $ac_files
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002839do
2840 test -f "$ac_file" || continue
2841 case $ac_file in
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002843 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002844 [ab].out )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002845 # We found the default executable, but exeext='' is most
2846 # certainly right.
2847 break;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002848 *.* )
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002849 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2850 then :; else
2851 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2852 fi
2853 # We set ac_cv_exeext here because the later test for it is not
2854 # safe: cross compilers may not add the suffix if given an `-o'
2855 # argument, so we may need to know it at that point already.
2856 # Even if this section looks crufty: it has the advantage of
2857 # actually working.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002858 break;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002859 * )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002860 break;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002861 esac
2862done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002863test "$ac_cv_exeext" = no && ac_cv_exeext=
2864
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002865else
2866 echo "$as_me: failed program was:" >&5
2867sed 's/^/| /' conftest.$ac_ext >&5
2868
2869{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2870See \`config.log' for more details." >&5
2871echo "$as_me: error: C compiler cannot create executables
2872See \`config.log' for more details." >&2;}
2873 { (exit 77); exit 77; }; }
2874fi
2875
2876ac_exeext=$ac_cv_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002877{ echo "$as_me:$LINENO: result: $ac_file" >&5
2878echo "${ECHO_T}$ac_file" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002879
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002880# Check that the compiler produces executables we can run. If not, either
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002881# the compiler is broken, or we cross compile.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002882{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2883echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002884# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2885# If not cross compiling, check that we can run a simple program.
2886if test "$cross_compiling" != yes; then
2887 if { ac_try='./$ac_file'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002888 { (case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891esac
2892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; }; then
2897 cross_compiling=no
2898 else
2899 if test "$cross_compiling" = maybe; then
2900 cross_compiling=yes
2901 else
2902 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2903If you meant to cross compile, use \`--host'.
2904See \`config.log' for more details." >&5
2905echo "$as_me: error: cannot run C compiled programs.
2906If you meant to cross compile, use \`--host'.
2907See \`config.log' for more details." >&2;}
2908 { (exit 1); exit 1; }; }
2909 fi
2910 fi
2911fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002912{ echo "$as_me:$LINENO: result: yes" >&5
2913echo "${ECHO_T}yes" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002914
2915rm -f a.out a.exe conftest$ac_cv_exeext b.out
2916ac_clean_files=$ac_clean_files_save
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002917# Check that the compiler produces executables we can run. If not, either
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002918# the compiler is broken, or we cross compile.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002919{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2920echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2921{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2922echo "${ECHO_T}$cross_compiling" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002923
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002924{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2925echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2926if { (ac_try="$ac_link"
2927case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930esac
2931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_link") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; then
2936 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2937# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2938# work properly (i.e., refer to `conftest.exe'), while it won't with
2939# `rm'.
2940for ac_file in conftest.exe conftest conftest.*; do
2941 test -f "$ac_file" || continue
2942 case $ac_file in
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002944 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002945 break;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002946 * ) break;;
2947 esac
2948done
2949else
2950 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2951See \`config.log' for more details." >&5
2952echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2953See \`config.log' for more details." >&2;}
2954 { (exit 1); exit 1; }; }
2955fi
2956
2957rm -f conftest$ac_cv_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002958{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2959echo "${ECHO_T}$ac_cv_exeext" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002960
2961rm -f conftest.$ac_ext
2962EXEEXT=$ac_cv_exeext
2963ac_exeext=$EXEEXT
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002964{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2965echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002966if test "${ac_cv_objext+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2968else
2969 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002970/* confdefs.h. */
2971_ACEOF
2972cat confdefs.h >>conftest.$ac_ext
2973cat >>conftest.$ac_ext <<_ACEOF
2974/* end confdefs.h. */
2975
2976int
2977main ()
2978{
2979
2980 ;
2981 return 0;
2982}
2983_ACEOF
2984rm -f conftest.o conftest.obj
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002985if { (ac_try="$ac_compile"
2986case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989esac
2990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_compile") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002995 for ac_file in conftest.o conftest.obj conftest.*; do
2996 test -f "$ac_file" || continue;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002997 case $ac_file in
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002999 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3000 break;;
3001 esac
3002done
3003else
3004 echo "$as_me: failed program was:" >&5
3005sed 's/^/| /' conftest.$ac_ext >&5
3006
3007{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3008See \`config.log' for more details." >&5
3009echo "$as_me: error: cannot compute suffix of object files: cannot compile
3010See \`config.log' for more details." >&2;}
3011 { (exit 1); exit 1; }; }
3012fi
3013
3014rm -f conftest.$ac_cv_objext conftest.$ac_ext
3015fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003016{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3017echo "${ECHO_T}$ac_cv_objext" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003018OBJEXT=$ac_cv_objext
3019ac_objext=$OBJEXT
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003020{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3021echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003022if test "${ac_cv_c_compiler_gnu+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3024else
3025 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003026/* confdefs.h. */
3027_ACEOF
3028cat confdefs.h >>conftest.$ac_ext
3029cat >>conftest.$ac_ext <<_ACEOF
3030/* end confdefs.h. */
3031
3032int
3033main ()
3034{
3035#ifndef __GNUC__
3036 choke me
3037#endif
3038
3039 ;
3040 return 0;
3041}
3042_ACEOF
3043rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003044if { (ac_try="$ac_compile"
3045case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048esac
3049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003051 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003052 grep -v '^ *+' conftest.er1 >conftest.err
3053 rm -f conftest.er1
3054 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3058 { (case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061esac
3062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003064 ac_status=$?
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; } &&
3067 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003068 { (case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071esac
3072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003074 ac_status=$?
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; }; then
3077 ac_compiler_gnu=yes
3078else
3079 echo "$as_me: failed program was:" >&5
3080sed 's/^/| /' conftest.$ac_ext >&5
3081
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003082 ac_compiler_gnu=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003083fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003084
3085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003086ac_cv_c_compiler_gnu=$ac_compiler_gnu
3087
3088fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003089{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3090echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003091GCC=`test $ac_compiler_gnu = yes && echo yes`
3092ac_test_CFLAGS=${CFLAGS+set}
3093ac_save_CFLAGS=$CFLAGS
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003094{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3095echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003096if test "${ac_cv_prog_cc_g+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3098else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003099 ac_save_c_werror_flag=$ac_c_werror_flag
3100 ac_c_werror_flag=yes
3101 ac_cv_prog_cc_g=no
3102 CFLAGS="-g"
3103 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003104/* confdefs.h. */
3105_ACEOF
3106cat confdefs.h >>conftest.$ac_ext
3107cat >>conftest.$ac_ext <<_ACEOF
3108/* end confdefs.h. */
3109
3110int
3111main ()
3112{
3113
3114 ;
3115 return 0;
3116}
3117_ACEOF
3118rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003119if { (ac_try="$ac_compile"
3120case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123esac
3124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003126 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003127 grep -v '^ *+' conftest.er1 >conftest.err
3128 rm -f conftest.er1
3129 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3133 { (case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136esac
3137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; } &&
3142 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003143 { (case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; }; then
3152 ac_cv_prog_cc_g=yes
3153else
3154 echo "$as_me: failed program was:" >&5
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003157 CFLAGS=""
3158 cat >conftest.$ac_ext <<_ACEOF
3159/* confdefs.h. */
3160_ACEOF
3161cat confdefs.h >>conftest.$ac_ext
3162cat >>conftest.$ac_ext <<_ACEOF
3163/* end confdefs.h. */
3164
3165int
3166main ()
3167{
3168
3169 ;
3170 return 0;
3171}
3172_ACEOF
3173rm -f conftest.$ac_objext
3174if { (ac_try="$ac_compile"
3175case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178esac
3179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_compile") 2>conftest.er1
3181 ac_status=$?
3182 grep -v '^ *+' conftest.er1 >conftest.err
3183 rm -f conftest.er1
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3188 { (case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191esac
3192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_try") 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; } &&
3197 { ac_try='test -s conftest.$ac_objext'
3198 { (case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201esac
3202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_try") 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; }; then
3207 :
3208else
3209 echo "$as_me: failed program was:" >&5
3210sed 's/^/| /' conftest.$ac_ext >&5
3211
3212 ac_c_werror_flag=$ac_save_c_werror_flag
3213 CFLAGS="-g"
3214 cat >conftest.$ac_ext <<_ACEOF
3215/* confdefs.h. */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
3219/* end confdefs.h. */
3220
3221int
3222main ()
3223{
3224
3225 ;
3226 return 0;
3227}
3228_ACEOF
3229rm -f conftest.$ac_objext
3230if { (ac_try="$ac_compile"
3231case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234esac
3235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_compile") 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
3243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3244 { (case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247esac
3248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_try") 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try='test -s conftest.$ac_objext'
3254 { (case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257esac
3258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259 (eval "$ac_try") 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3263 ac_cv_prog_cc_g=yes
3264else
3265 echo "$as_me: failed program was:" >&5
3266sed 's/^/| /' conftest.$ac_ext >&5
3267
3268
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003269fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003270
3271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003272fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003273
3274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275fi
3276
3277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278 ac_c_werror_flag=$ac_save_c_werror_flag
3279fi
3280{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3281echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003282if test "$ac_test_CFLAGS" = set; then
3283 CFLAGS=$ac_save_CFLAGS
3284elif test $ac_cv_prog_cc_g = yes; then
3285 if test "$GCC" = yes; then
3286 CFLAGS="-g -O2"
3287 else
3288 CFLAGS="-g"
3289 fi
3290else
3291 if test "$GCC" = yes; then
3292 CFLAGS="-O2"
3293 else
3294 CFLAGS=
3295 fi
3296fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003297{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3298echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3299if test "${ac_cv_prog_cc_c89+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003300 echo $ECHO_N "(cached) $ECHO_C" >&6
3301else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003302 ac_cv_prog_cc_c89=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003303ac_save_CC=$CC
3304cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003305/* confdefs.h. */
3306_ACEOF
3307cat confdefs.h >>conftest.$ac_ext
3308cat >>conftest.$ac_ext <<_ACEOF
3309/* end confdefs.h. */
3310#include <stdarg.h>
3311#include <stdio.h>
3312#include <sys/types.h>
3313#include <sys/stat.h>
3314/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3315struct buf { int x; };
3316FILE * (*rcsopen) (struct buf *, struct stat *, int);
3317static char *e (p, i)
3318 char **p;
3319 int i;
3320{
3321 return p[i];
3322}
3323static char *f (char * (*g) (char **, int), char **p, ...)
3324{
3325 char *s;
3326 va_list v;
3327 va_start (v,p);
3328 s = g (p, va_arg (v,int));
3329 va_end (v);
3330 return s;
3331}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003332
3333/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3334 function prototypes and stuff, but not '\xHH' hex character constants.
3335 These don't provoke an error unfortunately, instead are silently treated
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003336 as 'x'. The following induces an error, until -std is added to get
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003337 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3338 array size at least. It's necessary to write '\x00'==0 to get something
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003339 that's true only with -std. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003340int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3341
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003342/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3343 inside strings and character constants. */
3344#define FOO(x) 'x'
3345int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3346
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003347int test (int i, double x);
3348struct s1 {int (*f) (int a);};
3349struct s2 {int (*f) (double a);};
3350int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3351int argc;
3352char **argv;
3353int
3354main ()
3355{
3356return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3357 ;
3358 return 0;
3359}
3360_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003361for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3362 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003363do
3364 CC="$ac_save_CC $ac_arg"
3365 rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003366if { (ac_try="$ac_compile"
3367case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370esac
3371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3372 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003373 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003374 grep -v '^ *+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3380 { (case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383esac
3384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; } &&
3389 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003390 { (case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393esac
3394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; }; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003399 ac_cv_prog_cc_c89=$ac_arg
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003400else
3401 echo "$as_me: failed program was:" >&5
3402sed 's/^/| /' conftest.$ac_ext >&5
3403
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003404
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003405fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003406
3407rm -f core conftest.err conftest.$ac_objext
3408 test "x$ac_cv_prog_cc_c89" != "xno" && break
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003409done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003410rm -f conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003411CC=$ac_save_CC
3412
3413fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003414# AC_CACHE_VAL
3415case "x$ac_cv_prog_cc_c89" in
3416 x)
3417 { echo "$as_me:$LINENO: result: none needed" >&5
3418echo "${ECHO_T}none needed" >&6; } ;;
3419 xno)
3420 { echo "$as_me:$LINENO: result: unsupported" >&5
3421echo "${ECHO_T}unsupported" >&6; } ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003422 *)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003423 CC="$CC $ac_cv_prog_cc_c89"
3424 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3425echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003426esac
3427
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003428
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003429ac_ext=c
3430ac_cpp='$CPP $CPPFLAGS'
3431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433ac_compiler_gnu=$ac_cv_c_compiler_gnu
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003434DEPDIR="${am__leading_dot}deps"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003435
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003436ac_config_commands="$ac_config_commands depfiles"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003437
3438
3439am_make=${MAKE-make}
3440cat > confinc << 'END'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003441am__doit:
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003442 @echo done
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003443.PHONY: am__doit
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003444END
3445# If we don't find an include directive, just comment out the code.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003446{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3447echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003448am__include="#"
3449am__quote=
3450_am_result=none
3451# First try GNU make style include.
3452echo "include confinc" > confmf
3453# We grep out `Entering directory' and `Leaving directory'
3454# messages which can occur if `w' ends up in MAKEFLAGS.
3455# In particular we don't look at `^make:' because GNU make might
3456# be invoked under some other name (usually "gmake"), in which
3457# case it prints its new name instead of `make'.
3458if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3459 am__include=include
3460 am__quote=
3461 _am_result=GNU
3462fi
3463# Now try BSD make style include.
3464if test "$am__include" = "#"; then
3465 echo '.include "confinc"' > confmf
3466 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3467 am__include=.include
3468 am__quote="\""
3469 _am_result=BSD
3470 fi
3471fi
3472
3473
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003474{ echo "$as_me:$LINENO: result: $_am_result" >&5
3475echo "${ECHO_T}$_am_result" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003476rm -f confinc confmf
3477
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003478# Check whether --enable-dependency-tracking was given.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003479if test "${enable_dependency_tracking+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003480 enableval=$enable_dependency_tracking;
3481fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003482
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003483if test "x$enable_dependency_tracking" != xno; then
3484 am_depcomp="$ac_aux_dir/depcomp"
3485 AMDEPBACKSLASH='\'
3486fi
3487
3488
3489if test "x$enable_dependency_tracking" != xno; then
3490 AMDEP_TRUE=
3491 AMDEP_FALSE='#'
3492else
3493 AMDEP_TRUE='#'
3494 AMDEP_FALSE=
3495fi
3496
3497
3498
3499
3500depcc="$CC" am_compiler_list=
3501
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003502{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3503echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003504if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506else
3507 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3508 # We make a subdir and do the tests there. Otherwise we can end up
3509 # making bogus files that we don't know about and never remove. For
3510 # instance it was reported that on HP-UX the gcc test will end up
3511 # making a dummy file named `D' -- because `-MD' means `put the output
3512 # in D'.
3513 mkdir conftest.dir
3514 # Copy depcomp to subdir because otherwise we won't find it if we're
3515 # using a relative directory.
3516 cp "$am_depcomp" conftest.dir
3517 cd conftest.dir
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003518 # We will build objects and dependencies in a subdirectory because
3519 # it helps to detect inapplicable dependency modes. For instance
3520 # both Tru64's cc and ICC support -MD to output dependencies as a
3521 # side effect of compilation, but ICC will put the dependencies in
3522 # the current directory while Tru64 will put them in the object
3523 # directory.
3524 mkdir sub
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003525
3526 am_cv_CC_dependencies_compiler_type=none
3527 if test "$am_compiler_list" = ""; then
3528 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3529 fi
3530 for depmode in $am_compiler_list; do
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003531 # Setup a source with many dependencies, because some compilers
3532 # like to wrap large dependency lists on column 80 (with \), and
3533 # we should not choose a depcomp mode which is confused by this.
3534 #
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003535 # We need to recreate these files for each test, as the compiler may
3536 # overwrite some of them when testing with obscure command lines.
3537 # This happens at least with the AIX C compiler.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003538 : > sub/conftest.c
3539 for i in 1 2 3 4 5 6; do
3540 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3541 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3542 # Solaris 8's {/usr,}/bin/sh.
3543 touch sub/conftst$i.h
3544 done
3545 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003546
3547 case $depmode in
3548 nosideeffect)
3549 # after this tag, mechanisms are not by side-effect, so they'll
3550 # only be used when explicitly requested
3551 if test "x$enable_dependency_tracking" = xyes; then
3552 continue
3553 else
3554 break
3555 fi
3556 ;;
3557 none) break ;;
3558 esac
3559 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3560 # mode. It turns out that the SunPro C++ compiler does not properly
3561 # handle `-M -o', and we need to detect this.
3562 if depmode=$depmode \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003563 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3564 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3565 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3566 >/dev/null 2>conftest.err &&
3567 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3568 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003569 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003570 # icc doesn't choke on unknown options, it will just issue warnings
3571 # or remarks (even with -Werror). So we grep stderr for any message
3572 # that says an option was ignored or not supported.
3573 # When given -MP, icc 7.0 and 7.1 complain thusly:
3574 # icc: Command line warning: ignoring option '-M'; no argument required
3575 # The diagnosis changed in icc 8.0:
3576 # icc: Command line remark: option '-MP' not supported
3577 if (grep 'ignoring option' conftest.err ||
3578 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3579 am_cv_CC_dependencies_compiler_type=$depmode
3580 break
3581 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003582 fi
3583 done
3584
3585 cd ..
3586 rm -rf conftest.dir
3587else
3588 am_cv_CC_dependencies_compiler_type=none
3589fi
3590
3591fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003592{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3593echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003594CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3595
3596
3597
3598if
3599 test "x$enable_dependency_tracking" != xno \
3600 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3601 am__fastdepCC_TRUE=
3602 am__fastdepCC_FALSE='#'
3603else
3604 am__fastdepCC_TRUE='#'
3605 am__fastdepCC_FALSE=
3606fi
3607
3608
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003609{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3610echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003611if test "${lt_cv_path_SED+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3613else
3614 # Loop through the user's path and test for sed and gsed.
3615# Then use that list of sed's as ones to test for truncation.
3616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617for as_dir in $PATH
3618do
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
3621 for lt_ac_prog in sed gsed; do
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3624 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3625 fi
3626 done
3627 done
3628done
3629lt_ac_max=0
3630lt_ac_count=0
3631# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3632# along with /bin/sed that truncates output.
3633for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3634 test ! -f $lt_ac_sed && continue
3635 cat /dev/null > conftest.in
3636 lt_ac_count=0
3637 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3638 # Check for GNU sed and select it if it is found.
3639 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3640 lt_cv_path_SED=$lt_ac_sed
3641 break
3642 fi
3643 while true; do
3644 cat conftest.in conftest.in >conftest.tmp
3645 mv conftest.tmp conftest.in
3646 cp conftest.in conftest.nl
3647 echo >>conftest.nl
3648 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3649 cmp -s conftest.out conftest.nl || break
3650 # 10000 chars as input seems more than enough
3651 test $lt_ac_count -gt 10 && break
3652 lt_ac_count=`expr $lt_ac_count + 1`
3653 if test $lt_ac_count -gt $lt_ac_max; then
3654 lt_ac_max=$lt_ac_count
3655 lt_cv_path_SED=$lt_ac_sed
3656 fi
3657 done
3658done
3659
3660fi
3661
3662SED=$lt_cv_path_SED
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003663{ echo "$as_me:$LINENO: result: $SED" >&5
3664echo "${ECHO_T}$SED" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003665
3666# Make sure we can run config.sub.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003667$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3668 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3669echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003670 { (exit 1); exit 1; }; }
3671
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003672{ echo "$as_me:$LINENO: checking build system type" >&5
3673echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003674if test "${ac_cv_build+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003677 ac_build_alias=$build_alias
3678test "x$ac_build_alias" = x &&
3679 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3680test "x$ac_build_alias" = x &&
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003681 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3682echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3683 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003684ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3685 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3686echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003687 { (exit 1); exit 1; }; }
3688
3689fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003690{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3691echo "${ECHO_T}$ac_cv_build" >&6; }
3692case $ac_cv_build in
3693*-*-*) ;;
3694*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3695echo "$as_me: error: invalid value of canonical build" >&2;}
3696 { (exit 1); exit 1; }; };;
3697esac
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003698build=$ac_cv_build
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003699ac_save_IFS=$IFS; IFS='-'
3700set x $ac_cv_build
3701shift
3702build_cpu=$1
3703build_vendor=$2
3704shift; shift
3705# Remember, the first character of IFS is used to create $*,
3706# except with old shells:
3707build_os=$*
3708IFS=$ac_save_IFS
3709case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003710
3711
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003712{ echo "$as_me:$LINENO: checking host system type" >&5
3713echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003714if test "${ac_cv_host+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003717 if test "x$host_alias" = x; then
3718 ac_cv_host=$ac_cv_build
3719else
3720 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3721 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3722echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003723 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003724fi
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003725
3726fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003727{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3728echo "${ECHO_T}$ac_cv_host" >&6; }
3729case $ac_cv_host in
3730*-*-*) ;;
3731*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3732echo "$as_me: error: invalid value of canonical host" >&2;}
3733 { (exit 1); exit 1; }; };;
3734esac
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003735host=$ac_cv_host
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003736ac_save_IFS=$IFS; IFS='-'
3737set x $ac_cv_host
3738shift
3739host_cpu=$1
3740host_vendor=$2
3741shift; shift
3742# Remember, the first character of IFS is used to create $*,
3743# except with old shells:
3744host_os=$*
3745IFS=$ac_save_IFS
3746case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003747
3748
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003749{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3750echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3751if test "${ac_cv_path_GREP+set}" = set; then
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003754 # Extract the first word of "grep ggrep" to use in msg output
3755if test -z "$GREP"; then
3756set dummy grep ggrep; ac_prog_name=$2
3757if test "${ac_cv_path_GREP+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759else
3760 ac_path_GREP_found=false
3761# Loop through the user's path and test for each of PROGNAME-LIST
3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3764do
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_prog in grep ggrep; do
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3770 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3771 # Check for GNU ac_path_GREP and select it if it is found.
3772 # Check for GNU $ac_path_GREP
3773case `"$ac_path_GREP" --version 2>&1` in
3774*GNU*)
3775 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3776*)
3777 ac_count=0
3778 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3779 while :
3780 do
3781 cat "conftest.in" "conftest.in" >"conftest.tmp"
3782 mv "conftest.tmp" "conftest.in"
3783 cp "conftest.in" "conftest.nl"
3784 echo 'GREP' >> "conftest.nl"
3785 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3787 ac_count=`expr $ac_count + 1`
3788 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3789 # Best one so far, save it but keep looking for a better one
3790 ac_cv_path_GREP="$ac_path_GREP"
3791 ac_path_GREP_max=$ac_count
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003792 fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003793 # 10*(2^10) chars as input seems more than enough
3794 test $ac_count -gt 10 && break
3795 done
3796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3797esac
3798
3799
3800 $ac_path_GREP_found && break 3
3801 done
3802done
3803
3804done
3805IFS=$as_save_IFS
3806
3807
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003808fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003809
3810GREP="$ac_cv_path_GREP"
3811if test -z "$GREP"; then
3812 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3813echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3814 { (exit 1); exit 1; }; }
3815fi
3816
3817else
3818 ac_cv_path_GREP=$GREP
3819fi
3820
3821
3822fi
3823{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3824echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3825 GREP="$ac_cv_path_GREP"
3826
3827
3828{ echo "$as_me:$LINENO: checking for egrep" >&5
3829echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3830if test "${ac_cv_path_EGREP+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832else
3833 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3834 then ac_cv_path_EGREP="$GREP -E"
3835 else
3836 # Extract the first word of "egrep" to use in msg output
3837if test -z "$EGREP"; then
3838set dummy egrep; ac_prog_name=$2
3839if test "${ac_cv_path_EGREP+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3841else
3842 ac_path_EGREP_found=false
3843# Loop through the user's path and test for each of PROGNAME-LIST
3844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3846do
3847 IFS=$as_save_IFS
3848 test -z "$as_dir" && as_dir=.
3849 for ac_prog in egrep; do
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3852 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3853 # Check for GNU ac_path_EGREP and select it if it is found.
3854 # Check for GNU $ac_path_EGREP
3855case `"$ac_path_EGREP" --version 2>&1` in
3856*GNU*)
3857 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3858*)
3859 ac_count=0
3860 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3861 while :
3862 do
3863 cat "conftest.in" "conftest.in" >"conftest.tmp"
3864 mv "conftest.tmp" "conftest.in"
3865 cp "conftest.in" "conftest.nl"
3866 echo 'EGREP' >> "conftest.nl"
3867 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3869 ac_count=`expr $ac_count + 1`
3870 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3871 # Best one so far, save it but keep looking for a better one
3872 ac_cv_path_EGREP="$ac_path_EGREP"
3873 ac_path_EGREP_max=$ac_count
3874 fi
3875 # 10*(2^10) chars as input seems more than enough
3876 test $ac_count -gt 10 && break
3877 done
3878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3879esac
3880
3881
3882 $ac_path_EGREP_found && break 3
3883 done
3884done
3885
3886done
3887IFS=$as_save_IFS
3888
3889
3890fi
3891
3892EGREP="$ac_cv_path_EGREP"
3893if test -z "$EGREP"; then
3894 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3895echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3896 { (exit 1); exit 1; }; }
3897fi
3898
3899else
3900 ac_cv_path_EGREP=$EGREP
3901fi
3902
3903
3904 fi
3905fi
3906{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3907echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3908 EGREP="$ac_cv_path_EGREP"
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003909
3910
3911
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003912# Check whether --with-gnu-ld was given.
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003913if test "${with_gnu_ld+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003914 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003915else
3916 with_gnu_ld=no
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003917fi
3918
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003919ac_prog=ld
3920if test "$GCC" = yes; then
3921 # Check if gcc -print-prog-name=ld gives a path.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003922 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3923echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003924 case $host in
3925 *-*-mingw*)
3926 # gcc leaves a trailing carriage return which upsets mingw
3927 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3928 *)
3929 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3930 esac
3931 case $ac_prog in
3932 # Accept absolute paths.
3933 [\\/]* | ?:[\\/]*)
3934 re_direlt='/[^/][^/]*/\.\./'
3935 # Canonicalize the pathname of ld
3936 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3937 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3938 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3939 done
3940 test -z "$LD" && LD="$ac_prog"
3941 ;;
3942 "")
3943 # If it fails, then pretend we aren't using GCC.
3944 ac_prog=ld
3945 ;;
3946 *)
3947 # If it is relative, then search for the first ld in PATH.
3948 with_gnu_ld=unknown
3949 ;;
3950 esac
3951elif test "$with_gnu_ld" = yes; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003952 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3953echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003954else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003955 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3956echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003957fi
3958if test "${lt_cv_path_LD+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960else
3961 if test -z "$LD"; then
3962 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3963 for ac_dir in $PATH; do
3964 IFS="$lt_save_ifs"
3965 test -z "$ac_dir" && ac_dir=.
3966 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3967 lt_cv_path_LD="$ac_dir/$ac_prog"
3968 # Check to see if the program is GNU ld. I'd rather use --version,
3969 # but apparently some variants of GNU ld only accept -v.
3970 # Break only if it was the GNU/non-GNU ld that we prefer.
3971 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3972 *GNU* | *'with BFD'*)
3973 test "$with_gnu_ld" != no && break
3974 ;;
3975 *)
3976 test "$with_gnu_ld" != yes && break
3977 ;;
3978 esac
3979 fi
3980 done
3981 IFS="$lt_save_ifs"
3982else
3983 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3984fi
3985fi
3986
3987LD="$lt_cv_path_LD"
3988if test -n "$LD"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003989 { echo "$as_me:$LINENO: result: $LD" >&5
3990echo "${ECHO_T}$LD" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003991else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003992 { echo "$as_me:$LINENO: result: no" >&5
3993echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003994fi
3995test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3996echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3997 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003998{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3999echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004000if test "${lt_cv_prog_gnu_ld+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002else
4003 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4004case `$LD -v 2>&1 </dev/null` in
4005*GNU* | *'with BFD'*)
4006 lt_cv_prog_gnu_ld=yes
4007 ;;
4008*)
4009 lt_cv_prog_gnu_ld=no
4010 ;;
4011esac
4012fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004013{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4014echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004015with_gnu_ld=$lt_cv_prog_gnu_ld
4016
4017
4018ac_ext=c
4019ac_cpp='$CPP $CPPFLAGS'
4020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022ac_compiler_gnu=$ac_cv_c_compiler_gnu
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004023{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4024echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004025# On Suns, sometimes $CPP names a directory.
4026if test -n "$CPP" && test -d "$CPP"; then
4027 CPP=
4028fi
4029if test -z "$CPP"; then
4030 if test "${ac_cv_prog_CPP+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4032else
4033 # Double quotes because CPP needs to be expanded
4034 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4035 do
4036 ac_preproc_ok=false
4037for ac_c_preproc_warn_flag in '' yes
4038do
4039 # Use a header file that comes with gcc, so configuring glibc
4040 # with a fresh cross-compiler works.
4041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4042 # <limits.h> exists even on freestanding compilers.
4043 # On the NeXT, cc -E runs the code through the compiler's parser,
4044 # not just through cpp. "Syntax error" is here to catch this case.
4045 cat >conftest.$ac_ext <<_ACEOF
4046/* confdefs.h. */
4047_ACEOF
4048cat confdefs.h >>conftest.$ac_ext
4049cat >>conftest.$ac_ext <<_ACEOF
4050/* end confdefs.h. */
4051#ifdef __STDC__
4052# include <limits.h>
4053#else
4054# include <assert.h>
4055#endif
4056 Syntax error
4057_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004058if { (ac_try="$ac_cpp conftest.$ac_ext"
4059case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062esac
4063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004065 ac_status=$?
4066 grep -v '^ *+' conftest.er1 >conftest.err
4067 rm -f conftest.er1
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } >/dev/null; then
4071 if test -s conftest.err; then
4072 ac_cpp_err=$ac_c_preproc_warn_flag
4073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4074 else
4075 ac_cpp_err=
4076 fi
4077else
4078 ac_cpp_err=yes
4079fi
4080if test -z "$ac_cpp_err"; then
4081 :
4082else
4083 echo "$as_me: failed program was:" >&5
4084sed 's/^/| /' conftest.$ac_ext >&5
4085
4086 # Broken: fails on valid input.
4087continue
4088fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004089
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004090rm -f conftest.err conftest.$ac_ext
4091
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004092 # OK, works on sane cases. Now check whether nonexistent headers
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004093 # can be detected and how.
4094 cat >conftest.$ac_ext <<_ACEOF
4095/* confdefs.h. */
4096_ACEOF
4097cat confdefs.h >>conftest.$ac_ext
4098cat >>conftest.$ac_ext <<_ACEOF
4099/* end confdefs.h. */
4100#include <ac_nonexistent.h>
4101_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004102if { (ac_try="$ac_cpp conftest.$ac_ext"
4103case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106esac
4107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } >/dev/null; then
4115 if test -s conftest.err; then
4116 ac_cpp_err=$ac_c_preproc_warn_flag
4117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4118 else
4119 ac_cpp_err=
4120 fi
4121else
4122 ac_cpp_err=yes
4123fi
4124if test -z "$ac_cpp_err"; then
4125 # Broken: success on invalid input.
4126continue
4127else
4128 echo "$as_me: failed program was:" >&5
4129sed 's/^/| /' conftest.$ac_ext >&5
4130
4131 # Passes both tests.
4132ac_preproc_ok=:
4133break
4134fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004135
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004136rm -f conftest.err conftest.$ac_ext
4137
4138done
4139# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4140rm -f conftest.err conftest.$ac_ext
4141if $ac_preproc_ok; then
4142 break
4143fi
4144
4145 done
4146 ac_cv_prog_CPP=$CPP
4147
4148fi
4149 CPP=$ac_cv_prog_CPP
4150else
4151 ac_cv_prog_CPP=$CPP
4152fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004153{ echo "$as_me:$LINENO: result: $CPP" >&5
4154echo "${ECHO_T}$CPP" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004155ac_preproc_ok=false
4156for ac_c_preproc_warn_flag in '' yes
4157do
4158 # Use a header file that comes with gcc, so configuring glibc
4159 # with a fresh cross-compiler works.
4160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4161 # <limits.h> exists even on freestanding compilers.
4162 # On the NeXT, cc -E runs the code through the compiler's parser,
4163 # not just through cpp. "Syntax error" is here to catch this case.
4164 cat >conftest.$ac_ext <<_ACEOF
4165/* confdefs.h. */
4166_ACEOF
4167cat confdefs.h >>conftest.$ac_ext
4168cat >>conftest.$ac_ext <<_ACEOF
4169/* end confdefs.h. */
4170#ifdef __STDC__
4171# include <limits.h>
4172#else
4173# include <assert.h>
4174#endif
4175 Syntax error
4176_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004177if { (ac_try="$ac_cpp conftest.$ac_ext"
4178case "(($ac_try" in
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4181esac
4182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004184 ac_status=$?
4185 grep -v '^ *+' conftest.er1 >conftest.err
4186 rm -f conftest.er1
4187 cat conftest.err >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } >/dev/null; then
4190 if test -s conftest.err; then
4191 ac_cpp_err=$ac_c_preproc_warn_flag
4192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4193 else
4194 ac_cpp_err=
4195 fi
4196else
4197 ac_cpp_err=yes
4198fi
4199if test -z "$ac_cpp_err"; then
4200 :
4201else
4202 echo "$as_me: failed program was:" >&5
4203sed 's/^/| /' conftest.$ac_ext >&5
4204
4205 # Broken: fails on valid input.
4206continue
4207fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004208
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004209rm -f conftest.err conftest.$ac_ext
4210
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004211 # OK, works on sane cases. Now check whether nonexistent headers
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004212 # can be detected and how.
4213 cat >conftest.$ac_ext <<_ACEOF
4214/* confdefs.h. */
4215_ACEOF
4216cat confdefs.h >>conftest.$ac_ext
4217cat >>conftest.$ac_ext <<_ACEOF
4218/* end confdefs.h. */
4219#include <ac_nonexistent.h>
4220_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004221if { (ac_try="$ac_cpp conftest.$ac_ext"
4222case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225esac
4226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004228 ac_status=$?
4229 grep -v '^ *+' conftest.er1 >conftest.err
4230 rm -f conftest.er1
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } >/dev/null; then
4234 if test -s conftest.err; then
4235 ac_cpp_err=$ac_c_preproc_warn_flag
4236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4237 else
4238 ac_cpp_err=
4239 fi
4240else
4241 ac_cpp_err=yes
4242fi
4243if test -z "$ac_cpp_err"; then
4244 # Broken: success on invalid input.
4245continue
4246else
4247 echo "$as_me: failed program was:" >&5
4248sed 's/^/| /' conftest.$ac_ext >&5
4249
4250 # Passes both tests.
4251ac_preproc_ok=:
4252break
4253fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004254
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004255rm -f conftest.err conftest.$ac_ext
4256
4257done
4258# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4259rm -f conftest.err conftest.$ac_ext
4260if $ac_preproc_ok; then
4261 :
4262else
4263 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4264See \`config.log' for more details." >&5
4265echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4266See \`config.log' for more details." >&2;}
4267 { (exit 1); exit 1; }; }
4268fi
4269
4270ac_ext=c
4271ac_cpp='$CPP $CPPFLAGS'
4272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004276if test -n "$ac_tool_prefix"; then
4277 # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
4278set dummy ${ac_tool_prefix}sed; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004279{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004281if test "${ac_cv_prog_SED+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4283else
4284 if test -n "$SED"; then
4285 ac_cv_prog_SED="$SED" # Let the user override the test.
4286else
4287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288for as_dir in $PATH
4289do
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004294 ac_cv_prog_SED="${ac_tool_prefix}sed"
4295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 break 2
4297 fi
4298done
4299done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004300IFS=$as_save_IFS
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004301
4302fi
4303fi
4304SED=$ac_cv_prog_SED
4305if test -n "$SED"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004306 { echo "$as_me:$LINENO: result: $SED" >&5
4307echo "${ECHO_T}$SED" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004308else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004309 { echo "$as_me:$LINENO: result: no" >&5
4310echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004311fi
4312
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004313
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004314fi
4315if test -z "$ac_cv_prog_SED"; then
4316 ac_ct_SED=$SED
4317 # Extract the first word of "sed", so it can be a program name with args.
4318set dummy sed; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004319{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004321if test "${ac_cv_prog_ac_ct_SED+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4323else
4324 if test -n "$ac_ct_SED"; then
4325 ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
4326else
4327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328for as_dir in $PATH
4329do
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004334 ac_cv_prog_ac_ct_SED="sed"
4335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 break 2
4337 fi
4338done
4339done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004340IFS=$as_save_IFS
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004341
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004342fi
4343fi
4344ac_ct_SED=$ac_cv_prog_ac_ct_SED
4345if test -n "$ac_ct_SED"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004346 { echo "$as_me:$LINENO: result: $ac_ct_SED" >&5
4347echo "${ECHO_T}$ac_ct_SED" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004348else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004349 { echo "$as_me:$LINENO: result: no" >&5
4350echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004351fi
4352
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004353 if test "x$ac_ct_SED" = x; then
4354 SED=":"
4355 else
4356 case $cross_compiling:$ac_tool_warned in
4357yes:)
4358{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4359whose name does not start with the host triplet. If you think this
4360configuration is useful to you, please write to autoconf@gnu.org." >&5
4361echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4362whose name does not start with the host triplet. If you think this
4363configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4364ac_tool_warned=yes ;;
4365esac
4366 SED=$ac_ct_SED
4367 fi
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004368else
4369 SED="$ac_cv_prog_SED"
4370fi
4371
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004372# Find a good install program. We prefer a C program (faster),
4373# so one script is as good as another. But avoid the broken or
4374# incompatible versions:
4375# SysV /etc/install, /usr/sbin/install
4376# SunOS /usr/etc/install
4377# IRIX /sbin/install
4378# AIX /bin/install
4379# AmigaOS /C/install, which installs bootblocks on floppy discs
4380# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4381# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4382# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4383# OS/2's system install, which has a completely different semantic
4384# ./install, which can be erroneously created by make from ./install.sh.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004385{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4386echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004387if test -z "$INSTALL"; then
4388if test "${ac_cv_path_install+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390else
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392for as_dir in $PATH
4393do
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 # Account for people who put trailing slashes in PATH elements.
4397case $as_dir/ in
4398 ./ | .// | /cC/* | \
4399 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4400 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4401 /usr/ucb/* ) ;;
4402 *)
4403 # OSF1 and SCO ODT 3.0 have their own names for install.
4404 # Don't use installbsd from OSF since it installs stuff as root
4405 # by default.
4406 for ac_prog in ginstall scoinst install; do
4407 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004408 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004409 if test $ac_prog = install &&
4410 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4411 # AIX install. It has an incompatible calling convention.
4412 :
4413 elif test $ac_prog = install &&
4414 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4415 # program-specific install script used by HP pwplus--don't use.
4416 :
4417 else
4418 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4419 break 3
4420 fi
4421 fi
4422 done
4423 done
4424 ;;
4425esac
4426done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004427IFS=$as_save_IFS
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004428
4429
4430fi
4431 if test "${ac_cv_path_install+set}" = set; then
4432 INSTALL=$ac_cv_path_install
4433 else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004434 # As a last resort, use the slow shell script. Don't cache a
4435 # value for INSTALL within a source directory, because that will
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004436 # break other packages using the cache if that directory is
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004437 # removed, or if the value is a relative name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004438 INSTALL=$ac_install_sh
4439 fi
4440fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004441{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4442echo "${ECHO_T}$INSTALL" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004443
4444# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4445# It thinks the first close brace ends the variable substitution.
4446test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4447
4448test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4449
4450test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4451
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004452{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4453echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004454LN_S=$as_ln_s
4455if test "$LN_S" = "ln -s"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004456 { echo "$as_me:$LINENO: result: yes" >&5
4457echo "${ECHO_T}yes" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004458else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004459 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4460echo "${ECHO_T}no, using $LN_S" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004461fi
4462
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004463{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4464echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4465set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4466if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004467 echo $ECHO_N "(cached) $ECHO_C" >&6
4468else
4469 cat >conftest.make <<\_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004470SHELL = /bin/sh
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004471all:
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004472 @echo '@@@%%%=$(MAKE)=@@@%%%'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004473_ACEOF
4474# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004475case `${MAKE-make} -f conftest.make 2>/dev/null` in
4476 *@@@%%%=?*=@@@%%%*)
4477 eval ac_cv_prog_make_${ac_make}_set=yes;;
4478 *)
4479 eval ac_cv_prog_make_${ac_make}_set=no;;
4480esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004481rm -f conftest.make
4482fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004483if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4484 { echo "$as_me:$LINENO: result: yes" >&5
4485echo "${ECHO_T}yes" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004486 SET_MAKE=
4487else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004488 { echo "$as_me:$LINENO: result: no" >&5
4489echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004490 SET_MAKE="MAKE=${MAKE-make}"
4491fi
4492
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004493# Check whether --enable-shared was given.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004494if test "${enable_shared+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004495 enableval=$enable_shared; p=${PACKAGE-default}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004496 case $enableval in
4497 yes) enable_shared=yes ;;
4498 no) enable_shared=no ;;
4499 *)
4500 enable_shared=no
4501 # Look at the argument we got. We use all the common list separators.
4502 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4503 for pkg in $enableval; do
4504 IFS="$lt_save_ifs"
4505 if test "X$pkg" = "X$p"; then
4506 enable_shared=yes
4507 fi
4508 done
4509 IFS="$lt_save_ifs"
4510 ;;
4511 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004512else
4513 enable_shared=yes
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004514fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004515
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004516
4517# Check whether --enable-static was given.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004518if test "${enable_static+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004519 enableval=$enable_static; p=${PACKAGE-default}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004520 case $enableval in
4521 yes) enable_static=yes ;;
4522 no) enable_static=no ;;
4523 *)
4524 enable_static=no
4525 # Look at the argument we got. We use all the common list separators.
4526 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4527 for pkg in $enableval; do
4528 IFS="$lt_save_ifs"
4529 if test "X$pkg" = "X$p"; then
4530 enable_static=yes
4531 fi
4532 done
4533 IFS="$lt_save_ifs"
4534 ;;
4535 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004536else
4537 enable_static=yes
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004538fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004539
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004540
4541# Check whether --enable-fast-install was given.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004542if test "${enable_fast_install+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004543 enableval=$enable_fast_install; p=${PACKAGE-default}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004544 case $enableval in
4545 yes) enable_fast_install=yes ;;
4546 no) enable_fast_install=no ;;
4547 *)
4548 enable_fast_install=no
4549 # Look at the argument we got. We use all the common list separators.
4550 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4551 for pkg in $enableval; do
4552 IFS="$lt_save_ifs"
4553 if test "X$pkg" = "X$p"; then
4554 enable_fast_install=yes
4555 fi
4556 done
4557 IFS="$lt_save_ifs"
4558 ;;
4559 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004560else
4561 enable_fast_install=yes
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004562fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004563
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004564
4565{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4566echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004567if test "${lt_cv_ld_reload_flag+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4569else
4570 lt_cv_ld_reload_flag='-r'
4571fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004572{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4573echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004574reload_flag=$lt_cv_ld_reload_flag
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004575case $reload_flag in
4576"" | " "*) ;;
4577*) reload_flag=" $reload_flag" ;;
4578esac
4579reload_cmds='$LD$reload_flag -o $output$reload_objs'
4580case $host_os in
4581 darwin*)
4582 if test "$GCC" = yes; then
4583 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4584 else
4585 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4586 fi
4587 ;;
4588esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004589
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004590{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4591echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004592if test "${lt_cv_path_NM+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4594else
4595 if test -n "$NM"; then
4596 # Let the user override the test.
4597 lt_cv_path_NM="$NM"
4598else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004599 lt_nm_to_check="${ac_tool_prefix}nm"
4600 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4601 lt_nm_to_check="$lt_nm_to_check nm"
4602 fi
4603 for lt_tmp_nm in $lt_nm_to_check; do
4604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4605 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4606 IFS="$lt_save_ifs"
4607 test -z "$ac_dir" && ac_dir=.
4608 tmp_nm="$ac_dir/$lt_tmp_nm"
4609 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4610 # Check to see if the nm accepts a BSD-compat flag.
4611 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4612 # nm: unknown option "B" ignored
4613 # Tru64's nm complains that /dev/null is an invalid object file
4614 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4615 */dev/null* | *'Invalid file or object type'*)
4616 lt_cv_path_NM="$tmp_nm -B"
4617 break
4618 ;;
4619 *)
4620 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4621 */dev/null*)
4622 lt_cv_path_NM="$tmp_nm -p"
4623 break
4624 ;;
4625 *)
4626 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4627 continue # so that we can try to find one that supports BSD flags
4628 ;;
4629 esac
4630 ;;
4631 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004632 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004633 done
4634 IFS="$lt_save_ifs"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004635 done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004636 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4637fi
4638fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004639{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4640echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004641NM="$lt_cv_path_NM"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004642
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004643{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4644echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004645if test "${lt_cv_deplibs_check_method+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648 lt_cv_file_magic_cmd='$MAGIC_CMD'
4649lt_cv_file_magic_test_file=
4650lt_cv_deplibs_check_method='unknown'
4651# Need to set the preceding variable on all platforms that support
4652# interlibrary dependencies.
4653# 'none' -- dependencies not supported.
4654# `unknown' -- same as none, but documents that we really don't know.
4655# 'pass_all' -- all dependencies passed with no checks.
4656# 'test_compile' -- check by making test program.
4657# 'file_magic [[regex]]' -- check by looking for files in library path
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004658# which responds to the $file_magic_cmd with a given extended regex.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004659# If you have `file' or equivalent on your system and you're not sure
4660# whether `pass_all' will *always* work, you probably want this one.
4661
4662case $host_os in
4663aix4* | aix5*)
4664 lt_cv_deplibs_check_method=pass_all
4665 ;;
4666
4667beos*)
4668 lt_cv_deplibs_check_method=pass_all
4669 ;;
4670
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004671bsdi[45]*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004672 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4673 lt_cv_file_magic_cmd='/usr/bin/file -L'
4674 lt_cv_file_magic_test_file=/shlib/libc.so
4675 ;;
4676
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004677cygwin*)
4678 # func_win32_libid is a shell function defined in ltmain.sh
4679 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4680 lt_cv_file_magic_cmd='func_win32_libid'
4681 ;;
4682
4683mingw* | pw32*)
4684 # Base MSYS/MinGW do not provide the 'file' command needed by
4685 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004686 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4687 lt_cv_file_magic_cmd='$OBJDUMP -f'
4688 ;;
4689
4690darwin* | rhapsody*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004691 lt_cv_deplibs_check_method=pass_all
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004692 ;;
4693
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004694freebsd* | kfreebsd*-gnu | dragonfly*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004695 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4696 case $host_cpu in
4697 i*86 )
4698 # Not sure whether the presence of OpenBSD here was a mistake.
4699 # Let's accept both of them until this is cleared up.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004700 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004701 lt_cv_file_magic_cmd=/usr/bin/file
4702 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4703 ;;
4704 esac
4705 else
4706 lt_cv_deplibs_check_method=pass_all
4707 fi
4708 ;;
4709
4710gnu*)
4711 lt_cv_deplibs_check_method=pass_all
4712 ;;
4713
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004714hpux10.20* | hpux11*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004715 lt_cv_file_magic_cmd=/usr/bin/file
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004716 case $host_cpu in
4717 ia64*)
4718 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4719 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4720 ;;
4721 hppa*64*)
4722 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]'
4723 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4724 ;;
4725 *)
4726 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4727 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4728 ;;
4729 esac
4730 ;;
4731
4732interix3*)
4733 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4734 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004735 ;;
4736
4737irix5* | irix6* | nonstopux*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004738 case $LD in
4739 *-32|*"-32 ") libmagic=32-bit;;
4740 *-n32|*"-n32 ") libmagic=N32;;
4741 *-64|*"-64 ") libmagic=64-bit;;
4742 *) libmagic=never-match;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004743 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004744 lt_cv_deplibs_check_method=pass_all
4745 ;;
4746
4747# This must be Linux ELF.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004748linux*)
4749 lt_cv_deplibs_check_method=pass_all
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004750 ;;
4751
4752netbsd*)
4753 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004755 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004757 fi
4758 ;;
4759
4760newos6*)
4761 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4762 lt_cv_file_magic_cmd=/usr/bin/file
4763 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4764 ;;
4765
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004766nto-qnx*)
4767 lt_cv_deplibs_check_method=unknown
4768 ;;
4769
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004770openbsd*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004771 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004772 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004773 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004775 fi
4776 ;;
4777
4778osf3* | osf4* | osf5*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004779 lt_cv_deplibs_check_method=pass_all
4780 ;;
4781
4782solaris*)
4783 lt_cv_deplibs_check_method=pass_all
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004784 ;;
4785
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004786sysv4 | sysv4.3*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004787 case $host_vendor in
4788 motorola)
4789 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]'
4790 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4791 ;;
4792 ncr)
4793 lt_cv_deplibs_check_method=pass_all
4794 ;;
4795 sequent)
4796 lt_cv_file_magic_cmd='/bin/file'
4797 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4798 ;;
4799 sni)
4800 lt_cv_file_magic_cmd='/bin/file'
4801 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4802 lt_cv_file_magic_test_file=/lib/libc.so
4803 ;;
4804 siemens)
4805 lt_cv_deplibs_check_method=pass_all
4806 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004807 pc)
4808 lt_cv_deplibs_check_method=pass_all
4809 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004810 esac
4811 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004812
4813sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4814 lt_cv_deplibs_check_method=pass_all
4815 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004816esac
4817
4818fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004819{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4820echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004821file_magic_cmd=$lt_cv_file_magic_cmd
4822deplibs_check_method=$lt_cv_deplibs_check_method
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004823test -z "$deplibs_check_method" && deplibs_check_method=unknown
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004824
4825
4826
4827
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004828# If no C compiler was specified, use CC.
4829LTCC=${LTCC-"$CC"}
4830
4831# If no C compiler flags were specified, use CFLAGS.
4832LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4833
4834# Allow CC to be a program name with arguments.
4835compiler=$CC
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004836
4837
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004838# Check whether --enable-libtool-lock was given.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004839if test "${enable_libtool_lock+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004840 enableval=$enable_libtool_lock;
4841fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004842
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004843test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004844
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004845# Some flags need to be propagated to the compiler or linker for good
4846# libtool support.
4847case $host in
4848ia64-*-hpux*)
4849 # Find out which ABI we are using.
4850 echo 'int i;' > conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4852 (eval $ac_compile) 2>&5
4853 ac_status=$?
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004856 case `/usr/bin/file conftest.$ac_objext` in
4857 *ELF-32*)
4858 HPUX_IA64_MODE="32"
4859 ;;
4860 *ELF-64*)
4861 HPUX_IA64_MODE="64"
4862 ;;
4863 esac
4864 fi
4865 rm -rf conftest*
4866 ;;
4867*-*-irix6*)
4868 # Find out which ABI we are using.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004869 echo '#line 4869 "configure"' > conftest.$ac_ext
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871 (eval $ac_compile) 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004874 (exit $ac_status); }; then
4875 if test "$lt_cv_prog_gnu_ld" = yes; then
4876 case `/usr/bin/file conftest.$ac_objext` in
4877 *32-bit*)
4878 LD="${LD-ld} -melf32bsmip"
4879 ;;
4880 *N32*)
4881 LD="${LD-ld} -melf32bmipn32"
4882 ;;
4883 *64-bit*)
4884 LD="${LD-ld} -melf64bmip"
4885 ;;
4886 esac
4887 else
4888 case `/usr/bin/file conftest.$ac_objext` in
4889 *32-bit*)
4890 LD="${LD-ld} -32"
4891 ;;
4892 *N32*)
4893 LD="${LD-ld} -n32"
4894 ;;
4895 *64-bit*)
4896 LD="${LD-ld} -64"
4897 ;;
4898 esac
4899 fi
4900 fi
4901 rm -rf conftest*
4902 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004903
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004904x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4905 # Find out which ABI we are using.
4906 echo 'int i;' > conftest.$ac_ext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908 (eval $ac_compile) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; then
4912 case `/usr/bin/file conftest.o` in
4913 *32-bit*)
4914 case $host in
4915 x86_64-*linux*)
4916 LD="${LD-ld} -m elf_i386"
4917 ;;
4918 ppc64-*linux*|powerpc64-*linux*)
4919 LD="${LD-ld} -m elf32ppclinux"
4920 ;;
4921 s390x-*linux*)
4922 LD="${LD-ld} -m elf_s390"
4923 ;;
4924 sparc64-*linux*)
4925 LD="${LD-ld} -m elf32_sparc"
4926 ;;
4927 esac
4928 ;;
4929 *64-bit*)
4930 case $host in
4931 x86_64-*linux*)
4932 LD="${LD-ld} -m elf_x86_64"
4933 ;;
4934 ppc*-*linux*|powerpc*-*linux*)
4935 LD="${LD-ld} -m elf64ppc"
4936 ;;
4937 s390*-*linux*)
4938 LD="${LD-ld} -m elf64_s390"
4939 ;;
4940 sparc*-*linux*)
4941 LD="${LD-ld} -m elf64_sparc"
4942 ;;
4943 esac
4944 ;;
4945 esac
4946 fi
4947 rm -rf conftest*
4948 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004949
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004950*-*-sco3.2v5*)
4951 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4952 SAVE_CFLAGS="$CFLAGS"
4953 CFLAGS="$CFLAGS -belf"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004954 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4955echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004956if test "${lt_cv_cc_needs_belf+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4958else
4959 ac_ext=c
4960ac_cpp='$CPP $CPPFLAGS'
4961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963ac_compiler_gnu=$ac_cv_c_compiler_gnu
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004964
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004965 cat >conftest.$ac_ext <<_ACEOF
4966/* confdefs.h. */
4967_ACEOF
4968cat confdefs.h >>conftest.$ac_ext
4969cat >>conftest.$ac_ext <<_ACEOF
4970/* end confdefs.h. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004971
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004972int
4973main ()
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004974{
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004975
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004976 ;
4977 return 0;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004978}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004979_ACEOF
4980rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004981if { (ac_try="$ac_link"
4982case "(($ac_try" in
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4985esac
4986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4987 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004988 ac_status=$?
4989 grep -v '^ *+' conftest.er1 >conftest.err
4990 rm -f conftest.er1
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4995 { (case "(($ac_try" in
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4998esac
4999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5000 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005001 ac_status=$?
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005003 (exit $ac_status); }; } &&
5004 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005005 { (case "(($ac_try" in
5006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007 *) ac_try_echo=$ac_try;;
5008esac
5009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; }; then
5014 lt_cv_cc_needs_belf=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005015else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005016 echo "$as_me: failed program was:" >&5
5017sed 's/^/| /' conftest.$ac_ext >&5
5018
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005019 lt_cv_cc_needs_belf=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005020fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005021
5022rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005023 conftest$ac_exeext conftest.$ac_ext
5024 ac_ext=c
5025ac_cpp='$CPP $CPPFLAGS'
5026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5028ac_compiler_gnu=$ac_cv_c_compiler_gnu
5029
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005030fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005031{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5032echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005033 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5034 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5035 CFLAGS="$SAVE_CFLAGS"
5036 fi
5037 ;;
5038sparc*-*solaris*)
5039 # Find out which ABI we are using.
5040 echo 'int i;' > conftest.$ac_ext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042 (eval $ac_compile) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; then
5046 case `/usr/bin/file conftest.o` in
5047 *64-bit*)
5048 case $lt_cv_prog_gnu_ld in
5049 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5050 *) LD="${LD-ld} -64" ;;
5051 esac
5052 ;;
5053 esac
5054 fi
5055 rm -rf conftest*
5056 ;;
5057
5058
5059esac
5060
5061need_locks="$enable_libtool_lock"
5062
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005063
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005064
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005065{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5066echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005067if test "${ac_cv_header_stdc+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069else
5070 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005071/* confdefs.h. */
5072_ACEOF
5073cat confdefs.h >>conftest.$ac_ext
5074cat >>conftest.$ac_ext <<_ACEOF
5075/* end confdefs.h. */
5076#include <stdlib.h>
5077#include <stdarg.h>
5078#include <string.h>
5079#include <float.h>
5080
5081int
5082main ()
5083{
5084
5085 ;
5086 return 0;
5087}
5088_ACEOF
5089rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005090if { (ac_try="$ac_compile"
5091case "(($ac_try" in
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5094esac
5095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005097 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005098 grep -v '^ *+' conftest.er1 >conftest.err
5099 rm -f conftest.er1
5100 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5104 { (case "(($ac_try" in
5105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106 *) ac_try_echo=$ac_try;;
5107esac
5108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5109 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; } &&
5113 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005114 { (case "(($ac_try" in
5115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116 *) ac_try_echo=$ac_try;;
5117esac
5118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5119 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5123 ac_cv_header_stdc=yes
5124else
5125 echo "$as_me: failed program was:" >&5
5126sed 's/^/| /' conftest.$ac_ext >&5
5127
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005128 ac_cv_header_stdc=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005129fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005130
5131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005132
5133if test $ac_cv_header_stdc = yes; then
5134 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5135 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005136/* confdefs.h. */
5137_ACEOF
5138cat confdefs.h >>conftest.$ac_ext
5139cat >>conftest.$ac_ext <<_ACEOF
5140/* end confdefs.h. */
5141#include <string.h>
5142
5143_ACEOF
5144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5145 $EGREP "memchr" >/dev/null 2>&1; then
5146 :
5147else
5148 ac_cv_header_stdc=no
5149fi
5150rm -f conftest*
5151
5152fi
5153
5154if test $ac_cv_header_stdc = yes; then
5155 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5156 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005157/* confdefs.h. */
5158_ACEOF
5159cat confdefs.h >>conftest.$ac_ext
5160cat >>conftest.$ac_ext <<_ACEOF
5161/* end confdefs.h. */
5162#include <stdlib.h>
5163
5164_ACEOF
5165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5166 $EGREP "free" >/dev/null 2>&1; then
5167 :
5168else
5169 ac_cv_header_stdc=no
5170fi
5171rm -f conftest*
5172
5173fi
5174
5175if test $ac_cv_header_stdc = yes; then
5176 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5177 if test "$cross_compiling" = yes; then
5178 :
5179else
5180 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005181/* confdefs.h. */
5182_ACEOF
5183cat confdefs.h >>conftest.$ac_ext
5184cat >>conftest.$ac_ext <<_ACEOF
5185/* end confdefs.h. */
5186#include <ctype.h>
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005187#include <stdlib.h>
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005188#if ((' ' & 0x0FF) == 0x020)
5189# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5190# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5191#else
5192# define ISLOWER(c) \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005193 (('a' <= (c) && (c) <= 'i') \
5194 || ('j' <= (c) && (c) <= 'r') \
5195 || ('s' <= (c) && (c) <= 'z'))
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005196# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5197#endif
5198
5199#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5200int
5201main ()
5202{
5203 int i;
5204 for (i = 0; i < 256; i++)
5205 if (XOR (islower (i), ISLOWER (i))
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005206 || toupper (i) != TOUPPER (i))
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005207 return 2;
5208 return 0;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005209}
5210_ACEOF
5211rm -f conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005212if { (ac_try="$ac_link"
5213case "(($ac_try" in
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5216esac
5217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218 (eval "$ac_link") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005219 ac_status=$?
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005222 { (case "(($ac_try" in
5223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224 *) ac_try_echo=$ac_try;;
5225esac
5226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5227 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005228 ac_status=$?
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }; }; then
5231 :
5232else
5233 echo "$as_me: program exited with status $ac_status" >&5
5234echo "$as_me: failed program was:" >&5
5235sed 's/^/| /' conftest.$ac_ext >&5
5236
5237( exit $ac_status )
5238ac_cv_header_stdc=no
5239fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005240rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5241fi
5242
5243
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005244fi
5245fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005246{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5247echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005248if test $ac_cv_header_stdc = yes; then
5249
5250cat >>confdefs.h <<\_ACEOF
5251#define STDC_HEADERS 1
5252_ACEOF
5253
5254fi
5255
5256# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005267 inttypes.h stdint.h unistd.h
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005268do
5269as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005270{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274else
5275 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005276/* confdefs.h. */
5277_ACEOF
5278cat confdefs.h >>conftest.$ac_ext
5279cat >>conftest.$ac_ext <<_ACEOF
5280/* end confdefs.h. */
5281$ac_includes_default
5282
5283#include <$ac_header>
5284_ACEOF
5285rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005286if { (ac_try="$ac_compile"
5287case "(($ac_try" in
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5290esac
5291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005293 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005294 grep -v '^ *+' conftest.er1 >conftest.err
5295 rm -f conftest.er1
5296 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5300 { (case "(($ac_try" in
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5303esac
5304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005306 ac_status=$?
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; } &&
5309 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005310 { (case "(($ac_try" in
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5313esac
5314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005316 ac_status=$?
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5319 eval "$as_ac_Header=yes"
5320else
5321 echo "$as_me: failed program was:" >&5
5322sed 's/^/| /' conftest.$ac_ext >&5
5323
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005324 eval "$as_ac_Header=no"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005325fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005326
5327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005328fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005329ac_res=`eval echo '${'$as_ac_Header'}'`
5330 { echo "$as_me:$LINENO: result: $ac_res" >&5
5331echo "${ECHO_T}$ac_res" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005332if test `eval echo '${'$as_ac_Header'}'` = yes; then
5333 cat >>confdefs.h <<_ACEOF
5334#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5335_ACEOF
5336
5337fi
5338
5339done
5340
5341
5342
5343for ac_header in dlfcn.h
5344do
5345as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005350 echo $ECHO_N "(cached) $ECHO_C" >&6
5351fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005352ac_res=`eval echo '${'$as_ac_Header'}'`
5353 { echo "$as_me:$LINENO: result: $ac_res" >&5
5354echo "${ECHO_T}$ac_res" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005355else
5356 # Is the header compilable?
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005357{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5358echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005359cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005360/* confdefs.h. */
5361_ACEOF
5362cat confdefs.h >>conftest.$ac_ext
5363cat >>conftest.$ac_ext <<_ACEOF
5364/* end confdefs.h. */
5365$ac_includes_default
5366#include <$ac_header>
5367_ACEOF
5368rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005369if { (ac_try="$ac_compile"
5370case "(($ac_try" in
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5373esac
5374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005376 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005377 grep -v '^ *+' conftest.er1 >conftest.err
5378 rm -f conftest.er1
5379 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5383 { (case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5386esac
5387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005389 ac_status=$?
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; } &&
5392 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005393 { (case "(($ac_try" in
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5396esac
5397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005399 ac_status=$?
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }; }; then
5402 ac_header_compiler=yes
5403else
5404 echo "$as_me: failed program was:" >&5
5405sed 's/^/| /' conftest.$ac_ext >&5
5406
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005407 ac_header_compiler=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005408fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005409
5410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5412echo "${ECHO_T}$ac_header_compiler" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005413
5414# Is the header present?
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005415{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5416echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005417cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005418/* confdefs.h. */
5419_ACEOF
5420cat confdefs.h >>conftest.$ac_ext
5421cat >>conftest.$ac_ext <<_ACEOF
5422/* end confdefs.h. */
5423#include <$ac_header>
5424_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005425if { (ac_try="$ac_cpp conftest.$ac_ext"
5426case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5429esac
5430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005432 ac_status=$?
5433 grep -v '^ *+' conftest.er1 >conftest.err
5434 rm -f conftest.er1
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } >/dev/null; then
5438 if test -s conftest.err; then
5439 ac_cpp_err=$ac_c_preproc_warn_flag
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005441 else
5442 ac_cpp_err=
5443 fi
5444else
5445 ac_cpp_err=yes
5446fi
5447if test -z "$ac_cpp_err"; then
5448 ac_header_preproc=yes
5449else
5450 echo "$as_me: failed program was:" >&5
5451sed 's/^/| /' conftest.$ac_ext >&5
5452
5453 ac_header_preproc=no
5454fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005455
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005456rm -f conftest.err conftest.$ac_ext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005457{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5458echo "${ECHO_T}$ac_header_preproc" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005459
5460# So? What about this header?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005461case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5462 yes:no: )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5464echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5466echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5467 ac_header_preproc=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005468 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005469 no:yes:* )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5471echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5473echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5475echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5477echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5481echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005482 ( cat <<\_ASBOX
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005483## ------------------------------------------------------ ##
5484## Report this to png-mng-implement@lists.sourceforge.net ##
5485## ------------------------------------------------------ ##
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005486_ASBOX
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005487 ) | sed "s/^/$as_me: WARNING: /" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005488 ;;
5489esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005490{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005493 echo $ECHO_N "(cached) $ECHO_C" >&6
5494else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005495 eval "$as_ac_Header=\$ac_header_preproc"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005496fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005497ac_res=`eval echo '${'$as_ac_Header'}'`
5498 { echo "$as_me:$LINENO: result: $ac_res" >&5
5499echo "${ECHO_T}$ac_res" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005500
5501fi
5502if test `eval echo '${'$as_ac_Header'}'` = yes; then
5503 cat >>confdefs.h <<_ACEOF
5504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5505_ACEOF
5506
5507fi
5508
5509done
5510
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005511ac_ext=cpp
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005512ac_cpp='$CXXCPP $CPPFLAGS'
5513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005516if test -z "$CXX"; then
5517 if test -n "$CCC"; then
5518 CXX=$CCC
5519 else
5520 if test -n "$ac_tool_prefix"; then
5521 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005522 do
5523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5524set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005525{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005527if test "${ac_cv_prog_CXX+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005528 echo $ECHO_N "(cached) $ECHO_C" >&6
5529else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005530 if test -n "$CXX"; then
5531 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5532else
5533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534for as_dir in $PATH
5535do
5536 IFS=$as_save_IFS
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005540 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 break 2
5543 fi
5544done
5545done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005546IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005547
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005548fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005549fi
5550CXX=$ac_cv_prog_CXX
5551if test -n "$CXX"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005552 { echo "$as_me:$LINENO: result: $CXX" >&5
5553echo "${ECHO_T}$CXX" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005554else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005555 { echo "$as_me:$LINENO: result: no" >&5
5556echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005557fi
5558
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005559
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005560 test -n "$CXX" && break
5561 done
5562fi
5563if test -z "$CXX"; then
5564 ac_ct_CXX=$CXX
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005565 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005566do
5567 # Extract the first word of "$ac_prog", so it can be a program name with args.
5568set dummy $ac_prog; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005569{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005571if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005572 echo $ECHO_N "(cached) $ECHO_C" >&6
5573else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005574 if test -n "$ac_ct_CXX"; then
5575 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5576else
5577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578for as_dir in $PATH
5579do
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005584 ac_cv_prog_ac_ct_CXX="$ac_prog"
5585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 break 2
5587 fi
5588done
5589done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005590IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005591
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005592fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005593fi
5594ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5595if test -n "$ac_ct_CXX"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005596 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5597echo "${ECHO_T}$ac_ct_CXX" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005598else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005599 { echo "$as_me:$LINENO: result: no" >&5
5600echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005601fi
5602
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005603
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005604 test -n "$ac_ct_CXX" && break
5605done
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005606
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005607 if test "x$ac_ct_CXX" = x; then
5608 CXX="g++"
5609 else
5610 case $cross_compiling:$ac_tool_warned in
5611yes:)
5612{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5613whose name does not start with the host triplet. If you think this
5614configuration is useful to you, please write to autoconf@gnu.org." >&5
5615echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5616whose name does not start with the host triplet. If you think this
5617configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5618ac_tool_warned=yes ;;
5619esac
5620 CXX=$ac_ct_CXX
5621 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005622fi
5623
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005624 fi
5625fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005626# Provide some information about the compiler.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005627echo "$as_me:$LINENO: checking for C++ compiler version" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005628ac_compiler=`set X $ac_compile; echo $2`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005629{ (ac_try="$ac_compiler --version >&5"
5630case "(($ac_try" in
5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5633esac
5634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5635 (eval "$ac_compiler --version >&5") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005636 ac_status=$?
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005639{ (ac_try="$ac_compiler -v >&5"
5640case "(($ac_try" in
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5643esac
5644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645 (eval "$ac_compiler -v >&5") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005646 ac_status=$?
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005649{ (ac_try="$ac_compiler -V >&5"
5650case "(($ac_try" in
5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5653esac
5654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655 (eval "$ac_compiler -V >&5") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005656 ac_status=$?
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }
5659
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005660{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5661echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005662if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5664else
5665 cat >conftest.$ac_ext <<_ACEOF
5666/* confdefs.h. */
5667_ACEOF
5668cat confdefs.h >>conftest.$ac_ext
5669cat >>conftest.$ac_ext <<_ACEOF
5670/* end confdefs.h. */
5671
5672int
5673main ()
5674{
5675#ifndef __GNUC__
5676 choke me
5677#endif
5678
5679 ;
5680 return 0;
5681}
5682_ACEOF
5683rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005684if { (ac_try="$ac_compile"
5685case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688esac
5689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005691 ac_status=$?
5692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5698 { (case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5701esac
5702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; } &&
5707 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005708 { (case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711esac
5712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_compiler_gnu=yes
5718else
5719 echo "$as_me: failed program was:" >&5
5720sed 's/^/| /' conftest.$ac_ext >&5
5721
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005722 ac_compiler_gnu=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005723fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005724
5725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005726ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5727
5728fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005729{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5730echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005731GXX=`test $ac_compiler_gnu = yes && echo yes`
5732ac_test_CXXFLAGS=${CXXFLAGS+set}
5733ac_save_CXXFLAGS=$CXXFLAGS
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005734{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5735echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005736if test "${ac_cv_prog_cxx_g+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5738else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005739 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5740 ac_cxx_werror_flag=yes
5741 ac_cv_prog_cxx_g=no
5742 CXXFLAGS="-g"
5743 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005744/* confdefs.h. */
5745_ACEOF
5746cat confdefs.h >>conftest.$ac_ext
5747cat >>conftest.$ac_ext <<_ACEOF
5748/* end confdefs.h. */
5749
5750int
5751main ()
5752{
5753
5754 ;
5755 return 0;
5756}
5757_ACEOF
5758rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005759if { (ac_try="$ac_compile"
5760case "(($ac_try" in
5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762 *) ac_try_echo=$ac_try;;
5763esac
5764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005766 ac_status=$?
5767 grep -v '^ *+' conftest.er1 >conftest.err
5768 rm -f conftest.er1
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5773 { (case "(($ac_try" in
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5776esac
5777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; } &&
5782 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005783 { (case "(($ac_try" in
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5786esac
5787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
5792 ac_cv_prog_cxx_g=yes
5793else
5794 echo "$as_me: failed program was:" >&5
5795sed 's/^/| /' conftest.$ac_ext >&5
5796
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005797 CXXFLAGS=""
5798 cat >conftest.$ac_ext <<_ACEOF
5799/* confdefs.h. */
5800_ACEOF
5801cat confdefs.h >>conftest.$ac_ext
5802cat >>conftest.$ac_ext <<_ACEOF
5803/* end confdefs.h. */
5804
5805int
5806main ()
5807{
5808
5809 ;
5810 return 0;
5811}
5812_ACEOF
5813rm -f conftest.$ac_objext
5814if { (ac_try="$ac_compile"
5815case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5818esac
5819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_compile") 2>conftest.er1
5821 ac_status=$?
5822 grep -v '^ *+' conftest.er1 >conftest.err
5823 rm -f conftest.er1
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
5827 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5828 { (case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5831esac
5832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_try") 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try='test -s conftest.$ac_objext'
5838 { (case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841esac
5842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_try") 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 :
5848else
5849 echo "$as_me: failed program was:" >&5
5850sed 's/^/| /' conftest.$ac_ext >&5
5851
5852 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5853 CXXFLAGS="-g"
5854 cat >conftest.$ac_ext <<_ACEOF
5855/* confdefs.h. */
5856_ACEOF
5857cat confdefs.h >>conftest.$ac_ext
5858cat >>conftest.$ac_ext <<_ACEOF
5859/* end confdefs.h. */
5860
5861int
5862main ()
5863{
5864
5865 ;
5866 return 0;
5867}
5868_ACEOF
5869rm -f conftest.$ac_objext
5870if { (ac_try="$ac_compile"
5871case "(($ac_try" in
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5874esac
5875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_compile") 2>conftest.er1
5877 ac_status=$?
5878 grep -v '^ *+' conftest.er1 >conftest.err
5879 rm -f conftest.er1
5880 cat conftest.err >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } &&
5883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5884 { (case "(($ac_try" in
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5887esac
5888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_try") 2>&5
5890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; } &&
5893 { ac_try='test -s conftest.$ac_objext'
5894 { (case "(($ac_try" in
5895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5896 *) ac_try_echo=$ac_try;;
5897esac
5898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5899 (eval "$ac_try") 2>&5
5900 ac_status=$?
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; }; then
5903 ac_cv_prog_cxx_g=yes
5904else
5905 echo "$as_me: failed program was:" >&5
5906sed 's/^/| /' conftest.$ac_ext >&5
5907
5908
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005909fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005910
5911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005912fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005913
5914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915fi
5916
5917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5919fi
5920{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5921echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005922if test "$ac_test_CXXFLAGS" = set; then
5923 CXXFLAGS=$ac_save_CXXFLAGS
5924elif test $ac_cv_prog_cxx_g = yes; then
5925 if test "$GXX" = yes; then
5926 CXXFLAGS="-g -O2"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005927 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005928 CXXFLAGS="-g"
5929 fi
5930else
5931 if test "$GXX" = yes; then
5932 CXXFLAGS="-O2"
5933 else
5934 CXXFLAGS=
5935 fi
5936fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005937ac_ext=cpp
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005938ac_cpp='$CXXCPP $CPPFLAGS'
5939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5942
5943depcc="$CXX" am_compiler_list=
5944
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005945{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5946echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005947if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949else
5950 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5951 # We make a subdir and do the tests there. Otherwise we can end up
5952 # making bogus files that we don't know about and never remove. For
5953 # instance it was reported that on HP-UX the gcc test will end up
5954 # making a dummy file named `D' -- because `-MD' means `put the output
5955 # in D'.
5956 mkdir conftest.dir
5957 # Copy depcomp to subdir because otherwise we won't find it if we're
5958 # using a relative directory.
5959 cp "$am_depcomp" conftest.dir
5960 cd conftest.dir
5961 # We will build objects and dependencies in a subdirectory because
5962 # it helps to detect inapplicable dependency modes. For instance
5963 # both Tru64's cc and ICC support -MD to output dependencies as a
5964 # side effect of compilation, but ICC will put the dependencies in
5965 # the current directory while Tru64 will put them in the object
5966 # directory.
5967 mkdir sub
5968
5969 am_cv_CXX_dependencies_compiler_type=none
5970 if test "$am_compiler_list" = ""; then
5971 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5972 fi
5973 for depmode in $am_compiler_list; do
5974 # Setup a source with many dependencies, because some compilers
5975 # like to wrap large dependency lists on column 80 (with \), and
5976 # we should not choose a depcomp mode which is confused by this.
5977 #
5978 # We need to recreate these files for each test, as the compiler may
5979 # overwrite some of them when testing with obscure command lines.
5980 # This happens at least with the AIX C compiler.
5981 : > sub/conftest.c
5982 for i in 1 2 3 4 5 6; do
5983 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5984 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5985 # Solaris 8's {/usr,}/bin/sh.
5986 touch sub/conftst$i.h
5987 done
5988 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5989
5990 case $depmode in
5991 nosideeffect)
5992 # after this tag, mechanisms are not by side-effect, so they'll
5993 # only be used when explicitly requested
5994 if test "x$enable_dependency_tracking" = xyes; then
5995 continue
5996 else
5997 break
5998 fi
5999 ;;
6000 none) break ;;
6001 esac
6002 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6003 # mode. It turns out that the SunPro C++ compiler does not properly
6004 # handle `-M -o', and we need to detect this.
6005 if depmode=$depmode \
6006 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6007 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6008 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6009 >/dev/null 2>conftest.err &&
6010 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6011 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6012 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6013 # icc doesn't choke on unknown options, it will just issue warnings
6014 # or remarks (even with -Werror). So we grep stderr for any message
6015 # that says an option was ignored or not supported.
6016 # When given -MP, icc 7.0 and 7.1 complain thusly:
6017 # icc: Command line warning: ignoring option '-M'; no argument required
6018 # The diagnosis changed in icc 8.0:
6019 # icc: Command line remark: option '-MP' not supported
6020 if (grep 'ignoring option' conftest.err ||
6021 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6022 am_cv_CXX_dependencies_compiler_type=$depmode
6023 break
6024 fi
6025 fi
6026 done
6027
6028 cd ..
6029 rm -rf conftest.dir
6030else
6031 am_cv_CXX_dependencies_compiler_type=none
6032fi
6033
6034fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006035{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6036echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006037CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6038
6039
6040
6041if
6042 test "x$enable_dependency_tracking" != xno \
6043 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6044 am__fastdepCXX_TRUE=
6045 am__fastdepCXX_FALSE='#'
6046else
6047 am__fastdepCXX_TRUE='#'
6048 am__fastdepCXX_FALSE=
6049fi
6050
6051
6052
6053
6054if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6055 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6056 (test "X$CXX" != "Xg++"))) ; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006057 ac_ext=cpp
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006058ac_cpp='$CXXCPP $CPPFLAGS'
6059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006062{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6063echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006064if test -z "$CXXCPP"; then
6065 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067else
6068 # Double quotes because CXXCPP needs to be expanded
6069 for CXXCPP in "$CXX -E" "/lib/cpp"
6070 do
6071 ac_preproc_ok=false
6072for ac_cxx_preproc_warn_flag in '' yes
6073do
6074 # Use a header file that comes with gcc, so configuring glibc
6075 # with a fresh cross-compiler works.
6076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6077 # <limits.h> exists even on freestanding compilers.
6078 # On the NeXT, cc -E runs the code through the compiler's parser,
6079 # not just through cpp. "Syntax error" is here to catch this case.
6080 cat >conftest.$ac_ext <<_ACEOF
6081/* confdefs.h. */
6082_ACEOF
6083cat confdefs.h >>conftest.$ac_ext
6084cat >>conftest.$ac_ext <<_ACEOF
6085/* end confdefs.h. */
6086#ifdef __STDC__
6087# include <limits.h>
6088#else
6089# include <assert.h>
6090#endif
6091 Syntax error
6092_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006093if { (ac_try="$ac_cpp conftest.$ac_ext"
6094case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6097esac
6098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006100 ac_status=$?
6101 grep -v '^ *+' conftest.er1 >conftest.err
6102 rm -f conftest.er1
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } >/dev/null; then
6106 if test -s conftest.err; then
6107 ac_cpp_err=$ac_cxx_preproc_warn_flag
6108 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6109 else
6110 ac_cpp_err=
6111 fi
6112else
6113 ac_cpp_err=yes
6114fi
6115if test -z "$ac_cpp_err"; then
6116 :
6117else
6118 echo "$as_me: failed program was:" >&5
6119sed 's/^/| /' conftest.$ac_ext >&5
6120
6121 # Broken: fails on valid input.
6122continue
6123fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006124
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006125rm -f conftest.err conftest.$ac_ext
6126
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006127 # OK, works on sane cases. Now check whether nonexistent headers
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006128 # can be detected and how.
6129 cat >conftest.$ac_ext <<_ACEOF
6130/* confdefs.h. */
6131_ACEOF
6132cat confdefs.h >>conftest.$ac_ext
6133cat >>conftest.$ac_ext <<_ACEOF
6134/* end confdefs.h. */
6135#include <ac_nonexistent.h>
6136_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006137if { (ac_try="$ac_cpp conftest.$ac_ext"
6138case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141esac
6142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } >/dev/null; then
6150 if test -s conftest.err; then
6151 ac_cpp_err=$ac_cxx_preproc_warn_flag
6152 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6153 else
6154 ac_cpp_err=
6155 fi
6156else
6157 ac_cpp_err=yes
6158fi
6159if test -z "$ac_cpp_err"; then
6160 # Broken: success on invalid input.
6161continue
6162else
6163 echo "$as_me: failed program was:" >&5
6164sed 's/^/| /' conftest.$ac_ext >&5
6165
6166 # Passes both tests.
6167ac_preproc_ok=:
6168break
6169fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006170
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006171rm -f conftest.err conftest.$ac_ext
6172
6173done
6174# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6175rm -f conftest.err conftest.$ac_ext
6176if $ac_preproc_ok; then
6177 break
6178fi
6179
6180 done
6181 ac_cv_prog_CXXCPP=$CXXCPP
6182
6183fi
6184 CXXCPP=$ac_cv_prog_CXXCPP
6185else
6186 ac_cv_prog_CXXCPP=$CXXCPP
6187fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006188{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6189echo "${ECHO_T}$CXXCPP" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006190ac_preproc_ok=false
6191for ac_cxx_preproc_warn_flag in '' yes
6192do
6193 # Use a header file that comes with gcc, so configuring glibc
6194 # with a fresh cross-compiler works.
6195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6196 # <limits.h> exists even on freestanding compilers.
6197 # On the NeXT, cc -E runs the code through the compiler's parser,
6198 # not just through cpp. "Syntax error" is here to catch this case.
6199 cat >conftest.$ac_ext <<_ACEOF
6200/* confdefs.h. */
6201_ACEOF
6202cat confdefs.h >>conftest.$ac_ext
6203cat >>conftest.$ac_ext <<_ACEOF
6204/* end confdefs.h. */
6205#ifdef __STDC__
6206# include <limits.h>
6207#else
6208# include <assert.h>
6209#endif
6210 Syntax error
6211_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006212if { (ac_try="$ac_cpp conftest.$ac_ext"
6213case "(($ac_try" in
6214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215 *) ac_try_echo=$ac_try;;
6216esac
6217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006219 ac_status=$?
6220 grep -v '^ *+' conftest.er1 >conftest.err
6221 rm -f conftest.er1
6222 cat conftest.err >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } >/dev/null; then
6225 if test -s conftest.err; then
6226 ac_cpp_err=$ac_cxx_preproc_warn_flag
6227 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6228 else
6229 ac_cpp_err=
6230 fi
6231else
6232 ac_cpp_err=yes
6233fi
6234if test -z "$ac_cpp_err"; then
6235 :
6236else
6237 echo "$as_me: failed program was:" >&5
6238sed 's/^/| /' conftest.$ac_ext >&5
6239
6240 # Broken: fails on valid input.
6241continue
6242fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006243
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006244rm -f conftest.err conftest.$ac_ext
6245
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006246 # OK, works on sane cases. Now check whether nonexistent headers
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006247 # can be detected and how.
6248 cat >conftest.$ac_ext <<_ACEOF
6249/* confdefs.h. */
6250_ACEOF
6251cat confdefs.h >>conftest.$ac_ext
6252cat >>conftest.$ac_ext <<_ACEOF
6253/* end confdefs.h. */
6254#include <ac_nonexistent.h>
6255_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006256if { (ac_try="$ac_cpp conftest.$ac_ext"
6257case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6260esac
6261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006263 ac_status=$?
6264 grep -v '^ *+' conftest.er1 >conftest.err
6265 rm -f conftest.er1
6266 cat conftest.err >&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } >/dev/null; then
6269 if test -s conftest.err; then
6270 ac_cpp_err=$ac_cxx_preproc_warn_flag
6271 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6272 else
6273 ac_cpp_err=
6274 fi
6275else
6276 ac_cpp_err=yes
6277fi
6278if test -z "$ac_cpp_err"; then
6279 # Broken: success on invalid input.
6280continue
6281else
6282 echo "$as_me: failed program was:" >&5
6283sed 's/^/| /' conftest.$ac_ext >&5
6284
6285 # Passes both tests.
6286ac_preproc_ok=:
6287break
6288fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006289
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006290rm -f conftest.err conftest.$ac_ext
6291
6292done
6293# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6294rm -f conftest.err conftest.$ac_ext
6295if $ac_preproc_ok; then
6296 :
6297else
6298 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6299See \`config.log' for more details." >&5
6300echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6301See \`config.log' for more details." >&2;}
6302 { (exit 1); exit 1; }; }
6303fi
6304
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006305ac_ext=cpp
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006306ac_cpp='$CXXCPP $CPPFLAGS'
6307ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6308ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6309ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6310
6311fi
6312
6313
6314ac_ext=f
6315ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6316ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6317ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6318if test -n "$ac_tool_prefix"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006319 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006320 do
6321 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6322set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006323{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006325if test "${ac_cv_prog_F77+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6327else
6328 if test -n "$F77"; then
6329 ac_cv_prog_F77="$F77" # Let the user override the test.
6330else
6331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332for as_dir in $PATH
6333do
6334 IFS=$as_save_IFS
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006338 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 break 2
6341 fi
6342done
6343done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006344IFS=$as_save_IFS
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006345
6346fi
6347fi
6348F77=$ac_cv_prog_F77
6349if test -n "$F77"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006350 { echo "$as_me:$LINENO: result: $F77" >&5
6351echo "${ECHO_T}$F77" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006352else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006353 { echo "$as_me:$LINENO: result: no" >&5
6354echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006355fi
6356
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006357
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006358 test -n "$F77" && break
6359 done
6360fi
6361if test -z "$F77"; then
6362 ac_ct_F77=$F77
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006363 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006364do
6365 # Extract the first word of "$ac_prog", so it can be a program name with args.
6366set dummy $ac_prog; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006367{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006369if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6371else
6372 if test -n "$ac_ct_F77"; then
6373 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6374else
6375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376for as_dir in $PATH
6377do
6378 IFS=$as_save_IFS
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006382 ac_cv_prog_ac_ct_F77="$ac_prog"
6383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 break 2
6385 fi
6386done
6387done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006388IFS=$as_save_IFS
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006389
6390fi
6391fi
6392ac_ct_F77=$ac_cv_prog_ac_ct_F77
6393if test -n "$ac_ct_F77"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006394 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6395echo "${ECHO_T}$ac_ct_F77" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006396else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006397 { echo "$as_me:$LINENO: result: no" >&5
6398echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006399fi
6400
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006401
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006402 test -n "$ac_ct_F77" && break
6403done
6404
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006405 if test "x$ac_ct_F77" = x; then
6406 F77=""
6407 else
6408 case $cross_compiling:$ac_tool_warned in
6409yes:)
6410{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6411whose name does not start with the host triplet. If you think this
6412configuration is useful to you, please write to autoconf@gnu.org." >&5
6413echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6414whose name does not start with the host triplet. If you think this
6415configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6416ac_tool_warned=yes ;;
6417esac
6418 F77=$ac_ct_F77
6419 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006420fi
6421
6422
6423# Provide some information about the compiler.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006424echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006425ac_compiler=`set X $ac_compile; echo $2`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006426{ (ac_try="$ac_compiler --version >&5"
6427case "(($ac_try" in
6428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6429 *) ac_try_echo=$ac_try;;
6430esac
6431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6432 (eval "$ac_compiler --version >&5") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006433 ac_status=$?
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006436{ (ac_try="$ac_compiler -v >&5"
6437case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440esac
6441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_compiler -v >&5") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006443 ac_status=$?
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006446{ (ac_try="$ac_compiler -V >&5"
6447case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450esac
6451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_compiler -V >&5") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }
6456rm -f a.out
6457
6458# If we don't use `.F' as extension, the preprocessor is not run on the
6459# input file. (Note that this only needs to work for GNU compilers.)
6460ac_save_ext=$ac_ext
6461ac_ext=F
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006462{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6463echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006464if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466else
6467 cat >conftest.$ac_ext <<_ACEOF
6468 program main
6469#ifndef __GNUC__
6470 choke me
6471#endif
6472
6473 end
6474_ACEOF
6475rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006476if { (ac_try="$ac_compile"
6477case "(($ac_try" in
6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6480esac
6481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006483 ac_status=$?
6484 grep -v '^ *+' conftest.er1 >conftest.err
6485 rm -f conftest.er1
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006489 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6490 { (case "(($ac_try" in
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6493esac
6494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006496 ac_status=$?
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; } &&
6499 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006500 { (case "(($ac_try" in
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6503esac
6504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 ac_compiler_gnu=yes
6510else
6511 echo "$as_me: failed program was:" >&5
6512sed 's/^/| /' conftest.$ac_ext >&5
6513
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006514 ac_compiler_gnu=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006515fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006516
6517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006518ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6519
6520fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006521{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6522echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006523ac_ext=$ac_save_ext
6524ac_test_FFLAGS=${FFLAGS+set}
6525ac_save_FFLAGS=$FFLAGS
6526FFLAGS=
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006527{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6528echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006529if test "${ac_cv_prog_f77_g+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531else
6532 FFLAGS=-g
6533cat >conftest.$ac_ext <<_ACEOF
6534 program main
6535
6536 end
6537_ACEOF
6538rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006539if { (ac_try="$ac_compile"
6540case "(($ac_try" in
6541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6542 *) ac_try_echo=$ac_try;;
6543esac
6544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6545 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006546 ac_status=$?
6547 grep -v '^ *+' conftest.er1 >conftest.err
6548 rm -f conftest.er1
6549 cat conftest.err >&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006552 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6553 { (case "(($ac_try" in
6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6556esac
6557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; } &&
6562 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006563 { (case "(($ac_try" in
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6566esac
6567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006569 ac_status=$?
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6572 ac_cv_prog_f77_g=yes
6573else
6574 echo "$as_me: failed program was:" >&5
6575sed 's/^/| /' conftest.$ac_ext >&5
6576
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006577 ac_cv_prog_f77_g=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006578fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006579
6580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006581
6582fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006583{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6584echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006585if test "$ac_test_FFLAGS" = set; then
6586 FFLAGS=$ac_save_FFLAGS
6587elif test $ac_cv_prog_f77_g = yes; then
6588 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6589 FFLAGS="-g -O2"
6590 else
6591 FFLAGS="-g"
6592 fi
6593else
6594 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6595 FFLAGS="-O2"
6596 else
6597 FFLAGS=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006598 fi
6599fi
6600
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006601G77=`test $ac_compiler_gnu = yes && echo yes`
6602ac_ext=c
6603ac_cpp='$CPP $CPPFLAGS'
6604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6606ac_compiler_gnu=$ac_cv_c_compiler_gnu
6607
6608
6609
6610# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6611
6612# find the maximum length of command line arguments
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006613{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6614echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006615if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617else
6618 i=0
6619 teststring="ABCD"
6620
6621 case $build_os in
6622 msdosdjgpp*)
6623 # On DJGPP, this test can blow up pretty badly due to problems in libc
6624 # (any single argument exceeding 2000 bytes causes a buffer overrun
6625 # during glob expansion). Even if it were fixed, the result of this
6626 # check would be larger than it should be.
6627 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6628 ;;
6629
6630 gnu*)
6631 # Under GNU Hurd, this test is not required because there is
6632 # no limit to the length of command line arguments.
6633 # Libtool will interpret -1 as no limit whatsoever
6634 lt_cv_sys_max_cmd_len=-1;
6635 ;;
6636
6637 cygwin* | mingw*)
6638 # On Win9x/ME, this test blows up -- it succeeds, but takes
6639 # about 5 minutes as the teststring grows exponentially.
6640 # Worse, since 9x/ME are not pre-emptively multitasking,
6641 # you end up with a "frozen" computer, even though with patience
6642 # the test eventually succeeds (with a max line length of 256k).
6643 # Instead, let's just punt: use the minimum linelength reported by
6644 # all of the supported platforms: 8192 (on NT/2K/XP).
6645 lt_cv_sys_max_cmd_len=8192;
6646 ;;
6647
6648 amigaos*)
6649 # On AmigaOS with pdksh, this test takes hours, literally.
6650 # So we just punt and use a minimum line length of 8192.
6651 lt_cv_sys_max_cmd_len=8192;
6652 ;;
6653
6654 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6655 # This has been around since 386BSD, at least. Likely further.
6656 if test -x /sbin/sysctl; then
6657 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6658 elif test -x /usr/sbin/sysctl; then
6659 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6660 else
6661 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6662 fi
6663 # And add a safety zone
6664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6665 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6666 ;;
6667
6668 interix*)
6669 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6670 lt_cv_sys_max_cmd_len=196608
6671 ;;
6672
6673 osf*)
6674 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6675 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6676 # nice to cause kernel panics so lets avoid the loop below.
6677 # First set a reasonable default.
6678 lt_cv_sys_max_cmd_len=16384
6679 #
6680 if test -x /sbin/sysconfig; then
6681 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6682 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6683 esac
6684 fi
6685 ;;
6686 sco3.2v5*)
6687 lt_cv_sys_max_cmd_len=102400
6688 ;;
6689 sysv5* | sco5v6* | sysv4.2uw2*)
6690 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6691 if test -n "$kargmax"; then
6692 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6693 else
6694 lt_cv_sys_max_cmd_len=32768
6695 fi
6696 ;;
6697 *)
6698 # If test is not a shell built-in, we'll probably end up computing a
6699 # maximum length that is only half of the actual maximum length, but
6700 # we can't tell.
6701 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6702 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6703 = "XX$teststring") >/dev/null 2>&1 &&
6704 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6705 lt_cv_sys_max_cmd_len=$new_result &&
6706 test $i != 17 # 1/2 MB should be enough
6707 do
6708 i=`expr $i + 1`
6709 teststring=$teststring$teststring
6710 done
6711 teststring=
6712 # Add a significant safety factor because C++ compilers can tack on massive
6713 # amounts of additional arguments before passing them to the linker.
6714 # It appears as though 1/2 is a usable value.
6715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6716 ;;
6717 esac
6718
6719fi
6720
6721if test -n $lt_cv_sys_max_cmd_len ; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006722 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6723echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006724else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006725 { echo "$as_me:$LINENO: result: none" >&5
6726echo "${ECHO_T}none" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006727fi
6728
6729
6730
6731
6732# Check for command to grab the raw symbol name followed by C symbol from nm.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006733{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6734echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006735if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737else
6738
6739# These are sane defaults that work on at least a few old systems.
6740# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6741
6742# Character class describing NM global symbol codes.
6743symcode='[BCDEGRST]'
6744
6745# Regexp to match symbols that can be accessed directly from C.
6746sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6747
6748# Transform an extracted symbol line into a proper C declaration
6749lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6750
6751# Transform an extracted symbol line into symbol name and symbol address
6752lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6753
6754# Define system-specific variables.
6755case $host_os in
6756aix*)
6757 symcode='[BCDT]'
6758 ;;
6759cygwin* | mingw* | pw32*)
6760 symcode='[ABCDGISTW]'
6761 ;;
6762hpux*) # Its linker distinguishes data from code symbols
6763 if test "$host_cpu" = ia64; then
6764 symcode='[ABCDEGRST]'
6765 fi
6766 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6767 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6768 ;;
6769linux*)
6770 if test "$host_cpu" = ia64; then
6771 symcode='[ABCDGIRSTW]'
6772 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6773 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6774 fi
6775 ;;
6776irix* | nonstopux*)
6777 symcode='[BCDEGRST]'
6778 ;;
6779osf*)
6780 symcode='[BCDEGQRST]'
6781 ;;
6782solaris*)
6783 symcode='[BDRT]'
6784 ;;
6785sco3.2v5*)
6786 symcode='[DT]'
6787 ;;
6788sysv4.2uw2*)
6789 symcode='[DT]'
6790 ;;
6791sysv5* | sco5v6* | unixware* | OpenUNIX*)
6792 symcode='[ABDT]'
6793 ;;
6794sysv4)
6795 symcode='[DFNSTU]'
6796 ;;
6797esac
6798
6799# Handle CRLF in mingw tool chain
6800opt_cr=
6801case $build_os in
6802mingw*)
6803 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6804 ;;
6805esac
6806
6807# If we're using GNU nm, then use its standard symbol codes.
6808case `$NM -V 2>&1` in
6809*GNU* | *'with BFD'*)
6810 symcode='[ABCDGIRSTW]' ;;
6811esac
6812
6813# Try without a prefix undercore, then with it.
6814for ac_symprfx in "" "_"; do
6815
6816 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6817 symxfrm="\\1 $ac_symprfx\\2 \\2"
6818
6819 # Write the raw and C identifiers.
6820 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6821
6822 # Check to see that the pipe works correctly.
6823 pipe_works=no
6824
6825 rm -f conftest*
6826 cat > conftest.$ac_ext <<EOF
6827#ifdef __cplusplus
6828extern "C" {
6829#endif
6830char nm_test_var;
6831void nm_test_func(){}
6832#ifdef __cplusplus
6833}
6834#endif
6835int main(){nm_test_var='a';nm_test_func();return(0);}
6836EOF
6837
6838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6839 (eval $ac_compile) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; then
6843 # Now try to grab the symbols.
6844 nlist=conftest.nm
6845 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6846 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6847 ac_status=$?
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); } && test -s "$nlist"; then
6850 # Try sorting and uniquifying the output.
6851 if sort "$nlist" | uniq > "$nlist"T; then
6852 mv -f "$nlist"T "$nlist"
6853 else
6854 rm -f "$nlist"T
6855 fi
6856
6857 # Make sure that we snagged all the symbols we need.
6858 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6859 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6860 cat <<EOF > conftest.$ac_ext
6861#ifdef __cplusplus
6862extern "C" {
6863#endif
6864
6865EOF
6866 # Now generate the symbol file.
6867 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6868
6869 cat <<EOF >> conftest.$ac_ext
6870#if defined (__STDC__) && __STDC__
6871# define lt_ptr_t void *
6872#else
6873# define lt_ptr_t char *
6874# define const
6875#endif
6876
6877/* The mapping between symbol names and symbols. */
6878const struct {
6879 const char *name;
6880 lt_ptr_t address;
6881}
6882lt_preloaded_symbols[] =
6883{
6884EOF
6885 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6886 cat <<\EOF >> conftest.$ac_ext
6887 {0, (lt_ptr_t) 0}
6888};
6889
6890#ifdef __cplusplus
6891}
6892#endif
6893EOF
6894 # Now try linking the two files.
6895 mv conftest.$ac_objext conftstm.$ac_objext
6896 lt_save_LIBS="$LIBS"
6897 lt_save_CFLAGS="$CFLAGS"
6898 LIBS="conftstm.$ac_objext"
6899 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6901 (eval $ac_link) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6905 pipe_works=yes
6906 fi
6907 LIBS="$lt_save_LIBS"
6908 CFLAGS="$lt_save_CFLAGS"
6909 else
6910 echo "cannot find nm_test_func in $nlist" >&5
6911 fi
6912 else
6913 echo "cannot find nm_test_var in $nlist" >&5
6914 fi
6915 else
6916 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6917 fi
6918 else
6919 echo "$progname: failed program was:" >&5
6920 cat conftest.$ac_ext >&5
6921 fi
6922 rm -f conftest* conftst*
6923
6924 # Do not use the global_symbol_pipe unless it works.
6925 if test "$pipe_works" = yes; then
6926 break
6927 else
6928 lt_cv_sys_global_symbol_pipe=
6929 fi
6930done
6931
6932fi
6933
6934if test -z "$lt_cv_sys_global_symbol_pipe"; then
6935 lt_cv_sys_global_symbol_to_cdecl=
6936fi
6937if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006938 { echo "$as_me:$LINENO: result: failed" >&5
6939echo "${ECHO_T}failed" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006940else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006941 { echo "$as_me:$LINENO: result: ok" >&5
6942echo "${ECHO_T}ok" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006943fi
6944
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006945{ echo "$as_me:$LINENO: checking for objdir" >&5
6946echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006947if test "${lt_cv_objdir+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6949else
6950 rm -f .libs 2>/dev/null
6951mkdir .libs 2>/dev/null
6952if test -d .libs; then
6953 lt_cv_objdir=.libs
6954else
6955 # MS-DOS does not allow filenames that begin with a dot.
6956 lt_cv_objdir=_libs
6957fi
6958rmdir .libs 2>/dev/null
6959fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006960{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6961echo "${ECHO_T}$lt_cv_objdir" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006962objdir=$lt_cv_objdir
6963
6964
6965
6966
6967
6968case $host_os in
6969aix3*)
6970 # AIX sometimes has problems with the GCC collect2 program. For some
6971 # reason, if we set the COLLECT_NAMES environment variable, the problems
6972 # vanish in a puff of smoke.
6973 if test "X${COLLECT_NAMES+set}" != Xset; then
6974 COLLECT_NAMES=
6975 export COLLECT_NAMES
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006976 fi
6977 ;;
6978esac
6979
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006980# Sed substitution that helps us do robust quoting. It backslashifies
6981# metacharacters that are still active within double-quoted strings.
6982Xsed='sed -e 1s/^X//'
6983sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6984
6985# Same as above, but do not quote variable references.
6986double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6987
6988# Sed substitution to delay expansion of an escaped shell variable in a
6989# double_quote_subst'ed string.
6990delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6991
6992# Sed substitution to avoid accidental globbing in evaled expressions
6993no_glob_subst='s/\*/\\\*/g'
6994
6995# Constants:
6996rm="rm -f"
6997
6998# Global variables:
6999default_ofile=libtool
7000can_build_shared=yes
7001
7002# All known linkers require a `.a' archive for static linking (except MSVC,
7003# which needs '.lib').
7004libext=a
7005ltmain="$ac_aux_dir/ltmain.sh"
7006ofile="$default_ofile"
7007with_gnu_ld="$lt_cv_prog_gnu_ld"
7008
7009if test -n "$ac_tool_prefix"; then
7010 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7011set dummy ${ac_tool_prefix}ar; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007012{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007014if test "${ac_cv_prog_AR+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7016else
7017 if test -n "$AR"; then
7018 ac_cv_prog_AR="$AR" # Let the user override the test.
7019else
7020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021for as_dir in $PATH
7022do
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007027 ac_cv_prog_AR="${ac_tool_prefix}ar"
7028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 break 2
7030 fi
7031done
7032done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007033IFS=$as_save_IFS
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007034
7035fi
7036fi
7037AR=$ac_cv_prog_AR
7038if test -n "$AR"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007039 { echo "$as_me:$LINENO: result: $AR" >&5
7040echo "${ECHO_T}$AR" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007041else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007042 { echo "$as_me:$LINENO: result: no" >&5
7043echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007044fi
7045
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007046
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007047fi
7048if test -z "$ac_cv_prog_AR"; then
7049 ac_ct_AR=$AR
7050 # Extract the first word of "ar", so it can be a program name with args.
7051set dummy ar; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007054if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7056else
7057 if test -n "$ac_ct_AR"; then
7058 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7059else
7060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061for as_dir in $PATH
7062do
7063 IFS=$as_save_IFS
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007067 ac_cv_prog_ac_ct_AR="ar"
7068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 break 2
7070 fi
7071done
7072done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007073IFS=$as_save_IFS
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007074
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007075fi
7076fi
7077ac_ct_AR=$ac_cv_prog_ac_ct_AR
7078if test -n "$ac_ct_AR"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007079 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7080echo "${ECHO_T}$ac_ct_AR" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007081else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007082 { echo "$as_me:$LINENO: result: no" >&5
7083echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007084fi
7085
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007086 if test "x$ac_ct_AR" = x; then
7087 AR="false"
7088 else
7089 case $cross_compiling:$ac_tool_warned in
7090yes:)
7091{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7092whose name does not start with the host triplet. If you think this
7093configuration is useful to you, please write to autoconf@gnu.org." >&5
7094echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7095whose name does not start with the host triplet. If you think this
7096configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7097ac_tool_warned=yes ;;
7098esac
7099 AR=$ac_ct_AR
7100 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007101else
7102 AR="$ac_cv_prog_AR"
7103fi
7104
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007105if test -n "$ac_tool_prefix"; then
7106 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7107set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007108{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007110if test "${ac_cv_prog_RANLIB+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113 if test -n "$RANLIB"; then
7114 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7115else
7116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117for as_dir in $PATH
7118do
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007123 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7126 fi
7127done
7128done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007129IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007130
7131fi
7132fi
7133RANLIB=$ac_cv_prog_RANLIB
7134if test -n "$RANLIB"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007135 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7136echo "${ECHO_T}$RANLIB" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007137else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007138 { echo "$as_me:$LINENO: result: no" >&5
7139echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007140fi
7141
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007142
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007143fi
7144if test -z "$ac_cv_prog_RANLIB"; then
7145 ac_ct_RANLIB=$RANLIB
7146 # Extract the first word of "ranlib", so it can be a program name with args.
7147set dummy ranlib; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007148{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007150if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152else
7153 if test -n "$ac_ct_RANLIB"; then
7154 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7155else
7156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157for as_dir in $PATH
7158do
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007163 ac_cv_prog_ac_ct_RANLIB="ranlib"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7166 fi
7167done
7168done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007169IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007170
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007171fi
7172fi
7173ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7174if test -n "$ac_ct_RANLIB"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007175 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7176echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007177else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007178 { echo "$as_me:$LINENO: result: no" >&5
7179echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007180fi
7181
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007182 if test "x$ac_ct_RANLIB" = x; then
7183 RANLIB=":"
7184 else
7185 case $cross_compiling:$ac_tool_warned in
7186yes:)
7187{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7188whose name does not start with the host triplet. If you think this
7189configuration is useful to you, please write to autoconf@gnu.org." >&5
7190echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7191whose name does not start with the host triplet. If you think this
7192configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7193ac_tool_warned=yes ;;
7194esac
7195 RANLIB=$ac_ct_RANLIB
7196 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007197else
7198 RANLIB="$ac_cv_prog_RANLIB"
7199fi
7200
7201if test -n "$ac_tool_prefix"; then
7202 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7203set dummy ${ac_tool_prefix}strip; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007206if test "${ac_cv_prog_STRIP+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208else
7209 if test -n "$STRIP"; then
7210 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7211else
7212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213for as_dir in $PATH
7214do
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007219 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7222 fi
7223done
7224done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007225IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007226
7227fi
7228fi
7229STRIP=$ac_cv_prog_STRIP
7230if test -n "$STRIP"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007231 { echo "$as_me:$LINENO: result: $STRIP" >&5
7232echo "${ECHO_T}$STRIP" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007233else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007234 { echo "$as_me:$LINENO: result: no" >&5
7235echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007236fi
7237
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007238
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007239fi
7240if test -z "$ac_cv_prog_STRIP"; then
7241 ac_ct_STRIP=$STRIP
7242 # Extract the first word of "strip", so it can be a program name with args.
7243set dummy strip; ac_word=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007246if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7248else
7249 if test -n "$ac_ct_STRIP"; then
7250 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7251else
7252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253for as_dir in $PATH
7254do
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007259 ac_cv_prog_ac_ct_STRIP="strip"
7260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7262 fi
7263done
7264done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007265IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007266
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007267fi
7268fi
7269ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7270if test -n "$ac_ct_STRIP"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007271 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7272echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007273else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007274 { echo "$as_me:$LINENO: result: no" >&5
7275echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007276fi
7277
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007278 if test "x$ac_ct_STRIP" = x; then
7279 STRIP=":"
7280 else
7281 case $cross_compiling:$ac_tool_warned in
7282yes:)
7283{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7284whose name does not start with the host triplet. If you think this
7285configuration is useful to you, please write to autoconf@gnu.org." >&5
7286echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7287whose name does not start with the host triplet. If you think this
7288configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7289ac_tool_warned=yes ;;
7290esac
7291 STRIP=$ac_ct_STRIP
7292 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007293else
7294 STRIP="$ac_cv_prog_STRIP"
7295fi
7296
7297
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007298old_CC="$CC"
7299old_CFLAGS="$CFLAGS"
7300
7301# Set sane defaults for various variables
7302test -z "$AR" && AR=ar
7303test -z "$AR_FLAGS" && AR_FLAGS=cru
7304test -z "$AS" && AS=as
7305test -z "$CC" && CC=cc
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007306test -z "$LTCC" && LTCC=$CC
7307test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007308test -z "$DLLTOOL" && DLLTOOL=dlltool
7309test -z "$LD" && LD=ld
7310test -z "$LN_S" && LN_S="ln -s"
7311test -z "$MAGIC_CMD" && MAGIC_CMD=file
7312test -z "$NM" && NM=nm
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007313test -z "$SED" && SED=sed
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007314test -z "$OBJDUMP" && OBJDUMP=objdump
7315test -z "$RANLIB" && RANLIB=:
7316test -z "$STRIP" && STRIP=:
7317test -z "$ac_objext" && ac_objext=o
7318
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007319# Determine commands to create old-style static archives.
7320old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7321old_postinstall_cmds='chmod 644 $oldlib'
7322old_postuninstall_cmds=
7323
7324if test -n "$RANLIB"; then
7325 case $host_os in
7326 openbsd*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007327 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007328 ;;
7329 *)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007330 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007331 ;;
7332 esac
7333 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7334fi
7335
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007336for cc_temp in $compiler""; do
7337 case $cc_temp in
7338 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7339 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7340 \-*) ;;
7341 *) break;;
7342 esac
7343done
7344cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007345
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007346
7347# Only perform the check for file, if the check method requires it
7348case $deplibs_check_method in
7349file_magic*)
7350 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007351 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7352echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007353if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007355else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007356 case $MAGIC_CMD in
7357[\\/*] | ?:[\\/]*)
7358 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7359 ;;
7360*)
7361 lt_save_MAGIC_CMD="$MAGIC_CMD"
7362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7363 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7364 for ac_dir in $ac_dummy; do
7365 IFS="$lt_save_ifs"
7366 test -z "$ac_dir" && ac_dir=.
7367 if test -f $ac_dir/${ac_tool_prefix}file; then
7368 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7369 if test -n "$file_magic_test_file"; then
7370 case $deplibs_check_method in
7371 "file_magic "*)
7372 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7373 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7374 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7375 $EGREP "$file_magic_regex" > /dev/null; then
7376 :
7377 else
7378 cat <<EOF 1>&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007379
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007380*** Warning: the command libtool uses to detect shared libraries,
7381*** $file_magic_cmd, produces output that libtool cannot recognize.
7382*** The result is that libtool may fail to recognize shared libraries
7383*** as such. This will affect the creation of libtool libraries that
7384*** depend on shared libraries, but programs linked with such libtool
7385*** libraries will work regardless of this problem. Nevertheless, you
7386*** may want to report the problem to your system manager and/or to
7387*** bug-libtool@gnu.org
7388
7389EOF
7390 fi ;;
7391 esac
7392 fi
7393 break
7394 fi
7395 done
7396 IFS="$lt_save_ifs"
7397 MAGIC_CMD="$lt_save_MAGIC_CMD"
7398 ;;
7399esac
7400fi
7401
7402MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7403if test -n "$MAGIC_CMD"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007404 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7405echo "${ECHO_T}$MAGIC_CMD" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007406else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007407 { echo "$as_me:$LINENO: result: no" >&5
7408echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007409fi
7410
7411if test -z "$lt_cv_path_MAGIC_CMD"; then
7412 if test -n "$ac_tool_prefix"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007413 { echo "$as_me:$LINENO: checking for file" >&5
7414echo $ECHO_N "checking for file... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007415if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7417else
7418 case $MAGIC_CMD in
7419[\\/*] | ?:[\\/]*)
7420 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7421 ;;
7422*)
7423 lt_save_MAGIC_CMD="$MAGIC_CMD"
7424 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7425 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7426 for ac_dir in $ac_dummy; do
7427 IFS="$lt_save_ifs"
7428 test -z "$ac_dir" && ac_dir=.
7429 if test -f $ac_dir/file; then
7430 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7431 if test -n "$file_magic_test_file"; then
7432 case $deplibs_check_method in
7433 "file_magic "*)
7434 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7435 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7436 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7437 $EGREP "$file_magic_regex" > /dev/null; then
7438 :
7439 else
7440 cat <<EOF 1>&2
7441
7442*** Warning: the command libtool uses to detect shared libraries,
7443*** $file_magic_cmd, produces output that libtool cannot recognize.
7444*** The result is that libtool may fail to recognize shared libraries
7445*** as such. This will affect the creation of libtool libraries that
7446*** depend on shared libraries, but programs linked with such libtool
7447*** libraries will work regardless of this problem. Nevertheless, you
7448*** may want to report the problem to your system manager and/or to
7449*** bug-libtool@gnu.org
7450
7451EOF
7452 fi ;;
7453 esac
7454 fi
7455 break
7456 fi
7457 done
7458 IFS="$lt_save_ifs"
7459 MAGIC_CMD="$lt_save_MAGIC_CMD"
7460 ;;
7461esac
7462fi
7463
7464MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7465if test -n "$MAGIC_CMD"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007466 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7467echo "${ECHO_T}$MAGIC_CMD" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007468else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007469 { echo "$as_me:$LINENO: result: no" >&5
7470echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007471fi
7472
7473 else
7474 MAGIC_CMD=:
7475 fi
7476fi
7477
7478 fi
7479 ;;
7480esac
7481
7482enable_dlopen=no
7483enable_win32_dll=no
7484
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007485# Check whether --enable-libtool-lock was given.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007486if test "${enable_libtool_lock+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007487 enableval=$enable_libtool_lock;
7488fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007489
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007490test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007491
7492
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007493# Check whether --with-pic was given.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007494if test "${with_pic+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007495 withval=$with_pic; pic_mode="$withval"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007496else
7497 pic_mode=default
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007498fi
7499
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007500test -z "$pic_mode" && pic_mode=default
7501
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007502# Use C for the default configuration in the libtool script
7503tagname=
7504lt_save_CC="$CC"
7505ac_ext=c
7506ac_cpp='$CPP $CPPFLAGS'
7507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7509ac_compiler_gnu=$ac_cv_c_compiler_gnu
7510
7511
7512# Source file extension for C test sources.
7513ac_ext=c
7514
7515# Object file extension for compiled C test sources.
7516objext=o
7517objext=$objext
7518
7519# Code to be used in simple compile tests
7520lt_simple_compile_test_code="int some_variable = 0;\n"
7521
7522# Code to be used in simple link tests
7523lt_simple_link_test_code='int main(){return(0);}\n'
7524
7525
7526# If no C compiler was specified, use CC.
7527LTCC=${LTCC-"$CC"}
7528
7529# If no C compiler flags were specified, use CFLAGS.
7530LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7531
7532# Allow CC to be a program name with arguments.
7533compiler=$CC
7534
7535
7536# save warnings/boilerplate of simple test code
7537ac_outfile=conftest.$ac_objext
7538printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7539eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7540_lt_compiler_boilerplate=`cat conftest.err`
7541$rm conftest*
7542
7543ac_outfile=conftest.$ac_objext
7544printf "$lt_simple_link_test_code" >conftest.$ac_ext
7545eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7546_lt_linker_boilerplate=`cat conftest.err`
7547$rm conftest*
7548
7549
7550
7551lt_prog_compiler_no_builtin_flag=
7552
7553if test "$GCC" = yes; then
7554 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7555
7556
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007557{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7558echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007559if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007562 lt_cv_prog_compiler_rtti_exceptions=no
7563 ac_outfile=conftest.$ac_objext
7564 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7565 lt_compiler_flag="-fno-rtti -fno-exceptions"
7566 # Insert the option either (1) after the last *FLAGS variable, or
7567 # (2) before a word containing "conftest.", or (3) at the end.
7568 # Note that $ac_compile itself does not contain backslashes and begins
7569 # with a dollar sign (not a hyphen), so the echo should work correctly.
7570 # The option is referenced via a variable to avoid confusing sed.
7571 lt_compile=`echo "$ac_compile" | $SED \
7572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7574 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007575 (eval echo "\"\$as_me:7575: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007576 (eval "$lt_compile" 2>conftest.err)
7577 ac_status=$?
7578 cat conftest.err >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007579 echo "$as_me:7579: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007580 if (exit $ac_status) && test -s "$ac_outfile"; then
7581 # The compiler can only warn and ignore the option if not recognized
7582 # So say no if there are warnings other than the usual output.
7583 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7585 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7586 lt_cv_prog_compiler_rtti_exceptions=yes
7587 fi
7588 fi
7589 $rm conftest*
7590
7591fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007592{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7593echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007594
7595if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7596 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7597else
7598 :
7599fi
7600
7601fi
7602
7603lt_prog_compiler_wl=
7604lt_prog_compiler_pic=
7605lt_prog_compiler_static=
7606
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007607{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7608echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007609
7610 if test "$GCC" = yes; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007611 lt_prog_compiler_wl='-Wl,'
7612 lt_prog_compiler_static='-static'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007613
7614 case $host_os in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007615 aix*)
7616 # All AIX code is PIC.
7617 if test "$host_cpu" = ia64; then
7618 # AIX 5 now supports IA64 processor
7619 lt_prog_compiler_static='-Bstatic'
7620 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007621 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007622
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007623 amigaos*)
7624 # FIXME: we need at least 68020 code to build shared libraries, but
7625 # adding the `-m68020' flag to GCC prevents building anything better,
7626 # like `-m68040'.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007627 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007628 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007629
7630 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007631 # PIC is the default for these OSes.
7632 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007633
7634 mingw* | pw32* | os2*)
7635 # This hack is so that the source file can tell whether it is being
7636 # built for inclusion in a dll (and should export symbols for example).
7637 lt_prog_compiler_pic='-DDLL_EXPORT'
7638 ;;
7639
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007640 darwin* | rhapsody*)
7641 # PIC is the default on this platform
7642 # Common symbols not allowed in MH_DYLIB files
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007643 lt_prog_compiler_pic='-fno-common'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007644 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007645
7646 interix3*)
7647 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7648 # Instead, we relocate shared libraries at runtime.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007649 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007650
7651 msdosdjgpp*)
7652 # Just because we use GCC doesn't mean we suddenly get shared libraries
7653 # on systems that don't support them.
7654 lt_prog_compiler_can_build_shared=no
7655 enable_shared=no
7656 ;;
7657
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007658 sysv4*MP*)
7659 if test -d /usr/nec; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007660 lt_prog_compiler_pic=-Kconform_pic
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007661 fi
7662 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007663
7664 hpux*)
7665 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7666 # not for PA HP-UX.
7667 case $host_cpu in
7668 hppa*64*|ia64*)
7669 # +Z the default
7670 ;;
7671 *)
7672 lt_prog_compiler_pic='-fPIC'
7673 ;;
7674 esac
7675 ;;
7676
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007677 *)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007678 lt_prog_compiler_pic='-fPIC'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007679 ;;
7680 esac
7681 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007682 # PORTME Check for flag to pass linker flags through the system compiler.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007683 case $host_os in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007684 aix*)
7685 lt_prog_compiler_wl='-Wl,'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007686 if test "$host_cpu" = ia64; then
7687 # AIX 5 now supports IA64 processor
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007688 lt_prog_compiler_static='-Bstatic'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007689 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007690 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007691 fi
7692 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007693 darwin*)
7694 # PIC is the default on this platform
7695 # Common symbols not allowed in MH_DYLIB files
7696 case $cc_basename in
7697 xlc*)
7698 lt_prog_compiler_pic='-qnocommon'
7699 lt_prog_compiler_wl='-Wl,'
7700 ;;
7701 esac
7702 ;;
7703
7704 mingw* | pw32* | os2*)
7705 # This hack is so that the source file can tell whether it is being
7706 # built for inclusion in a dll (and should export symbols for example).
7707 lt_prog_compiler_pic='-DDLL_EXPORT'
7708 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007709
7710 hpux9* | hpux10* | hpux11*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007711 lt_prog_compiler_wl='-Wl,'
7712 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7713 # not for PA HP-UX.
7714 case $host_cpu in
7715 hppa*64*|ia64*)
7716 # +Z the default
7717 ;;
7718 *)
7719 lt_prog_compiler_pic='+Z'
7720 ;;
7721 esac
7722 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7723 lt_prog_compiler_static='${wl}-a ${wl}archive'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007724 ;;
7725
7726 irix5* | irix6* | nonstopux*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007727 lt_prog_compiler_wl='-Wl,'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007728 # PIC (with -KPIC) is the default.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007729 lt_prog_compiler_static='-non_shared'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007730 ;;
7731
7732 newsos6)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007733 lt_prog_compiler_pic='-KPIC'
7734 lt_prog_compiler_static='-Bstatic'
7735 ;;
7736
7737 linux*)
7738 case $cc_basename in
7739 icc* | ecc*)
7740 lt_prog_compiler_wl='-Wl,'
7741 lt_prog_compiler_pic='-KPIC'
7742 lt_prog_compiler_static='-static'
7743 ;;
7744 pgcc* | pgf77* | pgf90* | pgf95*)
7745 # Portland Group compilers (*not* the Pentium gcc compiler,
7746 # which looks to be a dead project)
7747 lt_prog_compiler_wl='-Wl,'
7748 lt_prog_compiler_pic='-fpic'
7749 lt_prog_compiler_static='-Bstatic'
7750 ;;
7751 ccc*)
7752 lt_prog_compiler_wl='-Wl,'
7753 # All Alpha code is PIC.
7754 lt_prog_compiler_static='-non_shared'
7755 ;;
7756 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007757 ;;
7758
7759 osf3* | osf4* | osf5*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007760 lt_prog_compiler_wl='-Wl,'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007761 # All OSF/1 code is PIC.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007762 lt_prog_compiler_static='-non_shared'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007763 ;;
7764
7765 solaris*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007766 lt_prog_compiler_pic='-KPIC'
7767 lt_prog_compiler_static='-Bstatic'
7768 case $cc_basename in
7769 f77* | f90* | f95*)
7770 lt_prog_compiler_wl='-Qoption ld ';;
7771 *)
7772 lt_prog_compiler_wl='-Wl,';;
7773 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007774 ;;
7775
7776 sunos4*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007777 lt_prog_compiler_wl='-Qoption ld '
7778 lt_prog_compiler_pic='-PIC'
7779 lt_prog_compiler_static='-Bstatic'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007780 ;;
7781
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007782 sysv4 | sysv4.2uw2* | sysv4.3*)
7783 lt_prog_compiler_wl='-Wl,'
7784 lt_prog_compiler_pic='-KPIC'
7785 lt_prog_compiler_static='-Bstatic'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007786 ;;
7787
7788 sysv4*MP*)
7789 if test -d /usr/nec ;then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007790 lt_prog_compiler_pic='-Kconform_pic'
7791 lt_prog_compiler_static='-Bstatic'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007792 fi
7793 ;;
7794
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007795 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7796 lt_prog_compiler_wl='-Wl,'
7797 lt_prog_compiler_pic='-KPIC'
7798 lt_prog_compiler_static='-Bstatic'
7799 ;;
7800
7801 unicos*)
7802 lt_prog_compiler_wl='-Wl,'
7803 lt_prog_compiler_can_build_shared=no
7804 ;;
7805
7806 uts4*)
7807 lt_prog_compiler_pic='-pic'
7808 lt_prog_compiler_static='-Bstatic'
7809 ;;
7810
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007811 *)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007812 lt_prog_compiler_can_build_shared=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007813 ;;
7814 esac
7815 fi
7816
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007817{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7818echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007819
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007820#
7821# Check to make sure the PIC flag actually works.
7822#
7823if test -n "$lt_prog_compiler_pic"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007824
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007825{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7826echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007827if test "${lt_prog_compiler_pic_works+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007828 echo $ECHO_N "(cached) $ECHO_C" >&6
7829else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007830 lt_prog_compiler_pic_works=no
7831 ac_outfile=conftest.$ac_objext
7832 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7833 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7834 # Insert the option either (1) after the last *FLAGS variable, or
7835 # (2) before a word containing "conftest.", or (3) at the end.
7836 # Note that $ac_compile itself does not contain backslashes and begins
7837 # with a dollar sign (not a hyphen), so the echo should work correctly.
7838 # The option is referenced via a variable to avoid confusing sed.
7839 lt_compile=`echo "$ac_compile" | $SED \
7840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7842 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007843 (eval echo "\"\$as_me:7843: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007844 (eval "$lt_compile" 2>conftest.err)
7845 ac_status=$?
7846 cat conftest.err >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007847 echo "$as_me:7847: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007848 if (exit $ac_status) && test -s "$ac_outfile"; then
7849 # The compiler can only warn and ignore the option if not recognized
7850 # So say no if there are warnings other than the usual output.
7851 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7853 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7854 lt_prog_compiler_pic_works=yes
7855 fi
7856 fi
7857 $rm conftest*
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007858
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007859fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007860{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7861echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007862
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007863if test x"$lt_prog_compiler_pic_works" = xyes; then
7864 case $lt_prog_compiler_pic in
7865 "" | " "*) ;;
7866 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7867 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007868else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007869 lt_prog_compiler_pic=
7870 lt_prog_compiler_can_build_shared=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007871fi
7872
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007873fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007874case $host_os in
7875 # For platforms which do not support PIC, -DPIC is meaningless:
7876 *djgpp*)
7877 lt_prog_compiler_pic=
7878 ;;
7879 *)
7880 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7881 ;;
7882esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007883
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007884#
7885# Check to make sure the static flag actually works.
7886#
7887wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007888{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7889echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007890if test "${lt_prog_compiler_static_works+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007893 lt_prog_compiler_static_works=no
7894 save_LDFLAGS="$LDFLAGS"
7895 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7896 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7897 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7898 # The linker can only warn and ignore the option if not recognized
7899 # So say no if there are warnings
7900 if test -s conftest.err; then
7901 # Append any errors to the config.log.
7902 cat conftest.err 1>&5
7903 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7904 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7905 if diff conftest.exp conftest.er2 >/dev/null; then
7906 lt_prog_compiler_static_works=yes
7907 fi
7908 else
7909 lt_prog_compiler_static_works=yes
7910 fi
7911 fi
7912 $rm conftest*
7913 LDFLAGS="$save_LDFLAGS"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007914
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007915fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007916{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7917echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007918
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007919if test x"$lt_prog_compiler_static_works" = xyes; then
7920 :
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007921else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007922 lt_prog_compiler_static=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007923fi
7924
7925
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007926{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7927echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007928if test "${lt_cv_prog_compiler_c_o+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007931 lt_cv_prog_compiler_c_o=no
7932 $rm -r conftest 2>/dev/null
7933 mkdir conftest
7934 cd conftest
7935 mkdir out
7936 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007937
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007938 lt_compiler_flag="-o out/conftest2.$ac_objext"
7939 # Insert the option either (1) after the last *FLAGS variable, or
7940 # (2) before a word containing "conftest.", or (3) at the end.
7941 # Note that $ac_compile itself does not contain backslashes and begins
7942 # with a dollar sign (not a hyphen), so the echo should work correctly.
7943 lt_compile=`echo "$ac_compile" | $SED \
7944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7946 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007947 (eval echo "\"\$as_me:7947: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007948 (eval "$lt_compile" 2>out/conftest.err)
7949 ac_status=$?
7950 cat out/conftest.err >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007951 echo "$as_me:7951: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007952 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7953 then
7954 # The compiler can only warn and ignore the option if not recognized
7955 # So say no if there are warnings
7956 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7957 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7958 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7959 lt_cv_prog_compiler_c_o=yes
7960 fi
7961 fi
7962 chmod u+w . 2>&5
7963 $rm conftest*
7964 # SGI C++ compiler will create directory out/ii_files/ for
7965 # template instantiation
7966 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7967 $rm out/* && rmdir out
7968 cd ..
7969 rmdir conftest
7970 $rm conftest*
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007971
7972fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007973{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7974echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007975
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007976
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007977hard_links="nottested"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007978if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007979 # do not overwrite the value of need_locks provided by the user
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007980 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7981echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007982 hard_links=yes
7983 $rm conftest*
7984 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7985 touch conftest.a
7986 ln conftest.a conftest.b 2>&5 || hard_links=no
7987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007988 { echo "$as_me:$LINENO: result: $hard_links" >&5
7989echo "${ECHO_T}$hard_links" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007990 if test "$hard_links" = no; then
7991 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7992echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7993 need_locks=warn
7994 fi
7995else
7996 need_locks=no
7997fi
7998
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007999{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8000echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008001
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008002 runpath_var=
8003 allow_undefined_flag=
8004 enable_shared_with_static_runtimes=no
8005 archive_cmds=
8006 archive_expsym_cmds=
8007 old_archive_From_new_cmds=
8008 old_archive_from_expsyms_cmds=
8009 export_dynamic_flag_spec=
8010 whole_archive_flag_spec=
8011 thread_safe_flag_spec=
8012 hardcode_libdir_flag_spec=
8013 hardcode_libdir_flag_spec_ld=
8014 hardcode_libdir_separator=
8015 hardcode_direct=no
8016 hardcode_minus_L=no
8017 hardcode_shlibpath_var=unsupported
8018 link_all_deplibs=unknown
8019 hardcode_automatic=no
8020 module_cmds=
8021 module_expsym_cmds=
8022 always_export_symbols=no
8023 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8024 # include_expsyms should be a list of space-separated symbols to be *always*
8025 # included in the symbol list
8026 include_expsyms=
8027 # exclude_expsyms can be an extended regexp of symbols to exclude
8028 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8029 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8030 # as well as any symbol that contains `d'.
8031 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8032 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8033 # platforms (ab)use it in PIC code, but their linkers get confused if
8034 # the symbol is explicitly referenced. Since portable code cannot
8035 # rely on this symbol name, it's probably fine to never include it in
8036 # preloaded symbol tables.
8037 extract_expsyms_cmds=
8038 # Just being paranoid about ensuring that cc_basename is set.
8039 for cc_temp in $compiler""; do
8040 case $cc_temp in
8041 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8042 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8043 \-*) ;;
8044 *) break;;
8045 esac
8046done
8047cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008048
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008049 case $host_os in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008050 cygwin* | mingw* | pw32*)
8051 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8052 # When not using gcc, we currently assume that we are using
8053 # Microsoft Visual C++.
8054 if test "$GCC" != yes; then
8055 with_gnu_ld=no
8056 fi
8057 ;;
8058 interix*)
8059 # we just hope/assume this is gcc and not c89 (= MSVC++)
8060 with_gnu_ld=yes
8061 ;;
8062 openbsd*)
8063 with_gnu_ld=no
8064 ;;
8065 esac
8066
8067 ld_shlibs=yes
8068 if test "$with_gnu_ld" = yes; then
8069 # If archive_cmds runs LD, not CC, wlarc should be empty
8070 wlarc='${wl}'
8071
8072 # Set some defaults for GNU ld with shared library support. These
8073 # are reset later if shared libraries are not supported. Putting them
8074 # here allows them to be overridden if necessary.
8075 runpath_var=LD_RUN_PATH
8076 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8077 export_dynamic_flag_spec='${wl}--export-dynamic'
8078 # ancient GNU ld didn't support --whole-archive et. al.
8079 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8080 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8081 else
8082 whole_archive_flag_spec=
8083 fi
8084 supports_anon_versioning=no
8085 case `$LD -v 2>/dev/null` in
8086 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8087 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8088 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8089 *\ 2.11.*) ;; # other 2.11 versions
8090 *) supports_anon_versioning=yes ;;
8091 esac
8092
8093 # See if GNU ld supports shared libraries.
8094 case $host_os in
8095 aix3* | aix4* | aix5*)
8096 # On AIX/PPC, the GNU linker is very broken
8097 if test "$host_cpu" != ia64; then
8098 ld_shlibs=no
8099 cat <<EOF 1>&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008100
8101*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8102*** to be unable to reliably create shared libraries on AIX.
8103*** Therefore, libtool is disabling shared libraries support. If you
8104*** really care for shared libraries, you may want to modify your PATH
8105*** so that a non-GNU linker is found, and then restart.
8106
8107EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008108 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008109 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008110
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008111 amigaos*)
8112 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)'
8113 hardcode_libdir_flag_spec='-L$libdir'
8114 hardcode_minus_L=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008115
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008116 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8117 # that the semantics of dynamic libraries on AmigaOS, at least up
8118 # to version 4, is to share data among multiple programs linked
8119 # with the same dynamic library. Since this doesn't match the
8120 # behavior of shared libraries on other platforms, we can't use
8121 # them.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008122 ld_shlibs=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008123 ;;
8124
8125 beos*)
8126 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8127 allow_undefined_flag=unsupported
8128 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8129 # support --undefined. This deserves some investigation. FIXME
8130 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8131 else
8132 ld_shlibs=no
8133 fi
8134 ;;
8135
8136 cygwin* | mingw* | pw32*)
8137 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8138 # as there is no search path for DLLs.
8139 hardcode_libdir_flag_spec='-L$libdir'
8140 allow_undefined_flag=unsupported
8141 always_export_symbols=no
8142 enable_shared_with_static_runtimes=yes
8143 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8144
8145 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8147 # If the export-symbols file already is a .def file (1st line
8148 # is EXPORTS), use it as is; otherwise, prepend...
8149 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8150 cp $export_symbols $output_objdir/$soname.def;
8151 else
8152 echo EXPORTS > $output_objdir/$soname.def;
8153 cat $export_symbols >> $output_objdir/$soname.def;
8154 fi~
8155 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8156 else
8157 ld_shlibs=no
8158 fi
8159 ;;
8160
8161 interix3*)
8162 hardcode_direct=no
8163 hardcode_shlibpath_var=no
8164 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8165 export_dynamic_flag_spec='${wl}-E'
8166 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8167 # Instead, shared libraries are loaded at an image base (0x10000000 by
8168 # default) and relocated if they conflict, which is a slow very memory
8169 # consuming and fragmenting process. To avoid this, we pick a random,
8170 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8171 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8172 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8173 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'
8174 ;;
8175
8176 linux*)
8177 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8178 tmp_addflag=
8179 case $cc_basename,$host_cpu in
8180 pgcc*) # Portland Group C compiler
8181 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'
8182 tmp_addflag=' $pic_flag'
8183 ;;
8184 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8185 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'
8186 tmp_addflag=' $pic_flag -Mnomain' ;;
8187 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8188 tmp_addflag=' -i_dynamic' ;;
8189 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8190 tmp_addflag=' -i_dynamic -nofor_main' ;;
8191 ifc* | ifort*) # Intel Fortran compiler
8192 tmp_addflag=' -nofor_main' ;;
8193 esac
8194 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8195
8196 if test $supports_anon_versioning = yes; then
8197 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8198 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8199 $echo "local: *; };" >> $output_objdir/$libname.ver~
8200 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8201 fi
8202 else
8203 ld_shlibs=no
8204 fi
8205 ;;
8206
8207 netbsd*)
8208 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8209 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8210 wlarc=
8211 else
8212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8213 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8214 fi
8215 ;;
8216
8217 solaris*)
8218 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8219 ld_shlibs=no
8220 cat <<EOF 1>&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008221
8222*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8223*** create shared libraries on Solaris systems. Therefore, libtool
8224*** is disabling shared libraries support. We urge you to upgrade GNU
8225*** binutils to release 2.9.1 or newer. Another option is to modify
8226*** your PATH or compiler configuration so that the native linker is
8227*** used, and then restart.
8228
8229EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008230 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8232 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008233 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008234 ld_shlibs=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008235 fi
8236 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008237
8238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8239 case `$LD -v 2>&1` in
8240 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8241 ld_shlibs=no
8242 cat <<_LT_EOF 1>&2
8243
8244*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8245*** reliably create shared libraries on SCO systems. Therefore, libtool
8246*** is disabling shared libraries support. We urge you to upgrade GNU
8247*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8248*** your PATH or compiler configuration so that the native linker is
8249*** used, and then restart.
8250
8251_LT_EOF
8252 ;;
8253 *)
8254 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8255 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8257 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8258 else
8259 ld_shlibs=no
8260 fi
8261 ;;
8262 esac
8263 ;;
8264
8265 sunos4*)
8266 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8267 wlarc=
8268 hardcode_direct=yes
8269 hardcode_shlibpath_var=no
8270 ;;
8271
8272 *)
8273 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8275 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8276 else
8277 ld_shlibs=no
8278 fi
8279 ;;
8280 esac
8281
8282 if test "$ld_shlibs" = no; then
8283 runpath_var=
8284 hardcode_libdir_flag_spec=
8285 export_dynamic_flag_spec=
8286 whole_archive_flag_spec=
8287 fi
8288 else
8289 # PORTME fill in a description of your system's linker (not GNU ld)
8290 case $host_os in
8291 aix3*)
8292 allow_undefined_flag=unsupported
8293 always_export_symbols=yes
8294 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'
8295 # Note: this linker hardcodes the directories in LIBPATH if there
8296 # are no directories specified by -L.
8297 hardcode_minus_L=yes
8298 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8299 # Neither direct hardcoding nor static linking is supported with a
8300 # broken collect2.
8301 hardcode_direct=unsupported
8302 fi
8303 ;;
8304
8305 aix4* | aix5*)
8306 if test "$host_cpu" = ia64; then
8307 # On IA64, the linker does run time linking by default, so we don't
8308 # have to do anything special.
8309 aix_use_runtimelinking=no
8310 exp_sym_flag='-Bexport'
8311 no_entry_flag=""
8312 else
8313 # If we're using GNU nm, then we don't want the "-C" option.
8314 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8315 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8316 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'
8317 else
8318 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'
8319 fi
8320 aix_use_runtimelinking=no
8321
8322 # Test if we are trying to use run time linking or normal
8323 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8324 # need to do runtime linking.
8325 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8326 for ld_flag in $LDFLAGS; do
8327 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8328 aix_use_runtimelinking=yes
8329 break
8330 fi
8331 done
8332 ;;
8333 esac
8334
8335 exp_sym_flag='-bexport'
8336 no_entry_flag='-bnoentry'
8337 fi
8338
8339 # When large executables or shared objects are built, AIX ld can
8340 # have problems creating the table of contents. If linking a library
8341 # or program results in "error TOC overflow" add -mminimal-toc to
8342 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8343 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8344
8345 archive_cmds=''
8346 hardcode_direct=yes
8347 hardcode_libdir_separator=':'
8348 link_all_deplibs=yes
8349
8350 if test "$GCC" = yes; then
8351 case $host_os in aix4.[012]|aix4.[012].*)
8352 # We only want to do this on AIX 4.2 and lower, the check
8353 # below for broken collect2 doesn't work under 4.3+
8354 collect2name=`${CC} -print-prog-name=collect2`
8355 if test -f "$collect2name" && \
8356 strings "$collect2name" | grep resolve_lib_name >/dev/null
8357 then
8358 # We have reworked collect2
8359 hardcode_direct=yes
8360 else
8361 # We have old collect2
8362 hardcode_direct=unsupported
8363 # It fails to find uninstalled libraries when the uninstalled
8364 # path is not listed in the libpath. Setting hardcode_minus_L
8365 # to unsupported forces relinking
8366 hardcode_minus_L=yes
8367 hardcode_libdir_flag_spec='-L$libdir'
8368 hardcode_libdir_separator=
8369 fi
8370 ;;
8371 esac
8372 shared_flag='-shared'
8373 if test "$aix_use_runtimelinking" = yes; then
8374 shared_flag="$shared_flag "'${wl}-G'
8375 fi
8376 else
8377 # not using gcc
8378 if test "$host_cpu" = ia64; then
8379 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8380 # chokes on -Wl,-G. The following line is correct:
8381 shared_flag='-G'
8382 else
8383 if test "$aix_use_runtimelinking" = yes; then
8384 shared_flag='${wl}-G'
8385 else
8386 shared_flag='${wl}-bM:SRE'
8387 fi
8388 fi
8389 fi
8390
8391 # It seems that -bexpall does not export symbols beginning with
8392 # underscore (_), so it is better to generate a list of symbols to export.
8393 always_export_symbols=yes
8394 if test "$aix_use_runtimelinking" = yes; then
8395 # Warning - without using the other runtime loading flags (-brtl),
8396 # -berok will link without error, but may produce a broken library.
8397 allow_undefined_flag='-berok'
8398 # Determine the default libpath from the value encoded in an empty executable.
8399 cat >conftest.$ac_ext <<_ACEOF
8400/* confdefs.h. */
8401_ACEOF
8402cat confdefs.h >>conftest.$ac_ext
8403cat >>conftest.$ac_ext <<_ACEOF
8404/* end confdefs.h. */
8405
8406int
8407main ()
8408{
8409
8410 ;
8411 return 0;
8412}
8413_ACEOF
8414rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06008415if { (ac_try="$ac_link"
8416case "(($ac_try" in
8417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418 *) ac_try_echo=$ac_try;;
8419esac
8420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008422 ac_status=$?
8423 grep -v '^ *+' conftest.er1 >conftest.err
8424 rm -f conftest.er1
8425 cat conftest.err >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06008428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8429 { (case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8432esac
8433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; } &&
8438 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06008439 { (case "(($ac_try" in
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8442esac
8443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008445 ac_status=$?
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; }; then
8448
8449aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8450}'`
8451# Check for a 64-bit object if we didn't find anything.
8452if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8453}'`; fi
8454else
8455 echo "$as_me: failed program was:" >&5
8456sed 's/^/| /' conftest.$ac_ext >&5
8457
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06008458
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008459fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06008460
8461rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008462 conftest$ac_exeext conftest.$ac_ext
8463if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8464
8465 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8466 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8467 else
8468 if test "$host_cpu" = ia64; then
8469 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8470 allow_undefined_flag="-z nodefs"
8471 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"
8472 else
8473 # Determine the default libpath from the value encoded in an empty executable.
8474 cat >conftest.$ac_ext <<_ACEOF
8475/* confdefs.h. */
8476_ACEOF
8477cat confdefs.h >>conftest.$ac_ext
8478cat >>conftest.$ac_ext <<_ACEOF
8479/* end confdefs.h. */
8480
8481int
8482main ()
8483{
8484
8485 ;
8486 return 0;
8487}
8488_ACEOF
8489rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06008490if { (ac_try="$ac_link"
8491case "(($ac_try" in
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8494esac
8495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008497 ac_status=$?
8498 grep -v '^ *+' conftest.er1 >conftest.err
8499 rm -f conftest.er1
8500 cat conftest.err >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06008503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8504 { (case "(($ac_try" in
8505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506 *) ac_try_echo=$ac_try;;
8507esac
8508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8509 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008510 ac_status=$?
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; } &&
8513 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06008514 { (case "(($ac_try" in
8515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 *) ac_try_echo=$ac_try;;
8517esac
8518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008520 ac_status=$?
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); }; }; then
8523
8524aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8525}'`
8526# Check for a 64-bit object if we didn't find anything.
8527if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8528}'`; fi
8529else
8530 echo "$as_me: failed program was:" >&5
8531sed 's/^/| /' conftest.$ac_ext >&5
8532
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06008533
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008534fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06008535
8536rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008537 conftest$ac_exeext conftest.$ac_ext
8538if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8539
8540 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8541 # Warning - without using the other run time loading flags,
8542 # -berok will link without error, but may produce a broken library.
8543 no_undefined_flag=' ${wl}-bernotok'
8544 allow_undefined_flag=' ${wl}-berok'
8545 # Exported symbols can be pulled into shared objects from archives
8546 whole_archive_flag_spec='$convenience'
8547 archive_cmds_need_lc=yes
8548 # This is similar to how AIX traditionally builds its shared libraries.
8549 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'
8550 fi
8551 fi
8552 ;;
8553
8554 amigaos*)
8555 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)'
8556 hardcode_libdir_flag_spec='-L$libdir'
8557 hardcode_minus_L=yes
8558 # see comment about different semantics on the GNU ld section
8559 ld_shlibs=no
8560 ;;
8561
8562 bsdi[45]*)
8563 export_dynamic_flag_spec=-rdynamic
8564 ;;
8565
8566 cygwin* | mingw* | pw32*)
8567 # When not using gcc, we currently assume that we are using
8568 # Microsoft Visual C++.
8569 # hardcode_libdir_flag_spec is actually meaningless, as there is
8570 # no search path for DLLs.
8571 hardcode_libdir_flag_spec=' '
8572 allow_undefined_flag=unsupported
8573 # Tell ltmain to make .lib files, not .a files.
8574 libext=lib
8575 # Tell ltmain to make .dll files, not .so files.
8576 shrext_cmds=".dll"
8577 # FIXME: Setting linknames here is a bad hack.
8578 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8579 # The linker will automatically build a .lib file if we build a DLL.
8580 old_archive_From_new_cmds='true'
8581 # FIXME: Should let the user specify the lib program.
8582 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8583 fix_srcfile_path='`cygpath -w "$srcfile"`'
8584 enable_shared_with_static_runtimes=yes
8585 ;;
8586
8587 darwin* | rhapsody*)
8588 case $host_os in
8589 rhapsody* | darwin1.[012])
8590 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8591 ;;
8592 *) # Darwin 1.3 on
8593 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8594 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8595 else
8596 case ${MACOSX_DEPLOYMENT_TARGET} in
8597 10.[012])
8598 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8599 ;;
8600 10.*)
8601 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8602 ;;
8603 esac
8604 fi
8605 ;;
8606 esac
8607 archive_cmds_need_lc=no
8608 hardcode_direct=no
8609 hardcode_automatic=yes
8610 hardcode_shlibpath_var=unsupported
8611 whole_archive_flag_spec=''
8612 link_all_deplibs=yes
8613 if test "$GCC" = yes ; then
8614 output_verbose_link_cmd='echo'
8615 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8616 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8617 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8618 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8619 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8620 else
8621 case $cc_basename in
8622 xlc*)
8623 output_verbose_link_cmd='echo'
8624 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8625 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8626 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8627 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8628 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8629 ;;
8630 *)
8631 ld_shlibs=no
8632 ;;
8633 esac
8634 fi
8635 ;;
8636
8637 dgux*)
8638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8639 hardcode_libdir_flag_spec='-L$libdir'
8640 hardcode_shlibpath_var=no
8641 ;;
8642
8643 freebsd1*)
8644 ld_shlibs=no
8645 ;;
8646
8647 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8648 # support. Future versions do this automatically, but an explicit c++rt0.o
8649 # does not break anything, and helps significantly (at the cost of a little
8650 # extra space).
8651 freebsd2.2*)
8652 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8653 hardcode_libdir_flag_spec='-R$libdir'
8654 hardcode_direct=yes
8655 hardcode_shlibpath_var=no
8656 ;;
8657
8658 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8659 freebsd2*)
8660 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8661 hardcode_direct=yes
8662 hardcode_minus_L=yes
8663 hardcode_shlibpath_var=no
8664 ;;
8665
8666 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8667 freebsd* | kfreebsd*-gnu | dragonfly*)
8668 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8669 hardcode_libdir_flag_spec='-R$libdir'
8670 hardcode_direct=yes
8671 hardcode_shlibpath_var=no
8672 ;;
8673
8674 hpux9*)
8675 if test "$GCC" = yes; then
8676 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'
8677 else
8678 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'
8679 fi
8680 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8681 hardcode_libdir_separator=:
8682 hardcode_direct=yes
8683
8684 # hardcode_minus_L: Not really in the search PATH,
8685 # but as the default location of the library.
8686 hardcode_minus_L=yes
8687 export_dynamic_flag_spec='${wl}-E'
8688 ;;
8689
8690 hpux10*)
8691 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8692 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8693 else
8694 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8695 fi
8696 if test "$with_gnu_ld" = no; then
8697 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8698 hardcode_libdir_separator=:
8699
8700 hardcode_direct=yes
8701 export_dynamic_flag_spec='${wl}-E'
8702
8703 # hardcode_minus_L: Not really in the search PATH,
8704 # but as the default location of the library.
8705 hardcode_minus_L=yes
8706 fi
8707 ;;
8708
8709 hpux11*)
8710 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8711 case $host_cpu in
8712 hppa*64*)
8713 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8714 ;;
8715 ia64*)
8716 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8717 ;;
8718 *)
8719 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8720 ;;
8721 esac
8722 else
8723 case $host_cpu in
8724 hppa*64*)
8725 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8726 ;;
8727 ia64*)
8728 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8729 ;;
8730 *)
8731 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8732 ;;
8733 esac
8734 fi
8735 if test "$with_gnu_ld" = no; then
8736 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8737 hardcode_libdir_separator=:
8738
8739 case $host_cpu in
8740 hppa*64*|ia64*)
8741 hardcode_libdir_flag_spec_ld='+b $libdir'
8742 hardcode_direct=no
8743 hardcode_shlibpath_var=no
8744 ;;
8745 *)
8746 hardcode_direct=yes
8747 export_dynamic_flag_spec='${wl}-E'
8748
8749 # hardcode_minus_L: Not really in the search PATH,
8750 # but as the default location of the library.
8751 hardcode_minus_L=yes
8752 ;;
8753 esac
8754 fi
8755 ;;
8756
8757 irix5* | irix6* | nonstopux*)
8758 if test "$GCC" = yes; then
8759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8760 else
8761 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8762 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8763 fi
8764 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8765 hardcode_libdir_separator=:
8766 link_all_deplibs=yes
8767 ;;
8768
8769 netbsd*)
8770 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8772 else
8773 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8774 fi
8775 hardcode_libdir_flag_spec='-R$libdir'
8776 hardcode_direct=yes
8777 hardcode_shlibpath_var=no
8778 ;;
8779
8780 newsos6)
8781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782 hardcode_direct=yes
8783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8784 hardcode_libdir_separator=:
8785 hardcode_shlibpath_var=no
8786 ;;
8787
8788 openbsd*)
8789 hardcode_direct=yes
8790 hardcode_shlibpath_var=no
8791 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8792 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8793 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8794 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8795 export_dynamic_flag_spec='${wl}-E'
8796 else
8797 case $host_os in
8798 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8799 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8800 hardcode_libdir_flag_spec='-R$libdir'
8801 ;;
8802 *)
8803 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8804 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8805 ;;
8806 esac
8807 fi
8808 ;;
8809
8810 os2*)
8811 hardcode_libdir_flag_spec='-L$libdir'
8812 hardcode_minus_L=yes
8813 allow_undefined_flag=unsupported
8814 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'
8815 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8816 ;;
8817
8818 osf3*)
8819 if test "$GCC" = yes; then
8820 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8821 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8822 else
8823 allow_undefined_flag=' -expect_unresolved \*'
8824 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8825 fi
8826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8827 hardcode_libdir_separator=:
8828 ;;
8829
8830 osf4* | osf5*) # as osf3* with the addition of -msym flag
8831 if test "$GCC" = yes; then
8832 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8833 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8835 else
8836 allow_undefined_flag=' -expect_unresolved \*'
8837 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8838 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8839 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8840
8841 # Both c and cxx compiler support -rpath directly
8842 hardcode_libdir_flag_spec='-rpath $libdir'
8843 fi
8844 hardcode_libdir_separator=:
8845 ;;
8846
8847 solaris*)
8848 no_undefined_flag=' -z text'
8849 if test "$GCC" = yes; then
8850 wlarc='${wl}'
8851 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8852 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8853 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8854 else
8855 wlarc=''
8856 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8857 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8858 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8859 fi
8860 hardcode_libdir_flag_spec='-R$libdir'
8861 hardcode_shlibpath_var=no
8862 case $host_os in
8863 solaris2.[0-5] | solaris2.[0-5].*) ;;
8864 *)
8865 # The compiler driver will combine linker options so we
8866 # cannot just pass the convience library names through
8867 # without $wl, iff we do not link with $LD.
8868 # Luckily, gcc supports the same syntax we need for Sun Studio.
8869 # Supported since Solaris 2.6 (maybe 2.5.1?)
8870 case $wlarc in
8871 '')
8872 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8873 *)
8874 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8875 esac ;;
8876 esac
8877 link_all_deplibs=yes
8878 ;;
8879
8880 sunos4*)
8881 if test "x$host_vendor" = xsequent; then
8882 # Use $CC to link under sequent, because it throws in some extra .o
8883 # files that make .init and .fini sections work.
8884 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8885 else
8886 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8887 fi
8888 hardcode_libdir_flag_spec='-L$libdir'
8889 hardcode_direct=yes
8890 hardcode_minus_L=yes
8891 hardcode_shlibpath_var=no
8892 ;;
8893
8894 sysv4)
8895 case $host_vendor in
8896 sni)
8897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898 hardcode_direct=yes # is this really true???
8899 ;;
8900 siemens)
8901 ## LD is ld it makes a PLAMLIB
8902 ## CC just makes a GrossModule.
8903 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8904 reload_cmds='$CC -r -o $output$reload_objs'
8905 hardcode_direct=no
8906 ;;
8907 motorola)
8908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8909 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8910 ;;
8911 esac
8912 runpath_var='LD_RUN_PATH'
8913 hardcode_shlibpath_var=no
8914 ;;
8915
8916 sysv4.3*)
8917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8918 hardcode_shlibpath_var=no
8919 export_dynamic_flag_spec='-Bexport'
8920 ;;
8921
8922 sysv4*MP*)
8923 if test -d /usr/nec; then
8924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8925 hardcode_shlibpath_var=no
8926 runpath_var=LD_RUN_PATH
8927 hardcode_runpath_var=yes
8928 ld_shlibs=yes
8929 fi
8930 ;;
8931
8932 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8933 no_undefined_flag='${wl}-z,text'
8934 archive_cmds_need_lc=no
8935 hardcode_shlibpath_var=no
8936 runpath_var='LD_RUN_PATH'
8937
8938 if test "$GCC" = yes; then
8939 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8940 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8941 else
8942 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8943 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8944 fi
8945 ;;
8946
8947 sysv5* | sco3.2v5* | sco5v6*)
8948 # Note: We can NOT use -z defs as we might desire, because we do not
8949 # link with -lc, and that would cause any symbols used from libc to
8950 # always be unresolved, which means just about no library would
8951 # ever link correctly. If we're not using GNU ld we use -z text
8952 # though, which does catch some bad symbols but isn't as heavy-handed
8953 # as -z defs.
8954 no_undefined_flag='${wl}-z,text'
8955 allow_undefined_flag='${wl}-z,nodefs'
8956 archive_cmds_need_lc=no
8957 hardcode_shlibpath_var=no
8958 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8959 hardcode_libdir_separator=':'
8960 link_all_deplibs=yes
8961 export_dynamic_flag_spec='${wl}-Bexport'
8962 runpath_var='LD_RUN_PATH'
8963
8964 if test "$GCC" = yes; then
8965 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8966 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8967 else
8968 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8969 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8970 fi
8971 ;;
8972
8973 uts4*)
8974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8975 hardcode_libdir_flag_spec='-L$libdir'
8976 hardcode_shlibpath_var=no
8977 ;;
8978
8979 *)
8980 ld_shlibs=no
8981 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008982 esac
8983 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008984
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06008985{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8986echo "${ECHO_T}$ld_shlibs" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008987test "$ld_shlibs" = no && can_build_shared=no
8988
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008989#
8990# Do we need to explicitly link libc?
8991#
8992case "x$archive_cmds_need_lc" in
8993x|xyes)
8994 # Assume -lc should be added
8995 archive_cmds_need_lc=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008996
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008997 if test "$enable_shared" = yes && test "$GCC" = yes; then
8998 case $archive_cmds in
8999 *'~'*)
9000 # FIXME: we may have to deal with multi-command sequences.
9001 ;;
9002 '$CC '*)
9003 # Test whether the compiler implicitly links with -lc since on some
9004 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9005 # to ld, don't add -lc before -lgcc.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009006 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9007echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009008 $rm conftest*
9009 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9010
9011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9012 (eval $ac_compile) 2>&5
9013 ac_status=$?
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); } 2>conftest.err; then
9016 soname=conftest
9017 lib=conftest
9018 libobjs=conftest.$ac_objext
9019 deplibs=
9020 wl=$lt_prog_compiler_wl
9021 pic_flag=$lt_prog_compiler_pic
9022 compiler_flags=-v
9023 linker_flags=-v
9024 verstring=
9025 output_objdir=.
9026 libname=conftest
9027 lt_save_allow_undefined_flag=$allow_undefined_flag
9028 allow_undefined_flag=
9029 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9030 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9031 ac_status=$?
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); }
9034 then
9035 archive_cmds_need_lc=no
9036 else
9037 archive_cmds_need_lc=yes
9038 fi
9039 allow_undefined_flag=$lt_save_allow_undefined_flag
9040 else
9041 cat conftest.err 1>&5
9042 fi
9043 $rm conftest*
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009044 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9045echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009046 ;;
9047 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009048 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009049 ;;
9050esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009051
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009052{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9053echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009054library_names_spec=
9055libname_spec='lib$name'
9056soname_spec=
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009057shrext_cmds=".so"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009058postinstall_cmds=
9059postuninstall_cmds=
9060finish_cmds=
9061finish_eval=
9062shlibpath_var=
9063shlibpath_overrides_runpath=unknown
9064version_type=none
9065dynamic_linker="$host_os ld.so"
9066sys_lib_dlsearch_path_spec="/lib /usr/lib"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009067if test "$GCC" = yes; then
9068 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9069 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9070 # if the path contains ";" then we assume it to be the separator
9071 # otherwise default to the standard path separator (i.e. ":") - it is
9072 # assumed that no part of a normal pathname contains ";" but that should
9073 # okay in the real world where ";" in dirpaths is itself problematic.
9074 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9075 else
9076 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9077 fi
9078else
9079 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9080fi
9081need_lib_prefix=unknown
9082hardcode_into_libs=no
9083
9084# when you set need_version to no, make sure it does not cause -set_version
9085# flags to be left without arguments
9086need_version=unknown
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009087
9088case $host_os in
9089aix3*)
9090 version_type=linux
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009091 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009092 shlibpath_var=LIBPATH
9093
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009094 # AIX 3 has no versioning support, so we append a major version to the name.
9095 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009096 ;;
9097
9098aix4* | aix5*)
9099 version_type=linux
9100 need_lib_prefix=no
9101 need_version=no
9102 hardcode_into_libs=yes
9103 if test "$host_cpu" = ia64; then
9104 # AIX 5 supports IA64
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009105 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009106 shlibpath_var=LD_LIBRARY_PATH
9107 else
9108 # With GCC up to 2.95.x, collect2 would create an import file
9109 # for dependence libraries. The import file would start with
9110 # the line `#! .'. This would cause the generated library to
9111 # depend on `.', always an invalid library. This was fixed in
9112 # development snapshots of GCC prior to 3.0.
9113 case $host_os in
9114 aix4 | aix4.[01] | aix4.[01].*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009115 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9116 echo ' yes '
9117 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9118 :
9119 else
9120 can_build_shared=no
9121 fi
9122 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009123 esac
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009124 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9125 # soname into executable. Probably we can add versioning support to
9126 # collect2, so additional links can be useful in future.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009127 if test "$aix_use_runtimelinking" = yes; then
9128 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9129 # instead of lib<name>.a to let people know that these are not
9130 # typical AIX shared libraries.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009132 else
9133 # We preserve .a as extension for shared libraries through AIX4.2
9134 # and later when we are not doing run time linking.
9135 library_names_spec='${libname}${release}.a $libname.a'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009136 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009137 fi
9138 shlibpath_var=LIBPATH
9139 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009140 ;;
9141
9142amigaos*)
9143 library_names_spec='$libname.ixlibrary $libname.a'
9144 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009145 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'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009146 ;;
9147
9148beos*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009149 library_names_spec='${libname}${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009150 dynamic_linker="$host_os ld.so"
9151 shlibpath_var=LIBRARY_PATH
9152 ;;
9153
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009154bsdi[45]*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009155 version_type=linux
9156 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9158 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009159 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9160 shlibpath_var=LD_LIBRARY_PATH
9161 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9162 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009163 # the default ld.so.conf also contains /usr/contrib/lib and
9164 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9165 # libtool to hard-code these into programs
9166 ;;
9167
9168cygwin* | mingw* | pw32*)
9169 version_type=windows
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009170 shrext_cmds=".dll"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009171 need_version=no
9172 need_lib_prefix=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009173
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009174 case $GCC,$host_os in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009175 yes,cygwin* | yes,mingw* | yes,pw32*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009176 library_names_spec='$libname.dll.a'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009177 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9178 postinstall_cmds='base_file=`basename \${file}`~
9179 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009180 dldir=$destdir/`dirname \$dlpath`~
9181 test -d \$dldir || mkdir -p \$dldir~
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009182 $install_prog $dir/$dlname \$dldir/$dlname~
9183 chmod a+x \$dldir/$dlname'
9184 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009185 dlpath=$dir/\$dldll~
9186 $rm \$dlpath'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009187 shlibpath_overrides_runpath=yes
9188
9189 case $host_os in
9190 cygwin*)
9191 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9192 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9193 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9194 ;;
9195 mingw*)
9196 # MinGW DLLs use traditional 'lib' prefix
9197 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9198 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9199 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9200 # It is most probably a Windows format PATH printed by
9201 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9202 # path with ; separators, and with drive letters. We can handle the
9203 # drive letters (cygwin fileutils understands them), so leave them,
9204 # especially as we might pass files found there to a mingw objdump,
9205 # which wouldn't understand a cygwinified path. Ahh.
9206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9207 else
9208 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9209 fi
9210 ;;
9211 pw32*)
9212 # pw32 DLLs use 'pw' prefix rather than 'lib'
9213 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9214 ;;
9215 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009216 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009217
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009218 *)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009219 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009220 ;;
9221 esac
9222 dynamic_linker='Win32 ld.exe'
9223 # FIXME: first we should search . and the directory the executable is in
9224 shlibpath_var=PATH
9225 ;;
9226
9227darwin* | rhapsody*)
9228 dynamic_linker="$host_os dyld"
9229 version_type=darwin
9230 need_lib_prefix=no
9231 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009232 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9233 soname_spec='${libname}${release}${major}$shared_ext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009234 shlibpath_overrides_runpath=yes
9235 shlibpath_var=DYLD_LIBRARY_PATH
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009236 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9237 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9238 if test "$GCC" = yes; then
9239 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9240 else
9241 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9242 fi
9243 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9244 ;;
9245
9246dgux*)
9247 version_type=linux
9248 need_lib_prefix=no
9249 need_version=no
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9251 soname_spec='${libname}${release}${shared_ext}$major'
9252 shlibpath_var=LD_LIBRARY_PATH
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009253 ;;
9254
9255freebsd1*)
9256 dynamic_linker=no
9257 ;;
9258
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009259kfreebsd*-gnu)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009260 version_type=linux
9261 need_lib_prefix=no
9262 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9264 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009265 shlibpath_var=LD_LIBRARY_PATH
9266 shlibpath_overrides_runpath=no
9267 hardcode_into_libs=yes
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009268 dynamic_linker='GNU ld.so'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009269 ;;
9270
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009271freebsd* | dragonfly*)
9272 # DragonFly does not have aout. When/if they implement a new
9273 # versioning mechanism, adjust this.
9274 if test -x /usr/bin/objformat; then
9275 objformat=`/usr/bin/objformat`
9276 else
9277 case $host_os in
9278 freebsd[123]*) objformat=aout ;;
9279 *) objformat=elf ;;
9280 esac
9281 fi
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -05009282 version_type=freebsd-$objformat
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009283 case $version_type in
9284 freebsd-elf*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009286 need_version=no
9287 need_lib_prefix=no
9288 ;;
9289 freebsd-*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009291 need_version=yes
9292 ;;
9293 esac
9294 shlibpath_var=LD_LIBRARY_PATH
9295 case $host_os in
9296 freebsd2*)
9297 shlibpath_overrides_runpath=yes
9298 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009299 freebsd3.[01]* | freebsdelf3.[01]*)
9300 shlibpath_overrides_runpath=yes
9301 hardcode_into_libs=yes
9302 ;;
9303 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9304 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009305 shlibpath_overrides_runpath=no
9306 hardcode_into_libs=yes
9307 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009308 freebsd*) # from 4.6 on
9309 shlibpath_overrides_runpath=yes
9310 hardcode_into_libs=yes
9311 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009312 esac
9313 ;;
9314
9315gnu*)
9316 version_type=linux
9317 need_lib_prefix=no
9318 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9320 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009321 shlibpath_var=LD_LIBRARY_PATH
9322 hardcode_into_libs=yes
9323 ;;
9324
9325hpux9* | hpux10* | hpux11*)
9326 # Give a soname corresponding to the major version so that dld.sl refuses to
9327 # link against other versions.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009328 version_type=sunos
9329 need_lib_prefix=no
9330 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009331 case $host_cpu in
9332 ia64*)
9333 shrext_cmds='.so'
9334 hardcode_into_libs=yes
9335 dynamic_linker="$host_os dld.so"
9336 shlibpath_var=LD_LIBRARY_PATH
9337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339 soname_spec='${libname}${release}${shared_ext}$major'
9340 if test "X$HPUX_IA64_MODE" = X32; then
9341 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9342 else
9343 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9344 fi
9345 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9346 ;;
9347 hppa*64*)
9348 shrext_cmds='.sl'
9349 hardcode_into_libs=yes
9350 dynamic_linker="$host_os dld.sl"
9351 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9354 soname_spec='${libname}${release}${shared_ext}$major'
9355 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9356 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9357 ;;
9358 *)
9359 shrext_cmds='.sl'
9360 dynamic_linker="$host_os dld.sl"
9361 shlibpath_var=SHLIB_PATH
9362 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364 soname_spec='${libname}${release}${shared_ext}$major'
9365 ;;
9366 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009367 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9368 postinstall_cmds='chmod 555 $lib'
9369 ;;
9370
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009371interix3*)
9372 version_type=linux
9373 need_lib_prefix=no
9374 need_version=no
9375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9376 soname_spec='${libname}${release}${shared_ext}$major'
9377 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9378 shlibpath_var=LD_LIBRARY_PATH
9379 shlibpath_overrides_runpath=no
9380 hardcode_into_libs=yes
9381 ;;
9382
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009383irix5* | irix6* | nonstopux*)
9384 case $host_os in
9385 nonstopux*) version_type=nonstopux ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009386 *)
9387 if test "$lt_cv_prog_gnu_ld" = yes; then
9388 version_type=linux
9389 else
9390 version_type=irix
9391 fi ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009392 esac
9393 need_lib_prefix=no
9394 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009395 soname_spec='${libname}${release}${shared_ext}$major'
9396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009397 case $host_os in
9398 irix5* | nonstopux*)
9399 libsuff= shlibsuff=
9400 ;;
9401 *)
9402 case $LD in # libtool.m4 will add one of these switches to LD
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009403 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9404 libsuff= shlibsuff= libmagic=32-bit;;
9405 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9406 libsuff=32 shlibsuff=N32 libmagic=N32;;
9407 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9408 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009409 *) libsuff= shlibsuff= libmagic=never-match;;
9410 esac
9411 ;;
9412 esac
9413 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9414 shlibpath_overrides_runpath=no
9415 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9416 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009417 hardcode_into_libs=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009418 ;;
9419
9420# No shared lib support for Linux oldld, aout, or coff.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009421linux*oldld* | linux*aout* | linux*coff*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009422 dynamic_linker=no
9423 ;;
9424
9425# This must be Linux ELF.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009426linux*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009427 version_type=linux
9428 need_lib_prefix=no
9429 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9433 shlibpath_var=LD_LIBRARY_PATH
9434 shlibpath_overrides_runpath=no
9435 # This implies no fast_install, which is unacceptable.
9436 # Some rework will be needed to allow for fast_install
9437 # before this can be enabled.
9438 hardcode_into_libs=yes
9439
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009440 # Append ld.so.conf contents to the search path
9441 if test -f /etc/ld.so.conf; then
9442 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9443 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9444 fi
9445
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009446 # We used to test for /lib/ld.so.1 and disable shared libraries on
9447 # powerpc, because MkLinux only supported shared libraries with the
9448 # GNU dynamic linker. Since this was broken with cross compilers,
9449 # most powerpc-linux boxes support dynamic linking these days and
9450 # people can always --disable-shared, the test was removed, and we
9451 # assume the GNU/Linux dynamic linker is in use.
9452 dynamic_linker='GNU/Linux ld.so'
9453 ;;
9454
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009455knetbsd*-gnu)
9456 version_type=linux
9457 need_lib_prefix=no
9458 need_version=no
9459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9460 soname_spec='${libname}${release}${shared_ext}$major'
9461 shlibpath_var=LD_LIBRARY_PATH
9462 shlibpath_overrides_runpath=no
9463 hardcode_into_libs=yes
9464 dynamic_linker='GNU ld.so'
9465 ;;
9466
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009467netbsd*)
9468 version_type=sunos
9469 need_lib_prefix=no
9470 need_version=no
9471 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9474 dynamic_linker='NetBSD (a.out) ld.so'
9475 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9477 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009478 dynamic_linker='NetBSD ld.elf_so'
9479 fi
9480 shlibpath_var=LD_LIBRARY_PATH
9481 shlibpath_overrides_runpath=yes
9482 hardcode_into_libs=yes
9483 ;;
9484
9485newsos6)
9486 version_type=linux
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488 shlibpath_var=LD_LIBRARY_PATH
9489 shlibpath_overrides_runpath=yes
9490 ;;
9491
9492nto-qnx*)
9493 version_type=linux
9494 need_lib_prefix=no
9495 need_version=no
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9497 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009498 shlibpath_var=LD_LIBRARY_PATH
9499 shlibpath_overrides_runpath=yes
9500 ;;
9501
9502openbsd*)
9503 version_type=sunos
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009504 sys_lib_dlsearch_path_spec="/usr/lib"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009505 need_lib_prefix=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009506 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9507 case $host_os in
9508 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9509 *) need_version=no ;;
9510 esac
9511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9513 shlibpath_var=LD_LIBRARY_PATH
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009514 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009515 case $host_os in
9516 openbsd2.[89] | openbsd2.[89].*)
9517 shlibpath_overrides_runpath=no
9518 ;;
9519 *)
9520 shlibpath_overrides_runpath=yes
9521 ;;
9522 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009523 else
9524 shlibpath_overrides_runpath=yes
9525 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009526 ;;
9527
9528os2*)
9529 libname_spec='$name'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009530 shrext_cmds=".dll"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009531 need_lib_prefix=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009532 library_names_spec='$libname${shared_ext} $libname.a'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009533 dynamic_linker='OS/2 ld.exe'
9534 shlibpath_var=LIBPATH
9535 ;;
9536
9537osf3* | osf4* | osf5*)
9538 version_type=osf
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009539 need_lib_prefix=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009540 need_version=no
9541 soname_spec='${libname}${release}${shared_ext}$major'
9542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009543 shlibpath_var=LD_LIBRARY_PATH
9544 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9545 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009546 ;;
9547
9548solaris*)
9549 version_type=linux
9550 need_lib_prefix=no
9551 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009554 shlibpath_var=LD_LIBRARY_PATH
9555 shlibpath_overrides_runpath=yes
9556 hardcode_into_libs=yes
9557 # ldd complains unless libraries are executable
9558 postinstall_cmds='chmod +x $lib'
9559 ;;
9560
9561sunos4*)
9562 version_type=sunos
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009564 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9565 shlibpath_var=LD_LIBRARY_PATH
9566 shlibpath_overrides_runpath=yes
9567 if test "$with_gnu_ld" = yes; then
9568 need_lib_prefix=no
9569 fi
9570 need_version=yes
9571 ;;
9572
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009573sysv4 | sysv4.3*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009574 version_type=linux
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009577 shlibpath_var=LD_LIBRARY_PATH
9578 case $host_vendor in
9579 sni)
9580 shlibpath_overrides_runpath=no
9581 need_lib_prefix=no
9582 export_dynamic_flag_spec='${wl}-Blargedynsym'
9583 runpath_var=LD_RUN_PATH
9584 ;;
9585 siemens)
9586 need_lib_prefix=no
9587 ;;
9588 motorola)
9589 need_lib_prefix=no
9590 need_version=no
9591 shlibpath_overrides_runpath=no
9592 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9593 ;;
9594 esac
9595 ;;
9596
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009597sysv4*MP*)
9598 if test -d /usr/nec ;then
9599 version_type=linux
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009600 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9601 soname_spec='$libname${shared_ext}.$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009602 shlibpath_var=LD_LIBRARY_PATH
9603 fi
9604 ;;
9605
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009606sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9607 version_type=freebsd-elf
9608 need_lib_prefix=no
9609 need_version=no
9610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9611 soname_spec='${libname}${release}${shared_ext}$major'
9612 shlibpath_var=LD_LIBRARY_PATH
9613 hardcode_into_libs=yes
9614 if test "$with_gnu_ld" = yes; then
9615 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9616 shlibpath_overrides_runpath=no
9617 else
9618 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9619 shlibpath_overrides_runpath=yes
9620 case $host_os in
9621 sco3.2v5*)
9622 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9623 ;;
9624 esac
9625 fi
9626 sys_lib_dlsearch_path_spec='/usr/lib'
9627 ;;
9628
9629uts4*)
9630 version_type=linux
9631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9632 soname_spec='${libname}${release}${shared_ext}$major'
9633 shlibpath_var=LD_LIBRARY_PATH
9634 ;;
9635
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009636*)
9637 dynamic_linker=no
9638 ;;
9639esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009640{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9641echo "${ECHO_T}$dynamic_linker" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009642test "$dynamic_linker" = no && can_build_shared=no
9643
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009644variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9645if test "$GCC" = yes; then
9646 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9647fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009648
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009649{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9650echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009651hardcode_action=
9652if test -n "$hardcode_libdir_flag_spec" || \
9653 test -n "$runpath_var" || \
9654 test "X$hardcode_automatic" = "Xyes" ; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009655
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009656 # We can hardcode non-existant directories.
9657 if test "$hardcode_direct" != no &&
9658 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9659 # have to relink, otherwise we might link with an installed library
9660 # when we should be linking with a yet-to-be-installed one
9661 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9662 test "$hardcode_minus_L" != no; then
9663 # Linking always hardcodes the temporary library directory.
9664 hardcode_action=relink
9665 else
9666 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9667 hardcode_action=immediate
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009668 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009669else
9670 # We cannot hardcode anything, or else we can only hardcode existing
9671 # directories.
9672 hardcode_action=unsupported
9673fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009674{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9675echo "${ECHO_T}$hardcode_action" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009676
9677if test "$hardcode_action" = relink; then
9678 # Fast installation is not supported
9679 enable_fast_install=no
9680elif test "$shlibpath_overrides_runpath" = yes ||
9681 test "$enable_shared" = no; then
9682 # Fast installation is not necessary
9683 enable_fast_install=needless
9684fi
9685
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009686striplib=
9687old_striplib=
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009688{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9689echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009690if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9691 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9692 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009693 { echo "$as_me:$LINENO: result: yes" >&5
9694echo "${ECHO_T}yes" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009695else
9696# FIXME - insert some real tests, host_os isn't really good enough
9697 case $host_os in
9698 darwin*)
9699 if test -n "$STRIP" ; then
9700 striplib="$STRIP -x"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009701 { echo "$as_me:$LINENO: result: yes" >&5
9702echo "${ECHO_T}yes" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009703 else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009704 { echo "$as_me:$LINENO: result: no" >&5
9705echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009706fi
9707 ;;
9708 *)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009709 { echo "$as_me:$LINENO: result: no" >&5
9710echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009711 ;;
9712 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009713fi
9714
9715if test "x$enable_dlopen" != xyes; then
9716 enable_dlopen=unknown
9717 enable_dlopen_self=unknown
9718 enable_dlopen_self_static=unknown
9719else
9720 lt_cv_dlopen=no
9721 lt_cv_dlopen_libs=
9722
9723 case $host_os in
9724 beos*)
9725 lt_cv_dlopen="load_add_on"
9726 lt_cv_dlopen_libs=
9727 lt_cv_dlopen_self=yes
9728 ;;
9729
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009730 mingw* | pw32*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009731 lt_cv_dlopen="LoadLibrary"
9732 lt_cv_dlopen_libs=
9733 ;;
9734
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009735 cygwin*)
9736 lt_cv_dlopen="dlopen"
9737 lt_cv_dlopen_libs=
9738 ;;
9739
9740 darwin*)
9741 # if libdl is installed we need to link against it
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009742 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9743echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009744if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9746else
9747 ac_check_lib_save_LIBS=$LIBS
9748LIBS="-ldl $LIBS"
9749cat >conftest.$ac_ext <<_ACEOF
9750/* confdefs.h. */
9751_ACEOF
9752cat confdefs.h >>conftest.$ac_ext
9753cat >>conftest.$ac_ext <<_ACEOF
9754/* end confdefs.h. */
9755
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009756/* Override any GCC internal prototype to avoid an error.
9757 Use char because int might match the return type of a GCC
9758 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009759#ifdef __cplusplus
9760extern "C"
9761#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009762char dlopen ();
9763int
9764main ()
9765{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009766return dlopen ();
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009767 ;
9768 return 0;
9769}
9770_ACEOF
9771rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009772if { (ac_try="$ac_link"
9773case "(($ac_try" in
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9776esac
9777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009779 ac_status=$?
9780 grep -v '^ *+' conftest.er1 >conftest.err
9781 rm -f conftest.er1
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9786 { (case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9789esac
9790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009792 ac_status=$?
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; } &&
9795 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009796 { (case "(($ac_try" in
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9799esac
9800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009802 ac_status=$?
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; }; then
9805 ac_cv_lib_dl_dlopen=yes
9806else
9807 echo "$as_me: failed program was:" >&5
9808sed 's/^/| /' conftest.$ac_ext >&5
9809
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009810 ac_cv_lib_dl_dlopen=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009811fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009812
9813rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009814 conftest$ac_exeext conftest.$ac_ext
9815LIBS=$ac_check_lib_save_LIBS
9816fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009817{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9818echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009819if test $ac_cv_lib_dl_dlopen = yes; then
9820 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9821else
9822
9823 lt_cv_dlopen="dyld"
9824 lt_cv_dlopen_libs=
9825 lt_cv_dlopen_self=yes
9826
9827fi
9828
9829 ;;
9830
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009831 *)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009832 { echo "$as_me:$LINENO: checking for shl_load" >&5
9833echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009834if test "${ac_cv_func_shl_load+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9836else
9837 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009838/* confdefs.h. */
9839_ACEOF
9840cat confdefs.h >>conftest.$ac_ext
9841cat >>conftest.$ac_ext <<_ACEOF
9842/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009843/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9845#define shl_load innocuous_shl_load
9846
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009847/* System header to define __stub macros and hopefully few prototypes,
9848 which can conflict with char shl_load (); below.
9849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9850 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009851
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009852#ifdef __STDC__
9853# include <limits.h>
9854#else
9855# include <assert.h>
9856#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009857
9858#undef shl_load
9859
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009860/* Override any GCC internal prototype to avoid an error.
9861 Use char because int might match the return type of a GCC
9862 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009863#ifdef __cplusplus
9864extern "C"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009865#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009866char shl_load ();
9867/* The GNU C library defines this for functions which it implements
9868 to always fail with ENOSYS. Some functions are actually named
9869 something starting with __ and the normal name is an alias. */
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009870#if defined __stub_shl_load || defined __stub___shl_load
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009871choke me
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009872#endif
9873
9874int
9875main ()
9876{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009877return shl_load ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009878 ;
9879 return 0;
9880}
9881_ACEOF
9882rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009883if { (ac_try="$ac_link"
9884case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9887esac
9888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009890 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9897 { (case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9900esac
9901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009907 { (case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9910esac
9911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 ac_cv_func_shl_load=yes
9917else
9918 echo "$as_me: failed program was:" >&5
9919sed 's/^/| /' conftest.$ac_ext >&5
9920
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009921 ac_cv_func_shl_load=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009922fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009923
9924rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009925 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009926fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009927{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9928echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009929if test $ac_cv_func_shl_load = yes; then
9930 lt_cv_dlopen="shl_load"
9931else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009932 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9933echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009934if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9936else
9937 ac_check_lib_save_LIBS=$LIBS
9938LIBS="-ldld $LIBS"
9939cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009940/* confdefs.h. */
9941_ACEOF
9942cat confdefs.h >>conftest.$ac_ext
9943cat >>conftest.$ac_ext <<_ACEOF
9944/* end confdefs.h. */
9945
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009946/* Override any GCC internal prototype to avoid an error.
9947 Use char because int might match the return type of a GCC
9948 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009949#ifdef __cplusplus
9950extern "C"
9951#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009952char shl_load ();
9953int
9954main ()
9955{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009956return shl_load ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009957 ;
9958 return 0;
9959}
9960_ACEOF
9961rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009962if { (ac_try="$ac_link"
9963case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9966esac
9967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009969 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009970 grep -v '^ *+' conftest.er1 >conftest.err
9971 rm -f conftest.er1
9972 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9976 { (case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9979esac
9980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; } &&
9985 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06009986 { (case "(($ac_try" in
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9989esac
9990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009992 ac_status=$?
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 ac_cv_lib_dld_shl_load=yes
9996else
9997 echo "$as_me: failed program was:" >&5
9998sed 's/^/| /' conftest.$ac_ext >&5
9999
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010000 ac_cv_lib_dld_shl_load=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010001fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010002
10003rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010004 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010005LIBS=$ac_check_lib_save_LIBS
10006fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010007{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10008echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010009if test $ac_cv_lib_dld_shl_load = yes; then
10010 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10011else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010012 { echo "$as_me:$LINENO: checking for dlopen" >&5
10013echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010014if test "${ac_cv_func_dlopen+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10016else
10017 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010018/* confdefs.h. */
10019_ACEOF
10020cat confdefs.h >>conftest.$ac_ext
10021cat >>conftest.$ac_ext <<_ACEOF
10022/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010023/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10025#define dlopen innocuous_dlopen
10026
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010027/* System header to define __stub macros and hopefully few prototypes,
10028 which can conflict with char dlopen (); below.
10029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10030 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010031
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010032#ifdef __STDC__
10033# include <limits.h>
10034#else
10035# include <assert.h>
10036#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010037
10038#undef dlopen
10039
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010040/* Override any GCC internal prototype to avoid an error.
10041 Use char because int might match the return type of a GCC
10042 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010043#ifdef __cplusplus
10044extern "C"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010045#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010046char dlopen ();
10047/* The GNU C library defines this for functions which it implements
10048 to always fail with ENOSYS. Some functions are actually named
10049 something starting with __ and the normal name is an alias. */
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010050#if defined __stub_dlopen || defined __stub___dlopen
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010051choke me
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010052#endif
10053
10054int
10055main ()
10056{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010057return dlopen ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010058 ;
10059 return 0;
10060}
10061_ACEOF
10062rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010063if { (ac_try="$ac_link"
10064case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10067esac
10068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010070 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010071 grep -v '^ *+' conftest.er1 >conftest.err
10072 rm -f conftest.er1
10073 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10077 { (case "(($ac_try" in
10078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079 *) ac_try_echo=$ac_try;;
10080esac
10081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010083 ac_status=$?
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; } &&
10086 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010087 { (case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10090esac
10091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010093 ac_status=$?
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; }; then
10096 ac_cv_func_dlopen=yes
10097else
10098 echo "$as_me: failed program was:" >&5
10099sed 's/^/| /' conftest.$ac_ext >&5
10100
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010101 ac_cv_func_dlopen=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010102fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010103
10104rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010105 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010106fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010107{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10108echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010109if test $ac_cv_func_dlopen = yes; then
10110 lt_cv_dlopen="dlopen"
10111else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010112 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10113echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010114if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10115 echo $ECHO_N "(cached) $ECHO_C" >&6
10116else
10117 ac_check_lib_save_LIBS=$LIBS
10118LIBS="-ldl $LIBS"
10119cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010120/* confdefs.h. */
10121_ACEOF
10122cat confdefs.h >>conftest.$ac_ext
10123cat >>conftest.$ac_ext <<_ACEOF
10124/* end confdefs.h. */
10125
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010126/* Override any GCC internal prototype to avoid an error.
10127 Use char because int might match the return type of a GCC
10128 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010129#ifdef __cplusplus
10130extern "C"
10131#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010132char dlopen ();
10133int
10134main ()
10135{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010136return dlopen ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010137 ;
10138 return 0;
10139}
10140_ACEOF
10141rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010142if { (ac_try="$ac_link"
10143case "(($ac_try" in
10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145 *) ac_try_echo=$ac_try;;
10146esac
10147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010149 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010150 grep -v '^ *+' conftest.er1 >conftest.err
10151 rm -f conftest.er1
10152 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10156 { (case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10159esac
10160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010162 ac_status=$?
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; } &&
10165 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010166 { (case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10169esac
10170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010172 ac_status=$?
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); }; }; then
10175 ac_cv_lib_dl_dlopen=yes
10176else
10177 echo "$as_me: failed program was:" >&5
10178sed 's/^/| /' conftest.$ac_ext >&5
10179
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010180 ac_cv_lib_dl_dlopen=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010181fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010182
10183rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010184 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010185LIBS=$ac_check_lib_save_LIBS
10186fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010187{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10188echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010189if test $ac_cv_lib_dl_dlopen = yes; then
10190 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10191else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010192 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10193echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010194if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10195 echo $ECHO_N "(cached) $ECHO_C" >&6
10196else
10197 ac_check_lib_save_LIBS=$LIBS
10198LIBS="-lsvld $LIBS"
10199cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010200/* confdefs.h. */
10201_ACEOF
10202cat confdefs.h >>conftest.$ac_ext
10203cat >>conftest.$ac_ext <<_ACEOF
10204/* end confdefs.h. */
10205
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010206/* Override any GCC internal prototype to avoid an error.
10207 Use char because int might match the return type of a GCC
10208 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010209#ifdef __cplusplus
10210extern "C"
10211#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010212char dlopen ();
10213int
10214main ()
10215{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010216return dlopen ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010217 ;
10218 return 0;
10219}
10220_ACEOF
10221rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010222if { (ac_try="$ac_link"
10223case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10226esac
10227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010229 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010230 grep -v '^ *+' conftest.er1 >conftest.err
10231 rm -f conftest.er1
10232 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10236 { (case "(($ac_try" in
10237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10239esac
10240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010242 ac_status=$?
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; } &&
10245 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010246 { (case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10249esac
10250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 ac_cv_lib_svld_dlopen=yes
10256else
10257 echo "$as_me: failed program was:" >&5
10258sed 's/^/| /' conftest.$ac_ext >&5
10259
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010260 ac_cv_lib_svld_dlopen=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010261fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010262
10263rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010264 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010265LIBS=$ac_check_lib_save_LIBS
10266fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010267{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10268echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010269if test $ac_cv_lib_svld_dlopen = yes; then
10270 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10271else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010272 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10273echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010274if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10276else
10277 ac_check_lib_save_LIBS=$LIBS
10278LIBS="-ldld $LIBS"
10279cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010280/* confdefs.h. */
10281_ACEOF
10282cat confdefs.h >>conftest.$ac_ext
10283cat >>conftest.$ac_ext <<_ACEOF
10284/* end confdefs.h. */
10285
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010286/* Override any GCC internal prototype to avoid an error.
10287 Use char because int might match the return type of a GCC
10288 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010289#ifdef __cplusplus
10290extern "C"
10291#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010292char dld_link ();
10293int
10294main ()
10295{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010296return dld_link ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010297 ;
10298 return 0;
10299}
10300_ACEOF
10301rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010302if { (ac_try="$ac_link"
10303case "(($ac_try" in
10304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305 *) ac_try_echo=$ac_try;;
10306esac
10307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010309 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010310 grep -v '^ *+' conftest.er1 >conftest.err
10311 rm -f conftest.er1
10312 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10316 { (case "(($ac_try" in
10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318 *) ac_try_echo=$ac_try;;
10319esac
10320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; } &&
10325 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010326 { (case "(($ac_try" in
10327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328 *) ac_try_echo=$ac_try;;
10329esac
10330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010332 ac_status=$?
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; }; then
10335 ac_cv_lib_dld_dld_link=yes
10336else
10337 echo "$as_me: failed program was:" >&5
10338sed 's/^/| /' conftest.$ac_ext >&5
10339
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010340 ac_cv_lib_dld_dld_link=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010341fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010342
10343rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010344 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010345LIBS=$ac_check_lib_save_LIBS
10346fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010347{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10348echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010349if test $ac_cv_lib_dld_dld_link = yes; then
10350 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10351fi
10352
10353
10354fi
10355
10356
10357fi
10358
10359
10360fi
10361
10362
10363fi
10364
10365
10366fi
10367
10368 ;;
10369 esac
10370
10371 if test "x$lt_cv_dlopen" != xno; then
10372 enable_dlopen=yes
10373 else
10374 enable_dlopen=no
10375 fi
10376
10377 case $lt_cv_dlopen in
10378 dlopen)
10379 save_CPPFLAGS="$CPPFLAGS"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010380 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010381
10382 save_LDFLAGS="$LDFLAGS"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010383 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010384
10385 save_LIBS="$LIBS"
10386 LIBS="$lt_cv_dlopen_libs $LIBS"
10387
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010388 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10389echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010390if test "${lt_cv_dlopen_self+set}" = set; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10392else
10393 if test "$cross_compiling" = yes; then :
10394 lt_cv_dlopen_self=cross
10395else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010396 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010397 lt_status=$lt_dlunknown
10398 cat > conftest.$ac_ext <<EOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010399#line 10399 "configure"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010400#include "confdefs.h"
10401
10402#if HAVE_DLFCN_H
10403#include <dlfcn.h>
10404#endif
10405
10406#include <stdio.h>
10407
10408#ifdef RTLD_GLOBAL
10409# define LT_DLGLOBAL RTLD_GLOBAL
10410#else
10411# ifdef DL_GLOBAL
10412# define LT_DLGLOBAL DL_GLOBAL
10413# else
10414# define LT_DLGLOBAL 0
10415# endif
10416#endif
10417
10418/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10419 find out it does not work in some platform. */
10420#ifndef LT_DLLAZY_OR_NOW
10421# ifdef RTLD_LAZY
10422# define LT_DLLAZY_OR_NOW RTLD_LAZY
10423# else
10424# ifdef DL_LAZY
10425# define LT_DLLAZY_OR_NOW DL_LAZY
10426# else
10427# ifdef RTLD_NOW
10428# define LT_DLLAZY_OR_NOW RTLD_NOW
10429# else
10430# ifdef DL_NOW
10431# define LT_DLLAZY_OR_NOW DL_NOW
10432# else
10433# define LT_DLLAZY_OR_NOW 0
10434# endif
10435# endif
10436# endif
10437# endif
10438#endif
10439
10440#ifdef __cplusplus
10441extern "C" void exit (int);
10442#endif
10443
10444void fnord() { int i=42;}
10445int main ()
10446{
10447 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10448 int status = $lt_dlunknown;
10449
10450 if (self)
10451 {
10452 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10453 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10454 /* dlclose (self); */
10455 }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010456 else
10457 puts (dlerror ());
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010458
10459 exit (status);
10460}
10461EOF
10462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10463 (eval $ac_link) 2>&5
10464 ac_status=$?
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010467 (./conftest; exit; ) >&5 2>/dev/null
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010468 lt_status=$?
10469 case x$lt_status in
10470 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10471 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010472 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010473 esac
10474 else :
10475 # compilation failed
10476 lt_cv_dlopen_self=no
10477 fi
10478fi
10479rm -fr conftest*
10480
10481
10482fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010483{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10484echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010485
10486 if test "x$lt_cv_dlopen_self" = xyes; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010487 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010488 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10489echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010490if test "${lt_cv_dlopen_self_static+set}" = set; then
10491 echo $ECHO_N "(cached) $ECHO_C" >&6
10492else
10493 if test "$cross_compiling" = yes; then :
10494 lt_cv_dlopen_self_static=cross
10495else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010496 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010497 lt_status=$lt_dlunknown
10498 cat > conftest.$ac_ext <<EOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010499#line 10499 "configure"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010500#include "confdefs.h"
10501
10502#if HAVE_DLFCN_H
10503#include <dlfcn.h>
10504#endif
10505
10506#include <stdio.h>
10507
10508#ifdef RTLD_GLOBAL
10509# define LT_DLGLOBAL RTLD_GLOBAL
10510#else
10511# ifdef DL_GLOBAL
10512# define LT_DLGLOBAL DL_GLOBAL
10513# else
10514# define LT_DLGLOBAL 0
10515# endif
10516#endif
10517
10518/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10519 find out it does not work in some platform. */
10520#ifndef LT_DLLAZY_OR_NOW
10521# ifdef RTLD_LAZY
10522# define LT_DLLAZY_OR_NOW RTLD_LAZY
10523# else
10524# ifdef DL_LAZY
10525# define LT_DLLAZY_OR_NOW DL_LAZY
10526# else
10527# ifdef RTLD_NOW
10528# define LT_DLLAZY_OR_NOW RTLD_NOW
10529# else
10530# ifdef DL_NOW
10531# define LT_DLLAZY_OR_NOW DL_NOW
10532# else
10533# define LT_DLLAZY_OR_NOW 0
10534# endif
10535# endif
10536# endif
10537# endif
10538#endif
10539
10540#ifdef __cplusplus
10541extern "C" void exit (int);
10542#endif
10543
10544void fnord() { int i=42;}
10545int main ()
10546{
10547 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10548 int status = $lt_dlunknown;
10549
10550 if (self)
10551 {
10552 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10553 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10554 /* dlclose (self); */
10555 }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010556 else
10557 puts (dlerror ());
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010558
10559 exit (status);
10560}
10561EOF
10562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563 (eval $ac_link) 2>&5
10564 ac_status=$?
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010567 (./conftest; exit; ) >&5 2>/dev/null
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010568 lt_status=$?
10569 case x$lt_status in
10570 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10571 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010572 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010573 esac
10574 else :
10575 # compilation failed
10576 lt_cv_dlopen_self_static=no
10577 fi
10578fi
10579rm -fr conftest*
10580
10581
10582fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010583{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10584echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010585 fi
10586
10587 CPPFLAGS="$save_CPPFLAGS"
10588 LDFLAGS="$save_LDFLAGS"
10589 LIBS="$save_LIBS"
10590 ;;
10591 esac
10592
10593 case $lt_cv_dlopen_self in
10594 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10595 *) enable_dlopen_self=unknown ;;
10596 esac
10597
10598 case $lt_cv_dlopen_self_static in
10599 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10600 *) enable_dlopen_self_static=unknown ;;
10601 esac
10602fi
10603
10604
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010605# Report which library types will actually be built
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010606{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10607echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10608{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10609echo "${ECHO_T}$can_build_shared" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010610
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010611{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10612echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010613test "$can_build_shared" = "no" && enable_shared=no
10614
10615# On AIX, shared libraries and static libraries use the same namespace, and
10616# are all built from PIC.
10617case $host_os in
10618aix3*)
10619 test "$enable_shared" = yes && enable_static=no
10620 if test -n "$RANLIB"; then
10621 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10622 postinstall_cmds='$RANLIB $lib'
10623 fi
10624 ;;
10625
10626aix4* | aix5*)
10627 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10628 test "$enable_shared" = yes && enable_static=no
10629 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010630 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010631esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010632{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10633echo "${ECHO_T}$enable_shared" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010634
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010635{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10636echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010637# Make sure either enable_shared or enable_static is yes.
10638test "$enable_shared" = yes || enable_static=yes
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060010639{ echo "$as_me:$LINENO: result: $enable_static" >&5
10640echo "${ECHO_T}$enable_static" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010641
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010642# The else clause should only fire when bootstrapping the
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010643# libtool distribution, otherwise you forgot to ship ltmain.sh
10644# with your package, and you will get complaints that there are
10645# no rules to generate ltmain.sh.
10646if test -f "$ltmain"; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010647 # See if we are running on zsh, and set the options which allow our commands through
10648 # without removal of \ escapes.
10649 if test -n "${ZSH_VERSION+set}" ; then
10650 setopt NO_GLOB_SUBST
10651 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010652 # Now quote all the things that may contain metacharacters while being
10653 # careful not to overquote the AC_SUBSTed values. We take copies of the
10654 # variables and quote the copies for generation of the libtool script.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010655 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10656 SED SHELL STRIP \
10657 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10658 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10659 deplibs_check_method reload_flag reload_cmds need_locks \
10660 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10661 lt_cv_sys_global_symbol_to_c_name_address \
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010662 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010663 old_postinstall_cmds old_postuninstall_cmds \
10664 compiler \
10665 CC \
10666 LD \
10667 lt_prog_compiler_wl \
10668 lt_prog_compiler_pic \
10669 lt_prog_compiler_static \
10670 lt_prog_compiler_no_builtin_flag \
10671 export_dynamic_flag_spec \
10672 thread_safe_flag_spec \
10673 whole_archive_flag_spec \
10674 enable_shared_with_static_runtimes \
10675 old_archive_cmds \
10676 old_archive_from_new_cmds \
10677 predep_objects \
10678 postdep_objects \
10679 predeps \
10680 postdeps \
10681 compiler_lib_search_path \
10682 archive_cmds \
10683 archive_expsym_cmds \
10684 postinstall_cmds \
10685 postuninstall_cmds \
10686 old_archive_from_expsyms_cmds \
10687 allow_undefined_flag \
10688 no_undefined_flag \
10689 export_symbols_cmds \
10690 hardcode_libdir_flag_spec \
10691 hardcode_libdir_flag_spec_ld \
10692 hardcode_libdir_separator \
10693 hardcode_automatic \
10694 module_cmds \
10695 module_expsym_cmds \
10696 lt_cv_prog_compiler_c_o \
10697 exclude_expsyms \
10698 include_expsyms; do
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010699
10700 case $var in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010701 old_archive_cmds | \
10702 old_archive_from_new_cmds | \
10703 archive_cmds | \
10704 archive_expsym_cmds | \
10705 module_cmds | \
10706 module_expsym_cmds | \
10707 old_archive_from_expsyms_cmds | \
10708 export_symbols_cmds | \
10709 extract_expsyms_cmds | reload_cmds | finish_cmds | \
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010710 postinstall_cmds | postuninstall_cmds | \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010711 old_postinstall_cmds | old_postuninstall_cmds | \
10712 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010713 # Double-quote double-evaled strings.
10714 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10715 ;;
10716 *)
10717 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10718 ;;
10719 esac
10720 done
10721
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010722 case $lt_echo in
10723 *'\$0 --fallback-echo"')
10724 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10725 ;;
10726 esac
10727
10728cfgfile="${ofile}T"
10729 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10730 $rm -f "$cfgfile"
10731 { echo "$as_me:$LINENO: creating $ofile" >&5
10732echo "$as_me: creating $ofile" >&6;}
10733
10734 cat <<__EOF__ >> "$cfgfile"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010735#! $SHELL
10736
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010737# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010738# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10739# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10740#
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010741# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10742# Free Software Foundation, Inc.
10743#
10744# This file is part of GNU Libtool:
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010745# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10746#
10747# This program is free software; you can redistribute it and/or modify
10748# it under the terms of the GNU General Public License as published by
10749# the Free Software Foundation; either version 2 of the License, or
10750# (at your option) any later version.
10751#
10752# This program is distributed in the hope that it will be useful, but
10753# WITHOUT ANY WARRANTY; without even the implied warranty of
10754# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10755# General Public License for more details.
10756#
10757# You should have received a copy of the GNU General Public License
10758# along with this program; if not, write to the Free Software
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010759# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010760#
10761# As a special exception to the GNU General Public License, if you
10762# distribute this file as part of a program that contains a
10763# configuration script generated by Autoconf, you may include it under
10764# the same distribution terms that you use for the rest of that program.
10765
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010766# A sed program that does not truncate output.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010767SED=$lt_SED
10768
10769# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010770Xsed="$SED -e 1s/^X//"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010771
10772# The HP-UX ksh and POSIX shell print the target directory to stdout
10773# if CDPATH is set.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010774(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10775
10776# The names of the tagged configurations supported by this script.
10777available_tags=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010778
10779# ### BEGIN LIBTOOL CONFIG
10780
10781# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10782
10783# Shell to use when invoking shell scripts.
10784SHELL=$lt_SHELL
10785
10786# Whether or not to build shared libraries.
10787build_libtool_libs=$enable_shared
10788
10789# Whether or not to build static libraries.
10790build_old_libs=$enable_static
10791
10792# Whether or not to add -lc for building shared libraries.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010793build_libtool_need_lc=$archive_cmds_need_lc
10794
10795# Whether or not to disallow shared libs when runtime libs are static
10796allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010797
10798# Whether or not to optimize for fast installation.
10799fast_install=$enable_fast_install
10800
10801# The host system.
10802host_alias=$host_alias
10803host=$host
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010804host_os=$host_os
10805
10806# The build system.
10807build_alias=$build_alias
10808build=$build
10809build_os=$build_os
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010810
10811# An echo program that does not interpret backslashes.
10812echo=$lt_echo
10813
10814# The archiver.
10815AR=$lt_AR
10816AR_FLAGS=$lt_AR_FLAGS
10817
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010818# A C compiler.
10819LTCC=$lt_LTCC
10820
10821# LTCC compiler flags.
10822LTCFLAGS=$lt_LTCFLAGS
10823
10824# A language-specific compiler.
10825CC=$lt_compiler
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010826
10827# Is the compiler the GNU C compiler?
10828with_gcc=$GCC
10829
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010830# An ERE matcher.
10831EGREP=$lt_EGREP
10832
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010833# The linker used to build libraries.
10834LD=$lt_LD
10835
10836# Whether we need hard or soft links.
10837LN_S=$lt_LN_S
10838
10839# A BSD-compatible nm program.
10840NM=$lt_NM
10841
10842# A symbol stripping program
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010843STRIP=$lt_STRIP
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010844
10845# Used to examine libraries when file_magic_cmd begins "file"
10846MAGIC_CMD=$MAGIC_CMD
10847
10848# Used on cygwin: DLL creation program.
10849DLLTOOL="$DLLTOOL"
10850
10851# Used on cygwin: object dumper.
10852OBJDUMP="$OBJDUMP"
10853
10854# Used on cygwin: assembler.
10855AS="$AS"
10856
10857# The name of the directory that contains temporary libtool files.
10858objdir=$objdir
10859
10860# How to create reloadable object files.
10861reload_flag=$lt_reload_flag
10862reload_cmds=$lt_reload_cmds
10863
10864# How to pass a linker flag through the compiler.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010865wl=$lt_lt_prog_compiler_wl
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010866
10867# Object file suffix (normally "o").
10868objext="$ac_objext"
10869
10870# Old archive suffix (normally "a").
10871libext="$libext"
10872
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010873# Shared library suffix (normally ".so").
10874shrext_cmds='$shrext_cmds'
10875
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010876# Executable file suffix (normally "").
10877exeext="$exeext"
10878
10879# Additional compiler flags for building library objects.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010880pic_flag=$lt_lt_prog_compiler_pic
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010881pic_mode=$pic_mode
10882
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010883# What is the maximum length of a command?
10884max_cmd_len=$lt_cv_sys_max_cmd_len
10885
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010886# Does compiler simultaneously support -c and -o options?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010887compiler_c_o=$lt_lt_cv_prog_compiler_c_o
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010888
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010889# Must we lock files when doing compilation?
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010890need_locks=$lt_need_locks
10891
10892# Do we need the lib prefix for modules?
10893need_lib_prefix=$need_lib_prefix
10894
10895# Do we need a version for libraries?
10896need_version=$need_version
10897
10898# Whether dlopen is supported.
10899dlopen_support=$enable_dlopen
10900
10901# Whether dlopen of programs is supported.
10902dlopen_self=$enable_dlopen_self
10903
10904# Whether dlopen of statically linked programs is supported.
10905dlopen_self_static=$enable_dlopen_self_static
10906
10907# Compiler flag to prevent dynamic linking.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010908link_static_flag=$lt_lt_prog_compiler_static
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010909
10910# Compiler flag to turn off builtin functions.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010911no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010912
10913# Compiler flag to allow reflexive dlopens.
10914export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10915
10916# Compiler flag to generate shared objects directly from archives.
10917whole_archive_flag_spec=$lt_whole_archive_flag_spec
10918
10919# Compiler flag to generate thread-safe objects.
10920thread_safe_flag_spec=$lt_thread_safe_flag_spec
10921
10922# Library versioning type.
10923version_type=$version_type
10924
10925# Format of library name prefix.
10926libname_spec=$lt_libname_spec
10927
10928# List of archive names. First name is the real one, the rest are links.
10929# The last name is the one that the linker finds with -lNAME.
10930library_names_spec=$lt_library_names_spec
10931
10932# The coded name of the library, if different from the real name.
10933soname_spec=$lt_soname_spec
10934
10935# Commands used to build and install an old-style archive.
10936RANLIB=$lt_RANLIB
10937old_archive_cmds=$lt_old_archive_cmds
10938old_postinstall_cmds=$lt_old_postinstall_cmds
10939old_postuninstall_cmds=$lt_old_postuninstall_cmds
10940
10941# Create an old-style archive from a shared archive.
10942old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10943
10944# Create a temporary old-style archive to link instead of a shared archive.
10945old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10946
10947# Commands used to build and install a shared archive.
10948archive_cmds=$lt_archive_cmds
10949archive_expsym_cmds=$lt_archive_expsym_cmds
10950postinstall_cmds=$lt_postinstall_cmds
10951postuninstall_cmds=$lt_postuninstall_cmds
10952
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010953# Commands used to build a loadable module (assumed same as above if empty)
10954module_cmds=$lt_module_cmds
10955module_expsym_cmds=$lt_module_expsym_cmds
10956
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010957# Commands to strip libraries.
10958old_striplib=$lt_old_striplib
10959striplib=$lt_striplib
10960
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010961# Dependencies to place before the objects being linked to create a
10962# shared library.
10963predep_objects=$lt_predep_objects
10964
10965# Dependencies to place after the objects being linked to create a
10966# shared library.
10967postdep_objects=$lt_postdep_objects
10968
10969# Dependencies to place before the objects being linked to create a
10970# shared library.
10971predeps=$lt_predeps
10972
10973# Dependencies to place after the objects being linked to create a
10974# shared library.
10975postdeps=$lt_postdeps
10976
10977# The library search path used internally by the compiler when linking
10978# a shared library.
10979compiler_lib_search_path=$lt_compiler_lib_search_path
10980
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010981# Method to check whether dependent libraries are shared objects.
10982deplibs_check_method=$lt_deplibs_check_method
10983
10984# Command to use when deplibs_check_method == file_magic.
10985file_magic_cmd=$lt_file_magic_cmd
10986
10987# Flag that allows shared libraries with undefined symbols to be built.
10988allow_undefined_flag=$lt_allow_undefined_flag
10989
10990# Flag that forces no undefined symbols.
10991no_undefined_flag=$lt_no_undefined_flag
10992
10993# Commands used to finish a libtool library installation in a directory.
10994finish_cmds=$lt_finish_cmds
10995
10996# Same as above, but a single script fragment to be evaled but not shown.
10997finish_eval=$lt_finish_eval
10998
10999# Take the output of nm and produce a listing of raw symbols and C names.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011000global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011001
11002# Transform the output of nm in a proper C declaration
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011003global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011004
11005# Transform the output of nm in a C name address pair
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011006global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011007
11008# This is the shared library runtime path variable.
11009runpath_var=$runpath_var
11010
11011# This is the shared library path variable.
11012shlibpath_var=$shlibpath_var
11013
11014# Is shlibpath searched before the hard-coded library search path?
11015shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11016
11017# How to hardcode a shared library path into an executable.
11018hardcode_action=$hardcode_action
11019
11020# Whether we should hardcode library paths into libraries.
11021hardcode_into_libs=$hardcode_into_libs
11022
11023# Flag to hardcode \$libdir into a binary during linking.
11024# This must work even if \$libdir does not exist.
11025hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11026
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011027# If ld is used when linking, flag to hardcode \$libdir into
11028# a binary during linking. This must work even if \$libdir does
11029# not exist.
11030hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11031
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011032# Whether we need a single -rpath flag with a separated argument.
11033hardcode_libdir_separator=$lt_hardcode_libdir_separator
11034
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011035# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011036# resulting binary.
11037hardcode_direct=$hardcode_direct
11038
11039# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11040# resulting binary.
11041hardcode_minus_L=$hardcode_minus_L
11042
11043# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11044# the resulting binary.
11045hardcode_shlibpath_var=$hardcode_shlibpath_var
11046
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011047# Set to yes if building a shared library automatically hardcodes DIR into the library
11048# and all subsequent libraries and executables linked against it.
11049hardcode_automatic=$hardcode_automatic
11050
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011051# Variables whose values should be saved in libtool wrapper scripts and
11052# restored at relink time.
11053variables_saved_for_relink="$variables_saved_for_relink"
11054
11055# Whether libtool must link a program against all its dependency libraries.
11056link_all_deplibs=$link_all_deplibs
11057
11058# Compile-time system search path for libraries
11059sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11060
11061# Run-time system search path for libraries
11062sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11063
11064# Fix the shell variable \$srcfile for the compiler.
11065fix_srcfile_path="$fix_srcfile_path"
11066
11067# Set to yes if exported symbols are required.
11068always_export_symbols=$always_export_symbols
11069
11070# The commands to list exported symbols.
11071export_symbols_cmds=$lt_export_symbols_cmds
11072
11073# The commands to extract the exported symbol list from a shared archive.
11074extract_expsyms_cmds=$lt_extract_expsyms_cmds
11075
11076# Symbols that should not be listed in the preloaded symbols.
11077exclude_expsyms=$lt_exclude_expsyms
11078
11079# Symbols that must always be exported.
11080include_expsyms=$lt_include_expsyms
11081
11082# ### END LIBTOOL CONFIG
11083
11084__EOF__
11085
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011086
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011087 case $host_os in
11088 aix3*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011089 cat <<\EOF >> "$cfgfile"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011090
11091# AIX sometimes has problems with the GCC collect2 program. For some
11092# reason, if we set the COLLECT_NAMES environment variable, the problems
11093# vanish in a puff of smoke.
11094if test "X${COLLECT_NAMES+set}" != Xset; then
11095 COLLECT_NAMES=
11096 export COLLECT_NAMES
11097fi
11098EOF
11099 ;;
11100 esac
11101
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011102 # We use sed instead of cat because bash on DJGPP gets confused if
11103 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11104 # text mode, it properly converts lines to CR/LF. This bash problem
11105 # is reportedly fixed, but why not run on old versions too?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011106 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011107
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011108 mv -f "$cfgfile" "$ofile" || \
11109 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011110 chmod +x "$ofile"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011111
11112else
11113 # If there is no Makefile yet, we rely on a make rule to execute
11114 # `config.status --recheck' to rerun these tests and create the
11115 # libtool script then.
11116 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11117 if test -f "$ltmain_in"; then
11118 test -f Makefile && make "$ltmain"
11119 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011120fi
11121
11122
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011123ac_ext=c
11124ac_cpp='$CPP $CPPFLAGS'
11125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11127ac_compiler_gnu=$ac_cv_c_compiler_gnu
11128
11129CC="$lt_save_CC"
11130
11131
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011132# Check whether --with-tags was given.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011133if test "${with_tags+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011134 withval=$with_tags; tagnames="$withval"
11135fi
11136
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011137
11138if test -f "$ltmain" && test -n "$tagnames"; then
11139 if test ! -f "${ofile}"; then
11140 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11141echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11142 fi
11143
11144 if test -z "$LTCC"; then
11145 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11146 if test -z "$LTCC"; then
11147 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11148echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11149 else
11150 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11151echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11152 fi
11153 fi
11154 if test -z "$LTCFLAGS"; then
11155 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11156 fi
11157
11158 # Extract list of available tagged configurations in $ofile.
11159 # Note that this assumes the entire list is on one line.
11160 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11161
11162 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11163 for tagname in $tagnames; do
11164 IFS="$lt_save_ifs"
11165 # Check whether tagname contains only valid characters
11166 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11167 "") ;;
11168 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11169echo "$as_me: error: invalid tag name: $tagname" >&2;}
11170 { (exit 1); exit 1; }; }
11171 ;;
11172 esac
11173
11174 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11175 then
11176 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11177echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11178 { (exit 1); exit 1; }; }
11179 fi
11180
11181 # Update the list of available tags.
11182 if test -n "$tagname"; then
11183 echo appending configuration tag \"$tagname\" to $ofile
11184
11185 case $tagname in
11186 CXX)
11187 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11188 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11189 (test "X$CXX" != "Xg++"))) ; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011190 ac_ext=cpp
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011191ac_cpp='$CXXCPP $CPPFLAGS'
11192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11195
11196
11197
11198
11199archive_cmds_need_lc_CXX=no
11200allow_undefined_flag_CXX=
11201always_export_symbols_CXX=no
11202archive_expsym_cmds_CXX=
11203export_dynamic_flag_spec_CXX=
11204hardcode_direct_CXX=no
11205hardcode_libdir_flag_spec_CXX=
11206hardcode_libdir_flag_spec_ld_CXX=
11207hardcode_libdir_separator_CXX=
11208hardcode_minus_L_CXX=no
11209hardcode_shlibpath_var_CXX=unsupported
11210hardcode_automatic_CXX=no
11211module_cmds_CXX=
11212module_expsym_cmds_CXX=
11213link_all_deplibs_CXX=unknown
11214old_archive_cmds_CXX=$old_archive_cmds
11215no_undefined_flag_CXX=
11216whole_archive_flag_spec_CXX=
11217enable_shared_with_static_runtimes_CXX=no
11218
11219# Dependencies to place before and after the object being linked:
11220predep_objects_CXX=
11221postdep_objects_CXX=
11222predeps_CXX=
11223postdeps_CXX=
11224compiler_lib_search_path_CXX=
11225
11226# Source file extension for C++ test sources.
11227ac_ext=cpp
11228
11229# Object file extension for compiled C++ test sources.
11230objext=o
11231objext_CXX=$objext
11232
11233# Code to be used in simple compile tests
11234lt_simple_compile_test_code="int some_variable = 0;\n"
11235
11236# Code to be used in simple link tests
11237lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11238
11239# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11240
11241# If no C compiler was specified, use CC.
11242LTCC=${LTCC-"$CC"}
11243
11244# If no C compiler flags were specified, use CFLAGS.
11245LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11246
11247# Allow CC to be a program name with arguments.
11248compiler=$CC
11249
11250
11251# save warnings/boilerplate of simple test code
11252ac_outfile=conftest.$ac_objext
11253printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11254eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11255_lt_compiler_boilerplate=`cat conftest.err`
11256$rm conftest*
11257
11258ac_outfile=conftest.$ac_objext
11259printf "$lt_simple_link_test_code" >conftest.$ac_ext
11260eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11261_lt_linker_boilerplate=`cat conftest.err`
11262$rm conftest*
11263
11264
11265# Allow CC to be a program name with arguments.
11266lt_save_CC=$CC
11267lt_save_LD=$LD
11268lt_save_GCC=$GCC
11269GCC=$GXX
11270lt_save_with_gnu_ld=$with_gnu_ld
11271lt_save_path_LD=$lt_cv_path_LD
11272if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11273 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11274else
11275 $as_unset lt_cv_prog_gnu_ld
11276fi
11277if test -n "${lt_cv_path_LDCXX+set}"; then
11278 lt_cv_path_LD=$lt_cv_path_LDCXX
11279else
11280 $as_unset lt_cv_path_LD
11281fi
11282test -z "${LDCXX+set}" || LD=$LDCXX
11283CC=${CXX-"c++"}
11284compiler=$CC
11285compiler_CXX=$CC
11286for cc_temp in $compiler""; do
11287 case $cc_temp in
11288 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11289 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11290 \-*) ;;
11291 *) break;;
11292 esac
11293done
11294cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11295
11296
11297# We don't want -fno-exception wen compiling C++ code, so set the
11298# no_builtin_flag separately
11299if test "$GXX" = yes; then
11300 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11301else
11302 lt_prog_compiler_no_builtin_flag_CXX=
11303fi
11304
11305if test "$GXX" = yes; then
11306 # Set up default GNU C++ configuration
11307
11308
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011309# Check whether --with-gnu-ld was given.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011310if test "${with_gnu_ld+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011311 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011312else
11313 with_gnu_ld=no
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011314fi
11315
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011316ac_prog=ld
11317if test "$GCC" = yes; then
11318 # Check if gcc -print-prog-name=ld gives a path.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011319 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11320echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011321 case $host in
11322 *-*-mingw*)
11323 # gcc leaves a trailing carriage return which upsets mingw
11324 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11325 *)
11326 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11327 esac
11328 case $ac_prog in
11329 # Accept absolute paths.
11330 [\\/]* | ?:[\\/]*)
11331 re_direlt='/[^/][^/]*/\.\./'
11332 # Canonicalize the pathname of ld
11333 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11334 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11335 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11336 done
11337 test -z "$LD" && LD="$ac_prog"
11338 ;;
11339 "")
11340 # If it fails, then pretend we aren't using GCC.
11341 ac_prog=ld
11342 ;;
11343 *)
11344 # If it is relative, then search for the first ld in PATH.
11345 with_gnu_ld=unknown
11346 ;;
11347 esac
11348elif test "$with_gnu_ld" = yes; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011349 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11350echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011351else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011352 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11353echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011354fi
11355if test "${lt_cv_path_LD+set}" = set; then
11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11357else
11358 if test -z "$LD"; then
11359 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11360 for ac_dir in $PATH; do
11361 IFS="$lt_save_ifs"
11362 test -z "$ac_dir" && ac_dir=.
11363 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11364 lt_cv_path_LD="$ac_dir/$ac_prog"
11365 # Check to see if the program is GNU ld. I'd rather use --version,
11366 # but apparently some variants of GNU ld only accept -v.
11367 # Break only if it was the GNU/non-GNU ld that we prefer.
11368 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11369 *GNU* | *'with BFD'*)
11370 test "$with_gnu_ld" != no && break
11371 ;;
11372 *)
11373 test "$with_gnu_ld" != yes && break
11374 ;;
11375 esac
11376 fi
11377 done
11378 IFS="$lt_save_ifs"
11379else
11380 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11381fi
11382fi
11383
11384LD="$lt_cv_path_LD"
11385if test -n "$LD"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011386 { echo "$as_me:$LINENO: result: $LD" >&5
11387echo "${ECHO_T}$LD" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011388else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011389 { echo "$as_me:$LINENO: result: no" >&5
11390echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011391fi
11392test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11393echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11394 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011395{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11396echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011397if test "${lt_cv_prog_gnu_ld+set}" = set; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11399else
11400 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11401case `$LD -v 2>&1 </dev/null` in
11402*GNU* | *'with BFD'*)
11403 lt_cv_prog_gnu_ld=yes
11404 ;;
11405*)
11406 lt_cv_prog_gnu_ld=no
11407 ;;
11408esac
11409fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011410{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11411echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011412with_gnu_ld=$lt_cv_prog_gnu_ld
11413
11414
11415
11416 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11417 # archiving commands below assume that GNU ld is being used.
11418 if test "$with_gnu_ld" = yes; then
11419 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11420 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11421
11422 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11423 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11424
11425 # If archive_cmds runs LD, not CC, wlarc should be empty
11426 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11427 # investigate it a little bit more. (MM)
11428 wlarc='${wl}'
11429
11430 # ancient GNU ld didn't support --whole-archive et. al.
11431 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11432 grep 'no-whole-archive' > /dev/null; then
11433 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11434 else
11435 whole_archive_flag_spec_CXX=
11436 fi
11437 else
11438 with_gnu_ld=no
11439 wlarc=
11440
11441 # A generic and very simple default shared library creation
11442 # command for GNU C++ for the case where it uses the native
11443 # linker, instead of GNU ld. If possible, this setting should
11444 # overridden to take advantage of the native linker features on
11445 # the platform it is being used on.
11446 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11447 fi
11448
11449 # Commands to make compiler produce verbose output that lists
11450 # what "hidden" libraries, object files and flags are used when
11451 # linking a shared library.
11452 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11453
11454else
11455 GXX=no
11456 with_gnu_ld=no
11457 wlarc=
11458fi
11459
11460# PORTME: fill in a description of your system's C++ link characteristics
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011461{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11462echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011463ld_shlibs_CXX=yes
11464case $host_os in
11465 aix3*)
11466 # FIXME: insert proper C++ library support
11467 ld_shlibs_CXX=no
11468 ;;
11469 aix4* | aix5*)
11470 if test "$host_cpu" = ia64; then
11471 # On IA64, the linker does run time linking by default, so we don't
11472 # have to do anything special.
11473 aix_use_runtimelinking=no
11474 exp_sym_flag='-Bexport'
11475 no_entry_flag=""
11476 else
11477 aix_use_runtimelinking=no
11478
11479 # Test if we are trying to use run time linking or normal
11480 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11481 # need to do runtime linking.
11482 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11483 for ld_flag in $LDFLAGS; do
11484 case $ld_flag in
11485 *-brtl*)
11486 aix_use_runtimelinking=yes
11487 break
11488 ;;
11489 esac
11490 done
11491 ;;
11492 esac
11493
11494 exp_sym_flag='-bexport'
11495 no_entry_flag='-bnoentry'
11496 fi
11497
11498 # When large executables or shared objects are built, AIX ld can
11499 # have problems creating the table of contents. If linking a library
11500 # or program results in "error TOC overflow" add -mminimal-toc to
11501 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11502 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11503
11504 archive_cmds_CXX=''
11505 hardcode_direct_CXX=yes
11506 hardcode_libdir_separator_CXX=':'
11507 link_all_deplibs_CXX=yes
11508
11509 if test "$GXX" = yes; then
11510 case $host_os in aix4.[012]|aix4.[012].*)
11511 # We only want to do this on AIX 4.2 and lower, the check
11512 # below for broken collect2 doesn't work under 4.3+
11513 collect2name=`${CC} -print-prog-name=collect2`
11514 if test -f "$collect2name" && \
11515 strings "$collect2name" | grep resolve_lib_name >/dev/null
11516 then
11517 # We have reworked collect2
11518 hardcode_direct_CXX=yes
11519 else
11520 # We have old collect2
11521 hardcode_direct_CXX=unsupported
11522 # It fails to find uninstalled libraries when the uninstalled
11523 # path is not listed in the libpath. Setting hardcode_minus_L
11524 # to unsupported forces relinking
11525 hardcode_minus_L_CXX=yes
11526 hardcode_libdir_flag_spec_CXX='-L$libdir'
11527 hardcode_libdir_separator_CXX=
11528 fi
11529 ;;
11530 esac
11531 shared_flag='-shared'
11532 if test "$aix_use_runtimelinking" = yes; then
11533 shared_flag="$shared_flag "'${wl}-G'
11534 fi
11535 else
11536 # not using gcc
11537 if test "$host_cpu" = ia64; then
11538 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11539 # chokes on -Wl,-G. The following line is correct:
11540 shared_flag='-G'
11541 else
11542 if test "$aix_use_runtimelinking" = yes; then
11543 shared_flag='${wl}-G'
11544 else
11545 shared_flag='${wl}-bM:SRE'
11546 fi
11547 fi
11548 fi
11549
11550 # It seems that -bexpall does not export symbols beginning with
11551 # underscore (_), so it is better to generate a list of symbols to export.
11552 always_export_symbols_CXX=yes
11553 if test "$aix_use_runtimelinking" = yes; then
11554 # Warning - without using the other runtime loading flags (-brtl),
11555 # -berok will link without error, but may produce a broken library.
11556 allow_undefined_flag_CXX='-berok'
11557 # Determine the default libpath from the value encoded in an empty executable.
11558 cat >conftest.$ac_ext <<_ACEOF
11559/* confdefs.h. */
11560_ACEOF
11561cat confdefs.h >>conftest.$ac_ext
11562cat >>conftest.$ac_ext <<_ACEOF
11563/* end confdefs.h. */
11564
11565int
11566main ()
11567{
11568
11569 ;
11570 return 0;
11571}
11572_ACEOF
11573rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011574if { (ac_try="$ac_link"
11575case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11578esac
11579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011581 ac_status=$?
11582 grep -v '^ *+' conftest.er1 >conftest.err
11583 rm -f conftest.er1
11584 cat conftest.err >&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11588 { (case "(($ac_try" in
11589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11590 *) ac_try_echo=$ac_try;;
11591esac
11592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11593 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011594 ac_status=$?
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; } &&
11597 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011598 { (case "(($ac_try" in
11599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11600 *) ac_try_echo=$ac_try;;
11601esac
11602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11603 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011604 ac_status=$?
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; }; then
11607
11608aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11609}'`
11610# Check for a 64-bit object if we didn't find anything.
11611if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11612}'`; fi
11613else
11614 echo "$as_me: failed program was:" >&5
11615sed 's/^/| /' conftest.$ac_ext >&5
11616
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011617
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011618fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011619
11620rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011621 conftest$ac_exeext conftest.$ac_ext
11622if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11623
11624 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11625
11626 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11627 else
11628 if test "$host_cpu" = ia64; then
11629 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11630 allow_undefined_flag_CXX="-z nodefs"
11631 archive_expsym_cmds_CXX="\$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"
11632 else
11633 # Determine the default libpath from the value encoded in an empty executable.
11634 cat >conftest.$ac_ext <<_ACEOF
11635/* confdefs.h. */
11636_ACEOF
11637cat confdefs.h >>conftest.$ac_ext
11638cat >>conftest.$ac_ext <<_ACEOF
11639/* end confdefs.h. */
11640
11641int
11642main ()
11643{
11644
11645 ;
11646 return 0;
11647}
11648_ACEOF
11649rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011650if { (ac_try="$ac_link"
11651case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11654esac
11655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011657 ac_status=$?
11658 grep -v '^ *+' conftest.er1 >conftest.err
11659 rm -f conftest.er1
11660 cat conftest.err >&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11664 { (case "(($ac_try" in
11665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11667esac
11668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; } &&
11673 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011674 { (case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11677esac
11678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683
11684aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11685}'`
11686# Check for a 64-bit object if we didn't find anything.
11687if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11688}'`; fi
11689else
11690 echo "$as_me: failed program was:" >&5
11691sed 's/^/| /' conftest.$ac_ext >&5
11692
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011693
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011694fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011695
11696rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011697 conftest$ac_exeext conftest.$ac_ext
11698if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11699
11700 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11701 # Warning - without using the other run time loading flags,
11702 # -berok will link without error, but may produce a broken library.
11703 no_undefined_flag_CXX=' ${wl}-bernotok'
11704 allow_undefined_flag_CXX=' ${wl}-berok'
11705 # Exported symbols can be pulled into shared objects from archives
11706 whole_archive_flag_spec_CXX='$convenience'
11707 archive_cmds_need_lc_CXX=yes
11708 # This is similar to how AIX traditionally builds its shared libraries.
11709 archive_expsym_cmds_CXX="\$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'
11710 fi
11711 fi
11712 ;;
11713
11714 beos*)
11715 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11716 allow_undefined_flag_CXX=unsupported
11717 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11718 # support --undefined. This deserves some investigation. FIXME
11719 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11720 else
11721 ld_shlibs_CXX=no
11722 fi
11723 ;;
11724
11725 chorus*)
11726 case $cc_basename in
11727 *)
11728 # FIXME: insert proper C++ library support
11729 ld_shlibs_CXX=no
11730 ;;
11731 esac
11732 ;;
11733
11734 cygwin* | mingw* | pw32*)
11735 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11736 # as there is no search path for DLLs.
11737 hardcode_libdir_flag_spec_CXX='-L$libdir'
11738 allow_undefined_flag_CXX=unsupported
11739 always_export_symbols_CXX=no
11740 enable_shared_with_static_runtimes_CXX=yes
11741
11742 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11743 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11744 # If the export-symbols file already is a .def file (1st line
11745 # is EXPORTS), use it as is; otherwise, prepend...
11746 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11747 cp $export_symbols $output_objdir/$soname.def;
11748 else
11749 echo EXPORTS > $output_objdir/$soname.def;
11750 cat $export_symbols >> $output_objdir/$soname.def;
11751 fi~
11752 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11753 else
11754 ld_shlibs_CXX=no
11755 fi
11756 ;;
11757 darwin* | rhapsody*)
11758 case $host_os in
11759 rhapsody* | darwin1.[012])
11760 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11761 ;;
11762 *) # Darwin 1.3 on
11763 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11764 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11765 else
11766 case ${MACOSX_DEPLOYMENT_TARGET} in
11767 10.[012])
11768 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11769 ;;
11770 10.*)
11771 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11772 ;;
11773 esac
11774 fi
11775 ;;
11776 esac
11777 archive_cmds_need_lc_CXX=no
11778 hardcode_direct_CXX=no
11779 hardcode_automatic_CXX=yes
11780 hardcode_shlibpath_var_CXX=unsupported
11781 whole_archive_flag_spec_CXX=''
11782 link_all_deplibs_CXX=yes
11783
11784 if test "$GXX" = yes ; then
11785 lt_int_apple_cc_single_mod=no
11786 output_verbose_link_cmd='echo'
11787 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11788 lt_int_apple_cc_single_mod=yes
11789 fi
11790 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11791 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11792 else
11793 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11794 fi
11795 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11796 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11797 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11798 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11799 else
11800 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11801 fi
11802 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11803 else
11804 case $cc_basename in
11805 xlc*)
11806 output_verbose_link_cmd='echo'
11807 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11808 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11809 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11810 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11811 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11812 ;;
11813 *)
11814 ld_shlibs_CXX=no
11815 ;;
11816 esac
11817 fi
11818 ;;
11819
11820 dgux*)
11821 case $cc_basename in
11822 ec++*)
11823 # FIXME: insert proper C++ library support
11824 ld_shlibs_CXX=no
11825 ;;
11826 ghcx*)
11827 # Green Hills C++ Compiler
11828 # FIXME: insert proper C++ library support
11829 ld_shlibs_CXX=no
11830 ;;
11831 *)
11832 # FIXME: insert proper C++ library support
11833 ld_shlibs_CXX=no
11834 ;;
11835 esac
11836 ;;
11837 freebsd[12]*)
11838 # C++ shared libraries reported to be fairly broken before switch to ELF
11839 ld_shlibs_CXX=no
11840 ;;
11841 freebsd-elf*)
11842 archive_cmds_need_lc_CXX=no
11843 ;;
11844 freebsd* | kfreebsd*-gnu | dragonfly*)
11845 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11846 # conventions
11847 ld_shlibs_CXX=yes
11848 ;;
11849 gnu*)
11850 ;;
11851 hpux9*)
11852 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11853 hardcode_libdir_separator_CXX=:
11854 export_dynamic_flag_spec_CXX='${wl}-E'
11855 hardcode_direct_CXX=yes
11856 hardcode_minus_L_CXX=yes # Not in the search PATH,
11857 # but as the default
11858 # location of the library.
11859
11860 case $cc_basename in
11861 CC*)
11862 # FIXME: insert proper C++ library support
11863 ld_shlibs_CXX=no
11864 ;;
11865 aCC*)
11866 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11867 # Commands to make compiler produce verbose output that lists
11868 # what "hidden" libraries, object files and flags are used when
11869 # linking a shared library.
11870 #
11871 # There doesn't appear to be a way to prevent this compiler from
11872 # explicitly linking system object files so we need to strip them
11873 # from the output so that they don't get included in the library
11874 # dependencies.
11875 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11876 ;;
11877 *)
11878 if test "$GXX" = yes; then
11879 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11880 else
11881 # FIXME: insert proper C++ library support
11882 ld_shlibs_CXX=no
11883 fi
11884 ;;
11885 esac
11886 ;;
11887 hpux10*|hpux11*)
11888 if test $with_gnu_ld = no; then
11889 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11890 hardcode_libdir_separator_CXX=:
11891
11892 case $host_cpu in
11893 hppa*64*|ia64*)
11894 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11895 ;;
11896 *)
11897 export_dynamic_flag_spec_CXX='${wl}-E'
11898 ;;
11899 esac
11900 fi
11901 case $host_cpu in
11902 hppa*64*|ia64*)
11903 hardcode_direct_CXX=no
11904 hardcode_shlibpath_var_CXX=no
11905 ;;
11906 *)
11907 hardcode_direct_CXX=yes
11908 hardcode_minus_L_CXX=yes # Not in the search PATH,
11909 # but as the default
11910 # location of the library.
11911 ;;
11912 esac
11913
11914 case $cc_basename in
11915 CC*)
11916 # FIXME: insert proper C++ library support
11917 ld_shlibs_CXX=no
11918 ;;
11919 aCC*)
11920 case $host_cpu in
11921 hppa*64*)
11922 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11923 ;;
11924 ia64*)
11925 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11926 ;;
11927 *)
11928 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11929 ;;
11930 esac
11931 # Commands to make compiler produce verbose output that lists
11932 # what "hidden" libraries, object files and flags are used when
11933 # linking a shared library.
11934 #
11935 # There doesn't appear to be a way to prevent this compiler from
11936 # explicitly linking system object files so we need to strip them
11937 # from the output so that they don't get included in the library
11938 # dependencies.
11939 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11940 ;;
11941 *)
11942 if test "$GXX" = yes; then
11943 if test $with_gnu_ld = no; then
11944 case $host_cpu in
11945 hppa*64*)
11946 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11947 ;;
11948 ia64*)
11949 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11950 ;;
11951 *)
11952 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11953 ;;
11954 esac
11955 fi
11956 else
11957 # FIXME: insert proper C++ library support
11958 ld_shlibs_CXX=no
11959 fi
11960 ;;
11961 esac
11962 ;;
11963 interix3*)
11964 hardcode_direct_CXX=no
11965 hardcode_shlibpath_var_CXX=no
11966 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11967 export_dynamic_flag_spec_CXX='${wl}-E'
11968 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11969 # Instead, shared libraries are loaded at an image base (0x10000000 by
11970 # default) and relocated if they conflict, which is a slow very memory
11971 # consuming and fragmenting process. To avoid this, we pick a random,
11972 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11973 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11974 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11975 archive_expsym_cmds_CXX='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'
11976 ;;
11977 irix5* | irix6*)
11978 case $cc_basename in
11979 CC*)
11980 # SGI C++
11981 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11982
11983 # Archives containing C++ object files must be created using
11984 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11985 # necessary to make sure instantiated templates are included
11986 # in the archive.
11987 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11988 ;;
11989 *)
11990 if test "$GXX" = yes; then
11991 if test "$with_gnu_ld" = no; then
11992 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11993 else
11994 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11995 fi
11996 fi
11997 link_all_deplibs_CXX=yes
11998 ;;
11999 esac
12000 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12001 hardcode_libdir_separator_CXX=:
12002 ;;
12003 linux*)
12004 case $cc_basename in
12005 KCC*)
12006 # Kuck and Associates, Inc. (KAI) C++ Compiler
12007
12008 # KCC will only create a shared library if the output file
12009 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12010 # to its proper name (with version) after linking.
12011 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12012 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12013 # Commands to make compiler produce verbose output that lists
12014 # what "hidden" libraries, object files and flags are used when
12015 # linking a shared library.
12016 #
12017 # There doesn't appear to be a way to prevent this compiler from
12018 # explicitly linking system object files so we need to strip them
12019 # from the output so that they don't get included in the library
12020 # dependencies.
12021 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12022
12023 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12024 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12025
12026 # Archives containing C++ object files must be created using
12027 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12028 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12029 ;;
12030 icpc*)
12031 # Intel C++
12032 with_gnu_ld=yes
12033 # version 8.0 and above of icpc choke on multiply defined symbols
12034 # if we add $predep_objects and $postdep_objects, however 7.1 and
12035 # earlier do not add the objects themselves.
12036 case `$CC -V 2>&1` in
12037 *"Version 7."*)
12038 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12039 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12040 ;;
12041 *) # Version 8.0 or newer
12042 tmp_idyn=
12043 case $host_cpu in
12044 ia64*) tmp_idyn=' -i_dynamic';;
12045 esac
12046 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12047 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12048 ;;
12049 esac
12050 archive_cmds_need_lc_CXX=no
12051 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12052 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12053 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12054 ;;
12055 pgCC*)
12056 # Portland Group C++ compiler
12057 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12058 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12059
12060 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12061 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12062 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12063 ;;
12064 cxx*)
12065 # Compaq C++
12066 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12067 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12068
12069 runpath_var=LD_RUN_PATH
12070 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12071 hardcode_libdir_separator_CXX=:
12072
12073 # Commands to make compiler produce verbose output that lists
12074 # what "hidden" libraries, object files and flags are used when
12075 # linking a shared library.
12076 #
12077 # There doesn't appear to be a way to prevent this compiler from
12078 # explicitly linking system object files so we need to strip them
12079 # from the output so that they don't get included in the library
12080 # dependencies.
12081 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12082 ;;
12083 esac
12084 ;;
12085 lynxos*)
12086 # FIXME: insert proper C++ library support
12087 ld_shlibs_CXX=no
12088 ;;
12089 m88k*)
12090 # FIXME: insert proper C++ library support
12091 ld_shlibs_CXX=no
12092 ;;
12093 mvs*)
12094 case $cc_basename in
12095 cxx*)
12096 # FIXME: insert proper C++ library support
12097 ld_shlibs_CXX=no
12098 ;;
12099 *)
12100 # FIXME: insert proper C++ library support
12101 ld_shlibs_CXX=no
12102 ;;
12103 esac
12104 ;;
12105 netbsd*)
12106 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12107 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12108 wlarc=
12109 hardcode_libdir_flag_spec_CXX='-R$libdir'
12110 hardcode_direct_CXX=yes
12111 hardcode_shlibpath_var_CXX=no
12112 fi
12113 # Workaround some broken pre-1.5 toolchains
12114 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12115 ;;
12116 openbsd2*)
12117 # C++ shared libraries are fairly broken
12118 ld_shlibs_CXX=no
12119 ;;
12120 openbsd*)
12121 hardcode_direct_CXX=yes
12122 hardcode_shlibpath_var_CXX=no
12123 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12124 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12125 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12126 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12127 export_dynamic_flag_spec_CXX='${wl}-E'
12128 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12129 fi
12130 output_verbose_link_cmd='echo'
12131 ;;
12132 osf3*)
12133 case $cc_basename in
12134 KCC*)
12135 # Kuck and Associates, Inc. (KAI) C++ Compiler
12136
12137 # KCC will only create a shared library if the output file
12138 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12139 # to its proper name (with version) after linking.
12140 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12141
12142 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12143 hardcode_libdir_separator_CXX=:
12144
12145 # Archives containing C++ object files must be created using
12146 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12147 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12148
12149 ;;
12150 RCC*)
12151 # Rational C++ 2.4.1
12152 # FIXME: insert proper C++ library support
12153 ld_shlibs_CXX=no
12154 ;;
12155 cxx*)
12156 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12157 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12158
12159 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12160 hardcode_libdir_separator_CXX=:
12161
12162 # Commands to make compiler produce verbose output that lists
12163 # what "hidden" libraries, object files and flags are used when
12164 # linking a shared library.
12165 #
12166 # There doesn't appear to be a way to prevent this compiler from
12167 # explicitly linking system object files so we need to strip them
12168 # from the output so that they don't get included in the library
12169 # dependencies.
12170 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12171 ;;
12172 *)
12173 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12174 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12175 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12176
12177 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12178 hardcode_libdir_separator_CXX=:
12179
12180 # Commands to make compiler produce verbose output that lists
12181 # what "hidden" libraries, object files and flags are used when
12182 # linking a shared library.
12183 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12184
12185 else
12186 # FIXME: insert proper C++ library support
12187 ld_shlibs_CXX=no
12188 fi
12189 ;;
12190 esac
12191 ;;
12192 osf4* | osf5*)
12193 case $cc_basename in
12194 KCC*)
12195 # Kuck and Associates, Inc. (KAI) C++ Compiler
12196
12197 # KCC will only create a shared library if the output file
12198 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12199 # to its proper name (with version) after linking.
12200 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12201
12202 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12203 hardcode_libdir_separator_CXX=:
12204
12205 # Archives containing C++ object files must be created using
12206 # the KAI C++ compiler.
12207 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12208 ;;
12209 RCC*)
12210 # Rational C++ 2.4.1
12211 # FIXME: insert proper C++ library support
12212 ld_shlibs_CXX=no
12213 ;;
12214 cxx*)
12215 allow_undefined_flag_CXX=' -expect_unresolved \*'
12216 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12217 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12218 echo "-hidden">> $lib.exp~
12219 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12220 $rm $lib.exp'
12221
12222 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12223 hardcode_libdir_separator_CXX=:
12224
12225 # Commands to make compiler produce verbose output that lists
12226 # what "hidden" libraries, object files and flags are used when
12227 # linking a shared library.
12228 #
12229 # There doesn't appear to be a way to prevent this compiler from
12230 # explicitly linking system object files so we need to strip them
12231 # from the output so that they don't get included in the library
12232 # dependencies.
12233 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12234 ;;
12235 *)
12236 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12237 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12238 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12239
12240 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12241 hardcode_libdir_separator_CXX=:
12242
12243 # Commands to make compiler produce verbose output that lists
12244 # what "hidden" libraries, object files and flags are used when
12245 # linking a shared library.
12246 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12247
12248 else
12249 # FIXME: insert proper C++ library support
12250 ld_shlibs_CXX=no
12251 fi
12252 ;;
12253 esac
12254 ;;
12255 psos*)
12256 # FIXME: insert proper C++ library support
12257 ld_shlibs_CXX=no
12258 ;;
12259 sunos4*)
12260 case $cc_basename in
12261 CC*)
12262 # Sun C++ 4.x
12263 # FIXME: insert proper C++ library support
12264 ld_shlibs_CXX=no
12265 ;;
12266 lcc*)
12267 # Lucid
12268 # FIXME: insert proper C++ library support
12269 ld_shlibs_CXX=no
12270 ;;
12271 *)
12272 # FIXME: insert proper C++ library support
12273 ld_shlibs_CXX=no
12274 ;;
12275 esac
12276 ;;
12277 solaris*)
12278 case $cc_basename in
12279 CC*)
12280 # Sun C++ 4.2, 5.x and Centerline C++
12281 archive_cmds_need_lc_CXX=yes
12282 no_undefined_flag_CXX=' -zdefs'
12283 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12284 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12285 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12286
12287 hardcode_libdir_flag_spec_CXX='-R$libdir'
12288 hardcode_shlibpath_var_CXX=no
12289 case $host_os in
12290 solaris2.[0-5] | solaris2.[0-5].*) ;;
12291 *)
12292 # The C++ compiler is used as linker so we must use $wl
12293 # flag to pass the commands to the underlying system
12294 # linker. We must also pass each convience library through
12295 # to the system linker between allextract/defaultextract.
12296 # The C++ compiler will combine linker options so we
12297 # cannot just pass the convience library names through
12298 # without $wl.
12299 # Supported since Solaris 2.6 (maybe 2.5.1?)
12300 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12301 ;;
12302 esac
12303 link_all_deplibs_CXX=yes
12304
12305 output_verbose_link_cmd='echo'
12306
12307 # Archives containing C++ object files must be created using
12308 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12309 # necessary to make sure instantiated templates are included
12310 # in the archive.
12311 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12312 ;;
12313 gcx*)
12314 # Green Hills C++ Compiler
12315 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12316
12317 # The C++ compiler must be used to create the archive.
12318 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12319 ;;
12320 *)
12321 # GNU C++ compiler with Solaris linker
12322 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12323 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12324 if $CC --version | grep -v '^2\.7' > /dev/null; then
12325 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12326 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12327 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12328
12329 # Commands to make compiler produce verbose output that lists
12330 # what "hidden" libraries, object files and flags are used when
12331 # linking a shared library.
12332 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12333 else
12334 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12335 # platform.
12336 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12337 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12338 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12339
12340 # Commands to make compiler produce verbose output that lists
12341 # what "hidden" libraries, object files and flags are used when
12342 # linking a shared library.
12343 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12344 fi
12345
12346 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12347 fi
12348 ;;
12349 esac
12350 ;;
12351 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12352 no_undefined_flag_CXX='${wl}-z,text'
12353 archive_cmds_need_lc_CXX=no
12354 hardcode_shlibpath_var_CXX=no
12355 runpath_var='LD_RUN_PATH'
12356
12357 case $cc_basename in
12358 CC*)
12359 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12360 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12361 ;;
12362 *)
12363 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12364 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12365 ;;
12366 esac
12367 ;;
12368 sysv5* | sco3.2v5* | sco5v6*)
12369 # Note: We can NOT use -z defs as we might desire, because we do not
12370 # link with -lc, and that would cause any symbols used from libc to
12371 # always be unresolved, which means just about no library would
12372 # ever link correctly. If we're not using GNU ld we use -z text
12373 # though, which does catch some bad symbols but isn't as heavy-handed
12374 # as -z defs.
12375 # For security reasons, it is highly recommended that you always
12376 # use absolute paths for naming shared libraries, and exclude the
12377 # DT_RUNPATH tag from executables and libraries. But doing so
12378 # requires that you compile everything twice, which is a pain.
12379 # So that behaviour is only enabled if SCOABSPATH is set to a
12380 # non-empty value in the environment. Most likely only useful for
12381 # creating official distributions of packages.
12382 # This is a hack until libtool officially supports absolute path
12383 # names for shared libraries.
12384 no_undefined_flag_CXX='${wl}-z,text'
12385 allow_undefined_flag_CXX='${wl}-z,nodefs'
12386 archive_cmds_need_lc_CXX=no
12387 hardcode_shlibpath_var_CXX=no
12388 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12389 hardcode_libdir_separator_CXX=':'
12390 link_all_deplibs_CXX=yes
12391 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12392 runpath_var='LD_RUN_PATH'
12393
12394 case $cc_basename in
12395 CC*)
12396 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12397 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12398 ;;
12399 *)
12400 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12401 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12402 ;;
12403 esac
12404 ;;
12405 tandem*)
12406 case $cc_basename in
12407 NCC*)
12408 # NonStop-UX NCC 3.20
12409 # FIXME: insert proper C++ library support
12410 ld_shlibs_CXX=no
12411 ;;
12412 *)
12413 # FIXME: insert proper C++ library support
12414 ld_shlibs_CXX=no
12415 ;;
12416 esac
12417 ;;
12418 vxworks*)
12419 # FIXME: insert proper C++ library support
12420 ld_shlibs_CXX=no
12421 ;;
12422 *)
12423 # FIXME: insert proper C++ library support
12424 ld_shlibs_CXX=no
12425 ;;
12426esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012427{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12428echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012429test "$ld_shlibs_CXX" = no && can_build_shared=no
12430
12431GCC_CXX="$GXX"
12432LD_CXX="$LD"
12433
12434
12435cat > conftest.$ac_ext <<EOF
12436class Foo
12437{
12438public:
12439 Foo (void) { a = 0; }
12440private:
12441 int a;
12442};
12443EOF
12444
12445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12446 (eval $ac_compile) 2>&5
12447 ac_status=$?
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; then
12450 # Parse the compiler output and extract the necessary
12451 # objects, libraries and library flags.
12452
12453 # Sentinel used to keep track of whether or not we are before
12454 # the conftest object file.
12455 pre_test_object_deps_done=no
12456
12457 # The `*' in the case matches for architectures that use `case' in
12458 # $output_verbose_cmd can trigger glob expansion during the loop
12459 # eval without this substitution.
12460 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12461
12462 for p in `eval $output_verbose_link_cmd`; do
12463 case $p in
12464
12465 -L* | -R* | -l*)
12466 # Some compilers place space between "-{L,R}" and the path.
12467 # Remove the space.
12468 if test $p = "-L" \
12469 || test $p = "-R"; then
12470 prev=$p
12471 continue
12472 else
12473 prev=
12474 fi
12475
12476 if test "$pre_test_object_deps_done" = no; then
12477 case $p in
12478 -L* | -R*)
12479 # Internal compiler library paths should come after those
12480 # provided the user. The postdeps already come after the
12481 # user supplied libs so there is no need to process them.
12482 if test -z "$compiler_lib_search_path_CXX"; then
12483 compiler_lib_search_path_CXX="${prev}${p}"
12484 else
12485 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12486 fi
12487 ;;
12488 # The "-l" case would never come before the object being
12489 # linked, so don't bother handling this case.
12490 esac
12491 else
12492 if test -z "$postdeps_CXX"; then
12493 postdeps_CXX="${prev}${p}"
12494 else
12495 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12496 fi
12497 fi
12498 ;;
12499
12500 *.$objext)
12501 # This assumes that the test object file only shows up
12502 # once in the compiler output.
12503 if test "$p" = "conftest.$objext"; then
12504 pre_test_object_deps_done=yes
12505 continue
12506 fi
12507
12508 if test "$pre_test_object_deps_done" = no; then
12509 if test -z "$predep_objects_CXX"; then
12510 predep_objects_CXX="$p"
12511 else
12512 predep_objects_CXX="$predep_objects_CXX $p"
12513 fi
12514 else
12515 if test -z "$postdep_objects_CXX"; then
12516 postdep_objects_CXX="$p"
12517 else
12518 postdep_objects_CXX="$postdep_objects_CXX $p"
12519 fi
12520 fi
12521 ;;
12522
12523 *) ;; # Ignore the rest.
12524
12525 esac
12526 done
12527
12528 # Clean up.
12529 rm -f a.out a.exe
12530else
12531 echo "libtool.m4: error: problem compiling CXX test program"
12532fi
12533
12534$rm -f confest.$objext
12535
12536# PORTME: override above test on systems where it is broken
12537case $host_os in
12538interix3*)
12539 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12540 # hack all around it, let's just trust "g++" to DTRT.
12541 predep_objects_CXX=
12542 postdep_objects_CXX=
12543 postdeps_CXX=
12544 ;;
12545
12546solaris*)
12547 case $cc_basename in
12548 CC*)
12549 # Adding this requires a known-good setup of shared libraries for
12550 # Sun compiler versions before 5.6, else PIC objects from an old
12551 # archive will be linked into the output, leading to subtle bugs.
12552 postdeps_CXX='-lCstd -lCrun'
12553 ;;
12554 esac
12555 ;;
12556esac
12557
12558
12559case " $postdeps_CXX " in
12560*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12561esac
12562
12563lt_prog_compiler_wl_CXX=
12564lt_prog_compiler_pic_CXX=
12565lt_prog_compiler_static_CXX=
12566
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012567{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12568echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012569
12570 # C++ specific cases for pic, static, wl, etc.
12571 if test "$GXX" = yes; then
12572 lt_prog_compiler_wl_CXX='-Wl,'
12573 lt_prog_compiler_static_CXX='-static'
12574
12575 case $host_os in
12576 aix*)
12577 # All AIX code is PIC.
12578 if test "$host_cpu" = ia64; then
12579 # AIX 5 now supports IA64 processor
12580 lt_prog_compiler_static_CXX='-Bstatic'
12581 fi
12582 ;;
12583 amigaos*)
12584 # FIXME: we need at least 68020 code to build shared libraries, but
12585 # adding the `-m68020' flag to GCC prevents building anything better,
12586 # like `-m68040'.
12587 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12588 ;;
12589 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12590 # PIC is the default for these OSes.
12591 ;;
12592 mingw* | os2* | pw32*)
12593 # This hack is so that the source file can tell whether it is being
12594 # built for inclusion in a dll (and should export symbols for example).
12595 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12596 ;;
12597 darwin* | rhapsody*)
12598 # PIC is the default on this platform
12599 # Common symbols not allowed in MH_DYLIB files
12600 lt_prog_compiler_pic_CXX='-fno-common'
12601 ;;
12602 *djgpp*)
12603 # DJGPP does not support shared libraries at all
12604 lt_prog_compiler_pic_CXX=
12605 ;;
12606 interix3*)
12607 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12608 # Instead, we relocate shared libraries at runtime.
12609 ;;
12610 sysv4*MP*)
12611 if test -d /usr/nec; then
12612 lt_prog_compiler_pic_CXX=-Kconform_pic
12613 fi
12614 ;;
12615 hpux*)
12616 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12617 # not for PA HP-UX.
12618 case $host_cpu in
12619 hppa*64*|ia64*)
12620 ;;
12621 *)
12622 lt_prog_compiler_pic_CXX='-fPIC'
12623 ;;
12624 esac
12625 ;;
12626 *)
12627 lt_prog_compiler_pic_CXX='-fPIC'
12628 ;;
12629 esac
12630 else
12631 case $host_os in
12632 aix4* | aix5*)
12633 # All AIX code is PIC.
12634 if test "$host_cpu" = ia64; then
12635 # AIX 5 now supports IA64 processor
12636 lt_prog_compiler_static_CXX='-Bstatic'
12637 else
12638 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12639 fi
12640 ;;
12641 chorus*)
12642 case $cc_basename in
12643 cxch68*)
12644 # Green Hills C++ Compiler
12645 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12646 ;;
12647 esac
12648 ;;
12649 darwin*)
12650 # PIC is the default on this platform
12651 # Common symbols not allowed in MH_DYLIB files
12652 case $cc_basename in
12653 xlc*)
12654 lt_prog_compiler_pic_CXX='-qnocommon'
12655 lt_prog_compiler_wl_CXX='-Wl,'
12656 ;;
12657 esac
12658 ;;
12659 dgux*)
12660 case $cc_basename in
12661 ec++*)
12662 lt_prog_compiler_pic_CXX='-KPIC'
12663 ;;
12664 ghcx*)
12665 # Green Hills C++ Compiler
12666 lt_prog_compiler_pic_CXX='-pic'
12667 ;;
12668 *)
12669 ;;
12670 esac
12671 ;;
12672 freebsd* | kfreebsd*-gnu | dragonfly*)
12673 # FreeBSD uses GNU C++
12674 ;;
12675 hpux9* | hpux10* | hpux11*)
12676 case $cc_basename in
12677 CC*)
12678 lt_prog_compiler_wl_CXX='-Wl,'
12679 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12680 if test "$host_cpu" != ia64; then
12681 lt_prog_compiler_pic_CXX='+Z'
12682 fi
12683 ;;
12684 aCC*)
12685 lt_prog_compiler_wl_CXX='-Wl,'
12686 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12687 case $host_cpu in
12688 hppa*64*|ia64*)
12689 # +Z the default
12690 ;;
12691 *)
12692 lt_prog_compiler_pic_CXX='+Z'
12693 ;;
12694 esac
12695 ;;
12696 *)
12697 ;;
12698 esac
12699 ;;
12700 interix*)
12701 # This is c89, which is MS Visual C++ (no shared libs)
12702 # Anyone wants to do a port?
12703 ;;
12704 irix5* | irix6* | nonstopux*)
12705 case $cc_basename in
12706 CC*)
12707 lt_prog_compiler_wl_CXX='-Wl,'
12708 lt_prog_compiler_static_CXX='-non_shared'
12709 # CC pic flag -KPIC is the default.
12710 ;;
12711 *)
12712 ;;
12713 esac
12714 ;;
12715 linux*)
12716 case $cc_basename in
12717 KCC*)
12718 # KAI C++ Compiler
12719 lt_prog_compiler_wl_CXX='--backend -Wl,'
12720 lt_prog_compiler_pic_CXX='-fPIC'
12721 ;;
12722 icpc* | ecpc*)
12723 # Intel C++
12724 lt_prog_compiler_wl_CXX='-Wl,'
12725 lt_prog_compiler_pic_CXX='-KPIC'
12726 lt_prog_compiler_static_CXX='-static'
12727 ;;
12728 pgCC*)
12729 # Portland Group C++ compiler.
12730 lt_prog_compiler_wl_CXX='-Wl,'
12731 lt_prog_compiler_pic_CXX='-fpic'
12732 lt_prog_compiler_static_CXX='-Bstatic'
12733 ;;
12734 cxx*)
12735 # Compaq C++
12736 # Make sure the PIC flag is empty. It appears that all Alpha
12737 # Linux and Compaq Tru64 Unix objects are PIC.
12738 lt_prog_compiler_pic_CXX=
12739 lt_prog_compiler_static_CXX='-non_shared'
12740 ;;
12741 *)
12742 ;;
12743 esac
12744 ;;
12745 lynxos*)
12746 ;;
12747 m88k*)
12748 ;;
12749 mvs*)
12750 case $cc_basename in
12751 cxx*)
12752 lt_prog_compiler_pic_CXX='-W c,exportall'
12753 ;;
12754 *)
12755 ;;
12756 esac
12757 ;;
12758 netbsd*)
12759 ;;
12760 osf3* | osf4* | osf5*)
12761 case $cc_basename in
12762 KCC*)
12763 lt_prog_compiler_wl_CXX='--backend -Wl,'
12764 ;;
12765 RCC*)
12766 # Rational C++ 2.4.1
12767 lt_prog_compiler_pic_CXX='-pic'
12768 ;;
12769 cxx*)
12770 # Digital/Compaq C++
12771 lt_prog_compiler_wl_CXX='-Wl,'
12772 # Make sure the PIC flag is empty. It appears that all Alpha
12773 # Linux and Compaq Tru64 Unix objects are PIC.
12774 lt_prog_compiler_pic_CXX=
12775 lt_prog_compiler_static_CXX='-non_shared'
12776 ;;
12777 *)
12778 ;;
12779 esac
12780 ;;
12781 psos*)
12782 ;;
12783 solaris*)
12784 case $cc_basename in
12785 CC*)
12786 # Sun C++ 4.2, 5.x and Centerline C++
12787 lt_prog_compiler_pic_CXX='-KPIC'
12788 lt_prog_compiler_static_CXX='-Bstatic'
12789 lt_prog_compiler_wl_CXX='-Qoption ld '
12790 ;;
12791 gcx*)
12792 # Green Hills C++ Compiler
12793 lt_prog_compiler_pic_CXX='-PIC'
12794 ;;
12795 *)
12796 ;;
12797 esac
12798 ;;
12799 sunos4*)
12800 case $cc_basename in
12801 CC*)
12802 # Sun C++ 4.x
12803 lt_prog_compiler_pic_CXX='-pic'
12804 lt_prog_compiler_static_CXX='-Bstatic'
12805 ;;
12806 lcc*)
12807 # Lucid
12808 lt_prog_compiler_pic_CXX='-pic'
12809 ;;
12810 *)
12811 ;;
12812 esac
12813 ;;
12814 tandem*)
12815 case $cc_basename in
12816 NCC*)
12817 # NonStop-UX NCC 3.20
12818 lt_prog_compiler_pic_CXX='-KPIC'
12819 ;;
12820 *)
12821 ;;
12822 esac
12823 ;;
12824 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12825 case $cc_basename in
12826 CC*)
12827 lt_prog_compiler_wl_CXX='-Wl,'
12828 lt_prog_compiler_pic_CXX='-KPIC'
12829 lt_prog_compiler_static_CXX='-Bstatic'
12830 ;;
12831 esac
12832 ;;
12833 vxworks*)
12834 ;;
12835 *)
12836 lt_prog_compiler_can_build_shared_CXX=no
12837 ;;
12838 esac
12839 fi
12840
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012841{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12842echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012843
12844#
12845# Check to make sure the PIC flag actually works.
12846#
12847if test -n "$lt_prog_compiler_pic_CXX"; then
12848
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012849{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12850echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012851if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
12853else
12854 lt_prog_compiler_pic_works_CXX=no
12855 ac_outfile=conftest.$ac_objext
12856 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12857 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12858 # Insert the option either (1) after the last *FLAGS variable, or
12859 # (2) before a word containing "conftest.", or (3) at the end.
12860 # Note that $ac_compile itself does not contain backslashes and begins
12861 # with a dollar sign (not a hyphen), so the echo should work correctly.
12862 # The option is referenced via a variable to avoid confusing sed.
12863 lt_compile=`echo "$ac_compile" | $SED \
12864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12866 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012867 (eval echo "\"\$as_me:12867: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012868 (eval "$lt_compile" 2>conftest.err)
12869 ac_status=$?
12870 cat conftest.err >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012871 echo "$as_me:12871: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012872 if (exit $ac_status) && test -s "$ac_outfile"; then
12873 # The compiler can only warn and ignore the option if not recognized
12874 # So say no if there are warnings other than the usual output.
12875 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12877 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12878 lt_prog_compiler_pic_works_CXX=yes
12879 fi
12880 fi
12881 $rm conftest*
12882
12883fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012884{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12885echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012886
12887if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12888 case $lt_prog_compiler_pic_CXX in
12889 "" | " "*) ;;
12890 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12891 esac
12892else
12893 lt_prog_compiler_pic_CXX=
12894 lt_prog_compiler_can_build_shared_CXX=no
12895fi
12896
12897fi
12898case $host_os in
12899 # For platforms which do not support PIC, -DPIC is meaningless:
12900 *djgpp*)
12901 lt_prog_compiler_pic_CXX=
12902 ;;
12903 *)
12904 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12905 ;;
12906esac
12907
12908#
12909# Check to make sure the static flag actually works.
12910#
12911wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012912{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12913echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012914if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12916else
12917 lt_prog_compiler_static_works_CXX=no
12918 save_LDFLAGS="$LDFLAGS"
12919 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12920 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12921 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12922 # The linker can only warn and ignore the option if not recognized
12923 # So say no if there are warnings
12924 if test -s conftest.err; then
12925 # Append any errors to the config.log.
12926 cat conftest.err 1>&5
12927 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12929 if diff conftest.exp conftest.er2 >/dev/null; then
12930 lt_prog_compiler_static_works_CXX=yes
12931 fi
12932 else
12933 lt_prog_compiler_static_works_CXX=yes
12934 fi
12935 fi
12936 $rm conftest*
12937 LDFLAGS="$save_LDFLAGS"
12938
12939fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012940{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12941echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012942
12943if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12944 :
12945else
12946 lt_prog_compiler_static_CXX=
12947fi
12948
12949
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012950{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12951echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012952if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12954else
12955 lt_cv_prog_compiler_c_o_CXX=no
12956 $rm -r conftest 2>/dev/null
12957 mkdir conftest
12958 cd conftest
12959 mkdir out
12960 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12961
12962 lt_compiler_flag="-o out/conftest2.$ac_objext"
12963 # Insert the option either (1) after the last *FLAGS variable, or
12964 # (2) before a word containing "conftest.", or (3) at the end.
12965 # Note that $ac_compile itself does not contain backslashes and begins
12966 # with a dollar sign (not a hyphen), so the echo should work correctly.
12967 lt_compile=`echo "$ac_compile" | $SED \
12968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12970 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012971 (eval echo "\"\$as_me:12971: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012972 (eval "$lt_compile" 2>out/conftest.err)
12973 ac_status=$?
12974 cat out/conftest.err >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012975 echo "$as_me:12975: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012976 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12977 then
12978 # The compiler can only warn and ignore the option if not recognized
12979 # So say no if there are warnings
12980 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12981 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12982 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12983 lt_cv_prog_compiler_c_o_CXX=yes
12984 fi
12985 fi
12986 chmod u+w . 2>&5
12987 $rm conftest*
12988 # SGI C++ compiler will create directory out/ii_files/ for
12989 # template instantiation
12990 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12991 $rm out/* && rmdir out
12992 cd ..
12993 rmdir conftest
12994 $rm conftest*
12995
12996fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012997{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12998echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012999
13000
13001hard_links="nottested"
13002if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13003 # do not overwrite the value of need_locks provided by the user
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013004 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13005echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013006 hard_links=yes
13007 $rm conftest*
13008 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13009 touch conftest.a
13010 ln conftest.a conftest.b 2>&5 || hard_links=no
13011 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013012 { echo "$as_me:$LINENO: result: $hard_links" >&5
13013echo "${ECHO_T}$hard_links" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013014 if test "$hard_links" = no; then
13015 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13016echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13017 need_locks=warn
13018 fi
13019else
13020 need_locks=no
13021fi
13022
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013023{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13024echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013025
13026 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13027 case $host_os in
13028 aix4* | aix5*)
13029 # If we're using GNU nm, then we don't want the "-C" option.
13030 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13031 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13032 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13033 else
13034 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13035 fi
13036 ;;
13037 pw32*)
13038 export_symbols_cmds_CXX="$ltdll_cmds"
13039 ;;
13040 cygwin* | mingw*)
13041 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13042 ;;
13043 *)
13044 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13045 ;;
13046 esac
13047
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013048{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13049echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013050test "$ld_shlibs_CXX" = no && can_build_shared=no
13051
13052#
13053# Do we need to explicitly link libc?
13054#
13055case "x$archive_cmds_need_lc_CXX" in
13056x|xyes)
13057 # Assume -lc should be added
13058 archive_cmds_need_lc_CXX=yes
13059
13060 if test "$enable_shared" = yes && test "$GCC" = yes; then
13061 case $archive_cmds_CXX in
13062 *'~'*)
13063 # FIXME: we may have to deal with multi-command sequences.
13064 ;;
13065 '$CC '*)
13066 # Test whether the compiler implicitly links with -lc since on some
13067 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13068 # to ld, don't add -lc before -lgcc.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013069 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13070echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013071 $rm conftest*
13072 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13073
13074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13075 (eval $ac_compile) 2>&5
13076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } 2>conftest.err; then
13079 soname=conftest
13080 lib=conftest
13081 libobjs=conftest.$ac_objext
13082 deplibs=
13083 wl=$lt_prog_compiler_wl_CXX
13084 pic_flag=$lt_prog_compiler_pic_CXX
13085 compiler_flags=-v
13086 linker_flags=-v
13087 verstring=
13088 output_objdir=.
13089 libname=conftest
13090 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13091 allow_undefined_flag_CXX=
13092 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13093 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13094 ac_status=$?
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }
13097 then
13098 archive_cmds_need_lc_CXX=no
13099 else
13100 archive_cmds_need_lc_CXX=yes
13101 fi
13102 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13103 else
13104 cat conftest.err 1>&5
13105 fi
13106 $rm conftest*
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013107 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13108echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013109 ;;
13110 esac
13111 fi
13112 ;;
13113esac
13114
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013115{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13116echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013117library_names_spec=
13118libname_spec='lib$name'
13119soname_spec=
13120shrext_cmds=".so"
13121postinstall_cmds=
13122postuninstall_cmds=
13123finish_cmds=
13124finish_eval=
13125shlibpath_var=
13126shlibpath_overrides_runpath=unknown
13127version_type=none
13128dynamic_linker="$host_os ld.so"
13129sys_lib_dlsearch_path_spec="/lib /usr/lib"
13130if test "$GCC" = yes; then
13131 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13132 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13133 # if the path contains ";" then we assume it to be the separator
13134 # otherwise default to the standard path separator (i.e. ":") - it is
13135 # assumed that no part of a normal pathname contains ";" but that should
13136 # okay in the real world where ";" in dirpaths is itself problematic.
13137 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13138 else
13139 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13140 fi
13141else
13142 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13143fi
13144need_lib_prefix=unknown
13145hardcode_into_libs=no
13146
13147# when you set need_version to no, make sure it does not cause -set_version
13148# flags to be left without arguments
13149need_version=unknown
13150
13151case $host_os in
13152aix3*)
13153 version_type=linux
13154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13155 shlibpath_var=LIBPATH
13156
13157 # AIX 3 has no versioning support, so we append a major version to the name.
13158 soname_spec='${libname}${release}${shared_ext}$major'
13159 ;;
13160
13161aix4* | aix5*)
13162 version_type=linux
13163 need_lib_prefix=no
13164 need_version=no
13165 hardcode_into_libs=yes
13166 if test "$host_cpu" = ia64; then
13167 # AIX 5 supports IA64
13168 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13169 shlibpath_var=LD_LIBRARY_PATH
13170 else
13171 # With GCC up to 2.95.x, collect2 would create an import file
13172 # for dependence libraries. The import file would start with
13173 # the line `#! .'. This would cause the generated library to
13174 # depend on `.', always an invalid library. This was fixed in
13175 # development snapshots of GCC prior to 3.0.
13176 case $host_os in
13177 aix4 | aix4.[01] | aix4.[01].*)
13178 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13179 echo ' yes '
13180 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13181 :
13182 else
13183 can_build_shared=no
13184 fi
13185 ;;
13186 esac
13187 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13188 # soname into executable. Probably we can add versioning support to
13189 # collect2, so additional links can be useful in future.
13190 if test "$aix_use_runtimelinking" = yes; then
13191 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13192 # instead of lib<name>.a to let people know that these are not
13193 # typical AIX shared libraries.
13194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13195 else
13196 # We preserve .a as extension for shared libraries through AIX4.2
13197 # and later when we are not doing run time linking.
13198 library_names_spec='${libname}${release}.a $libname.a'
13199 soname_spec='${libname}${release}${shared_ext}$major'
13200 fi
13201 shlibpath_var=LIBPATH
13202 fi
13203 ;;
13204
13205amigaos*)
13206 library_names_spec='$libname.ixlibrary $libname.a'
13207 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13208 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'
13209 ;;
13210
13211beos*)
13212 library_names_spec='${libname}${shared_ext}'
13213 dynamic_linker="$host_os ld.so"
13214 shlibpath_var=LIBRARY_PATH
13215 ;;
13216
13217bsdi[45]*)
13218 version_type=linux
13219 need_version=no
13220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13221 soname_spec='${libname}${release}${shared_ext}$major'
13222 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13223 shlibpath_var=LD_LIBRARY_PATH
13224 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13225 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13226 # the default ld.so.conf also contains /usr/contrib/lib and
13227 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13228 # libtool to hard-code these into programs
13229 ;;
13230
13231cygwin* | mingw* | pw32*)
13232 version_type=windows
13233 shrext_cmds=".dll"
13234 need_version=no
13235 need_lib_prefix=no
13236
13237 case $GCC,$host_os in
13238 yes,cygwin* | yes,mingw* | yes,pw32*)
13239 library_names_spec='$libname.dll.a'
13240 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13241 postinstall_cmds='base_file=`basename \${file}`~
13242 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13243 dldir=$destdir/`dirname \$dlpath`~
13244 test -d \$dldir || mkdir -p \$dldir~
13245 $install_prog $dir/$dlname \$dldir/$dlname~
13246 chmod a+x \$dldir/$dlname'
13247 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13248 dlpath=$dir/\$dldll~
13249 $rm \$dlpath'
13250 shlibpath_overrides_runpath=yes
13251
13252 case $host_os in
13253 cygwin*)
13254 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13255 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13256 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13257 ;;
13258 mingw*)
13259 # MinGW DLLs use traditional 'lib' prefix
13260 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13261 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13262 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13263 # It is most probably a Windows format PATH printed by
13264 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13265 # path with ; separators, and with drive letters. We can handle the
13266 # drive letters (cygwin fileutils understands them), so leave them,
13267 # especially as we might pass files found there to a mingw objdump,
13268 # which wouldn't understand a cygwinified path. Ahh.
13269 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13270 else
13271 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13272 fi
13273 ;;
13274 pw32*)
13275 # pw32 DLLs use 'pw' prefix rather than 'lib'
13276 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13277 ;;
13278 esac
13279 ;;
13280
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013281 *)
13282 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13283 ;;
13284 esac
13285 dynamic_linker='Win32 ld.exe'
13286 # FIXME: first we should search . and the directory the executable is in
13287 shlibpath_var=PATH
13288 ;;
13289
13290darwin* | rhapsody*)
13291 dynamic_linker="$host_os dyld"
13292 version_type=darwin
13293 need_lib_prefix=no
13294 need_version=no
13295 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13296 soname_spec='${libname}${release}${major}$shared_ext'
13297 shlibpath_overrides_runpath=yes
13298 shlibpath_var=DYLD_LIBRARY_PATH
13299 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13300 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13301 if test "$GCC" = yes; then
13302 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13303 else
13304 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13305 fi
13306 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13307 ;;
13308
13309dgux*)
13310 version_type=linux
13311 need_lib_prefix=no
13312 need_version=no
13313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13314 soname_spec='${libname}${release}${shared_ext}$major'
13315 shlibpath_var=LD_LIBRARY_PATH
13316 ;;
13317
13318freebsd1*)
13319 dynamic_linker=no
13320 ;;
13321
13322kfreebsd*-gnu)
13323 version_type=linux
13324 need_lib_prefix=no
13325 need_version=no
13326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13327 soname_spec='${libname}${release}${shared_ext}$major'
13328 shlibpath_var=LD_LIBRARY_PATH
13329 shlibpath_overrides_runpath=no
13330 hardcode_into_libs=yes
13331 dynamic_linker='GNU ld.so'
13332 ;;
13333
13334freebsd* | dragonfly*)
13335 # DragonFly does not have aout. When/if they implement a new
13336 # versioning mechanism, adjust this.
13337 if test -x /usr/bin/objformat; then
13338 objformat=`/usr/bin/objformat`
13339 else
13340 case $host_os in
13341 freebsd[123]*) objformat=aout ;;
13342 *) objformat=elf ;;
13343 esac
13344 fi
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050013345 version_type=freebsd-$objformat
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013346 case $version_type in
13347 freebsd-elf*)
13348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13349 need_version=no
13350 need_lib_prefix=no
13351 ;;
13352 freebsd-*)
13353 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13354 need_version=yes
13355 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013356 esac
13357 shlibpath_var=LD_LIBRARY_PATH
13358 case $host_os in
13359 freebsd2*)
13360 shlibpath_overrides_runpath=yes
13361 ;;
13362 freebsd3.[01]* | freebsdelf3.[01]*)
13363 shlibpath_overrides_runpath=yes
13364 hardcode_into_libs=yes
13365 ;;
13366 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13367 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13368 shlibpath_overrides_runpath=no
13369 hardcode_into_libs=yes
13370 ;;
13371 freebsd*) # from 4.6 on
13372 shlibpath_overrides_runpath=yes
13373 hardcode_into_libs=yes
13374 ;;
13375 esac
13376 ;;
13377
13378gnu*)
13379 version_type=linux
13380 need_lib_prefix=no
13381 need_version=no
13382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13383 soname_spec='${libname}${release}${shared_ext}$major'
13384 shlibpath_var=LD_LIBRARY_PATH
13385 hardcode_into_libs=yes
13386 ;;
13387
13388hpux9* | hpux10* | hpux11*)
13389 # Give a soname corresponding to the major version so that dld.sl refuses to
13390 # link against other versions.
13391 version_type=sunos
13392 need_lib_prefix=no
13393 need_version=no
13394 case $host_cpu in
13395 ia64*)
13396 shrext_cmds='.so'
13397 hardcode_into_libs=yes
13398 dynamic_linker="$host_os dld.so"
13399 shlibpath_var=LD_LIBRARY_PATH
13400 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13402 soname_spec='${libname}${release}${shared_ext}$major'
13403 if test "X$HPUX_IA64_MODE" = X32; then
13404 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13405 else
13406 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13407 fi
13408 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13409 ;;
13410 hppa*64*)
13411 shrext_cmds='.sl'
13412 hardcode_into_libs=yes
13413 dynamic_linker="$host_os dld.sl"
13414 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13415 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13417 soname_spec='${libname}${release}${shared_ext}$major'
13418 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13419 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13420 ;;
13421 *)
13422 shrext_cmds='.sl'
13423 dynamic_linker="$host_os dld.sl"
13424 shlibpath_var=SHLIB_PATH
13425 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13427 soname_spec='${libname}${release}${shared_ext}$major'
13428 ;;
13429 esac
13430 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13431 postinstall_cmds='chmod 555 $lib'
13432 ;;
13433
13434interix3*)
13435 version_type=linux
13436 need_lib_prefix=no
13437 need_version=no
13438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13439 soname_spec='${libname}${release}${shared_ext}$major'
13440 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13441 shlibpath_var=LD_LIBRARY_PATH
13442 shlibpath_overrides_runpath=no
13443 hardcode_into_libs=yes
13444 ;;
13445
13446irix5* | irix6* | nonstopux*)
13447 case $host_os in
13448 nonstopux*) version_type=nonstopux ;;
13449 *)
13450 if test "$lt_cv_prog_gnu_ld" = yes; then
13451 version_type=linux
13452 else
13453 version_type=irix
13454 fi ;;
13455 esac
13456 need_lib_prefix=no
13457 need_version=no
13458 soname_spec='${libname}${release}${shared_ext}$major'
13459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13460 case $host_os in
13461 irix5* | nonstopux*)
13462 libsuff= shlibsuff=
13463 ;;
13464 *)
13465 case $LD in # libtool.m4 will add one of these switches to LD
13466 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13467 libsuff= shlibsuff= libmagic=32-bit;;
13468 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13469 libsuff=32 shlibsuff=N32 libmagic=N32;;
13470 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13471 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13472 *) libsuff= shlibsuff= libmagic=never-match;;
13473 esac
13474 ;;
13475 esac
13476 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13477 shlibpath_overrides_runpath=no
13478 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13479 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13480 hardcode_into_libs=yes
13481 ;;
13482
13483# No shared lib support for Linux oldld, aout, or coff.
13484linux*oldld* | linux*aout* | linux*coff*)
13485 dynamic_linker=no
13486 ;;
13487
13488# This must be Linux ELF.
13489linux*)
13490 version_type=linux
13491 need_lib_prefix=no
13492 need_version=no
13493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494 soname_spec='${libname}${release}${shared_ext}$major'
13495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13496 shlibpath_var=LD_LIBRARY_PATH
13497 shlibpath_overrides_runpath=no
13498 # This implies no fast_install, which is unacceptable.
13499 # Some rework will be needed to allow for fast_install
13500 # before this can be enabled.
13501 hardcode_into_libs=yes
13502
13503 # Append ld.so.conf contents to the search path
13504 if test -f /etc/ld.so.conf; then
13505 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13506 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13507 fi
13508
13509 # We used to test for /lib/ld.so.1 and disable shared libraries on
13510 # powerpc, because MkLinux only supported shared libraries with the
13511 # GNU dynamic linker. Since this was broken with cross compilers,
13512 # most powerpc-linux boxes support dynamic linking these days and
13513 # people can always --disable-shared, the test was removed, and we
13514 # assume the GNU/Linux dynamic linker is in use.
13515 dynamic_linker='GNU/Linux ld.so'
13516 ;;
13517
13518knetbsd*-gnu)
13519 version_type=linux
13520 need_lib_prefix=no
13521 need_version=no
13522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13523 soname_spec='${libname}${release}${shared_ext}$major'
13524 shlibpath_var=LD_LIBRARY_PATH
13525 shlibpath_overrides_runpath=no
13526 hardcode_into_libs=yes
13527 dynamic_linker='GNU ld.so'
13528 ;;
13529
13530netbsd*)
13531 version_type=sunos
13532 need_lib_prefix=no
13533 need_version=no
13534 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13537 dynamic_linker='NetBSD (a.out) ld.so'
13538 else
13539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13540 soname_spec='${libname}${release}${shared_ext}$major'
13541 dynamic_linker='NetBSD ld.elf_so'
13542 fi
13543 shlibpath_var=LD_LIBRARY_PATH
13544 shlibpath_overrides_runpath=yes
13545 hardcode_into_libs=yes
13546 ;;
13547
13548newsos6)
13549 version_type=linux
13550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13551 shlibpath_var=LD_LIBRARY_PATH
13552 shlibpath_overrides_runpath=yes
13553 ;;
13554
13555nto-qnx*)
13556 version_type=linux
13557 need_lib_prefix=no
13558 need_version=no
13559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13560 soname_spec='${libname}${release}${shared_ext}$major'
13561 shlibpath_var=LD_LIBRARY_PATH
13562 shlibpath_overrides_runpath=yes
13563 ;;
13564
13565openbsd*)
13566 version_type=sunos
13567 sys_lib_dlsearch_path_spec="/usr/lib"
13568 need_lib_prefix=no
13569 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13570 case $host_os in
13571 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13572 *) need_version=no ;;
13573 esac
13574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13575 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13576 shlibpath_var=LD_LIBRARY_PATH
13577 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13578 case $host_os in
13579 openbsd2.[89] | openbsd2.[89].*)
13580 shlibpath_overrides_runpath=no
13581 ;;
13582 *)
13583 shlibpath_overrides_runpath=yes
13584 ;;
13585 esac
13586 else
13587 shlibpath_overrides_runpath=yes
13588 fi
13589 ;;
13590
13591os2*)
13592 libname_spec='$name'
13593 shrext_cmds=".dll"
13594 need_lib_prefix=no
13595 library_names_spec='$libname${shared_ext} $libname.a'
13596 dynamic_linker='OS/2 ld.exe'
13597 shlibpath_var=LIBPATH
13598 ;;
13599
13600osf3* | osf4* | osf5*)
13601 version_type=osf
13602 need_lib_prefix=no
13603 need_version=no
13604 soname_spec='${libname}${release}${shared_ext}$major'
13605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13606 shlibpath_var=LD_LIBRARY_PATH
13607 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13608 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13609 ;;
13610
13611solaris*)
13612 version_type=linux
13613 need_lib_prefix=no
13614 need_version=no
13615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13616 soname_spec='${libname}${release}${shared_ext}$major'
13617 shlibpath_var=LD_LIBRARY_PATH
13618 shlibpath_overrides_runpath=yes
13619 hardcode_into_libs=yes
13620 # ldd complains unless libraries are executable
13621 postinstall_cmds='chmod +x $lib'
13622 ;;
13623
13624sunos4*)
13625 version_type=sunos
13626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13627 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13628 shlibpath_var=LD_LIBRARY_PATH
13629 shlibpath_overrides_runpath=yes
13630 if test "$with_gnu_ld" = yes; then
13631 need_lib_prefix=no
13632 fi
13633 need_version=yes
13634 ;;
13635
13636sysv4 | sysv4.3*)
13637 version_type=linux
13638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13639 soname_spec='${libname}${release}${shared_ext}$major'
13640 shlibpath_var=LD_LIBRARY_PATH
13641 case $host_vendor in
13642 sni)
13643 shlibpath_overrides_runpath=no
13644 need_lib_prefix=no
13645 export_dynamic_flag_spec='${wl}-Blargedynsym'
13646 runpath_var=LD_RUN_PATH
13647 ;;
13648 siemens)
13649 need_lib_prefix=no
13650 ;;
13651 motorola)
13652 need_lib_prefix=no
13653 need_version=no
13654 shlibpath_overrides_runpath=no
13655 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13656 ;;
13657 esac
13658 ;;
13659
13660sysv4*MP*)
13661 if test -d /usr/nec ;then
13662 version_type=linux
13663 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13664 soname_spec='$libname${shared_ext}.$major'
13665 shlibpath_var=LD_LIBRARY_PATH
13666 fi
13667 ;;
13668
13669sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13670 version_type=freebsd-elf
13671 need_lib_prefix=no
13672 need_version=no
13673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13674 soname_spec='${libname}${release}${shared_ext}$major'
13675 shlibpath_var=LD_LIBRARY_PATH
13676 hardcode_into_libs=yes
13677 if test "$with_gnu_ld" = yes; then
13678 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13679 shlibpath_overrides_runpath=no
13680 else
13681 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13682 shlibpath_overrides_runpath=yes
13683 case $host_os in
13684 sco3.2v5*)
13685 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13686 ;;
13687 esac
13688 fi
13689 sys_lib_dlsearch_path_spec='/usr/lib'
13690 ;;
13691
13692uts4*)
13693 version_type=linux
13694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13695 soname_spec='${libname}${release}${shared_ext}$major'
13696 shlibpath_var=LD_LIBRARY_PATH
13697 ;;
13698
13699*)
13700 dynamic_linker=no
13701 ;;
13702esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013703{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13704echo "${ECHO_T}$dynamic_linker" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013705test "$dynamic_linker" = no && can_build_shared=no
13706
13707variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13708if test "$GCC" = yes; then
13709 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13710fi
13711
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013712{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13713echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013714hardcode_action_CXX=
13715if test -n "$hardcode_libdir_flag_spec_CXX" || \
13716 test -n "$runpath_var_CXX" || \
13717 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13718
13719 # We can hardcode non-existant directories.
13720 if test "$hardcode_direct_CXX" != no &&
13721 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13722 # have to relink, otherwise we might link with an installed library
13723 # when we should be linking with a yet-to-be-installed one
13724 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13725 test "$hardcode_minus_L_CXX" != no; then
13726 # Linking always hardcodes the temporary library directory.
13727 hardcode_action_CXX=relink
13728 else
13729 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13730 hardcode_action_CXX=immediate
13731 fi
13732else
13733 # We cannot hardcode anything, or else we can only hardcode existing
13734 # directories.
13735 hardcode_action_CXX=unsupported
13736fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013737{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13738echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013739
13740if test "$hardcode_action_CXX" = relink; then
13741 # Fast installation is not supported
13742 enable_fast_install=no
13743elif test "$shlibpath_overrides_runpath" = yes ||
13744 test "$enable_shared" = no; then
13745 # Fast installation is not necessary
13746 enable_fast_install=needless
13747fi
13748
13749
13750# The else clause should only fire when bootstrapping the
13751# libtool distribution, otherwise you forgot to ship ltmain.sh
13752# with your package, and you will get complaints that there are
13753# no rules to generate ltmain.sh.
13754if test -f "$ltmain"; then
13755 # See if we are running on zsh, and set the options which allow our commands through
13756 # without removal of \ escapes.
13757 if test -n "${ZSH_VERSION+set}" ; then
13758 setopt NO_GLOB_SUBST
13759 fi
13760 # Now quote all the things that may contain metacharacters while being
13761 # careful not to overquote the AC_SUBSTed values. We take copies of the
13762 # variables and quote the copies for generation of the libtool script.
13763 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13764 SED SHELL STRIP \
13765 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13766 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13767 deplibs_check_method reload_flag reload_cmds need_locks \
13768 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13769 lt_cv_sys_global_symbol_to_c_name_address \
13770 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13771 old_postinstall_cmds old_postuninstall_cmds \
13772 compiler_CXX \
13773 CC_CXX \
13774 LD_CXX \
13775 lt_prog_compiler_wl_CXX \
13776 lt_prog_compiler_pic_CXX \
13777 lt_prog_compiler_static_CXX \
13778 lt_prog_compiler_no_builtin_flag_CXX \
13779 export_dynamic_flag_spec_CXX \
13780 thread_safe_flag_spec_CXX \
13781 whole_archive_flag_spec_CXX \
13782 enable_shared_with_static_runtimes_CXX \
13783 old_archive_cmds_CXX \
13784 old_archive_from_new_cmds_CXX \
13785 predep_objects_CXX \
13786 postdep_objects_CXX \
13787 predeps_CXX \
13788 postdeps_CXX \
13789 compiler_lib_search_path_CXX \
13790 archive_cmds_CXX \
13791 archive_expsym_cmds_CXX \
13792 postinstall_cmds_CXX \
13793 postuninstall_cmds_CXX \
13794 old_archive_from_expsyms_cmds_CXX \
13795 allow_undefined_flag_CXX \
13796 no_undefined_flag_CXX \
13797 export_symbols_cmds_CXX \
13798 hardcode_libdir_flag_spec_CXX \
13799 hardcode_libdir_flag_spec_ld_CXX \
13800 hardcode_libdir_separator_CXX \
13801 hardcode_automatic_CXX \
13802 module_cmds_CXX \
13803 module_expsym_cmds_CXX \
13804 lt_cv_prog_compiler_c_o_CXX \
13805 exclude_expsyms_CXX \
13806 include_expsyms_CXX; do
13807
13808 case $var in
13809 old_archive_cmds_CXX | \
13810 old_archive_from_new_cmds_CXX | \
13811 archive_cmds_CXX | \
13812 archive_expsym_cmds_CXX | \
13813 module_cmds_CXX | \
13814 module_expsym_cmds_CXX | \
13815 old_archive_from_expsyms_cmds_CXX | \
13816 export_symbols_cmds_CXX | \
13817 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13818 postinstall_cmds | postuninstall_cmds | \
13819 old_postinstall_cmds | old_postuninstall_cmds | \
13820 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13821 # Double-quote double-evaled strings.
13822 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13823 ;;
13824 *)
13825 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13826 ;;
13827 esac
13828 done
13829
13830 case $lt_echo in
13831 *'\$0 --fallback-echo"')
13832 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13833 ;;
13834 esac
13835
13836cfgfile="$ofile"
13837
13838 cat <<__EOF__ >> "$cfgfile"
13839# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13840
13841# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13842
13843# Shell to use when invoking shell scripts.
13844SHELL=$lt_SHELL
13845
13846# Whether or not to build shared libraries.
13847build_libtool_libs=$enable_shared
13848
13849# Whether or not to build static libraries.
13850build_old_libs=$enable_static
13851
13852# Whether or not to add -lc for building shared libraries.
13853build_libtool_need_lc=$archive_cmds_need_lc_CXX
13854
13855# Whether or not to disallow shared libs when runtime libs are static
13856allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13857
13858# Whether or not to optimize for fast installation.
13859fast_install=$enable_fast_install
13860
13861# The host system.
13862host_alias=$host_alias
13863host=$host
13864host_os=$host_os
13865
13866# The build system.
13867build_alias=$build_alias
13868build=$build
13869build_os=$build_os
13870
13871# An echo program that does not interpret backslashes.
13872echo=$lt_echo
13873
13874# The archiver.
13875AR=$lt_AR
13876AR_FLAGS=$lt_AR_FLAGS
13877
13878# A C compiler.
13879LTCC=$lt_LTCC
13880
13881# LTCC compiler flags.
13882LTCFLAGS=$lt_LTCFLAGS
13883
13884# A language-specific compiler.
13885CC=$lt_compiler_CXX
13886
13887# Is the compiler the GNU C compiler?
13888with_gcc=$GCC_CXX
13889
13890# An ERE matcher.
13891EGREP=$lt_EGREP
13892
13893# The linker used to build libraries.
13894LD=$lt_LD_CXX
13895
13896# Whether we need hard or soft links.
13897LN_S=$lt_LN_S
13898
13899# A BSD-compatible nm program.
13900NM=$lt_NM
13901
13902# A symbol stripping program
13903STRIP=$lt_STRIP
13904
13905# Used to examine libraries when file_magic_cmd begins "file"
13906MAGIC_CMD=$MAGIC_CMD
13907
13908# Used on cygwin: DLL creation program.
13909DLLTOOL="$DLLTOOL"
13910
13911# Used on cygwin: object dumper.
13912OBJDUMP="$OBJDUMP"
13913
13914# Used on cygwin: assembler.
13915AS="$AS"
13916
13917# The name of the directory that contains temporary libtool files.
13918objdir=$objdir
13919
13920# How to create reloadable object files.
13921reload_flag=$lt_reload_flag
13922reload_cmds=$lt_reload_cmds
13923
13924# How to pass a linker flag through the compiler.
13925wl=$lt_lt_prog_compiler_wl_CXX
13926
13927# Object file suffix (normally "o").
13928objext="$ac_objext"
13929
13930# Old archive suffix (normally "a").
13931libext="$libext"
13932
13933# Shared library suffix (normally ".so").
13934shrext_cmds='$shrext_cmds'
13935
13936# Executable file suffix (normally "").
13937exeext="$exeext"
13938
13939# Additional compiler flags for building library objects.
13940pic_flag=$lt_lt_prog_compiler_pic_CXX
13941pic_mode=$pic_mode
13942
13943# What is the maximum length of a command?
13944max_cmd_len=$lt_cv_sys_max_cmd_len
13945
13946# Does compiler simultaneously support -c and -o options?
13947compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13948
13949# Must we lock files when doing compilation?
13950need_locks=$lt_need_locks
13951
13952# Do we need the lib prefix for modules?
13953need_lib_prefix=$need_lib_prefix
13954
13955# Do we need a version for libraries?
13956need_version=$need_version
13957
13958# Whether dlopen is supported.
13959dlopen_support=$enable_dlopen
13960
13961# Whether dlopen of programs is supported.
13962dlopen_self=$enable_dlopen_self
13963
13964# Whether dlopen of statically linked programs is supported.
13965dlopen_self_static=$enable_dlopen_self_static
13966
13967# Compiler flag to prevent dynamic linking.
13968link_static_flag=$lt_lt_prog_compiler_static_CXX
13969
13970# Compiler flag to turn off builtin functions.
13971no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13972
13973# Compiler flag to allow reflexive dlopens.
13974export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13975
13976# Compiler flag to generate shared objects directly from archives.
13977whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13978
13979# Compiler flag to generate thread-safe objects.
13980thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13981
13982# Library versioning type.
13983version_type=$version_type
13984
13985# Format of library name prefix.
13986libname_spec=$lt_libname_spec
13987
13988# List of archive names. First name is the real one, the rest are links.
13989# The last name is the one that the linker finds with -lNAME.
13990library_names_spec=$lt_library_names_spec
13991
13992# The coded name of the library, if different from the real name.
13993soname_spec=$lt_soname_spec
13994
13995# Commands used to build and install an old-style archive.
13996RANLIB=$lt_RANLIB
13997old_archive_cmds=$lt_old_archive_cmds_CXX
13998old_postinstall_cmds=$lt_old_postinstall_cmds
13999old_postuninstall_cmds=$lt_old_postuninstall_cmds
14000
14001# Create an old-style archive from a shared archive.
14002old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14003
14004# Create a temporary old-style archive to link instead of a shared archive.
14005old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14006
14007# Commands used to build and install a shared archive.
14008archive_cmds=$lt_archive_cmds_CXX
14009archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14010postinstall_cmds=$lt_postinstall_cmds
14011postuninstall_cmds=$lt_postuninstall_cmds
14012
14013# Commands used to build a loadable module (assumed same as above if empty)
14014module_cmds=$lt_module_cmds_CXX
14015module_expsym_cmds=$lt_module_expsym_cmds_CXX
14016
14017# Commands to strip libraries.
14018old_striplib=$lt_old_striplib
14019striplib=$lt_striplib
14020
14021# Dependencies to place before the objects being linked to create a
14022# shared library.
14023predep_objects=$lt_predep_objects_CXX
14024
14025# Dependencies to place after the objects being linked to create a
14026# shared library.
14027postdep_objects=$lt_postdep_objects_CXX
14028
14029# Dependencies to place before the objects being linked to create a
14030# shared library.
14031predeps=$lt_predeps_CXX
14032
14033# Dependencies to place after the objects being linked to create a
14034# shared library.
14035postdeps=$lt_postdeps_CXX
14036
14037# The library search path used internally by the compiler when linking
14038# a shared library.
14039compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14040
14041# Method to check whether dependent libraries are shared objects.
14042deplibs_check_method=$lt_deplibs_check_method
14043
14044# Command to use when deplibs_check_method == file_magic.
14045file_magic_cmd=$lt_file_magic_cmd
14046
14047# Flag that allows shared libraries with undefined symbols to be built.
14048allow_undefined_flag=$lt_allow_undefined_flag_CXX
14049
14050# Flag that forces no undefined symbols.
14051no_undefined_flag=$lt_no_undefined_flag_CXX
14052
14053# Commands used to finish a libtool library installation in a directory.
14054finish_cmds=$lt_finish_cmds
14055
14056# Same as above, but a single script fragment to be evaled but not shown.
14057finish_eval=$lt_finish_eval
14058
14059# Take the output of nm and produce a listing of raw symbols and C names.
14060global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14061
14062# Transform the output of nm in a proper C declaration
14063global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14064
14065# Transform the output of nm in a C name address pair
14066global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14067
14068# This is the shared library runtime path variable.
14069runpath_var=$runpath_var
14070
14071# This is the shared library path variable.
14072shlibpath_var=$shlibpath_var
14073
14074# Is shlibpath searched before the hard-coded library search path?
14075shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14076
14077# How to hardcode a shared library path into an executable.
14078hardcode_action=$hardcode_action_CXX
14079
14080# Whether we should hardcode library paths into libraries.
14081hardcode_into_libs=$hardcode_into_libs
14082
14083# Flag to hardcode \$libdir into a binary during linking.
14084# This must work even if \$libdir does not exist.
14085hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14086
14087# If ld is used when linking, flag to hardcode \$libdir into
14088# a binary during linking. This must work even if \$libdir does
14089# not exist.
14090hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14091
14092# Whether we need a single -rpath flag with a separated argument.
14093hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14094
14095# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14096# resulting binary.
14097hardcode_direct=$hardcode_direct_CXX
14098
14099# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14100# resulting binary.
14101hardcode_minus_L=$hardcode_minus_L_CXX
14102
14103# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14104# the resulting binary.
14105hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14106
14107# Set to yes if building a shared library automatically hardcodes DIR into the library
14108# and all subsequent libraries and executables linked against it.
14109hardcode_automatic=$hardcode_automatic_CXX
14110
14111# Variables whose values should be saved in libtool wrapper scripts and
14112# restored at relink time.
14113variables_saved_for_relink="$variables_saved_for_relink"
14114
14115# Whether libtool must link a program against all its dependency libraries.
14116link_all_deplibs=$link_all_deplibs_CXX
14117
14118# Compile-time system search path for libraries
14119sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14120
14121# Run-time system search path for libraries
14122sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14123
14124# Fix the shell variable \$srcfile for the compiler.
14125fix_srcfile_path="$fix_srcfile_path_CXX"
14126
14127# Set to yes if exported symbols are required.
14128always_export_symbols=$always_export_symbols_CXX
14129
14130# The commands to list exported symbols.
14131export_symbols_cmds=$lt_export_symbols_cmds_CXX
14132
14133# The commands to extract the exported symbol list from a shared archive.
14134extract_expsyms_cmds=$lt_extract_expsyms_cmds
14135
14136# Symbols that should not be listed in the preloaded symbols.
14137exclude_expsyms=$lt_exclude_expsyms_CXX
14138
14139# Symbols that must always be exported.
14140include_expsyms=$lt_include_expsyms_CXX
14141
14142# ### END LIBTOOL TAG CONFIG: $tagname
14143
14144__EOF__
14145
14146
14147else
14148 # If there is no Makefile yet, we rely on a make rule to execute
14149 # `config.status --recheck' to rerun these tests and create the
14150 # libtool script then.
14151 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14152 if test -f "$ltmain_in"; then
14153 test -f Makefile && make "$ltmain"
14154 fi
14155fi
14156
14157
14158ac_ext=c
14159ac_cpp='$CPP $CPPFLAGS'
14160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14162ac_compiler_gnu=$ac_cv_c_compiler_gnu
14163
14164CC=$lt_save_CC
14165LDCXX=$LD
14166LD=$lt_save_LD
14167GCC=$lt_save_GCC
14168with_gnu_ldcxx=$with_gnu_ld
14169with_gnu_ld=$lt_save_with_gnu_ld
14170lt_cv_path_LDCXX=$lt_cv_path_LD
14171lt_cv_path_LD=$lt_save_path_LD
14172lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14173lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14174
14175 else
14176 tagname=""
14177 fi
14178 ;;
14179
14180 F77)
14181 if test -n "$F77" && test "X$F77" != "Xno"; then
14182
14183ac_ext=f
14184ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14185ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14186ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14187
14188
14189archive_cmds_need_lc_F77=no
14190allow_undefined_flag_F77=
14191always_export_symbols_F77=no
14192archive_expsym_cmds_F77=
14193export_dynamic_flag_spec_F77=
14194hardcode_direct_F77=no
14195hardcode_libdir_flag_spec_F77=
14196hardcode_libdir_flag_spec_ld_F77=
14197hardcode_libdir_separator_F77=
14198hardcode_minus_L_F77=no
14199hardcode_automatic_F77=no
14200module_cmds_F77=
14201module_expsym_cmds_F77=
14202link_all_deplibs_F77=unknown
14203old_archive_cmds_F77=$old_archive_cmds
14204no_undefined_flag_F77=
14205whole_archive_flag_spec_F77=
14206enable_shared_with_static_runtimes_F77=no
14207
14208# Source file extension for f77 test sources.
14209ac_ext=f
14210
14211# Object file extension for compiled f77 test sources.
14212objext=o
14213objext_F77=$objext
14214
14215# Code to be used in simple compile tests
14216lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14217
14218# Code to be used in simple link tests
14219lt_simple_link_test_code=" program t\n end\n"
14220
14221# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14222
14223# If no C compiler was specified, use CC.
14224LTCC=${LTCC-"$CC"}
14225
14226# If no C compiler flags were specified, use CFLAGS.
14227LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14228
14229# Allow CC to be a program name with arguments.
14230compiler=$CC
14231
14232
14233# save warnings/boilerplate of simple test code
14234ac_outfile=conftest.$ac_objext
14235printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14236eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14237_lt_compiler_boilerplate=`cat conftest.err`
14238$rm conftest*
14239
14240ac_outfile=conftest.$ac_objext
14241printf "$lt_simple_link_test_code" >conftest.$ac_ext
14242eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14243_lt_linker_boilerplate=`cat conftest.err`
14244$rm conftest*
14245
14246
14247# Allow CC to be a program name with arguments.
14248lt_save_CC="$CC"
14249CC=${F77-"f77"}
14250compiler=$CC
14251compiler_F77=$CC
14252for cc_temp in $compiler""; do
14253 case $cc_temp in
14254 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14255 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14256 \-*) ;;
14257 *) break;;
14258 esac
14259done
14260cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14261
14262
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014263{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14264echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14265{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14266echo "${ECHO_T}$can_build_shared" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014267
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014268{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14269echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014270test "$can_build_shared" = "no" && enable_shared=no
14271
14272# On AIX, shared libraries and static libraries use the same namespace, and
14273# are all built from PIC.
14274case $host_os in
14275aix3*)
14276 test "$enable_shared" = yes && enable_static=no
14277 if test -n "$RANLIB"; then
14278 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14279 postinstall_cmds='$RANLIB $lib'
14280 fi
14281 ;;
14282aix4* | aix5*)
14283 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14284 test "$enable_shared" = yes && enable_static=no
14285 fi
14286 ;;
14287esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014288{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14289echo "${ECHO_T}$enable_shared" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014290
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014291{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14292echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014293# Make sure either enable_shared or enable_static is yes.
14294test "$enable_shared" = yes || enable_static=yes
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014295{ echo "$as_me:$LINENO: result: $enable_static" >&5
14296echo "${ECHO_T}$enable_static" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014297
14298GCC_F77="$G77"
14299LD_F77="$LD"
14300
14301lt_prog_compiler_wl_F77=
14302lt_prog_compiler_pic_F77=
14303lt_prog_compiler_static_F77=
14304
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014305{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14306echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014307
14308 if test "$GCC" = yes; then
14309 lt_prog_compiler_wl_F77='-Wl,'
14310 lt_prog_compiler_static_F77='-static'
14311
14312 case $host_os in
14313 aix*)
14314 # All AIX code is PIC.
14315 if test "$host_cpu" = ia64; then
14316 # AIX 5 now supports IA64 processor
14317 lt_prog_compiler_static_F77='-Bstatic'
14318 fi
14319 ;;
14320
14321 amigaos*)
14322 # FIXME: we need at least 68020 code to build shared libraries, but
14323 # adding the `-m68020' flag to GCC prevents building anything better,
14324 # like `-m68040'.
14325 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14326 ;;
14327
14328 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14329 # PIC is the default for these OSes.
14330 ;;
14331
14332 mingw* | pw32* | os2*)
14333 # This hack is so that the source file can tell whether it is being
14334 # built for inclusion in a dll (and should export symbols for example).
14335 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14336 ;;
14337
14338 darwin* | rhapsody*)
14339 # PIC is the default on this platform
14340 # Common symbols not allowed in MH_DYLIB files
14341 lt_prog_compiler_pic_F77='-fno-common'
14342 ;;
14343
14344 interix3*)
14345 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14346 # Instead, we relocate shared libraries at runtime.
14347 ;;
14348
14349 msdosdjgpp*)
14350 # Just because we use GCC doesn't mean we suddenly get shared libraries
14351 # on systems that don't support them.
14352 lt_prog_compiler_can_build_shared_F77=no
14353 enable_shared=no
14354 ;;
14355
14356 sysv4*MP*)
14357 if test -d /usr/nec; then
14358 lt_prog_compiler_pic_F77=-Kconform_pic
14359 fi
14360 ;;
14361
14362 hpux*)
14363 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14364 # not for PA HP-UX.
14365 case $host_cpu in
14366 hppa*64*|ia64*)
14367 # +Z the default
14368 ;;
14369 *)
14370 lt_prog_compiler_pic_F77='-fPIC'
14371 ;;
14372 esac
14373 ;;
14374
14375 *)
14376 lt_prog_compiler_pic_F77='-fPIC'
14377 ;;
14378 esac
14379 else
14380 # PORTME Check for flag to pass linker flags through the system compiler.
14381 case $host_os in
14382 aix*)
14383 lt_prog_compiler_wl_F77='-Wl,'
14384 if test "$host_cpu" = ia64; then
14385 # AIX 5 now supports IA64 processor
14386 lt_prog_compiler_static_F77='-Bstatic'
14387 else
14388 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14389 fi
14390 ;;
14391 darwin*)
14392 # PIC is the default on this platform
14393 # Common symbols not allowed in MH_DYLIB files
14394 case $cc_basename in
14395 xlc*)
14396 lt_prog_compiler_pic_F77='-qnocommon'
14397 lt_prog_compiler_wl_F77='-Wl,'
14398 ;;
14399 esac
14400 ;;
14401
14402 mingw* | pw32* | os2*)
14403 # This hack is so that the source file can tell whether it is being
14404 # built for inclusion in a dll (and should export symbols for example).
14405 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14406 ;;
14407
14408 hpux9* | hpux10* | hpux11*)
14409 lt_prog_compiler_wl_F77='-Wl,'
14410 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14411 # not for PA HP-UX.
14412 case $host_cpu in
14413 hppa*64*|ia64*)
14414 # +Z the default
14415 ;;
14416 *)
14417 lt_prog_compiler_pic_F77='+Z'
14418 ;;
14419 esac
14420 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14421 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14422 ;;
14423
14424 irix5* | irix6* | nonstopux*)
14425 lt_prog_compiler_wl_F77='-Wl,'
14426 # PIC (with -KPIC) is the default.
14427 lt_prog_compiler_static_F77='-non_shared'
14428 ;;
14429
14430 newsos6)
14431 lt_prog_compiler_pic_F77='-KPIC'
14432 lt_prog_compiler_static_F77='-Bstatic'
14433 ;;
14434
14435 linux*)
14436 case $cc_basename in
14437 icc* | ecc*)
14438 lt_prog_compiler_wl_F77='-Wl,'
14439 lt_prog_compiler_pic_F77='-KPIC'
14440 lt_prog_compiler_static_F77='-static'
14441 ;;
14442 pgcc* | pgf77* | pgf90* | pgf95*)
14443 # Portland Group compilers (*not* the Pentium gcc compiler,
14444 # which looks to be a dead project)
14445 lt_prog_compiler_wl_F77='-Wl,'
14446 lt_prog_compiler_pic_F77='-fpic'
14447 lt_prog_compiler_static_F77='-Bstatic'
14448 ;;
14449 ccc*)
14450 lt_prog_compiler_wl_F77='-Wl,'
14451 # All Alpha code is PIC.
14452 lt_prog_compiler_static_F77='-non_shared'
14453 ;;
14454 esac
14455 ;;
14456
14457 osf3* | osf4* | osf5*)
14458 lt_prog_compiler_wl_F77='-Wl,'
14459 # All OSF/1 code is PIC.
14460 lt_prog_compiler_static_F77='-non_shared'
14461 ;;
14462
14463 solaris*)
14464 lt_prog_compiler_pic_F77='-KPIC'
14465 lt_prog_compiler_static_F77='-Bstatic'
14466 case $cc_basename in
14467 f77* | f90* | f95*)
14468 lt_prog_compiler_wl_F77='-Qoption ld ';;
14469 *)
14470 lt_prog_compiler_wl_F77='-Wl,';;
14471 esac
14472 ;;
14473
14474 sunos4*)
14475 lt_prog_compiler_wl_F77='-Qoption ld '
14476 lt_prog_compiler_pic_F77='-PIC'
14477 lt_prog_compiler_static_F77='-Bstatic'
14478 ;;
14479
14480 sysv4 | sysv4.2uw2* | sysv4.3*)
14481 lt_prog_compiler_wl_F77='-Wl,'
14482 lt_prog_compiler_pic_F77='-KPIC'
14483 lt_prog_compiler_static_F77='-Bstatic'
14484 ;;
14485
14486 sysv4*MP*)
14487 if test -d /usr/nec ;then
14488 lt_prog_compiler_pic_F77='-Kconform_pic'
14489 lt_prog_compiler_static_F77='-Bstatic'
14490 fi
14491 ;;
14492
14493 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14494 lt_prog_compiler_wl_F77='-Wl,'
14495 lt_prog_compiler_pic_F77='-KPIC'
14496 lt_prog_compiler_static_F77='-Bstatic'
14497 ;;
14498
14499 unicos*)
14500 lt_prog_compiler_wl_F77='-Wl,'
14501 lt_prog_compiler_can_build_shared_F77=no
14502 ;;
14503
14504 uts4*)
14505 lt_prog_compiler_pic_F77='-pic'
14506 lt_prog_compiler_static_F77='-Bstatic'
14507 ;;
14508
14509 *)
14510 lt_prog_compiler_can_build_shared_F77=no
14511 ;;
14512 esac
14513 fi
14514
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014515{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14516echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014517
14518#
14519# Check to make sure the PIC flag actually works.
14520#
14521if test -n "$lt_prog_compiler_pic_F77"; then
14522
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014523{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14524echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014525if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14526 echo $ECHO_N "(cached) $ECHO_C" >&6
14527else
14528 lt_prog_compiler_pic_works_F77=no
14529 ac_outfile=conftest.$ac_objext
14530 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14531 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14532 # Insert the option either (1) after the last *FLAGS variable, or
14533 # (2) before a word containing "conftest.", or (3) at the end.
14534 # Note that $ac_compile itself does not contain backslashes and begins
14535 # with a dollar sign (not a hyphen), so the echo should work correctly.
14536 # The option is referenced via a variable to avoid confusing sed.
14537 lt_compile=`echo "$ac_compile" | $SED \
14538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14540 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014541 (eval echo "\"\$as_me:14541: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014542 (eval "$lt_compile" 2>conftest.err)
14543 ac_status=$?
14544 cat conftest.err >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014545 echo "$as_me:14545: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014546 if (exit $ac_status) && test -s "$ac_outfile"; then
14547 # The compiler can only warn and ignore the option if not recognized
14548 # So say no if there are warnings other than the usual output.
14549 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14551 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14552 lt_prog_compiler_pic_works_F77=yes
14553 fi
14554 fi
14555 $rm conftest*
14556
14557fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014558{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14559echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014560
14561if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14562 case $lt_prog_compiler_pic_F77 in
14563 "" | " "*) ;;
14564 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14565 esac
14566else
14567 lt_prog_compiler_pic_F77=
14568 lt_prog_compiler_can_build_shared_F77=no
14569fi
14570
14571fi
14572case $host_os in
14573 # For platforms which do not support PIC, -DPIC is meaningless:
14574 *djgpp*)
14575 lt_prog_compiler_pic_F77=
14576 ;;
14577 *)
14578 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14579 ;;
14580esac
14581
14582#
14583# Check to make sure the static flag actually works.
14584#
14585wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014586{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14587echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014588if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14590else
14591 lt_prog_compiler_static_works_F77=no
14592 save_LDFLAGS="$LDFLAGS"
14593 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14594 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14595 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14596 # The linker can only warn and ignore the option if not recognized
14597 # So say no if there are warnings
14598 if test -s conftest.err; then
14599 # Append any errors to the config.log.
14600 cat conftest.err 1>&5
14601 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14602 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14603 if diff conftest.exp conftest.er2 >/dev/null; then
14604 lt_prog_compiler_static_works_F77=yes
14605 fi
14606 else
14607 lt_prog_compiler_static_works_F77=yes
14608 fi
14609 fi
14610 $rm conftest*
14611 LDFLAGS="$save_LDFLAGS"
14612
14613fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014614{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14615echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014616
14617if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14618 :
14619else
14620 lt_prog_compiler_static_F77=
14621fi
14622
14623
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014624{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14625echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014626if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14627 echo $ECHO_N "(cached) $ECHO_C" >&6
14628else
14629 lt_cv_prog_compiler_c_o_F77=no
14630 $rm -r conftest 2>/dev/null
14631 mkdir conftest
14632 cd conftest
14633 mkdir out
14634 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14635
14636 lt_compiler_flag="-o out/conftest2.$ac_objext"
14637 # Insert the option either (1) after the last *FLAGS variable, or
14638 # (2) before a word containing "conftest.", or (3) at the end.
14639 # Note that $ac_compile itself does not contain backslashes and begins
14640 # with a dollar sign (not a hyphen), so the echo should work correctly.
14641 lt_compile=`echo "$ac_compile" | $SED \
14642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14644 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014645 (eval echo "\"\$as_me:14645: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014646 (eval "$lt_compile" 2>out/conftest.err)
14647 ac_status=$?
14648 cat out/conftest.err >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014649 echo "$as_me:14649: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014650 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14651 then
14652 # The compiler can only warn and ignore the option if not recognized
14653 # So say no if there are warnings
14654 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14655 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14656 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14657 lt_cv_prog_compiler_c_o_F77=yes
14658 fi
14659 fi
14660 chmod u+w . 2>&5
14661 $rm conftest*
14662 # SGI C++ compiler will create directory out/ii_files/ for
14663 # template instantiation
14664 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14665 $rm out/* && rmdir out
14666 cd ..
14667 rmdir conftest
14668 $rm conftest*
14669
14670fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014671{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14672echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014673
14674
14675hard_links="nottested"
14676if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14677 # do not overwrite the value of need_locks provided by the user
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014678 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14679echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014680 hard_links=yes
14681 $rm conftest*
14682 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14683 touch conftest.a
14684 ln conftest.a conftest.b 2>&5 || hard_links=no
14685 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014686 { echo "$as_me:$LINENO: result: $hard_links" >&5
14687echo "${ECHO_T}$hard_links" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014688 if test "$hard_links" = no; then
14689 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14690echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14691 need_locks=warn
14692 fi
14693else
14694 need_locks=no
14695fi
14696
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014697{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14698echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014699
14700 runpath_var=
14701 allow_undefined_flag_F77=
14702 enable_shared_with_static_runtimes_F77=no
14703 archive_cmds_F77=
14704 archive_expsym_cmds_F77=
14705 old_archive_From_new_cmds_F77=
14706 old_archive_from_expsyms_cmds_F77=
14707 export_dynamic_flag_spec_F77=
14708 whole_archive_flag_spec_F77=
14709 thread_safe_flag_spec_F77=
14710 hardcode_libdir_flag_spec_F77=
14711 hardcode_libdir_flag_spec_ld_F77=
14712 hardcode_libdir_separator_F77=
14713 hardcode_direct_F77=no
14714 hardcode_minus_L_F77=no
14715 hardcode_shlibpath_var_F77=unsupported
14716 link_all_deplibs_F77=unknown
14717 hardcode_automatic_F77=no
14718 module_cmds_F77=
14719 module_expsym_cmds_F77=
14720 always_export_symbols_F77=no
14721 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14722 # include_expsyms should be a list of space-separated symbols to be *always*
14723 # included in the symbol list
14724 include_expsyms_F77=
14725 # exclude_expsyms can be an extended regexp of symbols to exclude
14726 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14727 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14728 # as well as any symbol that contains `d'.
14729 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14730 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14731 # platforms (ab)use it in PIC code, but their linkers get confused if
14732 # the symbol is explicitly referenced. Since portable code cannot
14733 # rely on this symbol name, it's probably fine to never include it in
14734 # preloaded symbol tables.
14735 extract_expsyms_cmds=
14736 # Just being paranoid about ensuring that cc_basename is set.
14737 for cc_temp in $compiler""; do
14738 case $cc_temp in
14739 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14740 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14741 \-*) ;;
14742 *) break;;
14743 esac
14744done
14745cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14746
14747 case $host_os in
14748 cygwin* | mingw* | pw32*)
14749 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14750 # When not using gcc, we currently assume that we are using
14751 # Microsoft Visual C++.
14752 if test "$GCC" != yes; then
14753 with_gnu_ld=no
14754 fi
14755 ;;
14756 interix*)
14757 # we just hope/assume this is gcc and not c89 (= MSVC++)
14758 with_gnu_ld=yes
14759 ;;
14760 openbsd*)
14761 with_gnu_ld=no
14762 ;;
14763 esac
14764
14765 ld_shlibs_F77=yes
14766 if test "$with_gnu_ld" = yes; then
14767 # If archive_cmds runs LD, not CC, wlarc should be empty
14768 wlarc='${wl}'
14769
14770 # Set some defaults for GNU ld with shared library support. These
14771 # are reset later if shared libraries are not supported. Putting them
14772 # here allows them to be overridden if necessary.
14773 runpath_var=LD_RUN_PATH
14774 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14775 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14776 # ancient GNU ld didn't support --whole-archive et. al.
14777 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14778 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14779 else
14780 whole_archive_flag_spec_F77=
14781 fi
14782 supports_anon_versioning=no
14783 case `$LD -v 2>/dev/null` in
14784 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14785 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14786 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14787 *\ 2.11.*) ;; # other 2.11 versions
14788 *) supports_anon_versioning=yes ;;
14789 esac
14790
14791 # See if GNU ld supports shared libraries.
14792 case $host_os in
14793 aix3* | aix4* | aix5*)
14794 # On AIX/PPC, the GNU linker is very broken
14795 if test "$host_cpu" != ia64; then
14796 ld_shlibs_F77=no
14797 cat <<EOF 1>&2
14798
14799*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14800*** to be unable to reliably create shared libraries on AIX.
14801*** Therefore, libtool is disabling shared libraries support. If you
14802*** really care for shared libraries, you may want to modify your PATH
14803*** so that a non-GNU linker is found, and then restart.
14804
14805EOF
14806 fi
14807 ;;
14808
14809 amigaos*)
14810 archive_cmds_F77='$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)'
14811 hardcode_libdir_flag_spec_F77='-L$libdir'
14812 hardcode_minus_L_F77=yes
14813
14814 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14815 # that the semantics of dynamic libraries on AmigaOS, at least up
14816 # to version 4, is to share data among multiple programs linked
14817 # with the same dynamic library. Since this doesn't match the
14818 # behavior of shared libraries on other platforms, we can't use
14819 # them.
14820 ld_shlibs_F77=no
14821 ;;
14822
14823 beos*)
14824 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14825 allow_undefined_flag_F77=unsupported
14826 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14827 # support --undefined. This deserves some investigation. FIXME
14828 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14829 else
14830 ld_shlibs_F77=no
14831 fi
14832 ;;
14833
14834 cygwin* | mingw* | pw32*)
14835 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14836 # as there is no search path for DLLs.
14837 hardcode_libdir_flag_spec_F77='-L$libdir'
14838 allow_undefined_flag_F77=unsupported
14839 always_export_symbols_F77=no
14840 enable_shared_with_static_runtimes_F77=yes
14841 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14842
14843 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14844 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14845 # If the export-symbols file already is a .def file (1st line
14846 # is EXPORTS), use it as is; otherwise, prepend...
14847 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14848 cp $export_symbols $output_objdir/$soname.def;
14849 else
14850 echo EXPORTS > $output_objdir/$soname.def;
14851 cat $export_symbols >> $output_objdir/$soname.def;
14852 fi~
14853 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14854 else
14855 ld_shlibs_F77=no
14856 fi
14857 ;;
14858
14859 interix3*)
14860 hardcode_direct_F77=no
14861 hardcode_shlibpath_var_F77=no
14862 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14863 export_dynamic_flag_spec_F77='${wl}-E'
14864 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14865 # Instead, shared libraries are loaded at an image base (0x10000000 by
14866 # default) and relocated if they conflict, which is a slow very memory
14867 # consuming and fragmenting process. To avoid this, we pick a random,
14868 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14869 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14870 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14871 archive_expsym_cmds_F77='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'
14872 ;;
14873
14874 linux*)
14875 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14876 tmp_addflag=
14877 case $cc_basename,$host_cpu in
14878 pgcc*) # Portland Group C compiler
14879 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14880 tmp_addflag=' $pic_flag'
14881 ;;
14882 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14883 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14884 tmp_addflag=' $pic_flag -Mnomain' ;;
14885 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14886 tmp_addflag=' -i_dynamic' ;;
14887 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14888 tmp_addflag=' -i_dynamic -nofor_main' ;;
14889 ifc* | ifort*) # Intel Fortran compiler
14890 tmp_addflag=' -nofor_main' ;;
14891 esac
14892 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14893
14894 if test $supports_anon_versioning = yes; then
14895 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14896 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14897 $echo "local: *; };" >> $output_objdir/$libname.ver~
14898 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14899 fi
14900 else
14901 ld_shlibs_F77=no
14902 fi
14903 ;;
14904
14905 netbsd*)
14906 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14907 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14908 wlarc=
14909 else
14910 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14911 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14912 fi
14913 ;;
14914
14915 solaris*)
14916 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14917 ld_shlibs_F77=no
14918 cat <<EOF 1>&2
14919
14920*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14921*** create shared libraries on Solaris systems. Therefore, libtool
14922*** is disabling shared libraries support. We urge you to upgrade GNU
14923*** binutils to release 2.9.1 or newer. Another option is to modify
14924*** your PATH or compiler configuration so that the native linker is
14925*** used, and then restart.
14926
14927EOF
14928 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14929 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14930 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14931 else
14932 ld_shlibs_F77=no
14933 fi
14934 ;;
14935
14936 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14937 case `$LD -v 2>&1` in
14938 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14939 ld_shlibs_F77=no
14940 cat <<_LT_EOF 1>&2
14941
14942*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14943*** reliably create shared libraries on SCO systems. Therefore, libtool
14944*** is disabling shared libraries support. We urge you to upgrade GNU
14945*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14946*** your PATH or compiler configuration so that the native linker is
14947*** used, and then restart.
14948
14949_LT_EOF
14950 ;;
14951 *)
14952 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14953 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14954 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14955 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14956 else
14957 ld_shlibs_F77=no
14958 fi
14959 ;;
14960 esac
14961 ;;
14962
14963 sunos4*)
14964 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14965 wlarc=
14966 hardcode_direct_F77=yes
14967 hardcode_shlibpath_var_F77=no
14968 ;;
14969
14970 *)
14971 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14972 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14973 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14974 else
14975 ld_shlibs_F77=no
14976 fi
14977 ;;
14978 esac
14979
14980 if test "$ld_shlibs_F77" = no; then
14981 runpath_var=
14982 hardcode_libdir_flag_spec_F77=
14983 export_dynamic_flag_spec_F77=
14984 whole_archive_flag_spec_F77=
14985 fi
14986 else
14987 # PORTME fill in a description of your system's linker (not GNU ld)
14988 case $host_os in
14989 aix3*)
14990 allow_undefined_flag_F77=unsupported
14991 always_export_symbols_F77=yes
14992 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14993 # Note: this linker hardcodes the directories in LIBPATH if there
14994 # are no directories specified by -L.
14995 hardcode_minus_L_F77=yes
14996 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14997 # Neither direct hardcoding nor static linking is supported with a
14998 # broken collect2.
14999 hardcode_direct_F77=unsupported
15000 fi
15001 ;;
15002
15003 aix4* | aix5*)
15004 if test "$host_cpu" = ia64; then
15005 # On IA64, the linker does run time linking by default, so we don't
15006 # have to do anything special.
15007 aix_use_runtimelinking=no
15008 exp_sym_flag='-Bexport'
15009 no_entry_flag=""
15010 else
15011 # If we're using GNU nm, then we don't want the "-C" option.
15012 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15013 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15014 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15015 else
15016 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15017 fi
15018 aix_use_runtimelinking=no
15019
15020 # Test if we are trying to use run time linking or normal
15021 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15022 # need to do runtime linking.
15023 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15024 for ld_flag in $LDFLAGS; do
15025 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15026 aix_use_runtimelinking=yes
15027 break
15028 fi
15029 done
15030 ;;
15031 esac
15032
15033 exp_sym_flag='-bexport'
15034 no_entry_flag='-bnoentry'
15035 fi
15036
15037 # When large executables or shared objects are built, AIX ld can
15038 # have problems creating the table of contents. If linking a library
15039 # or program results in "error TOC overflow" add -mminimal-toc to
15040 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15041 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15042
15043 archive_cmds_F77=''
15044 hardcode_direct_F77=yes
15045 hardcode_libdir_separator_F77=':'
15046 link_all_deplibs_F77=yes
15047
15048 if test "$GCC" = yes; then
15049 case $host_os in aix4.[012]|aix4.[012].*)
15050 # We only want to do this on AIX 4.2 and lower, the check
15051 # below for broken collect2 doesn't work under 4.3+
15052 collect2name=`${CC} -print-prog-name=collect2`
15053 if test -f "$collect2name" && \
15054 strings "$collect2name" | grep resolve_lib_name >/dev/null
15055 then
15056 # We have reworked collect2
15057 hardcode_direct_F77=yes
15058 else
15059 # We have old collect2
15060 hardcode_direct_F77=unsupported
15061 # It fails to find uninstalled libraries when the uninstalled
15062 # path is not listed in the libpath. Setting hardcode_minus_L
15063 # to unsupported forces relinking
15064 hardcode_minus_L_F77=yes
15065 hardcode_libdir_flag_spec_F77='-L$libdir'
15066 hardcode_libdir_separator_F77=
15067 fi
15068 ;;
15069 esac
15070 shared_flag='-shared'
15071 if test "$aix_use_runtimelinking" = yes; then
15072 shared_flag="$shared_flag "'${wl}-G'
15073 fi
15074 else
15075 # not using gcc
15076 if test "$host_cpu" = ia64; then
15077 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15078 # chokes on -Wl,-G. The following line is correct:
15079 shared_flag='-G'
15080 else
15081 if test "$aix_use_runtimelinking" = yes; then
15082 shared_flag='${wl}-G'
15083 else
15084 shared_flag='${wl}-bM:SRE'
15085 fi
15086 fi
15087 fi
15088
15089 # It seems that -bexpall does not export symbols beginning with
15090 # underscore (_), so it is better to generate a list of symbols to export.
15091 always_export_symbols_F77=yes
15092 if test "$aix_use_runtimelinking" = yes; then
15093 # Warning - without using the other runtime loading flags (-brtl),
15094 # -berok will link without error, but may produce a broken library.
15095 allow_undefined_flag_F77='-berok'
15096 # Determine the default libpath from the value encoded in an empty executable.
15097 cat >conftest.$ac_ext <<_ACEOF
15098 program main
15099
15100 end
15101_ACEOF
15102rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060015103if { (ac_try="$ac_link"
15104case "(($ac_try" in
15105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15106 *) ac_try_echo=$ac_try;;
15107esac
15108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15109 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015110 ac_status=$?
15111 grep -v '^ *+' conftest.er1 >conftest.err
15112 rm -f conftest.er1
15113 cat conftest.err >&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060015116 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15117 { (case "(($ac_try" in
15118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15119 *) ac_try_echo=$ac_try;;
15120esac
15121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15122 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015123 ac_status=$?
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); }; } &&
15126 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060015127 { (case "(($ac_try" in
15128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15129 *) ac_try_echo=$ac_try;;
15130esac
15131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15132 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; }; then
15136
15137aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15138}'`
15139# Check for a 64-bit object if we didn't find anything.
15140if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15141}'`; fi
15142else
15143 echo "$as_me: failed program was:" >&5
15144sed 's/^/| /' conftest.$ac_ext >&5
15145
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060015146
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015147fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060015148
15149rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015150 conftest$ac_exeext conftest.$ac_ext
15151if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15152
15153 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15154 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15155 else
15156 if test "$host_cpu" = ia64; then
15157 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15158 allow_undefined_flag_F77="-z nodefs"
15159 archive_expsym_cmds_F77="\$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"
15160 else
15161 # Determine the default libpath from the value encoded in an empty executable.
15162 cat >conftest.$ac_ext <<_ACEOF
15163 program main
15164
15165 end
15166_ACEOF
15167rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060015168if { (ac_try="$ac_link"
15169case "(($ac_try" in
15170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171 *) ac_try_echo=$ac_try;;
15172esac
15173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015175 ac_status=$?
15176 grep -v '^ *+' conftest.er1 >conftest.err
15177 rm -f conftest.er1
15178 cat conftest.err >&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060015181 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15182 { (case "(($ac_try" in
15183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15184 *) ac_try_echo=$ac_try;;
15185esac
15186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15187 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015188 ac_status=$?
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; } &&
15191 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060015192 { (case "(($ac_try" in
15193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15194 *) ac_try_echo=$ac_try;;
15195esac
15196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15197 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015198 ac_status=$?
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; }; then
15201
15202aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15203}'`
15204# Check for a 64-bit object if we didn't find anything.
15205if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15206}'`; fi
15207else
15208 echo "$as_me: failed program was:" >&5
15209sed 's/^/| /' conftest.$ac_ext >&5
15210
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060015211
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015212fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060015213
15214rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015215 conftest$ac_exeext conftest.$ac_ext
15216if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15217
15218 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15219 # Warning - without using the other run time loading flags,
15220 # -berok will link without error, but may produce a broken library.
15221 no_undefined_flag_F77=' ${wl}-bernotok'
15222 allow_undefined_flag_F77=' ${wl}-berok'
15223 # Exported symbols can be pulled into shared objects from archives
15224 whole_archive_flag_spec_F77='$convenience'
15225 archive_cmds_need_lc_F77=yes
15226 # This is similar to how AIX traditionally builds its shared libraries.
15227 archive_expsym_cmds_F77="\$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'
15228 fi
15229 fi
15230 ;;
15231
15232 amigaos*)
15233 archive_cmds_F77='$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)'
15234 hardcode_libdir_flag_spec_F77='-L$libdir'
15235 hardcode_minus_L_F77=yes
15236 # see comment about different semantics on the GNU ld section
15237 ld_shlibs_F77=no
15238 ;;
15239
15240 bsdi[45]*)
15241 export_dynamic_flag_spec_F77=-rdynamic
15242 ;;
15243
15244 cygwin* | mingw* | pw32*)
15245 # When not using gcc, we currently assume that we are using
15246 # Microsoft Visual C++.
15247 # hardcode_libdir_flag_spec is actually meaningless, as there is
15248 # no search path for DLLs.
15249 hardcode_libdir_flag_spec_F77=' '
15250 allow_undefined_flag_F77=unsupported
15251 # Tell ltmain to make .lib files, not .a files.
15252 libext=lib
15253 # Tell ltmain to make .dll files, not .so files.
15254 shrext_cmds=".dll"
15255 # FIXME: Setting linknames here is a bad hack.
15256 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15257 # The linker will automatically build a .lib file if we build a DLL.
15258 old_archive_From_new_cmds_F77='true'
15259 # FIXME: Should let the user specify the lib program.
15260 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15261 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15262 enable_shared_with_static_runtimes_F77=yes
15263 ;;
15264
15265 darwin* | rhapsody*)
15266 case $host_os in
15267 rhapsody* | darwin1.[012])
15268 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15269 ;;
15270 *) # Darwin 1.3 on
15271 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15272 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15273 else
15274 case ${MACOSX_DEPLOYMENT_TARGET} in
15275 10.[012])
15276 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15277 ;;
15278 10.*)
15279 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15280 ;;
15281 esac
15282 fi
15283 ;;
15284 esac
15285 archive_cmds_need_lc_F77=no
15286 hardcode_direct_F77=no
15287 hardcode_automatic_F77=yes
15288 hardcode_shlibpath_var_F77=unsupported
15289 whole_archive_flag_spec_F77=''
15290 link_all_deplibs_F77=yes
15291 if test "$GCC" = yes ; then
15292 output_verbose_link_cmd='echo'
15293 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15294 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15295 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15296 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15297 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15298 else
15299 case $cc_basename in
15300 xlc*)
15301 output_verbose_link_cmd='echo'
15302 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15303 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15304 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15305 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15306 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15307 ;;
15308 *)
15309 ld_shlibs_F77=no
15310 ;;
15311 esac
15312 fi
15313 ;;
15314
15315 dgux*)
15316 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15317 hardcode_libdir_flag_spec_F77='-L$libdir'
15318 hardcode_shlibpath_var_F77=no
15319 ;;
15320
15321 freebsd1*)
15322 ld_shlibs_F77=no
15323 ;;
15324
15325 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15326 # support. Future versions do this automatically, but an explicit c++rt0.o
15327 # does not break anything, and helps significantly (at the cost of a little
15328 # extra space).
15329 freebsd2.2*)
15330 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15331 hardcode_libdir_flag_spec_F77='-R$libdir'
15332 hardcode_direct_F77=yes
15333 hardcode_shlibpath_var_F77=no
15334 ;;
15335
15336 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15337 freebsd2*)
15338 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15339 hardcode_direct_F77=yes
15340 hardcode_minus_L_F77=yes
15341 hardcode_shlibpath_var_F77=no
15342 ;;
15343
15344 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15345 freebsd* | kfreebsd*-gnu | dragonfly*)
15346 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15347 hardcode_libdir_flag_spec_F77='-R$libdir'
15348 hardcode_direct_F77=yes
15349 hardcode_shlibpath_var_F77=no
15350 ;;
15351
15352 hpux9*)
15353 if test "$GCC" = yes; then
15354 archive_cmds_F77='$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'
15355 else
15356 archive_cmds_F77='$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'
15357 fi
15358 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15359 hardcode_libdir_separator_F77=:
15360 hardcode_direct_F77=yes
15361
15362 # hardcode_minus_L: Not really in the search PATH,
15363 # but as the default location of the library.
15364 hardcode_minus_L_F77=yes
15365 export_dynamic_flag_spec_F77='${wl}-E'
15366 ;;
15367
15368 hpux10*)
15369 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15370 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15371 else
15372 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15373 fi
15374 if test "$with_gnu_ld" = no; then
15375 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15376 hardcode_libdir_separator_F77=:
15377
15378 hardcode_direct_F77=yes
15379 export_dynamic_flag_spec_F77='${wl}-E'
15380
15381 # hardcode_minus_L: Not really in the search PATH,
15382 # but as the default location of the library.
15383 hardcode_minus_L_F77=yes
15384 fi
15385 ;;
15386
15387 hpux11*)
15388 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15389 case $host_cpu in
15390 hppa*64*)
15391 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15392 ;;
15393 ia64*)
15394 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15395 ;;
15396 *)
15397 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15398 ;;
15399 esac
15400 else
15401 case $host_cpu in
15402 hppa*64*)
15403 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15404 ;;
15405 ia64*)
15406 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15407 ;;
15408 *)
15409 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15410 ;;
15411 esac
15412 fi
15413 if test "$with_gnu_ld" = no; then
15414 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15415 hardcode_libdir_separator_F77=:
15416
15417 case $host_cpu in
15418 hppa*64*|ia64*)
15419 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15420 hardcode_direct_F77=no
15421 hardcode_shlibpath_var_F77=no
15422 ;;
15423 *)
15424 hardcode_direct_F77=yes
15425 export_dynamic_flag_spec_F77='${wl}-E'
15426
15427 # hardcode_minus_L: Not really in the search PATH,
15428 # but as the default location of the library.
15429 hardcode_minus_L_F77=yes
15430 ;;
15431 esac
15432 fi
15433 ;;
15434
15435 irix5* | irix6* | nonstopux*)
15436 if test "$GCC" = yes; then
15437 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15438 else
15439 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15440 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15441 fi
15442 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15443 hardcode_libdir_separator_F77=:
15444 link_all_deplibs_F77=yes
15445 ;;
15446
15447 netbsd*)
15448 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15449 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15450 else
15451 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15452 fi
15453 hardcode_libdir_flag_spec_F77='-R$libdir'
15454 hardcode_direct_F77=yes
15455 hardcode_shlibpath_var_F77=no
15456 ;;
15457
15458 newsos6)
15459 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15460 hardcode_direct_F77=yes
15461 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15462 hardcode_libdir_separator_F77=:
15463 hardcode_shlibpath_var_F77=no
15464 ;;
15465
15466 openbsd*)
15467 hardcode_direct_F77=yes
15468 hardcode_shlibpath_var_F77=no
15469 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15470 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15471 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15472 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15473 export_dynamic_flag_spec_F77='${wl}-E'
15474 else
15475 case $host_os in
15476 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15477 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15478 hardcode_libdir_flag_spec_F77='-R$libdir'
15479 ;;
15480 *)
15481 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15482 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15483 ;;
15484 esac
15485 fi
15486 ;;
15487
15488 os2*)
15489 hardcode_libdir_flag_spec_F77='-L$libdir'
15490 hardcode_minus_L_F77=yes
15491 allow_undefined_flag_F77=unsupported
15492 archive_cmds_F77='$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'
15493 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15494 ;;
15495
15496 osf3*)
15497 if test "$GCC" = yes; then
15498 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15499 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15500 else
15501 allow_undefined_flag_F77=' -expect_unresolved \*'
15502 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15503 fi
15504 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15505 hardcode_libdir_separator_F77=:
15506 ;;
15507
15508 osf4* | osf5*) # as osf3* with the addition of -msym flag
15509 if test "$GCC" = yes; then
15510 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15511 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15512 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15513 else
15514 allow_undefined_flag_F77=' -expect_unresolved \*'
15515 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15516 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15517 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15518
15519 # Both c and cxx compiler support -rpath directly
15520 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15521 fi
15522 hardcode_libdir_separator_F77=:
15523 ;;
15524
15525 solaris*)
15526 no_undefined_flag_F77=' -z text'
15527 if test "$GCC" = yes; then
15528 wlarc='${wl}'
15529 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15530 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15531 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15532 else
15533 wlarc=''
15534 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15535 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15536 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15537 fi
15538 hardcode_libdir_flag_spec_F77='-R$libdir'
15539 hardcode_shlibpath_var_F77=no
15540 case $host_os in
15541 solaris2.[0-5] | solaris2.[0-5].*) ;;
15542 *)
15543 # The compiler driver will combine linker options so we
15544 # cannot just pass the convience library names through
15545 # without $wl, iff we do not link with $LD.
15546 # Luckily, gcc supports the same syntax we need for Sun Studio.
15547 # Supported since Solaris 2.6 (maybe 2.5.1?)
15548 case $wlarc in
15549 '')
15550 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15551 *)
15552 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15553 esac ;;
15554 esac
15555 link_all_deplibs_F77=yes
15556 ;;
15557
15558 sunos4*)
15559 if test "x$host_vendor" = xsequent; then
15560 # Use $CC to link under sequent, because it throws in some extra .o
15561 # files that make .init and .fini sections work.
15562 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15563 else
15564 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15565 fi
15566 hardcode_libdir_flag_spec_F77='-L$libdir'
15567 hardcode_direct_F77=yes
15568 hardcode_minus_L_F77=yes
15569 hardcode_shlibpath_var_F77=no
15570 ;;
15571
15572 sysv4)
15573 case $host_vendor in
15574 sni)
15575 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15576 hardcode_direct_F77=yes # is this really true???
15577 ;;
15578 siemens)
15579 ## LD is ld it makes a PLAMLIB
15580 ## CC just makes a GrossModule.
15581 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15582 reload_cmds_F77='$CC -r -o $output$reload_objs'
15583 hardcode_direct_F77=no
15584 ;;
15585 motorola)
15586 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15587 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15588 ;;
15589 esac
15590 runpath_var='LD_RUN_PATH'
15591 hardcode_shlibpath_var_F77=no
15592 ;;
15593
15594 sysv4.3*)
15595 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15596 hardcode_shlibpath_var_F77=no
15597 export_dynamic_flag_spec_F77='-Bexport'
15598 ;;
15599
15600 sysv4*MP*)
15601 if test -d /usr/nec; then
15602 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15603 hardcode_shlibpath_var_F77=no
15604 runpath_var=LD_RUN_PATH
15605 hardcode_runpath_var=yes
15606 ld_shlibs_F77=yes
15607 fi
15608 ;;
15609
15610 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15611 no_undefined_flag_F77='${wl}-z,text'
15612 archive_cmds_need_lc_F77=no
15613 hardcode_shlibpath_var_F77=no
15614 runpath_var='LD_RUN_PATH'
15615
15616 if test "$GCC" = yes; then
15617 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15618 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15619 else
15620 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15621 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15622 fi
15623 ;;
15624
15625 sysv5* | sco3.2v5* | sco5v6*)
15626 # Note: We can NOT use -z defs as we might desire, because we do not
15627 # link with -lc, and that would cause any symbols used from libc to
15628 # always be unresolved, which means just about no library would
15629 # ever link correctly. If we're not using GNU ld we use -z text
15630 # though, which does catch some bad symbols but isn't as heavy-handed
15631 # as -z defs.
15632 no_undefined_flag_F77='${wl}-z,text'
15633 allow_undefined_flag_F77='${wl}-z,nodefs'
15634 archive_cmds_need_lc_F77=no
15635 hardcode_shlibpath_var_F77=no
15636 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15637 hardcode_libdir_separator_F77=':'
15638 link_all_deplibs_F77=yes
15639 export_dynamic_flag_spec_F77='${wl}-Bexport'
15640 runpath_var='LD_RUN_PATH'
15641
15642 if test "$GCC" = yes; then
15643 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15644 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15645 else
15646 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15647 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15648 fi
15649 ;;
15650
15651 uts4*)
15652 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15653 hardcode_libdir_flag_spec_F77='-L$libdir'
15654 hardcode_shlibpath_var_F77=no
15655 ;;
15656
15657 *)
15658 ld_shlibs_F77=no
15659 ;;
15660 esac
15661 fi
15662
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060015663{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15664echo "${ECHO_T}$ld_shlibs_F77" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015665test "$ld_shlibs_F77" = no && can_build_shared=no
15666
15667#
15668# Do we need to explicitly link libc?
15669#
15670case "x$archive_cmds_need_lc_F77" in
15671x|xyes)
15672 # Assume -lc should be added
15673 archive_cmds_need_lc_F77=yes
15674
15675 if test "$enable_shared" = yes && test "$GCC" = yes; then
15676 case $archive_cmds_F77 in
15677 *'~'*)
15678 # FIXME: we may have to deal with multi-command sequences.
15679 ;;
15680 '$CC '*)
15681 # Test whether the compiler implicitly links with -lc since on some
15682 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15683 # to ld, don't add -lc before -lgcc.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060015684 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15685echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015686 $rm conftest*
15687 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15688
15689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15690 (eval $ac_compile) 2>&5
15691 ac_status=$?
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } 2>conftest.err; then
15694 soname=conftest
15695 lib=conftest
15696 libobjs=conftest.$ac_objext
15697 deplibs=
15698 wl=$lt_prog_compiler_wl_F77
15699 pic_flag=$lt_prog_compiler_pic_F77
15700 compiler_flags=-v
15701 linker_flags=-v
15702 verstring=
15703 output_objdir=.
15704 libname=conftest
15705 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15706 allow_undefined_flag_F77=
15707 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15708 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15709 ac_status=$?
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }
15712 then
15713 archive_cmds_need_lc_F77=no
15714 else
15715 archive_cmds_need_lc_F77=yes
15716 fi
15717 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15718 else
15719 cat conftest.err 1>&5
15720 fi
15721 $rm conftest*
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060015722 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15723echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015724 ;;
15725 esac
15726 fi
15727 ;;
15728esac
15729
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060015730{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15731echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015732library_names_spec=
15733libname_spec='lib$name'
15734soname_spec=
15735shrext_cmds=".so"
15736postinstall_cmds=
15737postuninstall_cmds=
15738finish_cmds=
15739finish_eval=
15740shlibpath_var=
15741shlibpath_overrides_runpath=unknown
15742version_type=none
15743dynamic_linker="$host_os ld.so"
15744sys_lib_dlsearch_path_spec="/lib /usr/lib"
15745if test "$GCC" = yes; then
15746 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15747 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15748 # if the path contains ";" then we assume it to be the separator
15749 # otherwise default to the standard path separator (i.e. ":") - it is
15750 # assumed that no part of a normal pathname contains ";" but that should
15751 # okay in the real world where ";" in dirpaths is itself problematic.
15752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15753 else
15754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15755 fi
15756else
15757 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15758fi
15759need_lib_prefix=unknown
15760hardcode_into_libs=no
15761
15762# when you set need_version to no, make sure it does not cause -set_version
15763# flags to be left without arguments
15764need_version=unknown
15765
15766case $host_os in
15767aix3*)
15768 version_type=linux
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15770 shlibpath_var=LIBPATH
15771
15772 # AIX 3 has no versioning support, so we append a major version to the name.
15773 soname_spec='${libname}${release}${shared_ext}$major'
15774 ;;
15775
15776aix4* | aix5*)
15777 version_type=linux
15778 need_lib_prefix=no
15779 need_version=no
15780 hardcode_into_libs=yes
15781 if test "$host_cpu" = ia64; then
15782 # AIX 5 supports IA64
15783 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15784 shlibpath_var=LD_LIBRARY_PATH
15785 else
15786 # With GCC up to 2.95.x, collect2 would create an import file
15787 # for dependence libraries. The import file would start with
15788 # the line `#! .'. This would cause the generated library to
15789 # depend on `.', always an invalid library. This was fixed in
15790 # development snapshots of GCC prior to 3.0.
15791 case $host_os in
15792 aix4 | aix4.[01] | aix4.[01].*)
15793 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15794 echo ' yes '
15795 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15796 :
15797 else
15798 can_build_shared=no
15799 fi
15800 ;;
15801 esac
15802 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15803 # soname into executable. Probably we can add versioning support to
15804 # collect2, so additional links can be useful in future.
15805 if test "$aix_use_runtimelinking" = yes; then
15806 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15807 # instead of lib<name>.a to let people know that these are not
15808 # typical AIX shared libraries.
15809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15810 else
15811 # We preserve .a as extension for shared libraries through AIX4.2
15812 # and later when we are not doing run time linking.
15813 library_names_spec='${libname}${release}.a $libname.a'
15814 soname_spec='${libname}${release}${shared_ext}$major'
15815 fi
15816 shlibpath_var=LIBPATH
15817 fi
15818 ;;
15819
15820amigaos*)
15821 library_names_spec='$libname.ixlibrary $libname.a'
15822 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15823 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'
15824 ;;
15825
15826beos*)
15827 library_names_spec='${libname}${shared_ext}'
15828 dynamic_linker="$host_os ld.so"
15829 shlibpath_var=LIBRARY_PATH
15830 ;;
15831
15832bsdi[45]*)
15833 version_type=linux
15834 need_version=no
15835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15836 soname_spec='${libname}${release}${shared_ext}$major'
15837 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15838 shlibpath_var=LD_LIBRARY_PATH
15839 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15840 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15841 # the default ld.so.conf also contains /usr/contrib/lib and
15842 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15843 # libtool to hard-code these into programs
15844 ;;
15845
15846cygwin* | mingw* | pw32*)
15847 version_type=windows
15848 shrext_cmds=".dll"
15849 need_version=no
15850 need_lib_prefix=no
15851
15852 case $GCC,$host_os in
15853 yes,cygwin* | yes,mingw* | yes,pw32*)
15854 library_names_spec='$libname.dll.a'
15855 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15856 postinstall_cmds='base_file=`basename \${file}`~
15857 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15858 dldir=$destdir/`dirname \$dlpath`~
15859 test -d \$dldir || mkdir -p \$dldir~
15860 $install_prog $dir/$dlname \$dldir/$dlname~
15861 chmod a+x \$dldir/$dlname'
15862 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15863 dlpath=$dir/\$dldll~
15864 $rm \$dlpath'
15865 shlibpath_overrides_runpath=yes
15866
15867 case $host_os in
15868 cygwin*)
15869 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15870 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15871 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15872 ;;
15873 mingw*)
15874 # MinGW DLLs use traditional 'lib' prefix
15875 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15876 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15877 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15878 # It is most probably a Windows format PATH printed by
15879 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15880 # path with ; separators, and with drive letters. We can handle the
15881 # drive letters (cygwin fileutils understands them), so leave them,
15882 # especially as we might pass files found there to a mingw objdump,
15883 # which wouldn't understand a cygwinified path. Ahh.
15884 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15885 else
15886 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15887 fi
15888 ;;
15889 pw32*)
15890 # pw32 DLLs use 'pw' prefix rather than 'lib'
15891 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15892 ;;
15893 esac
15894 ;;
15895
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015896 *)
15897 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15898 ;;
15899 esac
15900 dynamic_linker='Win32 ld.exe'
15901 # FIXME: first we should search . and the directory the executable is in
15902 shlibpath_var=PATH
15903 ;;
15904
15905darwin* | rhapsody*)
15906 dynamic_linker="$host_os dyld"
15907 version_type=darwin
15908 need_lib_prefix=no
15909 need_version=no
15910 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15911 soname_spec='${libname}${release}${major}$shared_ext'
15912 shlibpath_overrides_runpath=yes
15913 shlibpath_var=DYLD_LIBRARY_PATH
15914 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15915 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15916 if test "$GCC" = yes; then
15917 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15918 else
15919 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15920 fi
15921 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15922 ;;
15923
15924dgux*)
15925 version_type=linux
15926 need_lib_prefix=no
15927 need_version=no
15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15929 soname_spec='${libname}${release}${shared_ext}$major'
15930 shlibpath_var=LD_LIBRARY_PATH
15931 ;;
15932
15933freebsd1*)
15934 dynamic_linker=no
15935 ;;
15936
15937kfreebsd*-gnu)
15938 version_type=linux
15939 need_lib_prefix=no
15940 need_version=no
15941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15942 soname_spec='${libname}${release}${shared_ext}$major'
15943 shlibpath_var=LD_LIBRARY_PATH
15944 shlibpath_overrides_runpath=no
15945 hardcode_into_libs=yes
15946 dynamic_linker='GNU ld.so'
15947 ;;
15948
15949freebsd* | dragonfly*)
15950 # DragonFly does not have aout. When/if they implement a new
15951 # versioning mechanism, adjust this.
15952 if test -x /usr/bin/objformat; then
15953 objformat=`/usr/bin/objformat`
15954 else
15955 case $host_os in
15956 freebsd[123]*) objformat=aout ;;
15957 *) objformat=elf ;;
15958 esac
15959 fi
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050015960 version_type=freebsd-$objformat
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015961 case $version_type in
15962 freebsd-elf*)
15963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15964 need_version=no
15965 need_lib_prefix=no
15966 ;;
15967 freebsd-*)
15968 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15969 need_version=yes
15970 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015971 esac
15972 shlibpath_var=LD_LIBRARY_PATH
15973 case $host_os in
15974 freebsd2*)
15975 shlibpath_overrides_runpath=yes
15976 ;;
15977 freebsd3.[01]* | freebsdelf3.[01]*)
15978 shlibpath_overrides_runpath=yes
15979 hardcode_into_libs=yes
15980 ;;
15981 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15982 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15983 shlibpath_overrides_runpath=no
15984 hardcode_into_libs=yes
15985 ;;
15986 freebsd*) # from 4.6 on
15987 shlibpath_overrides_runpath=yes
15988 hardcode_into_libs=yes
15989 ;;
15990 esac
15991 ;;
15992
15993gnu*)
15994 version_type=linux
15995 need_lib_prefix=no
15996 need_version=no
15997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15998 soname_spec='${libname}${release}${shared_ext}$major'
15999 shlibpath_var=LD_LIBRARY_PATH
16000 hardcode_into_libs=yes
16001 ;;
16002
16003hpux9* | hpux10* | hpux11*)
16004 # Give a soname corresponding to the major version so that dld.sl refuses to
16005 # link against other versions.
16006 version_type=sunos
16007 need_lib_prefix=no
16008 need_version=no
16009 case $host_cpu in
16010 ia64*)
16011 shrext_cmds='.so'
16012 hardcode_into_libs=yes
16013 dynamic_linker="$host_os dld.so"
16014 shlibpath_var=LD_LIBRARY_PATH
16015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16017 soname_spec='${libname}${release}${shared_ext}$major'
16018 if test "X$HPUX_IA64_MODE" = X32; then
16019 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16020 else
16021 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16022 fi
16023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16024 ;;
16025 hppa*64*)
16026 shrext_cmds='.sl'
16027 hardcode_into_libs=yes
16028 dynamic_linker="$host_os dld.sl"
16029 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16032 soname_spec='${libname}${release}${shared_ext}$major'
16033 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16035 ;;
16036 *)
16037 shrext_cmds='.sl'
16038 dynamic_linker="$host_os dld.sl"
16039 shlibpath_var=SHLIB_PATH
16040 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16042 soname_spec='${libname}${release}${shared_ext}$major'
16043 ;;
16044 esac
16045 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16046 postinstall_cmds='chmod 555 $lib'
16047 ;;
16048
16049interix3*)
16050 version_type=linux
16051 need_lib_prefix=no
16052 need_version=no
16053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16054 soname_spec='${libname}${release}${shared_ext}$major'
16055 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16056 shlibpath_var=LD_LIBRARY_PATH
16057 shlibpath_overrides_runpath=no
16058 hardcode_into_libs=yes
16059 ;;
16060
16061irix5* | irix6* | nonstopux*)
16062 case $host_os in
16063 nonstopux*) version_type=nonstopux ;;
16064 *)
16065 if test "$lt_cv_prog_gnu_ld" = yes; then
16066 version_type=linux
16067 else
16068 version_type=irix
16069 fi ;;
16070 esac
16071 need_lib_prefix=no
16072 need_version=no
16073 soname_spec='${libname}${release}${shared_ext}$major'
16074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16075 case $host_os in
16076 irix5* | nonstopux*)
16077 libsuff= shlibsuff=
16078 ;;
16079 *)
16080 case $LD in # libtool.m4 will add one of these switches to LD
16081 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16082 libsuff= shlibsuff= libmagic=32-bit;;
16083 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16084 libsuff=32 shlibsuff=N32 libmagic=N32;;
16085 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16086 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16087 *) libsuff= shlibsuff= libmagic=never-match;;
16088 esac
16089 ;;
16090 esac
16091 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16092 shlibpath_overrides_runpath=no
16093 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16094 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16095 hardcode_into_libs=yes
16096 ;;
16097
16098# No shared lib support for Linux oldld, aout, or coff.
16099linux*oldld* | linux*aout* | linux*coff*)
16100 dynamic_linker=no
16101 ;;
16102
16103# This must be Linux ELF.
16104linux*)
16105 version_type=linux
16106 need_lib_prefix=no
16107 need_version=no
16108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16109 soname_spec='${libname}${release}${shared_ext}$major'
16110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16111 shlibpath_var=LD_LIBRARY_PATH
16112 shlibpath_overrides_runpath=no
16113 # This implies no fast_install, which is unacceptable.
16114 # Some rework will be needed to allow for fast_install
16115 # before this can be enabled.
16116 hardcode_into_libs=yes
16117
16118 # Append ld.so.conf contents to the search path
16119 if test -f /etc/ld.so.conf; then
16120 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16121 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16122 fi
16123
16124 # We used to test for /lib/ld.so.1 and disable shared libraries on
16125 # powerpc, because MkLinux only supported shared libraries with the
16126 # GNU dynamic linker. Since this was broken with cross compilers,
16127 # most powerpc-linux boxes support dynamic linking these days and
16128 # people can always --disable-shared, the test was removed, and we
16129 # assume the GNU/Linux dynamic linker is in use.
16130 dynamic_linker='GNU/Linux ld.so'
16131 ;;
16132
16133knetbsd*-gnu)
16134 version_type=linux
16135 need_lib_prefix=no
16136 need_version=no
16137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16138 soname_spec='${libname}${release}${shared_ext}$major'
16139 shlibpath_var=LD_LIBRARY_PATH
16140 shlibpath_overrides_runpath=no
16141 hardcode_into_libs=yes
16142 dynamic_linker='GNU ld.so'
16143 ;;
16144
16145netbsd*)
16146 version_type=sunos
16147 need_lib_prefix=no
16148 need_version=no
16149 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16152 dynamic_linker='NetBSD (a.out) ld.so'
16153 else
16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16155 soname_spec='${libname}${release}${shared_ext}$major'
16156 dynamic_linker='NetBSD ld.elf_so'
16157 fi
16158 shlibpath_var=LD_LIBRARY_PATH
16159 shlibpath_overrides_runpath=yes
16160 hardcode_into_libs=yes
16161 ;;
16162
16163newsos6)
16164 version_type=linux
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16166 shlibpath_var=LD_LIBRARY_PATH
16167 shlibpath_overrides_runpath=yes
16168 ;;
16169
16170nto-qnx*)
16171 version_type=linux
16172 need_lib_prefix=no
16173 need_version=no
16174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16175 soname_spec='${libname}${release}${shared_ext}$major'
16176 shlibpath_var=LD_LIBRARY_PATH
16177 shlibpath_overrides_runpath=yes
16178 ;;
16179
16180openbsd*)
16181 version_type=sunos
16182 sys_lib_dlsearch_path_spec="/usr/lib"
16183 need_lib_prefix=no
16184 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16185 case $host_os in
16186 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16187 *) need_version=no ;;
16188 esac
16189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16191 shlibpath_var=LD_LIBRARY_PATH
16192 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16193 case $host_os in
16194 openbsd2.[89] | openbsd2.[89].*)
16195 shlibpath_overrides_runpath=no
16196 ;;
16197 *)
16198 shlibpath_overrides_runpath=yes
16199 ;;
16200 esac
16201 else
16202 shlibpath_overrides_runpath=yes
16203 fi
16204 ;;
16205
16206os2*)
16207 libname_spec='$name'
16208 shrext_cmds=".dll"
16209 need_lib_prefix=no
16210 library_names_spec='$libname${shared_ext} $libname.a'
16211 dynamic_linker='OS/2 ld.exe'
16212 shlibpath_var=LIBPATH
16213 ;;
16214
16215osf3* | osf4* | osf5*)
16216 version_type=osf
16217 need_lib_prefix=no
16218 need_version=no
16219 soname_spec='${libname}${release}${shared_ext}$major'
16220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221 shlibpath_var=LD_LIBRARY_PATH
16222 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16223 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16224 ;;
16225
16226solaris*)
16227 version_type=linux
16228 need_lib_prefix=no
16229 need_version=no
16230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231 soname_spec='${libname}${release}${shared_ext}$major'
16232 shlibpath_var=LD_LIBRARY_PATH
16233 shlibpath_overrides_runpath=yes
16234 hardcode_into_libs=yes
16235 # ldd complains unless libraries are executable
16236 postinstall_cmds='chmod +x $lib'
16237 ;;
16238
16239sunos4*)
16240 version_type=sunos
16241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16242 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16243 shlibpath_var=LD_LIBRARY_PATH
16244 shlibpath_overrides_runpath=yes
16245 if test "$with_gnu_ld" = yes; then
16246 need_lib_prefix=no
16247 fi
16248 need_version=yes
16249 ;;
16250
16251sysv4 | sysv4.3*)
16252 version_type=linux
16253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16254 soname_spec='${libname}${release}${shared_ext}$major'
16255 shlibpath_var=LD_LIBRARY_PATH
16256 case $host_vendor in
16257 sni)
16258 shlibpath_overrides_runpath=no
16259 need_lib_prefix=no
16260 export_dynamic_flag_spec='${wl}-Blargedynsym'
16261 runpath_var=LD_RUN_PATH
16262 ;;
16263 siemens)
16264 need_lib_prefix=no
16265 ;;
16266 motorola)
16267 need_lib_prefix=no
16268 need_version=no
16269 shlibpath_overrides_runpath=no
16270 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16271 ;;
16272 esac
16273 ;;
16274
16275sysv4*MP*)
16276 if test -d /usr/nec ;then
16277 version_type=linux
16278 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16279 soname_spec='$libname${shared_ext}.$major'
16280 shlibpath_var=LD_LIBRARY_PATH
16281 fi
16282 ;;
16283
16284sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16285 version_type=freebsd-elf
16286 need_lib_prefix=no
16287 need_version=no
16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16289 soname_spec='${libname}${release}${shared_ext}$major'
16290 shlibpath_var=LD_LIBRARY_PATH
16291 hardcode_into_libs=yes
16292 if test "$with_gnu_ld" = yes; then
16293 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16294 shlibpath_overrides_runpath=no
16295 else
16296 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16297 shlibpath_overrides_runpath=yes
16298 case $host_os in
16299 sco3.2v5*)
16300 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16301 ;;
16302 esac
16303 fi
16304 sys_lib_dlsearch_path_spec='/usr/lib'
16305 ;;
16306
16307uts4*)
16308 version_type=linux
16309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16310 soname_spec='${libname}${release}${shared_ext}$major'
16311 shlibpath_var=LD_LIBRARY_PATH
16312 ;;
16313
16314*)
16315 dynamic_linker=no
16316 ;;
16317esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060016318{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16319echo "${ECHO_T}$dynamic_linker" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060016320test "$dynamic_linker" = no && can_build_shared=no
16321
16322variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16323if test "$GCC" = yes; then
16324 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16325fi
16326
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060016327{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16328echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060016329hardcode_action_F77=
16330if test -n "$hardcode_libdir_flag_spec_F77" || \
16331 test -n "$runpath_var_F77" || \
16332 test "X$hardcode_automatic_F77" = "Xyes" ; then
16333
16334 # We can hardcode non-existant directories.
16335 if test "$hardcode_direct_F77" != no &&
16336 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16337 # have to relink, otherwise we might link with an installed library
16338 # when we should be linking with a yet-to-be-installed one
16339 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16340 test "$hardcode_minus_L_F77" != no; then
16341 # Linking always hardcodes the temporary library directory.
16342 hardcode_action_F77=relink
16343 else
16344 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16345 hardcode_action_F77=immediate
16346 fi
16347else
16348 # We cannot hardcode anything, or else we can only hardcode existing
16349 # directories.
16350 hardcode_action_F77=unsupported
16351fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060016352{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16353echo "${ECHO_T}$hardcode_action_F77" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060016354
16355if test "$hardcode_action_F77" = relink; then
16356 # Fast installation is not supported
16357 enable_fast_install=no
16358elif test "$shlibpath_overrides_runpath" = yes ||
16359 test "$enable_shared" = no; then
16360 # Fast installation is not necessary
16361 enable_fast_install=needless
16362fi
16363
16364
16365# The else clause should only fire when bootstrapping the
16366# libtool distribution, otherwise you forgot to ship ltmain.sh
16367# with your package, and you will get complaints that there are
16368# no rules to generate ltmain.sh.
16369if test -f "$ltmain"; then
16370 # See if we are running on zsh, and set the options which allow our commands through
16371 # without removal of \ escapes.
16372 if test -n "${ZSH_VERSION+set}" ; then
16373 setopt NO_GLOB_SUBST
16374 fi
16375 # Now quote all the things that may contain metacharacters while being
16376 # careful not to overquote the AC_SUBSTed values. We take copies of the
16377 # variables and quote the copies for generation of the libtool script.
16378 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16379 SED SHELL STRIP \
16380 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16381 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16382 deplibs_check_method reload_flag reload_cmds need_locks \
16383 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16384 lt_cv_sys_global_symbol_to_c_name_address \
16385 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16386 old_postinstall_cmds old_postuninstall_cmds \
16387 compiler_F77 \
16388 CC_F77 \
16389 LD_F77 \
16390 lt_prog_compiler_wl_F77 \
16391 lt_prog_compiler_pic_F77 \
16392 lt_prog_compiler_static_F77 \
16393 lt_prog_compiler_no_builtin_flag_F77 \
16394 export_dynamic_flag_spec_F77 \
16395 thread_safe_flag_spec_F77 \
16396 whole_archive_flag_spec_F77 \
16397 enable_shared_with_static_runtimes_F77 \
16398 old_archive_cmds_F77 \
16399 old_archive_from_new_cmds_F77 \
16400 predep_objects_F77 \
16401 postdep_objects_F77 \
16402 predeps_F77 \
16403 postdeps_F77 \
16404 compiler_lib_search_path_F77 \
16405 archive_cmds_F77 \
16406 archive_expsym_cmds_F77 \
16407 postinstall_cmds_F77 \
16408 postuninstall_cmds_F77 \
16409 old_archive_from_expsyms_cmds_F77 \
16410 allow_undefined_flag_F77 \
16411 no_undefined_flag_F77 \
16412 export_symbols_cmds_F77 \
16413 hardcode_libdir_flag_spec_F77 \
16414 hardcode_libdir_flag_spec_ld_F77 \
16415 hardcode_libdir_separator_F77 \
16416 hardcode_automatic_F77 \
16417 module_cmds_F77 \
16418 module_expsym_cmds_F77 \
16419 lt_cv_prog_compiler_c_o_F77 \
16420 exclude_expsyms_F77 \
16421 include_expsyms_F77; do
16422
16423 case $var in
16424 old_archive_cmds_F77 | \
16425 old_archive_from_new_cmds_F77 | \
16426 archive_cmds_F77 | \
16427 archive_expsym_cmds_F77 | \
16428 module_cmds_F77 | \
16429 module_expsym_cmds_F77 | \
16430 old_archive_from_expsyms_cmds_F77 | \
16431 export_symbols_cmds_F77 | \
16432 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16433 postinstall_cmds | postuninstall_cmds | \
16434 old_postinstall_cmds | old_postuninstall_cmds | \
16435 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16436 # Double-quote double-evaled strings.
16437 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16438 ;;
16439 *)
16440 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16441 ;;
16442 esac
16443 done
16444
16445 case $lt_echo in
16446 *'\$0 --fallback-echo"')
16447 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16448 ;;
16449 esac
16450
16451cfgfile="$ofile"
16452
16453 cat <<__EOF__ >> "$cfgfile"
16454# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16455
16456# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16457
16458# Shell to use when invoking shell scripts.
16459SHELL=$lt_SHELL
16460
16461# Whether or not to build shared libraries.
16462build_libtool_libs=$enable_shared
16463
16464# Whether or not to build static libraries.
16465build_old_libs=$enable_static
16466
16467# Whether or not to add -lc for building shared libraries.
16468build_libtool_need_lc=$archive_cmds_need_lc_F77
16469
16470# Whether or not to disallow shared libs when runtime libs are static
16471allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16472
16473# Whether or not to optimize for fast installation.
16474fast_install=$enable_fast_install
16475
16476# The host system.
16477host_alias=$host_alias
16478host=$host
16479host_os=$host_os
16480
16481# The build system.
16482build_alias=$build_alias
16483build=$build
16484build_os=$build_os
16485
16486# An echo program that does not interpret backslashes.
16487echo=$lt_echo
16488
16489# The archiver.
16490AR=$lt_AR
16491AR_FLAGS=$lt_AR_FLAGS
16492
16493# A C compiler.
16494LTCC=$lt_LTCC
16495
16496# LTCC compiler flags.
16497LTCFLAGS=$lt_LTCFLAGS
16498
16499# A language-specific compiler.
16500CC=$lt_compiler_F77
16501
16502# Is the compiler the GNU C compiler?
16503with_gcc=$GCC_F77
16504
16505# An ERE matcher.
16506EGREP=$lt_EGREP
16507
16508# The linker used to build libraries.
16509LD=$lt_LD_F77
16510
16511# Whether we need hard or soft links.
16512LN_S=$lt_LN_S
16513
16514# A BSD-compatible nm program.
16515NM=$lt_NM
16516
16517# A symbol stripping program
16518STRIP=$lt_STRIP
16519
16520# Used to examine libraries when file_magic_cmd begins "file"
16521MAGIC_CMD=$MAGIC_CMD
16522
16523# Used on cygwin: DLL creation program.
16524DLLTOOL="$DLLTOOL"
16525
16526# Used on cygwin: object dumper.
16527OBJDUMP="$OBJDUMP"
16528
16529# Used on cygwin: assembler.
16530AS="$AS"
16531
16532# The name of the directory that contains temporary libtool files.
16533objdir=$objdir
16534
16535# How to create reloadable object files.
16536reload_flag=$lt_reload_flag
16537reload_cmds=$lt_reload_cmds
16538
16539# How to pass a linker flag through the compiler.
16540wl=$lt_lt_prog_compiler_wl_F77
16541
16542# Object file suffix (normally "o").
16543objext="$ac_objext"
16544
16545# Old archive suffix (normally "a").
16546libext="$libext"
16547
16548# Shared library suffix (normally ".so").
16549shrext_cmds='$shrext_cmds'
16550
16551# Executable file suffix (normally "").
16552exeext="$exeext"
16553
16554# Additional compiler flags for building library objects.
16555pic_flag=$lt_lt_prog_compiler_pic_F77
16556pic_mode=$pic_mode
16557
16558# What is the maximum length of a command?
16559max_cmd_len=$lt_cv_sys_max_cmd_len
16560
16561# Does compiler simultaneously support -c and -o options?
16562compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16563
16564# Must we lock files when doing compilation?
16565need_locks=$lt_need_locks
16566
16567# Do we need the lib prefix for modules?
16568need_lib_prefix=$need_lib_prefix
16569
16570# Do we need a version for libraries?
16571need_version=$need_version
16572
16573# Whether dlopen is supported.
16574dlopen_support=$enable_dlopen
16575
16576# Whether dlopen of programs is supported.
16577dlopen_self=$enable_dlopen_self
16578
16579# Whether dlopen of statically linked programs is supported.
16580dlopen_self_static=$enable_dlopen_self_static
16581
16582# Compiler flag to prevent dynamic linking.
16583link_static_flag=$lt_lt_prog_compiler_static_F77
16584
16585# Compiler flag to turn off builtin functions.
16586no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16587
16588# Compiler flag to allow reflexive dlopens.
16589export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16590
16591# Compiler flag to generate shared objects directly from archives.
16592whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16593
16594# Compiler flag to generate thread-safe objects.
16595thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16596
16597# Library versioning type.
16598version_type=$version_type
16599
16600# Format of library name prefix.
16601libname_spec=$lt_libname_spec
16602
16603# List of archive names. First name is the real one, the rest are links.
16604# The last name is the one that the linker finds with -lNAME.
16605library_names_spec=$lt_library_names_spec
16606
16607# The coded name of the library, if different from the real name.
16608soname_spec=$lt_soname_spec
16609
16610# Commands used to build and install an old-style archive.
16611RANLIB=$lt_RANLIB
16612old_archive_cmds=$lt_old_archive_cmds_F77
16613old_postinstall_cmds=$lt_old_postinstall_cmds
16614old_postuninstall_cmds=$lt_old_postuninstall_cmds
16615
16616# Create an old-style archive from a shared archive.
16617old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16618
16619# Create a temporary old-style archive to link instead of a shared archive.
16620old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16621
16622# Commands used to build and install a shared archive.
16623archive_cmds=$lt_archive_cmds_F77
16624archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16625postinstall_cmds=$lt_postinstall_cmds
16626postuninstall_cmds=$lt_postuninstall_cmds
16627
16628# Commands used to build a loadable module (assumed same as above if empty)
16629module_cmds=$lt_module_cmds_F77
16630module_expsym_cmds=$lt_module_expsym_cmds_F77
16631
16632# Commands to strip libraries.
16633old_striplib=$lt_old_striplib
16634striplib=$lt_striplib
16635
16636# Dependencies to place before the objects being linked to create a
16637# shared library.
16638predep_objects=$lt_predep_objects_F77
16639
16640# Dependencies to place after the objects being linked to create a
16641# shared library.
16642postdep_objects=$lt_postdep_objects_F77
16643
16644# Dependencies to place before the objects being linked to create a
16645# shared library.
16646predeps=$lt_predeps_F77
16647
16648# Dependencies to place after the objects being linked to create a
16649# shared library.
16650postdeps=$lt_postdeps_F77
16651
16652# The library search path used internally by the compiler when linking
16653# a shared library.
16654compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16655
16656# Method to check whether dependent libraries are shared objects.
16657deplibs_check_method=$lt_deplibs_check_method
16658
16659# Command to use when deplibs_check_method == file_magic.
16660file_magic_cmd=$lt_file_magic_cmd
16661
16662# Flag that allows shared libraries with undefined symbols to be built.
16663allow_undefined_flag=$lt_allow_undefined_flag_F77
16664
16665# Flag that forces no undefined symbols.
16666no_undefined_flag=$lt_no_undefined_flag_F77
16667
16668# Commands used to finish a libtool library installation in a directory.
16669finish_cmds=$lt_finish_cmds
16670
16671# Same as above, but a single script fragment to be evaled but not shown.
16672finish_eval=$lt_finish_eval
16673
16674# Take the output of nm and produce a listing of raw symbols and C names.
16675global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16676
16677# Transform the output of nm in a proper C declaration
16678global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16679
16680# Transform the output of nm in a C name address pair
16681global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16682
16683# This is the shared library runtime path variable.
16684runpath_var=$runpath_var
16685
16686# This is the shared library path variable.
16687shlibpath_var=$shlibpath_var
16688
16689# Is shlibpath searched before the hard-coded library search path?
16690shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16691
16692# How to hardcode a shared library path into an executable.
16693hardcode_action=$hardcode_action_F77
16694
16695# Whether we should hardcode library paths into libraries.
16696hardcode_into_libs=$hardcode_into_libs
16697
16698# Flag to hardcode \$libdir into a binary during linking.
16699# This must work even if \$libdir does not exist.
16700hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16701
16702# If ld is used when linking, flag to hardcode \$libdir into
16703# a binary during linking. This must work even if \$libdir does
16704# not exist.
16705hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16706
16707# Whether we need a single -rpath flag with a separated argument.
16708hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16709
16710# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16711# resulting binary.
16712hardcode_direct=$hardcode_direct_F77
16713
16714# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16715# resulting binary.
16716hardcode_minus_L=$hardcode_minus_L_F77
16717
16718# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16719# the resulting binary.
16720hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16721
16722# Set to yes if building a shared library automatically hardcodes DIR into the library
16723# and all subsequent libraries and executables linked against it.
16724hardcode_automatic=$hardcode_automatic_F77
16725
16726# Variables whose values should be saved in libtool wrapper scripts and
16727# restored at relink time.
16728variables_saved_for_relink="$variables_saved_for_relink"
16729
16730# Whether libtool must link a program against all its dependency libraries.
16731link_all_deplibs=$link_all_deplibs_F77
16732
16733# Compile-time system search path for libraries
16734sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16735
16736# Run-time system search path for libraries
16737sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16738
16739# Fix the shell variable \$srcfile for the compiler.
16740fix_srcfile_path="$fix_srcfile_path_F77"
16741
16742# Set to yes if exported symbols are required.
16743always_export_symbols=$always_export_symbols_F77
16744
16745# The commands to list exported symbols.
16746export_symbols_cmds=$lt_export_symbols_cmds_F77
16747
16748# The commands to extract the exported symbol list from a shared archive.
16749extract_expsyms_cmds=$lt_extract_expsyms_cmds
16750
16751# Symbols that should not be listed in the preloaded symbols.
16752exclude_expsyms=$lt_exclude_expsyms_F77
16753
16754# Symbols that must always be exported.
16755include_expsyms=$lt_include_expsyms_F77
16756
16757# ### END LIBTOOL TAG CONFIG: $tagname
16758
16759__EOF__
16760
16761
16762else
16763 # If there is no Makefile yet, we rely on a make rule to execute
16764 # `config.status --recheck' to rerun these tests and create the
16765 # libtool script then.
16766 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16767 if test -f "$ltmain_in"; then
16768 test -f Makefile && make "$ltmain"
16769 fi
16770fi
16771
16772
16773ac_ext=c
16774ac_cpp='$CPP $CPPFLAGS'
16775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16777ac_compiler_gnu=$ac_cv_c_compiler_gnu
16778
16779CC="$lt_save_CC"
16780
16781 else
16782 tagname=""
16783 fi
16784 ;;
16785
16786 GCJ)
16787 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16788
16789
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060016790# Source file extension for Java test sources.
16791ac_ext=java
16792
16793# Object file extension for compiled Java test sources.
16794objext=o
16795objext_GCJ=$objext
16796
16797# Code to be used in simple compile tests
16798lt_simple_compile_test_code="class foo {}\n"
16799
16800# Code to be used in simple link tests
16801lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16802
16803# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16804
16805# If no C compiler was specified, use CC.
16806LTCC=${LTCC-"$CC"}
16807
16808# If no C compiler flags were specified, use CFLAGS.
16809LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16810
16811# Allow CC to be a program name with arguments.
16812compiler=$CC
16813
16814
16815# save warnings/boilerplate of simple test code
16816ac_outfile=conftest.$ac_objext
16817printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16818eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16819_lt_compiler_boilerplate=`cat conftest.err`
16820$rm conftest*
16821
16822ac_outfile=conftest.$ac_objext
16823printf "$lt_simple_link_test_code" >conftest.$ac_ext
16824eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16825_lt_linker_boilerplate=`cat conftest.err`
16826$rm conftest*
16827
16828
16829# Allow CC to be a program name with arguments.
16830lt_save_CC="$CC"
16831CC=${GCJ-"gcj"}
16832compiler=$CC
16833compiler_GCJ=$CC
16834for cc_temp in $compiler""; do
16835 case $cc_temp in
16836 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16837 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16838 \-*) ;;
16839 *) break;;
16840 esac
16841done
16842cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16843
16844
16845# GCJ did not exist at the time GCC didn't implicitly link libc in.
16846archive_cmds_need_lc_GCJ=no
16847
16848old_archive_cmds_GCJ=$old_archive_cmds
16849
16850
16851lt_prog_compiler_no_builtin_flag_GCJ=
16852
16853if test "$GCC" = yes; then
16854 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16855
16856
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060016857{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16858echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060016859if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16860 echo $ECHO_N "(cached) $ECHO_C" >&6
16861else
16862 lt_cv_prog_compiler_rtti_exceptions=no
16863 ac_outfile=conftest.$ac_objext
16864 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16865 lt_compiler_flag="-fno-rtti -fno-exceptions"
16866 # Insert the option either (1) after the last *FLAGS variable, or
16867 # (2) before a word containing "conftest.", or (3) at the end.
16868 # Note that $ac_compile itself does not contain backslashes and begins
16869 # with a dollar sign (not a hyphen), so the echo should work correctly.
16870 # The option is referenced via a variable to avoid confusing sed.
16871 lt_compile=`echo "$ac_compile" | $SED \
16872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16874 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060016875 (eval echo "\"\$as_me:16875: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060016876 (eval "$lt_compile" 2>conftest.err)
16877 ac_status=$?
16878 cat conftest.err >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060016879 echo "$as_me:16879: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060016880 if (exit $ac_status) && test -s "$ac_outfile"; then
16881 # The compiler can only warn and ignore the option if not recognized
16882 # So say no if there are warnings other than the usual output.
16883 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16884 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16885 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16886 lt_cv_prog_compiler_rtti_exceptions=yes
16887 fi
16888 fi
16889 $rm conftest*
16890
16891fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060016892{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16893echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060016894
16895if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16896 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16897else
16898 :
16899fi
16900
16901fi
16902
16903lt_prog_compiler_wl_GCJ=
16904lt_prog_compiler_pic_GCJ=
16905lt_prog_compiler_static_GCJ=
16906
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060016907{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16908echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060016909
16910 if test "$GCC" = yes; then
16911 lt_prog_compiler_wl_GCJ='-Wl,'
16912 lt_prog_compiler_static_GCJ='-static'
16913
16914 case $host_os in
16915 aix*)
16916 # All AIX code is PIC.
16917 if test "$host_cpu" = ia64; then
16918 # AIX 5 now supports IA64 processor
16919 lt_prog_compiler_static_GCJ='-Bstatic'
16920 fi
16921 ;;
16922
16923 amigaos*)
16924 # FIXME: we need at least 68020 code to build shared libraries, but
16925 # adding the `-m68020' flag to GCC prevents building anything better,
16926 # like `-m68040'.
16927 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16928 ;;
16929
16930 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16931 # PIC is the default for these OSes.
16932 ;;
16933
16934 mingw* | pw32* | os2*)
16935 # This hack is so that the source file can tell whether it is being
16936 # built for inclusion in a dll (and should export symbols for example).
16937 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16938 ;;
16939
16940 darwin* | rhapsody*)
16941 # PIC is the default on this platform
16942 # Common symbols not allowed in MH_DYLIB files
16943 lt_prog_compiler_pic_GCJ='-fno-common'
16944 ;;
16945
16946 interix3*)
16947 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16948 # Instead, we relocate shared libraries at runtime.
16949 ;;
16950
16951 msdosdjgpp*)
16952 # Just because we use GCC doesn't mean we suddenly get shared libraries
16953 # on systems that don't support them.
16954 lt_prog_compiler_can_build_shared_GCJ=no
16955 enable_shared=no
16956 ;;
16957
16958 sysv4*MP*)
16959 if test -d /usr/nec; then
16960 lt_prog_compiler_pic_GCJ=-Kconform_pic
16961 fi
16962 ;;
16963
16964 hpux*)
16965 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16966 # not for PA HP-UX.
16967 case $host_cpu in
16968 hppa*64*|ia64*)
16969 # +Z the default
16970 ;;
16971 *)
16972 lt_prog_compiler_pic_GCJ='-fPIC'
16973 ;;
16974 esac
16975 ;;
16976
16977 *)
16978 lt_prog_compiler_pic_GCJ='-fPIC'
16979 ;;
16980 esac
16981 else
16982 # PORTME Check for flag to pass linker flags through the system compiler.
16983 case $host_os in
16984 aix*)
16985 lt_prog_compiler_wl_GCJ='-Wl,'
16986 if test "$host_cpu" = ia64; then
16987 # AIX 5 now supports IA64 processor
16988 lt_prog_compiler_static_GCJ='-Bstatic'
16989 else
16990 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16991 fi
16992 ;;
16993 darwin*)
16994 # PIC is the default on this platform
16995 # Common symbols not allowed in MH_DYLIB files
16996 case $cc_basename in
16997 xlc*)
16998 lt_prog_compiler_pic_GCJ='-qnocommon'
16999 lt_prog_compiler_wl_GCJ='-Wl,'
17000 ;;
17001 esac
17002 ;;
17003
17004 mingw* | pw32* | os2*)
17005 # This hack is so that the source file can tell whether it is being
17006 # built for inclusion in a dll (and should export symbols for example).
17007 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17008 ;;
17009
17010 hpux9* | hpux10* | hpux11*)
17011 lt_prog_compiler_wl_GCJ='-Wl,'
17012 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17013 # not for PA HP-UX.
17014 case $host_cpu in
17015 hppa*64*|ia64*)
17016 # +Z the default
17017 ;;
17018 *)
17019 lt_prog_compiler_pic_GCJ='+Z'
17020 ;;
17021 esac
17022 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17023 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17024 ;;
17025
17026 irix5* | irix6* | nonstopux*)
17027 lt_prog_compiler_wl_GCJ='-Wl,'
17028 # PIC (with -KPIC) is the default.
17029 lt_prog_compiler_static_GCJ='-non_shared'
17030 ;;
17031
17032 newsos6)
17033 lt_prog_compiler_pic_GCJ='-KPIC'
17034 lt_prog_compiler_static_GCJ='-Bstatic'
17035 ;;
17036
17037 linux*)
17038 case $cc_basename in
17039 icc* | ecc*)
17040 lt_prog_compiler_wl_GCJ='-Wl,'
17041 lt_prog_compiler_pic_GCJ='-KPIC'
17042 lt_prog_compiler_static_GCJ='-static'
17043 ;;
17044 pgcc* | pgf77* | pgf90* | pgf95*)
17045 # Portland Group compilers (*not* the Pentium gcc compiler,
17046 # which looks to be a dead project)
17047 lt_prog_compiler_wl_GCJ='-Wl,'
17048 lt_prog_compiler_pic_GCJ='-fpic'
17049 lt_prog_compiler_static_GCJ='-Bstatic'
17050 ;;
17051 ccc*)
17052 lt_prog_compiler_wl_GCJ='-Wl,'
17053 # All Alpha code is PIC.
17054 lt_prog_compiler_static_GCJ='-non_shared'
17055 ;;
17056 esac
17057 ;;
17058
17059 osf3* | osf4* | osf5*)
17060 lt_prog_compiler_wl_GCJ='-Wl,'
17061 # All OSF/1 code is PIC.
17062 lt_prog_compiler_static_GCJ='-non_shared'
17063 ;;
17064
17065 solaris*)
17066 lt_prog_compiler_pic_GCJ='-KPIC'
17067 lt_prog_compiler_static_GCJ='-Bstatic'
17068 case $cc_basename in
17069 f77* | f90* | f95*)
17070 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17071 *)
17072 lt_prog_compiler_wl_GCJ='-Wl,';;
17073 esac
17074 ;;
17075
17076 sunos4*)
17077 lt_prog_compiler_wl_GCJ='-Qoption ld '
17078 lt_prog_compiler_pic_GCJ='-PIC'
17079 lt_prog_compiler_static_GCJ='-Bstatic'
17080 ;;
17081
17082 sysv4 | sysv4.2uw2* | sysv4.3*)
17083 lt_prog_compiler_wl_GCJ='-Wl,'
17084 lt_prog_compiler_pic_GCJ='-KPIC'
17085 lt_prog_compiler_static_GCJ='-Bstatic'
17086 ;;
17087
17088 sysv4*MP*)
17089 if test -d /usr/nec ;then
17090 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17091 lt_prog_compiler_static_GCJ='-Bstatic'
17092 fi
17093 ;;
17094
17095 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17096 lt_prog_compiler_wl_GCJ='-Wl,'
17097 lt_prog_compiler_pic_GCJ='-KPIC'
17098 lt_prog_compiler_static_GCJ='-Bstatic'
17099 ;;
17100
17101 unicos*)
17102 lt_prog_compiler_wl_GCJ='-Wl,'
17103 lt_prog_compiler_can_build_shared_GCJ=no
17104 ;;
17105
17106 uts4*)
17107 lt_prog_compiler_pic_GCJ='-pic'
17108 lt_prog_compiler_static_GCJ='-Bstatic'
17109 ;;
17110
17111 *)
17112 lt_prog_compiler_can_build_shared_GCJ=no
17113 ;;
17114 esac
17115 fi
17116
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017117{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17118echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017119
17120#
17121# Check to make sure the PIC flag actually works.
17122#
17123if test -n "$lt_prog_compiler_pic_GCJ"; then
17124
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017125{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17126echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017127if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17128 echo $ECHO_N "(cached) $ECHO_C" >&6
17129else
17130 lt_prog_compiler_pic_works_GCJ=no
17131 ac_outfile=conftest.$ac_objext
17132 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17133 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17134 # Insert the option either (1) after the last *FLAGS variable, or
17135 # (2) before a word containing "conftest.", or (3) at the end.
17136 # Note that $ac_compile itself does not contain backslashes and begins
17137 # with a dollar sign (not a hyphen), so the echo should work correctly.
17138 # The option is referenced via a variable to avoid confusing sed.
17139 lt_compile=`echo "$ac_compile" | $SED \
17140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17142 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017143 (eval echo "\"\$as_me:17143: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017144 (eval "$lt_compile" 2>conftest.err)
17145 ac_status=$?
17146 cat conftest.err >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017147 echo "$as_me:17147: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017148 if (exit $ac_status) && test -s "$ac_outfile"; then
17149 # The compiler can only warn and ignore the option if not recognized
17150 # So say no if there are warnings other than the usual output.
17151 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17153 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17154 lt_prog_compiler_pic_works_GCJ=yes
17155 fi
17156 fi
17157 $rm conftest*
17158
17159fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017160{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17161echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017162
17163if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17164 case $lt_prog_compiler_pic_GCJ in
17165 "" | " "*) ;;
17166 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17167 esac
17168else
17169 lt_prog_compiler_pic_GCJ=
17170 lt_prog_compiler_can_build_shared_GCJ=no
17171fi
17172
17173fi
17174case $host_os in
17175 # For platforms which do not support PIC, -DPIC is meaningless:
17176 *djgpp*)
17177 lt_prog_compiler_pic_GCJ=
17178 ;;
17179 *)
17180 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17181 ;;
17182esac
17183
17184#
17185# Check to make sure the static flag actually works.
17186#
17187wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017188{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17189echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017190if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17191 echo $ECHO_N "(cached) $ECHO_C" >&6
17192else
17193 lt_prog_compiler_static_works_GCJ=no
17194 save_LDFLAGS="$LDFLAGS"
17195 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17196 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17197 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17198 # The linker can only warn and ignore the option if not recognized
17199 # So say no if there are warnings
17200 if test -s conftest.err; then
17201 # Append any errors to the config.log.
17202 cat conftest.err 1>&5
17203 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17204 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17205 if diff conftest.exp conftest.er2 >/dev/null; then
17206 lt_prog_compiler_static_works_GCJ=yes
17207 fi
17208 else
17209 lt_prog_compiler_static_works_GCJ=yes
17210 fi
17211 fi
17212 $rm conftest*
17213 LDFLAGS="$save_LDFLAGS"
17214
17215fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017216{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17217echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017218
17219if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17220 :
17221else
17222 lt_prog_compiler_static_GCJ=
17223fi
17224
17225
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017226{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17227echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017228if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17230else
17231 lt_cv_prog_compiler_c_o_GCJ=no
17232 $rm -r conftest 2>/dev/null
17233 mkdir conftest
17234 cd conftest
17235 mkdir out
17236 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17237
17238 lt_compiler_flag="-o out/conftest2.$ac_objext"
17239 # Insert the option either (1) after the last *FLAGS variable, or
17240 # (2) before a word containing "conftest.", or (3) at the end.
17241 # Note that $ac_compile itself does not contain backslashes and begins
17242 # with a dollar sign (not a hyphen), so the echo should work correctly.
17243 lt_compile=`echo "$ac_compile" | $SED \
17244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17246 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017247 (eval echo "\"\$as_me:17247: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017248 (eval "$lt_compile" 2>out/conftest.err)
17249 ac_status=$?
17250 cat out/conftest.err >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017251 echo "$as_me:17251: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017252 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17253 then
17254 # The compiler can only warn and ignore the option if not recognized
17255 # So say no if there are warnings
17256 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17257 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17258 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17259 lt_cv_prog_compiler_c_o_GCJ=yes
17260 fi
17261 fi
17262 chmod u+w . 2>&5
17263 $rm conftest*
17264 # SGI C++ compiler will create directory out/ii_files/ for
17265 # template instantiation
17266 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17267 $rm out/* && rmdir out
17268 cd ..
17269 rmdir conftest
17270 $rm conftest*
17271
17272fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017273{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17274echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017275
17276
17277hard_links="nottested"
17278if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17279 # do not overwrite the value of need_locks provided by the user
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017280 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17281echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017282 hard_links=yes
17283 $rm conftest*
17284 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17285 touch conftest.a
17286 ln conftest.a conftest.b 2>&5 || hard_links=no
17287 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017288 { echo "$as_me:$LINENO: result: $hard_links" >&5
17289echo "${ECHO_T}$hard_links" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017290 if test "$hard_links" = no; then
17291 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17292echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17293 need_locks=warn
17294 fi
17295else
17296 need_locks=no
17297fi
17298
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017299{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17300echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017301
17302 runpath_var=
17303 allow_undefined_flag_GCJ=
17304 enable_shared_with_static_runtimes_GCJ=no
17305 archive_cmds_GCJ=
17306 archive_expsym_cmds_GCJ=
17307 old_archive_From_new_cmds_GCJ=
17308 old_archive_from_expsyms_cmds_GCJ=
17309 export_dynamic_flag_spec_GCJ=
17310 whole_archive_flag_spec_GCJ=
17311 thread_safe_flag_spec_GCJ=
17312 hardcode_libdir_flag_spec_GCJ=
17313 hardcode_libdir_flag_spec_ld_GCJ=
17314 hardcode_libdir_separator_GCJ=
17315 hardcode_direct_GCJ=no
17316 hardcode_minus_L_GCJ=no
17317 hardcode_shlibpath_var_GCJ=unsupported
17318 link_all_deplibs_GCJ=unknown
17319 hardcode_automatic_GCJ=no
17320 module_cmds_GCJ=
17321 module_expsym_cmds_GCJ=
17322 always_export_symbols_GCJ=no
17323 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17324 # include_expsyms should be a list of space-separated symbols to be *always*
17325 # included in the symbol list
17326 include_expsyms_GCJ=
17327 # exclude_expsyms can be an extended regexp of symbols to exclude
17328 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17329 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17330 # as well as any symbol that contains `d'.
17331 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17332 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17333 # platforms (ab)use it in PIC code, but their linkers get confused if
17334 # the symbol is explicitly referenced. Since portable code cannot
17335 # rely on this symbol name, it's probably fine to never include it in
17336 # preloaded symbol tables.
17337 extract_expsyms_cmds=
17338 # Just being paranoid about ensuring that cc_basename is set.
17339 for cc_temp in $compiler""; do
17340 case $cc_temp in
17341 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17342 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17343 \-*) ;;
17344 *) break;;
17345 esac
17346done
17347cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17348
17349 case $host_os in
17350 cygwin* | mingw* | pw32*)
17351 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17352 # When not using gcc, we currently assume that we are using
17353 # Microsoft Visual C++.
17354 if test "$GCC" != yes; then
17355 with_gnu_ld=no
17356 fi
17357 ;;
17358 interix*)
17359 # we just hope/assume this is gcc and not c89 (= MSVC++)
17360 with_gnu_ld=yes
17361 ;;
17362 openbsd*)
17363 with_gnu_ld=no
17364 ;;
17365 esac
17366
17367 ld_shlibs_GCJ=yes
17368 if test "$with_gnu_ld" = yes; then
17369 # If archive_cmds runs LD, not CC, wlarc should be empty
17370 wlarc='${wl}'
17371
17372 # Set some defaults for GNU ld with shared library support. These
17373 # are reset later if shared libraries are not supported. Putting them
17374 # here allows them to be overridden if necessary.
17375 runpath_var=LD_RUN_PATH
17376 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17377 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17378 # ancient GNU ld didn't support --whole-archive et. al.
17379 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17380 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17381 else
17382 whole_archive_flag_spec_GCJ=
17383 fi
17384 supports_anon_versioning=no
17385 case `$LD -v 2>/dev/null` in
17386 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17387 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17388 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17389 *\ 2.11.*) ;; # other 2.11 versions
17390 *) supports_anon_versioning=yes ;;
17391 esac
17392
17393 # See if GNU ld supports shared libraries.
17394 case $host_os in
17395 aix3* | aix4* | aix5*)
17396 # On AIX/PPC, the GNU linker is very broken
17397 if test "$host_cpu" != ia64; then
17398 ld_shlibs_GCJ=no
17399 cat <<EOF 1>&2
17400
17401*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17402*** to be unable to reliably create shared libraries on AIX.
17403*** Therefore, libtool is disabling shared libraries support. If you
17404*** really care for shared libraries, you may want to modify your PATH
17405*** so that a non-GNU linker is found, and then restart.
17406
17407EOF
17408 fi
17409 ;;
17410
17411 amigaos*)
17412 archive_cmds_GCJ='$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)'
17413 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17414 hardcode_minus_L_GCJ=yes
17415
17416 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17417 # that the semantics of dynamic libraries on AmigaOS, at least up
17418 # to version 4, is to share data among multiple programs linked
17419 # with the same dynamic library. Since this doesn't match the
17420 # behavior of shared libraries on other platforms, we can't use
17421 # them.
17422 ld_shlibs_GCJ=no
17423 ;;
17424
17425 beos*)
17426 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17427 allow_undefined_flag_GCJ=unsupported
17428 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17429 # support --undefined. This deserves some investigation. FIXME
17430 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17431 else
17432 ld_shlibs_GCJ=no
17433 fi
17434 ;;
17435
17436 cygwin* | mingw* | pw32*)
17437 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17438 # as there is no search path for DLLs.
17439 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17440 allow_undefined_flag_GCJ=unsupported
17441 always_export_symbols_GCJ=no
17442 enable_shared_with_static_runtimes_GCJ=yes
17443 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17444
17445 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17446 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17447 # If the export-symbols file already is a .def file (1st line
17448 # is EXPORTS), use it as is; otherwise, prepend...
17449 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17450 cp $export_symbols $output_objdir/$soname.def;
17451 else
17452 echo EXPORTS > $output_objdir/$soname.def;
17453 cat $export_symbols >> $output_objdir/$soname.def;
17454 fi~
17455 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17456 else
17457 ld_shlibs_GCJ=no
17458 fi
17459 ;;
17460
17461 interix3*)
17462 hardcode_direct_GCJ=no
17463 hardcode_shlibpath_var_GCJ=no
17464 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17465 export_dynamic_flag_spec_GCJ='${wl}-E'
17466 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17467 # Instead, shared libraries are loaded at an image base (0x10000000 by
17468 # default) and relocated if they conflict, which is a slow very memory
17469 # consuming and fragmenting process. To avoid this, we pick a random,
17470 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17471 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17472 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17473 archive_expsym_cmds_GCJ='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'
17474 ;;
17475
17476 linux*)
17477 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17478 tmp_addflag=
17479 case $cc_basename,$host_cpu in
17480 pgcc*) # Portland Group C compiler
17481 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17482 tmp_addflag=' $pic_flag'
17483 ;;
17484 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17485 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17486 tmp_addflag=' $pic_flag -Mnomain' ;;
17487 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17488 tmp_addflag=' -i_dynamic' ;;
17489 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17490 tmp_addflag=' -i_dynamic -nofor_main' ;;
17491 ifc* | ifort*) # Intel Fortran compiler
17492 tmp_addflag=' -nofor_main' ;;
17493 esac
17494 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17495
17496 if test $supports_anon_versioning = yes; then
17497 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17498 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17499 $echo "local: *; };" >> $output_objdir/$libname.ver~
17500 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17501 fi
17502 else
17503 ld_shlibs_GCJ=no
17504 fi
17505 ;;
17506
17507 netbsd*)
17508 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17509 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17510 wlarc=
17511 else
17512 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17513 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17514 fi
17515 ;;
17516
17517 solaris*)
17518 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17519 ld_shlibs_GCJ=no
17520 cat <<EOF 1>&2
17521
17522*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17523*** create shared libraries on Solaris systems. Therefore, libtool
17524*** is disabling shared libraries support. We urge you to upgrade GNU
17525*** binutils to release 2.9.1 or newer. Another option is to modify
17526*** your PATH or compiler configuration so that the native linker is
17527*** used, and then restart.
17528
17529EOF
17530 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17531 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17532 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17533 else
17534 ld_shlibs_GCJ=no
17535 fi
17536 ;;
17537
17538 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17539 case `$LD -v 2>&1` in
17540 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17541 ld_shlibs_GCJ=no
17542 cat <<_LT_EOF 1>&2
17543
17544*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17545*** reliably create shared libraries on SCO systems. Therefore, libtool
17546*** is disabling shared libraries support. We urge you to upgrade GNU
17547*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17548*** your PATH or compiler configuration so that the native linker is
17549*** used, and then restart.
17550
17551_LT_EOF
17552 ;;
17553 *)
17554 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17555 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17556 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17557 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17558 else
17559 ld_shlibs_GCJ=no
17560 fi
17561 ;;
17562 esac
17563 ;;
17564
17565 sunos4*)
17566 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17567 wlarc=
17568 hardcode_direct_GCJ=yes
17569 hardcode_shlibpath_var_GCJ=no
17570 ;;
17571
17572 *)
17573 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17574 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17575 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17576 else
17577 ld_shlibs_GCJ=no
17578 fi
17579 ;;
17580 esac
17581
17582 if test "$ld_shlibs_GCJ" = no; then
17583 runpath_var=
17584 hardcode_libdir_flag_spec_GCJ=
17585 export_dynamic_flag_spec_GCJ=
17586 whole_archive_flag_spec_GCJ=
17587 fi
17588 else
17589 # PORTME fill in a description of your system's linker (not GNU ld)
17590 case $host_os in
17591 aix3*)
17592 allow_undefined_flag_GCJ=unsupported
17593 always_export_symbols_GCJ=yes
17594 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17595 # Note: this linker hardcodes the directories in LIBPATH if there
17596 # are no directories specified by -L.
17597 hardcode_minus_L_GCJ=yes
17598 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17599 # Neither direct hardcoding nor static linking is supported with a
17600 # broken collect2.
17601 hardcode_direct_GCJ=unsupported
17602 fi
17603 ;;
17604
17605 aix4* | aix5*)
17606 if test "$host_cpu" = ia64; then
17607 # On IA64, the linker does run time linking by default, so we don't
17608 # have to do anything special.
17609 aix_use_runtimelinking=no
17610 exp_sym_flag='-Bexport'
17611 no_entry_flag=""
17612 else
17613 # If we're using GNU nm, then we don't want the "-C" option.
17614 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17615 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17616 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17617 else
17618 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17619 fi
17620 aix_use_runtimelinking=no
17621
17622 # Test if we are trying to use run time linking or normal
17623 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17624 # need to do runtime linking.
17625 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17626 for ld_flag in $LDFLAGS; do
17627 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17628 aix_use_runtimelinking=yes
17629 break
17630 fi
17631 done
17632 ;;
17633 esac
17634
17635 exp_sym_flag='-bexport'
17636 no_entry_flag='-bnoentry'
17637 fi
17638
17639 # When large executables or shared objects are built, AIX ld can
17640 # have problems creating the table of contents. If linking a library
17641 # or program results in "error TOC overflow" add -mminimal-toc to
17642 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17643 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17644
17645 archive_cmds_GCJ=''
17646 hardcode_direct_GCJ=yes
17647 hardcode_libdir_separator_GCJ=':'
17648 link_all_deplibs_GCJ=yes
17649
17650 if test "$GCC" = yes; then
17651 case $host_os in aix4.[012]|aix4.[012].*)
17652 # We only want to do this on AIX 4.2 and lower, the check
17653 # below for broken collect2 doesn't work under 4.3+
17654 collect2name=`${CC} -print-prog-name=collect2`
17655 if test -f "$collect2name" && \
17656 strings "$collect2name" | grep resolve_lib_name >/dev/null
17657 then
17658 # We have reworked collect2
17659 hardcode_direct_GCJ=yes
17660 else
17661 # We have old collect2
17662 hardcode_direct_GCJ=unsupported
17663 # It fails to find uninstalled libraries when the uninstalled
17664 # path is not listed in the libpath. Setting hardcode_minus_L
17665 # to unsupported forces relinking
17666 hardcode_minus_L_GCJ=yes
17667 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17668 hardcode_libdir_separator_GCJ=
17669 fi
17670 ;;
17671 esac
17672 shared_flag='-shared'
17673 if test "$aix_use_runtimelinking" = yes; then
17674 shared_flag="$shared_flag "'${wl}-G'
17675 fi
17676 else
17677 # not using gcc
17678 if test "$host_cpu" = ia64; then
17679 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17680 # chokes on -Wl,-G. The following line is correct:
17681 shared_flag='-G'
17682 else
17683 if test "$aix_use_runtimelinking" = yes; then
17684 shared_flag='${wl}-G'
17685 else
17686 shared_flag='${wl}-bM:SRE'
17687 fi
17688 fi
17689 fi
17690
17691 # It seems that -bexpall does not export symbols beginning with
17692 # underscore (_), so it is better to generate a list of symbols to export.
17693 always_export_symbols_GCJ=yes
17694 if test "$aix_use_runtimelinking" = yes; then
17695 # Warning - without using the other runtime loading flags (-brtl),
17696 # -berok will link without error, but may produce a broken library.
17697 allow_undefined_flag_GCJ='-berok'
17698 # Determine the default libpath from the value encoded in an empty executable.
17699 cat >conftest.$ac_ext <<_ACEOF
17700/* confdefs.h. */
17701_ACEOF
17702cat confdefs.h >>conftest.$ac_ext
17703cat >>conftest.$ac_ext <<_ACEOF
17704/* end confdefs.h. */
17705
17706int
17707main ()
17708{
17709
17710 ;
17711 return 0;
17712}
17713_ACEOF
17714rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017715if { (ac_try="$ac_link"
17716case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17719esac
17720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017722 ac_status=$?
17723 grep -v '^ *+' conftest.er1 >conftest.err
17724 rm -f conftest.er1
17725 cat conftest.err >&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17729 { (case "(($ac_try" in
17730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731 *) ac_try_echo=$ac_try;;
17732esac
17733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017735 ac_status=$?
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; } &&
17738 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017739 { (case "(($ac_try" in
17740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741 *) ac_try_echo=$ac_try;;
17742esac
17743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; }; then
17748
17749aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17750}'`
17751# Check for a 64-bit object if we didn't find anything.
17752if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17753}'`; fi
17754else
17755 echo "$as_me: failed program was:" >&5
17756sed 's/^/| /' conftest.$ac_ext >&5
17757
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017758
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017759fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017760
17761rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017762 conftest$ac_exeext conftest.$ac_ext
17763if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17764
17765 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17766 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17767 else
17768 if test "$host_cpu" = ia64; then
17769 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17770 allow_undefined_flag_GCJ="-z nodefs"
17771 archive_expsym_cmds_GCJ="\$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"
17772 else
17773 # Determine the default libpath from the value encoded in an empty executable.
17774 cat >conftest.$ac_ext <<_ACEOF
17775/* confdefs.h. */
17776_ACEOF
17777cat confdefs.h >>conftest.$ac_ext
17778cat >>conftest.$ac_ext <<_ACEOF
17779/* end confdefs.h. */
17780
17781int
17782main ()
17783{
17784
17785 ;
17786 return 0;
17787}
17788_ACEOF
17789rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017790if { (ac_try="$ac_link"
17791case "(($ac_try" in
17792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17793 *) ac_try_echo=$ac_try;;
17794esac
17795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17796 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017797 ac_status=$?
17798 grep -v '^ *+' conftest.er1 >conftest.err
17799 rm -f conftest.er1
17800 cat conftest.err >&5
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17804 { (case "(($ac_try" in
17805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17806 *) ac_try_echo=$ac_try;;
17807esac
17808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17809 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017810 ac_status=$?
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); }; } &&
17813 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017814 { (case "(($ac_try" in
17815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17816 *) ac_try_echo=$ac_try;;
17817esac
17818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17819 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017820 ac_status=$?
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; }; then
17823
17824aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17825}'`
17826# Check for a 64-bit object if we didn't find anything.
17827if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17828}'`; fi
17829else
17830 echo "$as_me: failed program was:" >&5
17831sed 's/^/| /' conftest.$ac_ext >&5
17832
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017833
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017834fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060017835
17836rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017837 conftest$ac_exeext conftest.$ac_ext
17838if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17839
17840 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17841 # Warning - without using the other run time loading flags,
17842 # -berok will link without error, but may produce a broken library.
17843 no_undefined_flag_GCJ=' ${wl}-bernotok'
17844 allow_undefined_flag_GCJ=' ${wl}-berok'
17845 # Exported symbols can be pulled into shared objects from archives
17846 whole_archive_flag_spec_GCJ='$convenience'
17847 archive_cmds_need_lc_GCJ=yes
17848 # This is similar to how AIX traditionally builds its shared libraries.
17849 archive_expsym_cmds_GCJ="\$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'
17850 fi
17851 fi
17852 ;;
17853
17854 amigaos*)
17855 archive_cmds_GCJ='$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)'
17856 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17857 hardcode_minus_L_GCJ=yes
17858 # see comment about different semantics on the GNU ld section
17859 ld_shlibs_GCJ=no
17860 ;;
17861
17862 bsdi[45]*)
17863 export_dynamic_flag_spec_GCJ=-rdynamic
17864 ;;
17865
17866 cygwin* | mingw* | pw32*)
17867 # When not using gcc, we currently assume that we are using
17868 # Microsoft Visual C++.
17869 # hardcode_libdir_flag_spec is actually meaningless, as there is
17870 # no search path for DLLs.
17871 hardcode_libdir_flag_spec_GCJ=' '
17872 allow_undefined_flag_GCJ=unsupported
17873 # Tell ltmain to make .lib files, not .a files.
17874 libext=lib
17875 # Tell ltmain to make .dll files, not .so files.
17876 shrext_cmds=".dll"
17877 # FIXME: Setting linknames here is a bad hack.
17878 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17879 # The linker will automatically build a .lib file if we build a DLL.
17880 old_archive_From_new_cmds_GCJ='true'
17881 # FIXME: Should let the user specify the lib program.
17882 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17883 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17884 enable_shared_with_static_runtimes_GCJ=yes
17885 ;;
17886
17887 darwin* | rhapsody*)
17888 case $host_os in
17889 rhapsody* | darwin1.[012])
17890 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17891 ;;
17892 *) # Darwin 1.3 on
17893 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17894 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17895 else
17896 case ${MACOSX_DEPLOYMENT_TARGET} in
17897 10.[012])
17898 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17899 ;;
17900 10.*)
17901 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17902 ;;
17903 esac
17904 fi
17905 ;;
17906 esac
17907 archive_cmds_need_lc_GCJ=no
17908 hardcode_direct_GCJ=no
17909 hardcode_automatic_GCJ=yes
17910 hardcode_shlibpath_var_GCJ=unsupported
17911 whole_archive_flag_spec_GCJ=''
17912 link_all_deplibs_GCJ=yes
17913 if test "$GCC" = yes ; then
17914 output_verbose_link_cmd='echo'
17915 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17916 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17917 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17918 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17919 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17920 else
17921 case $cc_basename in
17922 xlc*)
17923 output_verbose_link_cmd='echo'
17924 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17925 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17926 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17927 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17928 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17929 ;;
17930 *)
17931 ld_shlibs_GCJ=no
17932 ;;
17933 esac
17934 fi
17935 ;;
17936
17937 dgux*)
17938 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17939 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17940 hardcode_shlibpath_var_GCJ=no
17941 ;;
17942
17943 freebsd1*)
17944 ld_shlibs_GCJ=no
17945 ;;
17946
17947 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17948 # support. Future versions do this automatically, but an explicit c++rt0.o
17949 # does not break anything, and helps significantly (at the cost of a little
17950 # extra space).
17951 freebsd2.2*)
17952 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17953 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17954 hardcode_direct_GCJ=yes
17955 hardcode_shlibpath_var_GCJ=no
17956 ;;
17957
17958 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17959 freebsd2*)
17960 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17961 hardcode_direct_GCJ=yes
17962 hardcode_minus_L_GCJ=yes
17963 hardcode_shlibpath_var_GCJ=no
17964 ;;
17965
17966 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17967 freebsd* | kfreebsd*-gnu | dragonfly*)
17968 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17969 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17970 hardcode_direct_GCJ=yes
17971 hardcode_shlibpath_var_GCJ=no
17972 ;;
17973
17974 hpux9*)
17975 if test "$GCC" = yes; then
17976 archive_cmds_GCJ='$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'
17977 else
17978 archive_cmds_GCJ='$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'
17979 fi
17980 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17981 hardcode_libdir_separator_GCJ=:
17982 hardcode_direct_GCJ=yes
17983
17984 # hardcode_minus_L: Not really in the search PATH,
17985 # but as the default location of the library.
17986 hardcode_minus_L_GCJ=yes
17987 export_dynamic_flag_spec_GCJ='${wl}-E'
17988 ;;
17989
17990 hpux10*)
17991 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17992 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17993 else
17994 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17995 fi
17996 if test "$with_gnu_ld" = no; then
17997 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17998 hardcode_libdir_separator_GCJ=:
17999
18000 hardcode_direct_GCJ=yes
18001 export_dynamic_flag_spec_GCJ='${wl}-E'
18002
18003 # hardcode_minus_L: Not really in the search PATH,
18004 # but as the default location of the library.
18005 hardcode_minus_L_GCJ=yes
18006 fi
18007 ;;
18008
18009 hpux11*)
18010 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18011 case $host_cpu in
18012 hppa*64*)
18013 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18014 ;;
18015 ia64*)
18016 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18017 ;;
18018 *)
18019 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18020 ;;
18021 esac
18022 else
18023 case $host_cpu in
18024 hppa*64*)
18025 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18026 ;;
18027 ia64*)
18028 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18029 ;;
18030 *)
18031 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18032 ;;
18033 esac
18034 fi
18035 if test "$with_gnu_ld" = no; then
18036 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18037 hardcode_libdir_separator_GCJ=:
18038
18039 case $host_cpu in
18040 hppa*64*|ia64*)
18041 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18042 hardcode_direct_GCJ=no
18043 hardcode_shlibpath_var_GCJ=no
18044 ;;
18045 *)
18046 hardcode_direct_GCJ=yes
18047 export_dynamic_flag_spec_GCJ='${wl}-E'
18048
18049 # hardcode_minus_L: Not really in the search PATH,
18050 # but as the default location of the library.
18051 hardcode_minus_L_GCJ=yes
18052 ;;
18053 esac
18054 fi
18055 ;;
18056
18057 irix5* | irix6* | nonstopux*)
18058 if test "$GCC" = yes; then
18059 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18060 else
18061 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18062 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18063 fi
18064 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18065 hardcode_libdir_separator_GCJ=:
18066 link_all_deplibs_GCJ=yes
18067 ;;
18068
18069 netbsd*)
18070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18071 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18072 else
18073 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18074 fi
18075 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18076 hardcode_direct_GCJ=yes
18077 hardcode_shlibpath_var_GCJ=no
18078 ;;
18079
18080 newsos6)
18081 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18082 hardcode_direct_GCJ=yes
18083 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18084 hardcode_libdir_separator_GCJ=:
18085 hardcode_shlibpath_var_GCJ=no
18086 ;;
18087
18088 openbsd*)
18089 hardcode_direct_GCJ=yes
18090 hardcode_shlibpath_var_GCJ=no
18091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18092 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18093 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18094 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18095 export_dynamic_flag_spec_GCJ='${wl}-E'
18096 else
18097 case $host_os in
18098 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18099 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18100 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18101 ;;
18102 *)
18103 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18104 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18105 ;;
18106 esac
18107 fi
18108 ;;
18109
18110 os2*)
18111 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18112 hardcode_minus_L_GCJ=yes
18113 allow_undefined_flag_GCJ=unsupported
18114 archive_cmds_GCJ='$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'
18115 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18116 ;;
18117
18118 osf3*)
18119 if test "$GCC" = yes; then
18120 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18121 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18122 else
18123 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18124 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18125 fi
18126 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18127 hardcode_libdir_separator_GCJ=:
18128 ;;
18129
18130 osf4* | osf5*) # as osf3* with the addition of -msym flag
18131 if test "$GCC" = yes; then
18132 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18133 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18134 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18135 else
18136 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18137 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18138 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18139 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18140
18141 # Both c and cxx compiler support -rpath directly
18142 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18143 fi
18144 hardcode_libdir_separator_GCJ=:
18145 ;;
18146
18147 solaris*)
18148 no_undefined_flag_GCJ=' -z text'
18149 if test "$GCC" = yes; then
18150 wlarc='${wl}'
18151 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18152 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18153 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18154 else
18155 wlarc=''
18156 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18157 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18158 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18159 fi
18160 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18161 hardcode_shlibpath_var_GCJ=no
18162 case $host_os in
18163 solaris2.[0-5] | solaris2.[0-5].*) ;;
18164 *)
18165 # The compiler driver will combine linker options so we
18166 # cannot just pass the convience library names through
18167 # without $wl, iff we do not link with $LD.
18168 # Luckily, gcc supports the same syntax we need for Sun Studio.
18169 # Supported since Solaris 2.6 (maybe 2.5.1?)
18170 case $wlarc in
18171 '')
18172 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18173 *)
18174 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18175 esac ;;
18176 esac
18177 link_all_deplibs_GCJ=yes
18178 ;;
18179
18180 sunos4*)
18181 if test "x$host_vendor" = xsequent; then
18182 # Use $CC to link under sequent, because it throws in some extra .o
18183 # files that make .init and .fini sections work.
18184 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18185 else
18186 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18187 fi
18188 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18189 hardcode_direct_GCJ=yes
18190 hardcode_minus_L_GCJ=yes
18191 hardcode_shlibpath_var_GCJ=no
18192 ;;
18193
18194 sysv4)
18195 case $host_vendor in
18196 sni)
18197 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18198 hardcode_direct_GCJ=yes # is this really true???
18199 ;;
18200 siemens)
18201 ## LD is ld it makes a PLAMLIB
18202 ## CC just makes a GrossModule.
18203 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18204 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18205 hardcode_direct_GCJ=no
18206 ;;
18207 motorola)
18208 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18209 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18210 ;;
18211 esac
18212 runpath_var='LD_RUN_PATH'
18213 hardcode_shlibpath_var_GCJ=no
18214 ;;
18215
18216 sysv4.3*)
18217 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18218 hardcode_shlibpath_var_GCJ=no
18219 export_dynamic_flag_spec_GCJ='-Bexport'
18220 ;;
18221
18222 sysv4*MP*)
18223 if test -d /usr/nec; then
18224 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18225 hardcode_shlibpath_var_GCJ=no
18226 runpath_var=LD_RUN_PATH
18227 hardcode_runpath_var=yes
18228 ld_shlibs_GCJ=yes
18229 fi
18230 ;;
18231
18232 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18233 no_undefined_flag_GCJ='${wl}-z,text'
18234 archive_cmds_need_lc_GCJ=no
18235 hardcode_shlibpath_var_GCJ=no
18236 runpath_var='LD_RUN_PATH'
18237
18238 if test "$GCC" = yes; then
18239 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18240 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18241 else
18242 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18243 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18244 fi
18245 ;;
18246
18247 sysv5* | sco3.2v5* | sco5v6*)
18248 # Note: We can NOT use -z defs as we might desire, because we do not
18249 # link with -lc, and that would cause any symbols used from libc to
18250 # always be unresolved, which means just about no library would
18251 # ever link correctly. If we're not using GNU ld we use -z text
18252 # though, which does catch some bad symbols but isn't as heavy-handed
18253 # as -z defs.
18254 no_undefined_flag_GCJ='${wl}-z,text'
18255 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18256 archive_cmds_need_lc_GCJ=no
18257 hardcode_shlibpath_var_GCJ=no
18258 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18259 hardcode_libdir_separator_GCJ=':'
18260 link_all_deplibs_GCJ=yes
18261 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18262 runpath_var='LD_RUN_PATH'
18263
18264 if test "$GCC" = yes; then
18265 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18266 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18267 else
18268 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18269 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18270 fi
18271 ;;
18272
18273 uts4*)
18274 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18275 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18276 hardcode_shlibpath_var_GCJ=no
18277 ;;
18278
18279 *)
18280 ld_shlibs_GCJ=no
18281 ;;
18282 esac
18283 fi
18284
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060018285{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18286echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018287test "$ld_shlibs_GCJ" = no && can_build_shared=no
18288
18289#
18290# Do we need to explicitly link libc?
18291#
18292case "x$archive_cmds_need_lc_GCJ" in
18293x|xyes)
18294 # Assume -lc should be added
18295 archive_cmds_need_lc_GCJ=yes
18296
18297 if test "$enable_shared" = yes && test "$GCC" = yes; then
18298 case $archive_cmds_GCJ in
18299 *'~'*)
18300 # FIXME: we may have to deal with multi-command sequences.
18301 ;;
18302 '$CC '*)
18303 # Test whether the compiler implicitly links with -lc since on some
18304 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18305 # to ld, don't add -lc before -lgcc.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060018306 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18307echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018308 $rm conftest*
18309 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18310
18311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18312 (eval $ac_compile) 2>&5
18313 ac_status=$?
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); } 2>conftest.err; then
18316 soname=conftest
18317 lib=conftest
18318 libobjs=conftest.$ac_objext
18319 deplibs=
18320 wl=$lt_prog_compiler_wl_GCJ
18321 pic_flag=$lt_prog_compiler_pic_GCJ
18322 compiler_flags=-v
18323 linker_flags=-v
18324 verstring=
18325 output_objdir=.
18326 libname=conftest
18327 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18328 allow_undefined_flag_GCJ=
18329 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18330 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18331 ac_status=$?
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }
18334 then
18335 archive_cmds_need_lc_GCJ=no
18336 else
18337 archive_cmds_need_lc_GCJ=yes
18338 fi
18339 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18340 else
18341 cat conftest.err 1>&5
18342 fi
18343 $rm conftest*
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060018344 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18345echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018346 ;;
18347 esac
18348 fi
18349 ;;
18350esac
18351
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060018352{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18353echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018354library_names_spec=
18355libname_spec='lib$name'
18356soname_spec=
18357shrext_cmds=".so"
18358postinstall_cmds=
18359postuninstall_cmds=
18360finish_cmds=
18361finish_eval=
18362shlibpath_var=
18363shlibpath_overrides_runpath=unknown
18364version_type=none
18365dynamic_linker="$host_os ld.so"
18366sys_lib_dlsearch_path_spec="/lib /usr/lib"
18367if test "$GCC" = yes; then
18368 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18369 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18370 # if the path contains ";" then we assume it to be the separator
18371 # otherwise default to the standard path separator (i.e. ":") - it is
18372 # assumed that no part of a normal pathname contains ";" but that should
18373 # okay in the real world where ";" in dirpaths is itself problematic.
18374 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18375 else
18376 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18377 fi
18378else
18379 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18380fi
18381need_lib_prefix=unknown
18382hardcode_into_libs=no
18383
18384# when you set need_version to no, make sure it does not cause -set_version
18385# flags to be left without arguments
18386need_version=unknown
18387
18388case $host_os in
18389aix3*)
18390 version_type=linux
18391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18392 shlibpath_var=LIBPATH
18393
18394 # AIX 3 has no versioning support, so we append a major version to the name.
18395 soname_spec='${libname}${release}${shared_ext}$major'
18396 ;;
18397
18398aix4* | aix5*)
18399 version_type=linux
18400 need_lib_prefix=no
18401 need_version=no
18402 hardcode_into_libs=yes
18403 if test "$host_cpu" = ia64; then
18404 # AIX 5 supports IA64
18405 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18406 shlibpath_var=LD_LIBRARY_PATH
18407 else
18408 # With GCC up to 2.95.x, collect2 would create an import file
18409 # for dependence libraries. The import file would start with
18410 # the line `#! .'. This would cause the generated library to
18411 # depend on `.', always an invalid library. This was fixed in
18412 # development snapshots of GCC prior to 3.0.
18413 case $host_os in
18414 aix4 | aix4.[01] | aix4.[01].*)
18415 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18416 echo ' yes '
18417 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18418 :
18419 else
18420 can_build_shared=no
18421 fi
18422 ;;
18423 esac
18424 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18425 # soname into executable. Probably we can add versioning support to
18426 # collect2, so additional links can be useful in future.
18427 if test "$aix_use_runtimelinking" = yes; then
18428 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18429 # instead of lib<name>.a to let people know that these are not
18430 # typical AIX shared libraries.
18431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18432 else
18433 # We preserve .a as extension for shared libraries through AIX4.2
18434 # and later when we are not doing run time linking.
18435 library_names_spec='${libname}${release}.a $libname.a'
18436 soname_spec='${libname}${release}${shared_ext}$major'
18437 fi
18438 shlibpath_var=LIBPATH
18439 fi
18440 ;;
18441
18442amigaos*)
18443 library_names_spec='$libname.ixlibrary $libname.a'
18444 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18445 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'
18446 ;;
18447
18448beos*)
18449 library_names_spec='${libname}${shared_ext}'
18450 dynamic_linker="$host_os ld.so"
18451 shlibpath_var=LIBRARY_PATH
18452 ;;
18453
18454bsdi[45]*)
18455 version_type=linux
18456 need_version=no
18457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18458 soname_spec='${libname}${release}${shared_ext}$major'
18459 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18460 shlibpath_var=LD_LIBRARY_PATH
18461 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18462 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18463 # the default ld.so.conf also contains /usr/contrib/lib and
18464 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18465 # libtool to hard-code these into programs
18466 ;;
18467
18468cygwin* | mingw* | pw32*)
18469 version_type=windows
18470 shrext_cmds=".dll"
18471 need_version=no
18472 need_lib_prefix=no
18473
18474 case $GCC,$host_os in
18475 yes,cygwin* | yes,mingw* | yes,pw32*)
18476 library_names_spec='$libname.dll.a'
18477 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18478 postinstall_cmds='base_file=`basename \${file}`~
18479 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18480 dldir=$destdir/`dirname \$dlpath`~
18481 test -d \$dldir || mkdir -p \$dldir~
18482 $install_prog $dir/$dlname \$dldir/$dlname~
18483 chmod a+x \$dldir/$dlname'
18484 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18485 dlpath=$dir/\$dldll~
18486 $rm \$dlpath'
18487 shlibpath_overrides_runpath=yes
18488
18489 case $host_os in
18490 cygwin*)
18491 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18492 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18493 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18494 ;;
18495 mingw*)
18496 # MinGW DLLs use traditional 'lib' prefix
18497 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18498 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18499 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18500 # It is most probably a Windows format PATH printed by
18501 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18502 # path with ; separators, and with drive letters. We can handle the
18503 # drive letters (cygwin fileutils understands them), so leave them,
18504 # especially as we might pass files found there to a mingw objdump,
18505 # which wouldn't understand a cygwinified path. Ahh.
18506 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18507 else
18508 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18509 fi
18510 ;;
18511 pw32*)
18512 # pw32 DLLs use 'pw' prefix rather than 'lib'
18513 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18514 ;;
18515 esac
18516 ;;
18517
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018518 *)
18519 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18520 ;;
18521 esac
18522 dynamic_linker='Win32 ld.exe'
18523 # FIXME: first we should search . and the directory the executable is in
18524 shlibpath_var=PATH
18525 ;;
18526
18527darwin* | rhapsody*)
18528 dynamic_linker="$host_os dyld"
18529 version_type=darwin
18530 need_lib_prefix=no
18531 need_version=no
18532 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18533 soname_spec='${libname}${release}${major}$shared_ext'
18534 shlibpath_overrides_runpath=yes
18535 shlibpath_var=DYLD_LIBRARY_PATH
18536 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18537 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18538 if test "$GCC" = yes; then
18539 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18540 else
18541 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18542 fi
18543 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18544 ;;
18545
18546dgux*)
18547 version_type=linux
18548 need_lib_prefix=no
18549 need_version=no
18550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18551 soname_spec='${libname}${release}${shared_ext}$major'
18552 shlibpath_var=LD_LIBRARY_PATH
18553 ;;
18554
18555freebsd1*)
18556 dynamic_linker=no
18557 ;;
18558
18559kfreebsd*-gnu)
18560 version_type=linux
18561 need_lib_prefix=no
18562 need_version=no
18563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18564 soname_spec='${libname}${release}${shared_ext}$major'
18565 shlibpath_var=LD_LIBRARY_PATH
18566 shlibpath_overrides_runpath=no
18567 hardcode_into_libs=yes
18568 dynamic_linker='GNU ld.so'
18569 ;;
18570
18571freebsd* | dragonfly*)
18572 # DragonFly does not have aout. When/if they implement a new
18573 # versioning mechanism, adjust this.
18574 if test -x /usr/bin/objformat; then
18575 objformat=`/usr/bin/objformat`
18576 else
18577 case $host_os in
18578 freebsd[123]*) objformat=aout ;;
18579 *) objformat=elf ;;
18580 esac
18581 fi
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050018582 version_type=freebsd-$objformat
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018583 case $version_type in
18584 freebsd-elf*)
18585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18586 need_version=no
18587 need_lib_prefix=no
18588 ;;
18589 freebsd-*)
18590 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18591 need_version=yes
18592 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018593 esac
18594 shlibpath_var=LD_LIBRARY_PATH
18595 case $host_os in
18596 freebsd2*)
18597 shlibpath_overrides_runpath=yes
18598 ;;
18599 freebsd3.[01]* | freebsdelf3.[01]*)
18600 shlibpath_overrides_runpath=yes
18601 hardcode_into_libs=yes
18602 ;;
18603 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18604 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18605 shlibpath_overrides_runpath=no
18606 hardcode_into_libs=yes
18607 ;;
18608 freebsd*) # from 4.6 on
18609 shlibpath_overrides_runpath=yes
18610 hardcode_into_libs=yes
18611 ;;
18612 esac
18613 ;;
18614
18615gnu*)
18616 version_type=linux
18617 need_lib_prefix=no
18618 need_version=no
18619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18620 soname_spec='${libname}${release}${shared_ext}$major'
18621 shlibpath_var=LD_LIBRARY_PATH
18622 hardcode_into_libs=yes
18623 ;;
18624
18625hpux9* | hpux10* | hpux11*)
18626 # Give a soname corresponding to the major version so that dld.sl refuses to
18627 # link against other versions.
18628 version_type=sunos
18629 need_lib_prefix=no
18630 need_version=no
18631 case $host_cpu in
18632 ia64*)
18633 shrext_cmds='.so'
18634 hardcode_into_libs=yes
18635 dynamic_linker="$host_os dld.so"
18636 shlibpath_var=LD_LIBRARY_PATH
18637 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18639 soname_spec='${libname}${release}${shared_ext}$major'
18640 if test "X$HPUX_IA64_MODE" = X32; then
18641 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18642 else
18643 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18644 fi
18645 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18646 ;;
18647 hppa*64*)
18648 shrext_cmds='.sl'
18649 hardcode_into_libs=yes
18650 dynamic_linker="$host_os dld.sl"
18651 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18654 soname_spec='${libname}${release}${shared_ext}$major'
18655 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18657 ;;
18658 *)
18659 shrext_cmds='.sl'
18660 dynamic_linker="$host_os dld.sl"
18661 shlibpath_var=SHLIB_PATH
18662 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18664 soname_spec='${libname}${release}${shared_ext}$major'
18665 ;;
18666 esac
18667 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18668 postinstall_cmds='chmod 555 $lib'
18669 ;;
18670
18671interix3*)
18672 version_type=linux
18673 need_lib_prefix=no
18674 need_version=no
18675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18676 soname_spec='${libname}${release}${shared_ext}$major'
18677 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18678 shlibpath_var=LD_LIBRARY_PATH
18679 shlibpath_overrides_runpath=no
18680 hardcode_into_libs=yes
18681 ;;
18682
18683irix5* | irix6* | nonstopux*)
18684 case $host_os in
18685 nonstopux*) version_type=nonstopux ;;
18686 *)
18687 if test "$lt_cv_prog_gnu_ld" = yes; then
18688 version_type=linux
18689 else
18690 version_type=irix
18691 fi ;;
18692 esac
18693 need_lib_prefix=no
18694 need_version=no
18695 soname_spec='${libname}${release}${shared_ext}$major'
18696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18697 case $host_os in
18698 irix5* | nonstopux*)
18699 libsuff= shlibsuff=
18700 ;;
18701 *)
18702 case $LD in # libtool.m4 will add one of these switches to LD
18703 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18704 libsuff= shlibsuff= libmagic=32-bit;;
18705 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18706 libsuff=32 shlibsuff=N32 libmagic=N32;;
18707 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18708 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18709 *) libsuff= shlibsuff= libmagic=never-match;;
18710 esac
18711 ;;
18712 esac
18713 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18714 shlibpath_overrides_runpath=no
18715 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18716 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18717 hardcode_into_libs=yes
18718 ;;
18719
18720# No shared lib support for Linux oldld, aout, or coff.
18721linux*oldld* | linux*aout* | linux*coff*)
18722 dynamic_linker=no
18723 ;;
18724
18725# This must be Linux ELF.
18726linux*)
18727 version_type=linux
18728 need_lib_prefix=no
18729 need_version=no
18730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18731 soname_spec='${libname}${release}${shared_ext}$major'
18732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18733 shlibpath_var=LD_LIBRARY_PATH
18734 shlibpath_overrides_runpath=no
18735 # This implies no fast_install, which is unacceptable.
18736 # Some rework will be needed to allow for fast_install
18737 # before this can be enabled.
18738 hardcode_into_libs=yes
18739
18740 # Append ld.so.conf contents to the search path
18741 if test -f /etc/ld.so.conf; then
18742 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18743 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18744 fi
18745
18746 # We used to test for /lib/ld.so.1 and disable shared libraries on
18747 # powerpc, because MkLinux only supported shared libraries with the
18748 # GNU dynamic linker. Since this was broken with cross compilers,
18749 # most powerpc-linux boxes support dynamic linking these days and
18750 # people can always --disable-shared, the test was removed, and we
18751 # assume the GNU/Linux dynamic linker is in use.
18752 dynamic_linker='GNU/Linux ld.so'
18753 ;;
18754
18755knetbsd*-gnu)
18756 version_type=linux
18757 need_lib_prefix=no
18758 need_version=no
18759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18760 soname_spec='${libname}${release}${shared_ext}$major'
18761 shlibpath_var=LD_LIBRARY_PATH
18762 shlibpath_overrides_runpath=no
18763 hardcode_into_libs=yes
18764 dynamic_linker='GNU ld.so'
18765 ;;
18766
18767netbsd*)
18768 version_type=sunos
18769 need_lib_prefix=no
18770 need_version=no
18771 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18774 dynamic_linker='NetBSD (a.out) ld.so'
18775 else
18776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18777 soname_spec='${libname}${release}${shared_ext}$major'
18778 dynamic_linker='NetBSD ld.elf_so'
18779 fi
18780 shlibpath_var=LD_LIBRARY_PATH
18781 shlibpath_overrides_runpath=yes
18782 hardcode_into_libs=yes
18783 ;;
18784
18785newsos6)
18786 version_type=linux
18787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18788 shlibpath_var=LD_LIBRARY_PATH
18789 shlibpath_overrides_runpath=yes
18790 ;;
18791
18792nto-qnx*)
18793 version_type=linux
18794 need_lib_prefix=no
18795 need_version=no
18796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18797 soname_spec='${libname}${release}${shared_ext}$major'
18798 shlibpath_var=LD_LIBRARY_PATH
18799 shlibpath_overrides_runpath=yes
18800 ;;
18801
18802openbsd*)
18803 version_type=sunos
18804 sys_lib_dlsearch_path_spec="/usr/lib"
18805 need_lib_prefix=no
18806 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18807 case $host_os in
18808 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18809 *) need_version=no ;;
18810 esac
18811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18813 shlibpath_var=LD_LIBRARY_PATH
18814 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18815 case $host_os in
18816 openbsd2.[89] | openbsd2.[89].*)
18817 shlibpath_overrides_runpath=no
18818 ;;
18819 *)
18820 shlibpath_overrides_runpath=yes
18821 ;;
18822 esac
18823 else
18824 shlibpath_overrides_runpath=yes
18825 fi
18826 ;;
18827
18828os2*)
18829 libname_spec='$name'
18830 shrext_cmds=".dll"
18831 need_lib_prefix=no
18832 library_names_spec='$libname${shared_ext} $libname.a'
18833 dynamic_linker='OS/2 ld.exe'
18834 shlibpath_var=LIBPATH
18835 ;;
18836
18837osf3* | osf4* | osf5*)
18838 version_type=osf
18839 need_lib_prefix=no
18840 need_version=no
18841 soname_spec='${libname}${release}${shared_ext}$major'
18842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18843 shlibpath_var=LD_LIBRARY_PATH
18844 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18845 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18846 ;;
18847
18848solaris*)
18849 version_type=linux
18850 need_lib_prefix=no
18851 need_version=no
18852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18853 soname_spec='${libname}${release}${shared_ext}$major'
18854 shlibpath_var=LD_LIBRARY_PATH
18855 shlibpath_overrides_runpath=yes
18856 hardcode_into_libs=yes
18857 # ldd complains unless libraries are executable
18858 postinstall_cmds='chmod +x $lib'
18859 ;;
18860
18861sunos4*)
18862 version_type=sunos
18863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18864 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18865 shlibpath_var=LD_LIBRARY_PATH
18866 shlibpath_overrides_runpath=yes
18867 if test "$with_gnu_ld" = yes; then
18868 need_lib_prefix=no
18869 fi
18870 need_version=yes
18871 ;;
18872
18873sysv4 | sysv4.3*)
18874 version_type=linux
18875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18876 soname_spec='${libname}${release}${shared_ext}$major'
18877 shlibpath_var=LD_LIBRARY_PATH
18878 case $host_vendor in
18879 sni)
18880 shlibpath_overrides_runpath=no
18881 need_lib_prefix=no
18882 export_dynamic_flag_spec='${wl}-Blargedynsym'
18883 runpath_var=LD_RUN_PATH
18884 ;;
18885 siemens)
18886 need_lib_prefix=no
18887 ;;
18888 motorola)
18889 need_lib_prefix=no
18890 need_version=no
18891 shlibpath_overrides_runpath=no
18892 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18893 ;;
18894 esac
18895 ;;
18896
18897sysv4*MP*)
18898 if test -d /usr/nec ;then
18899 version_type=linux
18900 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18901 soname_spec='$libname${shared_ext}.$major'
18902 shlibpath_var=LD_LIBRARY_PATH
18903 fi
18904 ;;
18905
18906sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18907 version_type=freebsd-elf
18908 need_lib_prefix=no
18909 need_version=no
18910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18911 soname_spec='${libname}${release}${shared_ext}$major'
18912 shlibpath_var=LD_LIBRARY_PATH
18913 hardcode_into_libs=yes
18914 if test "$with_gnu_ld" = yes; then
18915 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18916 shlibpath_overrides_runpath=no
18917 else
18918 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18919 shlibpath_overrides_runpath=yes
18920 case $host_os in
18921 sco3.2v5*)
18922 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18923 ;;
18924 esac
18925 fi
18926 sys_lib_dlsearch_path_spec='/usr/lib'
18927 ;;
18928
18929uts4*)
18930 version_type=linux
18931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18932 soname_spec='${libname}${release}${shared_ext}$major'
18933 shlibpath_var=LD_LIBRARY_PATH
18934 ;;
18935
18936*)
18937 dynamic_linker=no
18938 ;;
18939esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060018940{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18941echo "${ECHO_T}$dynamic_linker" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018942test "$dynamic_linker" = no && can_build_shared=no
18943
18944variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18945if test "$GCC" = yes; then
18946 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18947fi
18948
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060018949{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18950echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018951hardcode_action_GCJ=
18952if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18953 test -n "$runpath_var_GCJ" || \
18954 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18955
18956 # We can hardcode non-existant directories.
18957 if test "$hardcode_direct_GCJ" != no &&
18958 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18959 # have to relink, otherwise we might link with an installed library
18960 # when we should be linking with a yet-to-be-installed one
18961 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18962 test "$hardcode_minus_L_GCJ" != no; then
18963 # Linking always hardcodes the temporary library directory.
18964 hardcode_action_GCJ=relink
18965 else
18966 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18967 hardcode_action_GCJ=immediate
18968 fi
18969else
18970 # We cannot hardcode anything, or else we can only hardcode existing
18971 # directories.
18972 hardcode_action_GCJ=unsupported
18973fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060018974{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18975echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018976
18977if test "$hardcode_action_GCJ" = relink; then
18978 # Fast installation is not supported
18979 enable_fast_install=no
18980elif test "$shlibpath_overrides_runpath" = yes ||
18981 test "$enable_shared" = no; then
18982 # Fast installation is not necessary
18983 enable_fast_install=needless
18984fi
18985
18986
18987# The else clause should only fire when bootstrapping the
18988# libtool distribution, otherwise you forgot to ship ltmain.sh
18989# with your package, and you will get complaints that there are
18990# no rules to generate ltmain.sh.
18991if test -f "$ltmain"; then
18992 # See if we are running on zsh, and set the options which allow our commands through
18993 # without removal of \ escapes.
18994 if test -n "${ZSH_VERSION+set}" ; then
18995 setopt NO_GLOB_SUBST
18996 fi
18997 # Now quote all the things that may contain metacharacters while being
18998 # careful not to overquote the AC_SUBSTed values. We take copies of the
18999 # variables and quote the copies for generation of the libtool script.
19000 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19001 SED SHELL STRIP \
19002 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19003 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19004 deplibs_check_method reload_flag reload_cmds need_locks \
19005 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19006 lt_cv_sys_global_symbol_to_c_name_address \
19007 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19008 old_postinstall_cmds old_postuninstall_cmds \
19009 compiler_GCJ \
19010 CC_GCJ \
19011 LD_GCJ \
19012 lt_prog_compiler_wl_GCJ \
19013 lt_prog_compiler_pic_GCJ \
19014 lt_prog_compiler_static_GCJ \
19015 lt_prog_compiler_no_builtin_flag_GCJ \
19016 export_dynamic_flag_spec_GCJ \
19017 thread_safe_flag_spec_GCJ \
19018 whole_archive_flag_spec_GCJ \
19019 enable_shared_with_static_runtimes_GCJ \
19020 old_archive_cmds_GCJ \
19021 old_archive_from_new_cmds_GCJ \
19022 predep_objects_GCJ \
19023 postdep_objects_GCJ \
19024 predeps_GCJ \
19025 postdeps_GCJ \
19026 compiler_lib_search_path_GCJ \
19027 archive_cmds_GCJ \
19028 archive_expsym_cmds_GCJ \
19029 postinstall_cmds_GCJ \
19030 postuninstall_cmds_GCJ \
19031 old_archive_from_expsyms_cmds_GCJ \
19032 allow_undefined_flag_GCJ \
19033 no_undefined_flag_GCJ \
19034 export_symbols_cmds_GCJ \
19035 hardcode_libdir_flag_spec_GCJ \
19036 hardcode_libdir_flag_spec_ld_GCJ \
19037 hardcode_libdir_separator_GCJ \
19038 hardcode_automatic_GCJ \
19039 module_cmds_GCJ \
19040 module_expsym_cmds_GCJ \
19041 lt_cv_prog_compiler_c_o_GCJ \
19042 exclude_expsyms_GCJ \
19043 include_expsyms_GCJ; do
19044
19045 case $var in
19046 old_archive_cmds_GCJ | \
19047 old_archive_from_new_cmds_GCJ | \
19048 archive_cmds_GCJ | \
19049 archive_expsym_cmds_GCJ | \
19050 module_cmds_GCJ | \
19051 module_expsym_cmds_GCJ | \
19052 old_archive_from_expsyms_cmds_GCJ | \
19053 export_symbols_cmds_GCJ | \
19054 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19055 postinstall_cmds | postuninstall_cmds | \
19056 old_postinstall_cmds | old_postuninstall_cmds | \
19057 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19058 # Double-quote double-evaled strings.
19059 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19060 ;;
19061 *)
19062 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19063 ;;
19064 esac
19065 done
19066
19067 case $lt_echo in
19068 *'\$0 --fallback-echo"')
19069 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19070 ;;
19071 esac
19072
19073cfgfile="$ofile"
19074
19075 cat <<__EOF__ >> "$cfgfile"
19076# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19077
19078# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19079
19080# Shell to use when invoking shell scripts.
19081SHELL=$lt_SHELL
19082
19083# Whether or not to build shared libraries.
19084build_libtool_libs=$enable_shared
19085
19086# Whether or not to build static libraries.
19087build_old_libs=$enable_static
19088
19089# Whether or not to add -lc for building shared libraries.
19090build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19091
19092# Whether or not to disallow shared libs when runtime libs are static
19093allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19094
19095# Whether or not to optimize for fast installation.
19096fast_install=$enable_fast_install
19097
19098# The host system.
19099host_alias=$host_alias
19100host=$host
19101host_os=$host_os
19102
19103# The build system.
19104build_alias=$build_alias
19105build=$build
19106build_os=$build_os
19107
19108# An echo program that does not interpret backslashes.
19109echo=$lt_echo
19110
19111# The archiver.
19112AR=$lt_AR
19113AR_FLAGS=$lt_AR_FLAGS
19114
19115# A C compiler.
19116LTCC=$lt_LTCC
19117
19118# LTCC compiler flags.
19119LTCFLAGS=$lt_LTCFLAGS
19120
19121# A language-specific compiler.
19122CC=$lt_compiler_GCJ
19123
19124# Is the compiler the GNU C compiler?
19125with_gcc=$GCC_GCJ
19126
19127# An ERE matcher.
19128EGREP=$lt_EGREP
19129
19130# The linker used to build libraries.
19131LD=$lt_LD_GCJ
19132
19133# Whether we need hard or soft links.
19134LN_S=$lt_LN_S
19135
19136# A BSD-compatible nm program.
19137NM=$lt_NM
19138
19139# A symbol stripping program
19140STRIP=$lt_STRIP
19141
19142# Used to examine libraries when file_magic_cmd begins "file"
19143MAGIC_CMD=$MAGIC_CMD
19144
19145# Used on cygwin: DLL creation program.
19146DLLTOOL="$DLLTOOL"
19147
19148# Used on cygwin: object dumper.
19149OBJDUMP="$OBJDUMP"
19150
19151# Used on cygwin: assembler.
19152AS="$AS"
19153
19154# The name of the directory that contains temporary libtool files.
19155objdir=$objdir
19156
19157# How to create reloadable object files.
19158reload_flag=$lt_reload_flag
19159reload_cmds=$lt_reload_cmds
19160
19161# How to pass a linker flag through the compiler.
19162wl=$lt_lt_prog_compiler_wl_GCJ
19163
19164# Object file suffix (normally "o").
19165objext="$ac_objext"
19166
19167# Old archive suffix (normally "a").
19168libext="$libext"
19169
19170# Shared library suffix (normally ".so").
19171shrext_cmds='$shrext_cmds'
19172
19173# Executable file suffix (normally "").
19174exeext="$exeext"
19175
19176# Additional compiler flags for building library objects.
19177pic_flag=$lt_lt_prog_compiler_pic_GCJ
19178pic_mode=$pic_mode
19179
19180# What is the maximum length of a command?
19181max_cmd_len=$lt_cv_sys_max_cmd_len
19182
19183# Does compiler simultaneously support -c and -o options?
19184compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19185
19186# Must we lock files when doing compilation?
19187need_locks=$lt_need_locks
19188
19189# Do we need the lib prefix for modules?
19190need_lib_prefix=$need_lib_prefix
19191
19192# Do we need a version for libraries?
19193need_version=$need_version
19194
19195# Whether dlopen is supported.
19196dlopen_support=$enable_dlopen
19197
19198# Whether dlopen of programs is supported.
19199dlopen_self=$enable_dlopen_self
19200
19201# Whether dlopen of statically linked programs is supported.
19202dlopen_self_static=$enable_dlopen_self_static
19203
19204# Compiler flag to prevent dynamic linking.
19205link_static_flag=$lt_lt_prog_compiler_static_GCJ
19206
19207# Compiler flag to turn off builtin functions.
19208no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19209
19210# Compiler flag to allow reflexive dlopens.
19211export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19212
19213# Compiler flag to generate shared objects directly from archives.
19214whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19215
19216# Compiler flag to generate thread-safe objects.
19217thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19218
19219# Library versioning type.
19220version_type=$version_type
19221
19222# Format of library name prefix.
19223libname_spec=$lt_libname_spec
19224
19225# List of archive names. First name is the real one, the rest are links.
19226# The last name is the one that the linker finds with -lNAME.
19227library_names_spec=$lt_library_names_spec
19228
19229# The coded name of the library, if different from the real name.
19230soname_spec=$lt_soname_spec
19231
19232# Commands used to build and install an old-style archive.
19233RANLIB=$lt_RANLIB
19234old_archive_cmds=$lt_old_archive_cmds_GCJ
19235old_postinstall_cmds=$lt_old_postinstall_cmds
19236old_postuninstall_cmds=$lt_old_postuninstall_cmds
19237
19238# Create an old-style archive from a shared archive.
19239old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19240
19241# Create a temporary old-style archive to link instead of a shared archive.
19242old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19243
19244# Commands used to build and install a shared archive.
19245archive_cmds=$lt_archive_cmds_GCJ
19246archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19247postinstall_cmds=$lt_postinstall_cmds
19248postuninstall_cmds=$lt_postuninstall_cmds
19249
19250# Commands used to build a loadable module (assumed same as above if empty)
19251module_cmds=$lt_module_cmds_GCJ
19252module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19253
19254# Commands to strip libraries.
19255old_striplib=$lt_old_striplib
19256striplib=$lt_striplib
19257
19258# Dependencies to place before the objects being linked to create a
19259# shared library.
19260predep_objects=$lt_predep_objects_GCJ
19261
19262# Dependencies to place after the objects being linked to create a
19263# shared library.
19264postdep_objects=$lt_postdep_objects_GCJ
19265
19266# Dependencies to place before the objects being linked to create a
19267# shared library.
19268predeps=$lt_predeps_GCJ
19269
19270# Dependencies to place after the objects being linked to create a
19271# shared library.
19272postdeps=$lt_postdeps_GCJ
19273
19274# The library search path used internally by the compiler when linking
19275# a shared library.
19276compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19277
19278# Method to check whether dependent libraries are shared objects.
19279deplibs_check_method=$lt_deplibs_check_method
19280
19281# Command to use when deplibs_check_method == file_magic.
19282file_magic_cmd=$lt_file_magic_cmd
19283
19284# Flag that allows shared libraries with undefined symbols to be built.
19285allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19286
19287# Flag that forces no undefined symbols.
19288no_undefined_flag=$lt_no_undefined_flag_GCJ
19289
19290# Commands used to finish a libtool library installation in a directory.
19291finish_cmds=$lt_finish_cmds
19292
19293# Same as above, but a single script fragment to be evaled but not shown.
19294finish_eval=$lt_finish_eval
19295
19296# Take the output of nm and produce a listing of raw symbols and C names.
19297global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19298
19299# Transform the output of nm in a proper C declaration
19300global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19301
19302# Transform the output of nm in a C name address pair
19303global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19304
19305# This is the shared library runtime path variable.
19306runpath_var=$runpath_var
19307
19308# This is the shared library path variable.
19309shlibpath_var=$shlibpath_var
19310
19311# Is shlibpath searched before the hard-coded library search path?
19312shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19313
19314# How to hardcode a shared library path into an executable.
19315hardcode_action=$hardcode_action_GCJ
19316
19317# Whether we should hardcode library paths into libraries.
19318hardcode_into_libs=$hardcode_into_libs
19319
19320# Flag to hardcode \$libdir into a binary during linking.
19321# This must work even if \$libdir does not exist.
19322hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19323
19324# If ld is used when linking, flag to hardcode \$libdir into
19325# a binary during linking. This must work even if \$libdir does
19326# not exist.
19327hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19328
19329# Whether we need a single -rpath flag with a separated argument.
19330hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19331
19332# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19333# resulting binary.
19334hardcode_direct=$hardcode_direct_GCJ
19335
19336# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19337# resulting binary.
19338hardcode_minus_L=$hardcode_minus_L_GCJ
19339
19340# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19341# the resulting binary.
19342hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19343
19344# Set to yes if building a shared library automatically hardcodes DIR into the library
19345# and all subsequent libraries and executables linked against it.
19346hardcode_automatic=$hardcode_automatic_GCJ
19347
19348# Variables whose values should be saved in libtool wrapper scripts and
19349# restored at relink time.
19350variables_saved_for_relink="$variables_saved_for_relink"
19351
19352# Whether libtool must link a program against all its dependency libraries.
19353link_all_deplibs=$link_all_deplibs_GCJ
19354
19355# Compile-time system search path for libraries
19356sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19357
19358# Run-time system search path for libraries
19359sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19360
19361# Fix the shell variable \$srcfile for the compiler.
19362fix_srcfile_path="$fix_srcfile_path_GCJ"
19363
19364# Set to yes if exported symbols are required.
19365always_export_symbols=$always_export_symbols_GCJ
19366
19367# The commands to list exported symbols.
19368export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19369
19370# The commands to extract the exported symbol list from a shared archive.
19371extract_expsyms_cmds=$lt_extract_expsyms_cmds
19372
19373# Symbols that should not be listed in the preloaded symbols.
19374exclude_expsyms=$lt_exclude_expsyms_GCJ
19375
19376# Symbols that must always be exported.
19377include_expsyms=$lt_include_expsyms_GCJ
19378
19379# ### END LIBTOOL TAG CONFIG: $tagname
19380
19381__EOF__
19382
19383
19384else
19385 # If there is no Makefile yet, we rely on a make rule to execute
19386 # `config.status --recheck' to rerun these tests and create the
19387 # libtool script then.
19388 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19389 if test -f "$ltmain_in"; then
19390 test -f Makefile && make "$ltmain"
19391 fi
19392fi
19393
19394
19395ac_ext=c
19396ac_cpp='$CPP $CPPFLAGS'
19397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19399ac_compiler_gnu=$ac_cv_c_compiler_gnu
19400
19401CC="$lt_save_CC"
19402
19403 else
19404 tagname=""
19405 fi
19406 ;;
19407
19408 RC)
19409
19410
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019411# Source file extension for RC test sources.
19412ac_ext=rc
19413
19414# Object file extension for compiled RC test sources.
19415objext=o
19416objext_RC=$objext
19417
19418# Code to be used in simple compile tests
19419lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19420
19421# Code to be used in simple link tests
19422lt_simple_link_test_code="$lt_simple_compile_test_code"
19423
19424# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19425
19426# If no C compiler was specified, use CC.
19427LTCC=${LTCC-"$CC"}
19428
19429# If no C compiler flags were specified, use CFLAGS.
19430LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19431
19432# Allow CC to be a program name with arguments.
19433compiler=$CC
19434
19435
19436# save warnings/boilerplate of simple test code
19437ac_outfile=conftest.$ac_objext
19438printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19439eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19440_lt_compiler_boilerplate=`cat conftest.err`
19441$rm conftest*
19442
19443ac_outfile=conftest.$ac_objext
19444printf "$lt_simple_link_test_code" >conftest.$ac_ext
19445eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19446_lt_linker_boilerplate=`cat conftest.err`
19447$rm conftest*
19448
19449
19450# Allow CC to be a program name with arguments.
19451lt_save_CC="$CC"
19452CC=${RC-"windres"}
19453compiler=$CC
19454compiler_RC=$CC
19455for cc_temp in $compiler""; do
19456 case $cc_temp in
19457 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19458 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19459 \-*) ;;
19460 *) break;;
19461 esac
19462done
19463cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19464
19465lt_cv_prog_compiler_c_o_RC=yes
19466
19467# The else clause should only fire when bootstrapping the
19468# libtool distribution, otherwise you forgot to ship ltmain.sh
19469# with your package, and you will get complaints that there are
19470# no rules to generate ltmain.sh.
19471if test -f "$ltmain"; then
19472 # See if we are running on zsh, and set the options which allow our commands through
19473 # without removal of \ escapes.
19474 if test -n "${ZSH_VERSION+set}" ; then
19475 setopt NO_GLOB_SUBST
19476 fi
19477 # Now quote all the things that may contain metacharacters while being
19478 # careful not to overquote the AC_SUBSTed values. We take copies of the
19479 # variables and quote the copies for generation of the libtool script.
19480 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19481 SED SHELL STRIP \
19482 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19483 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19484 deplibs_check_method reload_flag reload_cmds need_locks \
19485 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19486 lt_cv_sys_global_symbol_to_c_name_address \
19487 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19488 old_postinstall_cmds old_postuninstall_cmds \
19489 compiler_RC \
19490 CC_RC \
19491 LD_RC \
19492 lt_prog_compiler_wl_RC \
19493 lt_prog_compiler_pic_RC \
19494 lt_prog_compiler_static_RC \
19495 lt_prog_compiler_no_builtin_flag_RC \
19496 export_dynamic_flag_spec_RC \
19497 thread_safe_flag_spec_RC \
19498 whole_archive_flag_spec_RC \
19499 enable_shared_with_static_runtimes_RC \
19500 old_archive_cmds_RC \
19501 old_archive_from_new_cmds_RC \
19502 predep_objects_RC \
19503 postdep_objects_RC \
19504 predeps_RC \
19505 postdeps_RC \
19506 compiler_lib_search_path_RC \
19507 archive_cmds_RC \
19508 archive_expsym_cmds_RC \
19509 postinstall_cmds_RC \
19510 postuninstall_cmds_RC \
19511 old_archive_from_expsyms_cmds_RC \
19512 allow_undefined_flag_RC \
19513 no_undefined_flag_RC \
19514 export_symbols_cmds_RC \
19515 hardcode_libdir_flag_spec_RC \
19516 hardcode_libdir_flag_spec_ld_RC \
19517 hardcode_libdir_separator_RC \
19518 hardcode_automatic_RC \
19519 module_cmds_RC \
19520 module_expsym_cmds_RC \
19521 lt_cv_prog_compiler_c_o_RC \
19522 exclude_expsyms_RC \
19523 include_expsyms_RC; do
19524
19525 case $var in
19526 old_archive_cmds_RC | \
19527 old_archive_from_new_cmds_RC | \
19528 archive_cmds_RC | \
19529 archive_expsym_cmds_RC | \
19530 module_cmds_RC | \
19531 module_expsym_cmds_RC | \
19532 old_archive_from_expsyms_cmds_RC | \
19533 export_symbols_cmds_RC | \
19534 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19535 postinstall_cmds | postuninstall_cmds | \
19536 old_postinstall_cmds | old_postuninstall_cmds | \
19537 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19538 # Double-quote double-evaled strings.
19539 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19540 ;;
19541 *)
19542 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19543 ;;
19544 esac
19545 done
19546
19547 case $lt_echo in
19548 *'\$0 --fallback-echo"')
19549 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19550 ;;
19551 esac
19552
19553cfgfile="$ofile"
19554
19555 cat <<__EOF__ >> "$cfgfile"
19556# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19557
19558# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19559
19560# Shell to use when invoking shell scripts.
19561SHELL=$lt_SHELL
19562
19563# Whether or not to build shared libraries.
19564build_libtool_libs=$enable_shared
19565
19566# Whether or not to build static libraries.
19567build_old_libs=$enable_static
19568
19569# Whether or not to add -lc for building shared libraries.
19570build_libtool_need_lc=$archive_cmds_need_lc_RC
19571
19572# Whether or not to disallow shared libs when runtime libs are static
19573allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19574
19575# Whether or not to optimize for fast installation.
19576fast_install=$enable_fast_install
19577
19578# The host system.
19579host_alias=$host_alias
19580host=$host
19581host_os=$host_os
19582
19583# The build system.
19584build_alias=$build_alias
19585build=$build
19586build_os=$build_os
19587
19588# An echo program that does not interpret backslashes.
19589echo=$lt_echo
19590
19591# The archiver.
19592AR=$lt_AR
19593AR_FLAGS=$lt_AR_FLAGS
19594
19595# A C compiler.
19596LTCC=$lt_LTCC
19597
19598# LTCC compiler flags.
19599LTCFLAGS=$lt_LTCFLAGS
19600
19601# A language-specific compiler.
19602CC=$lt_compiler_RC
19603
19604# Is the compiler the GNU C compiler?
19605with_gcc=$GCC_RC
19606
19607# An ERE matcher.
19608EGREP=$lt_EGREP
19609
19610# The linker used to build libraries.
19611LD=$lt_LD_RC
19612
19613# Whether we need hard or soft links.
19614LN_S=$lt_LN_S
19615
19616# A BSD-compatible nm program.
19617NM=$lt_NM
19618
19619# A symbol stripping program
19620STRIP=$lt_STRIP
19621
19622# Used to examine libraries when file_magic_cmd begins "file"
19623MAGIC_CMD=$MAGIC_CMD
19624
19625# Used on cygwin: DLL creation program.
19626DLLTOOL="$DLLTOOL"
19627
19628# Used on cygwin: object dumper.
19629OBJDUMP="$OBJDUMP"
19630
19631# Used on cygwin: assembler.
19632AS="$AS"
19633
19634# The name of the directory that contains temporary libtool files.
19635objdir=$objdir
19636
19637# How to create reloadable object files.
19638reload_flag=$lt_reload_flag
19639reload_cmds=$lt_reload_cmds
19640
19641# How to pass a linker flag through the compiler.
19642wl=$lt_lt_prog_compiler_wl_RC
19643
19644# Object file suffix (normally "o").
19645objext="$ac_objext"
19646
19647# Old archive suffix (normally "a").
19648libext="$libext"
19649
19650# Shared library suffix (normally ".so").
19651shrext_cmds='$shrext_cmds'
19652
19653# Executable file suffix (normally "").
19654exeext="$exeext"
19655
19656# Additional compiler flags for building library objects.
19657pic_flag=$lt_lt_prog_compiler_pic_RC
19658pic_mode=$pic_mode
19659
19660# What is the maximum length of a command?
19661max_cmd_len=$lt_cv_sys_max_cmd_len
19662
19663# Does compiler simultaneously support -c and -o options?
19664compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19665
19666# Must we lock files when doing compilation?
19667need_locks=$lt_need_locks
19668
19669# Do we need the lib prefix for modules?
19670need_lib_prefix=$need_lib_prefix
19671
19672# Do we need a version for libraries?
19673need_version=$need_version
19674
19675# Whether dlopen is supported.
19676dlopen_support=$enable_dlopen
19677
19678# Whether dlopen of programs is supported.
19679dlopen_self=$enable_dlopen_self
19680
19681# Whether dlopen of statically linked programs is supported.
19682dlopen_self_static=$enable_dlopen_self_static
19683
19684# Compiler flag to prevent dynamic linking.
19685link_static_flag=$lt_lt_prog_compiler_static_RC
19686
19687# Compiler flag to turn off builtin functions.
19688no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19689
19690# Compiler flag to allow reflexive dlopens.
19691export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19692
19693# Compiler flag to generate shared objects directly from archives.
19694whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19695
19696# Compiler flag to generate thread-safe objects.
19697thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19698
19699# Library versioning type.
19700version_type=$version_type
19701
19702# Format of library name prefix.
19703libname_spec=$lt_libname_spec
19704
19705# List of archive names. First name is the real one, the rest are links.
19706# The last name is the one that the linker finds with -lNAME.
19707library_names_spec=$lt_library_names_spec
19708
19709# The coded name of the library, if different from the real name.
19710soname_spec=$lt_soname_spec
19711
19712# Commands used to build and install an old-style archive.
19713RANLIB=$lt_RANLIB
19714old_archive_cmds=$lt_old_archive_cmds_RC
19715old_postinstall_cmds=$lt_old_postinstall_cmds
19716old_postuninstall_cmds=$lt_old_postuninstall_cmds
19717
19718# Create an old-style archive from a shared archive.
19719old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19720
19721# Create a temporary old-style archive to link instead of a shared archive.
19722old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19723
19724# Commands used to build and install a shared archive.
19725archive_cmds=$lt_archive_cmds_RC
19726archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19727postinstall_cmds=$lt_postinstall_cmds
19728postuninstall_cmds=$lt_postuninstall_cmds
19729
19730# Commands used to build a loadable module (assumed same as above if empty)
19731module_cmds=$lt_module_cmds_RC
19732module_expsym_cmds=$lt_module_expsym_cmds_RC
19733
19734# Commands to strip libraries.
19735old_striplib=$lt_old_striplib
19736striplib=$lt_striplib
19737
19738# Dependencies to place before the objects being linked to create a
19739# shared library.
19740predep_objects=$lt_predep_objects_RC
19741
19742# Dependencies to place after the objects being linked to create a
19743# shared library.
19744postdep_objects=$lt_postdep_objects_RC
19745
19746# Dependencies to place before the objects being linked to create a
19747# shared library.
19748predeps=$lt_predeps_RC
19749
19750# Dependencies to place after the objects being linked to create a
19751# shared library.
19752postdeps=$lt_postdeps_RC
19753
19754# The library search path used internally by the compiler when linking
19755# a shared library.
19756compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19757
19758# Method to check whether dependent libraries are shared objects.
19759deplibs_check_method=$lt_deplibs_check_method
19760
19761# Command to use when deplibs_check_method == file_magic.
19762file_magic_cmd=$lt_file_magic_cmd
19763
19764# Flag that allows shared libraries with undefined symbols to be built.
19765allow_undefined_flag=$lt_allow_undefined_flag_RC
19766
19767# Flag that forces no undefined symbols.
19768no_undefined_flag=$lt_no_undefined_flag_RC
19769
19770# Commands used to finish a libtool library installation in a directory.
19771finish_cmds=$lt_finish_cmds
19772
19773# Same as above, but a single script fragment to be evaled but not shown.
19774finish_eval=$lt_finish_eval
19775
19776# Take the output of nm and produce a listing of raw symbols and C names.
19777global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19778
19779# Transform the output of nm in a proper C declaration
19780global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19781
19782# Transform the output of nm in a C name address pair
19783global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19784
19785# This is the shared library runtime path variable.
19786runpath_var=$runpath_var
19787
19788# This is the shared library path variable.
19789shlibpath_var=$shlibpath_var
19790
19791# Is shlibpath searched before the hard-coded library search path?
19792shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19793
19794# How to hardcode a shared library path into an executable.
19795hardcode_action=$hardcode_action_RC
19796
19797# Whether we should hardcode library paths into libraries.
19798hardcode_into_libs=$hardcode_into_libs
19799
19800# Flag to hardcode \$libdir into a binary during linking.
19801# This must work even if \$libdir does not exist.
19802hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19803
19804# If ld is used when linking, flag to hardcode \$libdir into
19805# a binary during linking. This must work even if \$libdir does
19806# not exist.
19807hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19808
19809# Whether we need a single -rpath flag with a separated argument.
19810hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19811
19812# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19813# resulting binary.
19814hardcode_direct=$hardcode_direct_RC
19815
19816# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19817# resulting binary.
19818hardcode_minus_L=$hardcode_minus_L_RC
19819
19820# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19821# the resulting binary.
19822hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19823
19824# Set to yes if building a shared library automatically hardcodes DIR into the library
19825# and all subsequent libraries and executables linked against it.
19826hardcode_automatic=$hardcode_automatic_RC
19827
19828# Variables whose values should be saved in libtool wrapper scripts and
19829# restored at relink time.
19830variables_saved_for_relink="$variables_saved_for_relink"
19831
19832# Whether libtool must link a program against all its dependency libraries.
19833link_all_deplibs=$link_all_deplibs_RC
19834
19835# Compile-time system search path for libraries
19836sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19837
19838# Run-time system search path for libraries
19839sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19840
19841# Fix the shell variable \$srcfile for the compiler.
19842fix_srcfile_path="$fix_srcfile_path_RC"
19843
19844# Set to yes if exported symbols are required.
19845always_export_symbols=$always_export_symbols_RC
19846
19847# The commands to list exported symbols.
19848export_symbols_cmds=$lt_export_symbols_cmds_RC
19849
19850# The commands to extract the exported symbol list from a shared archive.
19851extract_expsyms_cmds=$lt_extract_expsyms_cmds
19852
19853# Symbols that should not be listed in the preloaded symbols.
19854exclude_expsyms=$lt_exclude_expsyms_RC
19855
19856# Symbols that must always be exported.
19857include_expsyms=$lt_include_expsyms_RC
19858
19859# ### END LIBTOOL TAG CONFIG: $tagname
19860
19861__EOF__
19862
19863
19864else
19865 # If there is no Makefile yet, we rely on a make rule to execute
19866 # `config.status --recheck' to rerun these tests and create the
19867 # libtool script then.
19868 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19869 if test -f "$ltmain_in"; then
19870 test -f Makefile && make "$ltmain"
19871 fi
19872fi
19873
19874
19875ac_ext=c
19876ac_cpp='$CPP $CPPFLAGS'
19877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19879ac_compiler_gnu=$ac_cv_c_compiler_gnu
19880
19881CC="$lt_save_CC"
19882
19883 ;;
19884
19885 *)
19886 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19887echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19888 { (exit 1); exit 1; }; }
19889 ;;
19890 esac
19891
19892 # Append the new tag name to the list of available tags.
19893 if test -n "$tagname" ; then
19894 available_tags="$available_tags $tagname"
19895 fi
19896 fi
19897 done
19898 IFS="$lt_save_ifs"
19899
19900 # Now substitute the updated list of available tags.
19901 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19902 mv "${ofile}T" "$ofile"
19903 chmod +x "$ofile"
19904 else
19905 rm -f "${ofile}T"
19906 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19907echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19908 { (exit 1); exit 1; }; }
19909 fi
19910fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019911
19912
19913
19914# This can be used to rebuild libtool when needed
19915LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19916
19917# Always use our own libtool.
19918LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19919
19920# Prevent multiple expansion
19921
19922
19923
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019942# Checks for header files.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060019943{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19944echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019945if test "${ac_cv_header_stdc+set}" = set; then
19946 echo $ECHO_N "(cached) $ECHO_C" >&6
19947else
19948 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019949/* confdefs.h. */
19950_ACEOF
19951cat confdefs.h >>conftest.$ac_ext
19952cat >>conftest.$ac_ext <<_ACEOF
19953/* end confdefs.h. */
19954#include <stdlib.h>
19955#include <stdarg.h>
19956#include <string.h>
19957#include <float.h>
19958
19959int
19960main ()
19961{
19962
19963 ;
19964 return 0;
19965}
19966_ACEOF
19967rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060019968if { (ac_try="$ac_compile"
19969case "(($ac_try" in
19970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971 *) ac_try_echo=$ac_try;;
19972esac
19973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019975 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019976 grep -v '^ *+' conftest.er1 >conftest.err
19977 rm -f conftest.er1
19978 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060019981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19982 { (case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19985esac
19986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019988 ac_status=$?
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; } &&
19991 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060019992 { (case "(($ac_try" in
19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994 *) ac_try_echo=$ac_try;;
19995esac
19996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; }; then
20001 ac_cv_header_stdc=yes
20002else
20003 echo "$as_me: failed program was:" >&5
20004sed 's/^/| /' conftest.$ac_ext >&5
20005
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020006 ac_cv_header_stdc=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020007fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020008
20009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020010
20011if test $ac_cv_header_stdc = yes; then
20012 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20013 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020014/* confdefs.h. */
20015_ACEOF
20016cat confdefs.h >>conftest.$ac_ext
20017cat >>conftest.$ac_ext <<_ACEOF
20018/* end confdefs.h. */
20019#include <string.h>
20020
20021_ACEOF
20022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20023 $EGREP "memchr" >/dev/null 2>&1; then
20024 :
20025else
20026 ac_cv_header_stdc=no
20027fi
20028rm -f conftest*
20029
20030fi
20031
20032if test $ac_cv_header_stdc = yes; then
20033 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20034 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020035/* confdefs.h. */
20036_ACEOF
20037cat confdefs.h >>conftest.$ac_ext
20038cat >>conftest.$ac_ext <<_ACEOF
20039/* end confdefs.h. */
20040#include <stdlib.h>
20041
20042_ACEOF
20043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20044 $EGREP "free" >/dev/null 2>&1; then
20045 :
20046else
20047 ac_cv_header_stdc=no
20048fi
20049rm -f conftest*
20050
20051fi
20052
20053if test $ac_cv_header_stdc = yes; then
20054 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20055 if test "$cross_compiling" = yes; then
20056 :
20057else
20058 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020059/* confdefs.h. */
20060_ACEOF
20061cat confdefs.h >>conftest.$ac_ext
20062cat >>conftest.$ac_ext <<_ACEOF
20063/* end confdefs.h. */
20064#include <ctype.h>
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020065#include <stdlib.h>
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020066#if ((' ' & 0x0FF) == 0x020)
20067# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20068# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20069#else
20070# define ISLOWER(c) \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020071 (('a' <= (c) && (c) <= 'i') \
20072 || ('j' <= (c) && (c) <= 'r') \
20073 || ('s' <= (c) && (c) <= 'z'))
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020074# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20075#endif
20076
20077#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20078int
20079main ()
20080{
20081 int i;
20082 for (i = 0; i < 256; i++)
20083 if (XOR (islower (i), ISLOWER (i))
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020084 || toupper (i) != TOUPPER (i))
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020085 return 2;
20086 return 0;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020087}
20088_ACEOF
20089rm -f conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020090if { (ac_try="$ac_link"
20091case "(($ac_try" in
20092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20093 *) ac_try_echo=$ac_try;;
20094esac
20095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20096 (eval "$ac_link") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020097 ac_status=$?
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020100 { (case "(($ac_try" in
20101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102 *) ac_try_echo=$ac_try;;
20103esac
20104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; }; then
20109 :
20110else
20111 echo "$as_me: program exited with status $ac_status" >&5
20112echo "$as_me: failed program was:" >&5
20113sed 's/^/| /' conftest.$ac_ext >&5
20114
20115( exit $ac_status )
20116ac_cv_header_stdc=no
20117fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020118rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20119fi
20120
20121
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020122fi
20123fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020124{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20125echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020126if test $ac_cv_header_stdc = yes; then
20127
20128cat >>confdefs.h <<\_ACEOF
20129#define STDC_HEADERS 1
20130_ACEOF
20131
20132fi
20133
20134
20135
20136
20137
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020138for ac_header in malloc.h stdlib.h string.h strings.h
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020139do
20140as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020141if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020145 echo $ECHO_N "(cached) $ECHO_C" >&6
20146fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020147ac_res=`eval echo '${'$as_ac_Header'}'`
20148 { echo "$as_me:$LINENO: result: $ac_res" >&5
20149echo "${ECHO_T}$ac_res" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020150else
20151 # Is the header compilable?
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020152{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20153echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020154cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020155/* confdefs.h. */
20156_ACEOF
20157cat confdefs.h >>conftest.$ac_ext
20158cat >>conftest.$ac_ext <<_ACEOF
20159/* end confdefs.h. */
20160$ac_includes_default
20161#include <$ac_header>
20162_ACEOF
20163rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020164if { (ac_try="$ac_compile"
20165case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20168esac
20169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020171 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020172 grep -v '^ *+' conftest.er1 >conftest.err
20173 rm -f conftest.er1
20174 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20178 { (case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20181esac
20182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20183 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020184 ac_status=$?
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); }; } &&
20187 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020188 { (case "(($ac_try" in
20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190 *) ac_try_echo=$ac_try;;
20191esac
20192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020194 ac_status=$?
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; }; then
20197 ac_header_compiler=yes
20198else
20199 echo "$as_me: failed program was:" >&5
20200sed 's/^/| /' conftest.$ac_ext >&5
20201
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020202 ac_header_compiler=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020203fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020204
20205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20206{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20207echo "${ECHO_T}$ac_header_compiler" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020208
20209# Is the header present?
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020210{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20211echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020212cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020213/* confdefs.h. */
20214_ACEOF
20215cat confdefs.h >>conftest.$ac_ext
20216cat >>conftest.$ac_ext <<_ACEOF
20217/* end confdefs.h. */
20218#include <$ac_header>
20219_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020220if { (ac_try="$ac_cpp conftest.$ac_ext"
20221case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20224esac
20225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } >/dev/null; then
20233 if test -s conftest.err; then
20234 ac_cpp_err=$ac_c_preproc_warn_flag
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020236 else
20237 ac_cpp_err=
20238 fi
20239else
20240 ac_cpp_err=yes
20241fi
20242if test -z "$ac_cpp_err"; then
20243 ac_header_preproc=yes
20244else
20245 echo "$as_me: failed program was:" >&5
20246sed 's/^/| /' conftest.$ac_ext >&5
20247
20248 ac_header_preproc=no
20249fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020250
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020251rm -f conftest.err conftest.$ac_ext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020252{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20253echo "${ECHO_T}$ac_header_preproc" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020254
20255# So? What about this header?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020256case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20257 yes:no: )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20259echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20261echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20262 ac_header_preproc=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020263 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020264 no:yes:* )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20266echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20268echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20270echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20272echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20274echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20276echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020277 ( cat <<\_ASBOX
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020278## ------------------------------------------------------ ##
20279## Report this to png-mng-implement@lists.sourceforge.net ##
20280## ------------------------------------------------------ ##
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020281_ASBOX
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020282 ) | sed "s/^/$as_me: WARNING: /" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020283 ;;
20284esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020285{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020288 echo $ECHO_N "(cached) $ECHO_C" >&6
20289else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020290 eval "$as_ac_Header=\$ac_header_preproc"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020291fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020292ac_res=`eval echo '${'$as_ac_Header'}'`
20293 { echo "$as_me:$LINENO: result: $ac_res" >&5
20294echo "${ECHO_T}$ac_res" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020295
20296fi
20297if test `eval echo '${'$as_ac_Header'}'` = yes; then
20298 cat >>confdefs.h <<_ACEOF
20299#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20300_ACEOF
20301
20302fi
20303
20304done
20305
20306
20307# Checks for typedefs, structures, and compiler characteristics.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020308{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20309echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020310if test "${ac_cv_c_const+set}" = set; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20312else
20313 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020314/* confdefs.h. */
20315_ACEOF
20316cat confdefs.h >>conftest.$ac_ext
20317cat >>conftest.$ac_ext <<_ACEOF
20318/* end confdefs.h. */
20319
20320int
20321main ()
20322{
20323/* FIXME: Include the comments suggested by Paul. */
20324#ifndef __cplusplus
20325 /* Ultrix mips cc rejects this. */
20326 typedef int charset[2];
20327 const charset x;
20328 /* SunOS 4.1.1 cc rejects this. */
20329 char const *const *ccp;
20330 char **p;
20331 /* NEC SVR4.0.2 mips cc rejects this. */
20332 struct point {int x, y;};
20333 static struct point const zero = {0,0};
20334 /* AIX XL C 1.02.0.0 rejects this.
20335 It does not let you subtract one const X* pointer from another in
20336 an arm of an if-expression whose if-part is not a constant
20337 expression */
20338 const char *g = "string";
20339 ccp = &g + (g ? g-g : 0);
20340 /* HPUX 7.0 cc rejects these. */
20341 ++ccp;
20342 p = (char**) ccp;
20343 ccp = (char const *const *) p;
20344 { /* SCO 3.2v4 cc rejects this. */
20345 char *t;
20346 char const *s = 0 ? (char *) 0 : (char const *) 0;
20347
20348 *t++ = 0;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020349 if (s) return 0;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020350 }
20351 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20352 int x[] = {25, 17};
20353 const int *foo = &x[0];
20354 ++foo;
20355 }
20356 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20357 typedef const int *iptr;
20358 iptr p = 0;
20359 ++p;
20360 }
20361 { /* AIX XL C 1.02.0.0 rejects this saying
20362 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20363 struct s { int j; const int *ap[3]; };
20364 struct s *b; b->j = 5;
20365 }
20366 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20367 const int foo = 10;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020368 if (!foo) return 0;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020369 }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020370 return !x[0] && !zero.x;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020371#endif
20372
20373 ;
20374 return 0;
20375}
20376_ACEOF
20377rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020378if { (ac_try="$ac_compile"
20379case "(($ac_try" in
20380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20381 *) ac_try_echo=$ac_try;;
20382esac
20383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20384 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020385 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020386 grep -v '^ *+' conftest.er1 >conftest.err
20387 rm -f conftest.er1
20388 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20392 { (case "(($ac_try" in
20393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20394 *) ac_try_echo=$ac_try;;
20395esac
20396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20397 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020398 ac_status=$?
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; } &&
20401 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020402 { (case "(($ac_try" in
20403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20404 *) ac_try_echo=$ac_try;;
20405esac
20406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20407 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020408 ac_status=$?
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; }; then
20411 ac_cv_c_const=yes
20412else
20413 echo "$as_me: failed program was:" >&5
20414sed 's/^/| /' conftest.$ac_ext >&5
20415
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020416 ac_cv_c_const=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020417fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020418
20419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020420fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020421{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20422echo "${ECHO_T}$ac_cv_c_const" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020423if test $ac_cv_c_const = no; then
20424
20425cat >>confdefs.h <<\_ACEOF
20426#define const
20427_ACEOF
20428
20429fi
20430
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020431{ echo "$as_me:$LINENO: checking for size_t" >&5
20432echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020433if test "${ac_cv_type_size_t+set}" = set; then
20434 echo $ECHO_N "(cached) $ECHO_C" >&6
20435else
20436 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020437/* confdefs.h. */
20438_ACEOF
20439cat confdefs.h >>conftest.$ac_ext
20440cat >>conftest.$ac_ext <<_ACEOF
20441/* end confdefs.h. */
20442$ac_includes_default
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020443typedef size_t ac__type_new_;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020444int
20445main ()
20446{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020447if ((ac__type_new_ *) 0)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020448 return 0;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020449if (sizeof (ac__type_new_))
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020450 return 0;
20451 ;
20452 return 0;
20453}
20454_ACEOF
20455rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020456if { (ac_try="$ac_compile"
20457case "(($ac_try" in
20458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459 *) ac_try_echo=$ac_try;;
20460esac
20461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20462 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020463 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020464 grep -v '^ *+' conftest.er1 >conftest.err
20465 rm -f conftest.er1
20466 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20470 { (case "(($ac_try" in
20471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472 *) ac_try_echo=$ac_try;;
20473esac
20474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020476 ac_status=$?
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); }; } &&
20479 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020480 { (case "(($ac_try" in
20481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482 *) ac_try_echo=$ac_try;;
20483esac
20484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20485 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020486 ac_status=$?
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; }; then
20489 ac_cv_type_size_t=yes
20490else
20491 echo "$as_me: failed program was:" >&5
20492sed 's/^/| /' conftest.$ac_ext >&5
20493
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020494 ac_cv_type_size_t=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020495fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020496
20497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020498fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020499{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20500echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020501if test $ac_cv_type_size_t = yes; then
20502 :
20503else
20504
20505cat >>confdefs.h <<_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020506#define size_t unsigned int
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020507_ACEOF
20508
20509fi
20510
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020511{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20512echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020513if test "${ac_cv_struct_tm+set}" = set; then
20514 echo $ECHO_N "(cached) $ECHO_C" >&6
20515else
20516 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020517/* confdefs.h. */
20518_ACEOF
20519cat confdefs.h >>conftest.$ac_ext
20520cat >>conftest.$ac_ext <<_ACEOF
20521/* end confdefs.h. */
20522#include <sys/types.h>
20523#include <time.h>
20524
20525int
20526main ()
20527{
20528struct tm *tp; tp->tm_sec;
20529 ;
20530 return 0;
20531}
20532_ACEOF
20533rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020534if { (ac_try="$ac_compile"
20535case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20538esac
20539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020541 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020542 grep -v '^ *+' conftest.er1 >conftest.err
20543 rm -f conftest.er1
20544 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20548 { (case "(($ac_try" in
20549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550 *) ac_try_echo=$ac_try;;
20551esac
20552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020554 ac_status=$?
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; } &&
20557 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020558 { (case "(($ac_try" in
20559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20560 *) ac_try_echo=$ac_try;;
20561esac
20562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20563 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; }; then
20567 ac_cv_struct_tm=time.h
20568else
20569 echo "$as_me: failed program was:" >&5
20570sed 's/^/| /' conftest.$ac_ext >&5
20571
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020572 ac_cv_struct_tm=sys/time.h
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020573fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020574
20575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020576fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020577{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20578echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020579if test $ac_cv_struct_tm = sys/time.h; then
20580
20581cat >>confdefs.h <<\_ACEOF
20582#define TM_IN_SYS_TIME 1
20583_ACEOF
20584
20585fi
20586
20587
20588# Checks for library functions.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020589{ echo "$as_me:$LINENO: checking for working strtod" >&5
20590echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020591if test "${ac_cv_func_strtod+set}" = set; then
20592 echo $ECHO_N "(cached) $ECHO_C" >&6
20593else
20594 if test "$cross_compiling" = yes; then
20595 ac_cv_func_strtod=no
20596else
20597 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020598/* confdefs.h. */
20599_ACEOF
20600cat confdefs.h >>conftest.$ac_ext
20601cat >>conftest.$ac_ext <<_ACEOF
20602/* end confdefs.h. */
20603
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020604$ac_includes_default
20605#ifndef strtod
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020606double strtod ();
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020607#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020608int
20609main()
20610{
20611 {
20612 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
20613 char *string = " +69";
20614 char *term;
20615 double value;
20616 value = strtod (string, &term);
20617 if (value != 69 || term != (string + 4))
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020618 return 1;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020619 }
20620
20621 {
20622 /* Under Solaris 2.4, strtod returns the wrong value for the
20623 terminating character under some conditions. */
20624 char *string = "NaN";
20625 char *term;
20626 strtod (string, &term);
20627 if (term != string && *(term - 1) == 0)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020628 return 1;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020629 }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020630 return 0;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020631}
20632
20633_ACEOF
20634rm -f conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020635if { (ac_try="$ac_link"
20636case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20639esac
20640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641 (eval "$ac_link") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020642 ac_status=$?
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020645 { (case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20648esac
20649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020651 ac_status=$?
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; }; then
20654 ac_cv_func_strtod=yes
20655else
20656 echo "$as_me: program exited with status $ac_status" >&5
20657echo "$as_me: failed program was:" >&5
20658sed 's/^/| /' conftest.$ac_ext >&5
20659
20660( exit $ac_status )
20661ac_cv_func_strtod=no
20662fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020663rm -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 -060020664fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020665
20666
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020667fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020668{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
20669echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020670if test $ac_cv_func_strtod = no; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020671 case " $LIBOBJS " in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020672 *" strtod.$ac_objext "* ) ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020673 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
20674 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020675esac
20676
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020677{ echo "$as_me:$LINENO: checking for pow" >&5
20678echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020679if test "${ac_cv_func_pow+set}" = set; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20681else
20682 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020683/* confdefs.h. */
20684_ACEOF
20685cat confdefs.h >>conftest.$ac_ext
20686cat >>conftest.$ac_ext <<_ACEOF
20687/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020688/* Define pow to an innocuous variant, in case <limits.h> declares pow.
20689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20690#define pow innocuous_pow
20691
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020692/* System header to define __stub macros and hopefully few prototypes,
20693 which can conflict with char pow (); below.
20694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20695 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020696
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020697#ifdef __STDC__
20698# include <limits.h>
20699#else
20700# include <assert.h>
20701#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020702
20703#undef pow
20704
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020705/* Override any GCC internal prototype to avoid an error.
20706 Use char because int might match the return type of a GCC
20707 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020708#ifdef __cplusplus
20709extern "C"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020710#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020711char pow ();
20712/* The GNU C library defines this for functions which it implements
20713 to always fail with ENOSYS. Some functions are actually named
20714 something starting with __ and the normal name is an alias. */
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020715#if defined __stub_pow || defined __stub___pow
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020716choke me
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020717#endif
20718
20719int
20720main ()
20721{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020722return pow ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020723 ;
20724 return 0;
20725}
20726_ACEOF
20727rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020728if { (ac_try="$ac_link"
20729case "(($ac_try" in
20730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20731 *) ac_try_echo=$ac_try;;
20732esac
20733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20734 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020735 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020736 grep -v '^ *+' conftest.er1 >conftest.err
20737 rm -f conftest.er1
20738 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20742 { (case "(($ac_try" in
20743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744 *) ac_try_echo=$ac_try;;
20745esac
20746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020748 ac_status=$?
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; } &&
20751 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020752 { (case "(($ac_try" in
20753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754 *) ac_try_echo=$ac_try;;
20755esac
20756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020758 ac_status=$?
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; }; then
20761 ac_cv_func_pow=yes
20762else
20763 echo "$as_me: failed program was:" >&5
20764sed 's/^/| /' conftest.$ac_ext >&5
20765
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020766 ac_cv_func_pow=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020767fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020768
20769rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020770 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020771fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020772{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
20773echo "${ECHO_T}$ac_cv_func_pow" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020774
20775if test $ac_cv_func_pow = no; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020776 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
20777echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020778if test "${ac_cv_lib_m_pow+set}" = set; then
20779 echo $ECHO_N "(cached) $ECHO_C" >&6
20780else
20781 ac_check_lib_save_LIBS=$LIBS
20782LIBS="-lm $LIBS"
20783cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020784/* confdefs.h. */
20785_ACEOF
20786cat confdefs.h >>conftest.$ac_ext
20787cat >>conftest.$ac_ext <<_ACEOF
20788/* end confdefs.h. */
20789
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020790/* Override any GCC internal prototype to avoid an error.
20791 Use char because int might match the return type of a GCC
20792 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020793#ifdef __cplusplus
20794extern "C"
20795#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020796char pow ();
20797int
20798main ()
20799{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020800return pow ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020801 ;
20802 return 0;
20803}
20804_ACEOF
20805rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020806if { (ac_try="$ac_link"
20807case "(($ac_try" in
20808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809 *) ac_try_echo=$ac_try;;
20810esac
20811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20812 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020813 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020814 grep -v '^ *+' conftest.er1 >conftest.err
20815 rm -f conftest.er1
20816 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20820 { (case "(($ac_try" in
20821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822 *) ac_try_echo=$ac_try;;
20823esac
20824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020826 ac_status=$?
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; } &&
20829 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020830 { (case "(($ac_try" in
20831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20832 *) ac_try_echo=$ac_try;;
20833esac
20834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20835 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020836 ac_status=$?
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); }; }; then
20839 ac_cv_lib_m_pow=yes
20840else
20841 echo "$as_me: failed program was:" >&5
20842sed 's/^/| /' conftest.$ac_ext >&5
20843
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020844 ac_cv_lib_m_pow=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020845fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020846
20847rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020848 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020849LIBS=$ac_check_lib_save_LIBS
20850fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020851{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
20852echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020853if test $ac_cv_lib_m_pow = yes; then
20854 POW_LIB=-lm
20855else
20856 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
20857echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
20858fi
20859
20860fi
20861
20862fi
20863
20864
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020865for ac_func in memset
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020866do
20867as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020868{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20869echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20870if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020871 echo $ECHO_N "(cached) $ECHO_C" >&6
20872else
20873 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020874/* confdefs.h. */
20875_ACEOF
20876cat confdefs.h >>conftest.$ac_ext
20877cat >>conftest.$ac_ext <<_ACEOF
20878/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020879/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20881#define $ac_func innocuous_$ac_func
20882
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020883/* System header to define __stub macros and hopefully few prototypes,
20884 which can conflict with char $ac_func (); below.
20885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20886 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020887
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020888#ifdef __STDC__
20889# include <limits.h>
20890#else
20891# include <assert.h>
20892#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020893
20894#undef $ac_func
20895
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020896/* Override any GCC internal prototype to avoid an error.
20897 Use char because int might match the return type of a GCC
20898 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020899#ifdef __cplusplus
20900extern "C"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020901#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020902char $ac_func ();
20903/* The GNU C library defines this for functions which it implements
20904 to always fail with ENOSYS. Some functions are actually named
20905 something starting with __ and the normal name is an alias. */
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020906#if defined __stub_$ac_func || defined __stub___$ac_func
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020907choke me
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020908#endif
20909
20910int
20911main ()
20912{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020913return $ac_func ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020914 ;
20915 return 0;
20916}
20917_ACEOF
20918rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020919if { (ac_try="$ac_link"
20920case "(($ac_try" in
20921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922 *) ac_try_echo=$ac_try;;
20923esac
20924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020926 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020927 grep -v '^ *+' conftest.er1 >conftest.err
20928 rm -f conftest.er1
20929 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20933 { (case "(($ac_try" in
20934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20935 *) ac_try_echo=$ac_try;;
20936esac
20937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20938 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020939 ac_status=$?
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); }; } &&
20942 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020943 { (case "(($ac_try" in
20944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945 *) ac_try_echo=$ac_try;;
20946esac
20947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20948 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020949 ac_status=$?
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; }; then
20952 eval "$as_ac_var=yes"
20953else
20954 echo "$as_me: failed program was:" >&5
20955sed 's/^/| /' conftest.$ac_ext >&5
20956
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020957 eval "$as_ac_var=no"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020958fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020959
20960rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020961 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020962fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020963ac_res=`eval echo '${'$as_ac_var'}'`
20964 { echo "$as_me:$LINENO: result: $ac_res" >&5
20965echo "${ECHO_T}$ac_res" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020966if test `eval echo '${'$as_ac_var'}'` = yes; then
20967 cat >>confdefs.h <<_ACEOF
20968#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20969_ACEOF
20970
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020971else
20972 { { echo "$as_me:$LINENO: error: memset not found in libc" >&5
20973echo "$as_me: error: memset not found in libc" >&2;}
20974 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020975fi
20976done
20977
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020978
20979for ac_func in pow
20980do
20981as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060020982{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20983echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20984if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020985 echo $ECHO_N "(cached) $ECHO_C" >&6
20986else
20987 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020988/* confdefs.h. */
20989_ACEOF
20990cat confdefs.h >>conftest.$ac_ext
20991cat >>conftest.$ac_ext <<_ACEOF
20992/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020993/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20995#define $ac_func innocuous_$ac_func
20996
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020997/* System header to define __stub macros and hopefully few prototypes,
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020998 which can conflict with char $ac_func (); below.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21000 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021001
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021002#ifdef __STDC__
21003# include <limits.h>
21004#else
21005# include <assert.h>
21006#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021007
21008#undef $ac_func
21009
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021010/* Override any GCC internal prototype to avoid an error.
21011 Use char because int might match the return type of a GCC
21012 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021013#ifdef __cplusplus
21014extern "C"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021015#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021016char $ac_func ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021017/* The GNU C library defines this for functions which it implements
21018 to always fail with ENOSYS. Some functions are actually named
21019 something starting with __ and the normal name is an alias. */
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021020#if defined __stub_$ac_func || defined __stub___$ac_func
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021021choke me
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021022#endif
21023
21024int
21025main ()
21026{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021027return $ac_func ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021028 ;
21029 return 0;
21030}
21031_ACEOF
21032rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021033if { (ac_try="$ac_link"
21034case "(($ac_try" in
21035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036 *) ac_try_echo=$ac_try;;
21037esac
21038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021040 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021041 grep -v '^ *+' conftest.er1 >conftest.err
21042 rm -f conftest.er1
21043 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21047 { (case "(($ac_try" in
21048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049 *) ac_try_echo=$ac_try;;
21050esac
21051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021053 ac_status=$?
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); }; } &&
21056 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021057 { (case "(($ac_try" in
21058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21059 *) ac_try_echo=$ac_try;;
21060esac
21061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21062 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021063 ac_status=$?
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); }; }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021066 eval "$as_ac_var=yes"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021067else
21068 echo "$as_me: failed program was:" >&5
21069sed 's/^/| /' conftest.$ac_ext >&5
21070
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021071 eval "$as_ac_var=no"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021072fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021073
21074rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021075 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021076fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021077ac_res=`eval echo '${'$as_ac_var'}'`
21078 { echo "$as_me:$LINENO: result: $ac_res" >&5
21079echo "${ECHO_T}$ac_res" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021080if test `eval echo '${'$as_ac_var'}'` = yes; then
21081 cat >>confdefs.h <<_ACEOF
21082#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21083_ACEOF
21084
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021085else
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060021086
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021087{ echo "$as_me:$LINENO: checking for pow in -lm" >&5
21088echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021089if test "${ac_cv_lib_m_pow+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021090 echo $ECHO_N "(cached) $ECHO_C" >&6
21091else
21092 ac_check_lib_save_LIBS=$LIBS
21093LIBS="-lm $LIBS"
21094cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021095/* confdefs.h. */
21096_ACEOF
21097cat confdefs.h >>conftest.$ac_ext
21098cat >>conftest.$ac_ext <<_ACEOF
21099/* end confdefs.h. */
21100
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021101/* Override any GCC internal prototype to avoid an error.
21102 Use char because int might match the return type of a GCC
21103 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021104#ifdef __cplusplus
21105extern "C"
21106#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021107char pow ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021108int
21109main ()
21110{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021111return pow ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021112 ;
21113 return 0;
21114}
21115_ACEOF
21116rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021117if { (ac_try="$ac_link"
21118case "(($ac_try" in
21119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120 *) ac_try_echo=$ac_try;;
21121esac
21122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21123 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021124 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021125 grep -v '^ *+' conftest.er1 >conftest.err
21126 rm -f conftest.er1
21127 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21131 { (case "(($ac_try" in
21132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21133 *) ac_try_echo=$ac_try;;
21134esac
21135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21136 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021137 ac_status=$?
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; } &&
21140 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021141 { (case "(($ac_try" in
21142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143 *) ac_try_echo=$ac_try;;
21144esac
21145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021150 ac_cv_lib_m_pow=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021151else
21152 echo "$as_me: failed program was:" >&5
21153sed 's/^/| /' conftest.$ac_ext >&5
21154
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021155 ac_cv_lib_m_pow=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021156fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021157
21158rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021159 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021160LIBS=$ac_check_lib_save_LIBS
21161fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021162{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
21163echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021164if test $ac_cv_lib_m_pow = yes; then
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060021165 cat >>confdefs.h <<_ACEOF
21166#define HAVE_LIBM 1
21167_ACEOF
21168
21169 LIBS="-lm $LIBS"
21170
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021171else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021172 { { echo "$as_me:$LINENO: error: cannot find pow" >&5
21173echo "$as_me: error: cannot find pow" >&2;}
21174 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021175fi
21176
21177fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021178done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021179
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060021180
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021181{ echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
21182echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021183if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21185else
21186 ac_check_lib_save_LIBS=$LIBS
21187LIBS="-lz $LIBS"
21188cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021189/* confdefs.h. */
21190_ACEOF
21191cat confdefs.h >>conftest.$ac_ext
21192cat >>conftest.$ac_ext <<_ACEOF
21193/* end confdefs.h. */
21194
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021195/* Override any GCC internal prototype to avoid an error.
21196 Use char because int might match the return type of a GCC
21197 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021198#ifdef __cplusplus
21199extern "C"
21200#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021201char zlibVersion ();
21202int
21203main ()
21204{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021205return zlibVersion ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021206 ;
21207 return 0;
21208}
21209_ACEOF
21210rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021211if { (ac_try="$ac_link"
21212case "(($ac_try" in
21213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21215esac
21216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021218 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021219 grep -v '^ *+' conftest.er1 >conftest.err
21220 rm -f conftest.er1
21221 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21225 { (case "(($ac_try" in
21226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227 *) ac_try_echo=$ac_try;;
21228esac
21229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021231 ac_status=$?
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; } &&
21234 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021235 { (case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21238esac
21239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021241 ac_status=$?
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 ac_cv_lib_z_zlibVersion=yes
21245else
21246 echo "$as_me: failed program was:" >&5
21247sed 's/^/| /' conftest.$ac_ext >&5
21248
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021249 ac_cv_lib_z_zlibVersion=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021250fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021251
21252rm -f core conftest.err conftest.$ac_objext \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021253 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021254LIBS=$ac_check_lib_save_LIBS
21255fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021256{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
21257echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021258if test $ac_cv_lib_z_zlibVersion = yes; then
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060021259 cat >>confdefs.h <<_ACEOF
21260#define HAVE_LIBZ 1
21261_ACEOF
21262
21263 LIBS="-lz $LIBS"
21264
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021265else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021266 { { echo "$as_me:$LINENO: error: zlib not installed" >&5
21267echo "$as_me: error: zlib not installed" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021268 { (exit 1); exit 1; }; }
21269fi
21270
21271
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021272{ echo "$as_me:$LINENO: checking if pnggccrd.c can be compiled without -DPNG_NO_MMX_CODE" >&5
21273echo $ECHO_N "checking if pnggccrd.c can be compiled without -DPNG_NO_MMX_CODE... $ECHO_C" >&6; }
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050021274cat >conftest.$ac_ext <<_ACEOF
21275/* confdefs.h. */
21276_ACEOF
21277cat confdefs.h >>conftest.$ac_ext
21278cat >>conftest.$ac_ext <<_ACEOF
21279/* end confdefs.h. */
21280#include "pnggccrd.c"
21281int
21282main ()
21283{
Glenn Randers-Pehrson629330e2006-04-17 14:33:23 -050021284return 0;
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050021285 ;
21286 return 0;
21287}
21288_ACEOF
21289rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021290if { (ac_try="$ac_compile"
21291case "(($ac_try" in
21292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293 *) ac_try_echo=$ac_try;;
21294esac
21295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21296 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050021297 ac_status=$?
21298 grep -v '^ *+' conftest.er1 >conftest.err
21299 rm -f conftest.er1
21300 cat conftest.err >&5
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21304 { (case "(($ac_try" in
21305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306 *) ac_try_echo=$ac_try;;
21307esac
21308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050021310 ac_status=$?
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; } &&
21313 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021314 { (case "(($ac_try" in
21315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316 *) ac_try_echo=$ac_try;;
21317esac
21318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21319 (eval "$ac_try") 2>&5
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050021320 ac_status=$?
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); }; }; then
Glenn Randers-Pehrsonb3870ab2006-05-11 09:43:09 -050021323 LIBPNG_NO_MMX=
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050021324else
21325 echo "$as_me: failed program was:" >&5
21326sed 's/^/| /' conftest.$ac_ext >&5
21327
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021328 LIBPNG_NO_MMX=true
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050021329fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021330
21331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrsonb3870ab2006-05-11 09:43:09 -050021332if test "$LIBPNG_NO_MMX"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021333 { echo "$as_me:$LINENO: result: no" >&5
21334echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050021335else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021336 { echo "$as_me:$LINENO: result: yes" >&5
21337echo "${ECHO_T}yes" >&6; }
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050021338fi
21339
21340
Glenn Randers-Pehrsonb3870ab2006-05-11 09:43:09 -050021341LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG
21342
21343
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021344{ echo "$as_me:$LINENO: checking if libraries can be versioned" >&5
21345echo $ECHO_N "checking if libraries can be versioned... $ECHO_C" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060021346GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
21347if test "$GLD"; then
21348 have_ld_version_script=yes
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021349 { echo "$as_me:$LINENO: result: yes" >&5
21350echo "${ECHO_T}yes" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060021351else
21352 have_ld_version_script=no
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021353 { echo "$as_me:$LINENO: result: no" >&5
21354echo "${ECHO_T}no" >&6; }
Glenn Randers-Pehrson17218292006-04-20 07:20:46 -050021355 { echo "$as_me:$LINENO: WARNING: *** You have not enabled versioned symbols." >&5
21356echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060021357fi
21358
21359
21360if test "$have_ld_version_script" = "yes"; then
21361 HAVE_LD_VERSION_SCRIPT_TRUE=
21362 HAVE_LD_VERSION_SCRIPT_FALSE='#'
21363else
21364 HAVE_LD_VERSION_SCRIPT_TRUE='#'
21365 HAVE_LD_VERSION_SCRIPT_FALSE=
21366fi
21367
21368
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021369# Substitutions for .in files
21370
21371
21372
21373
21374# Additional arguments (and substitutions)
21375# Allow the pkg-config directory to be set
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021376
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021377# Check whether --with-pkgconfigdir was given.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021378if test "${with_pkgconfigdir+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021379 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021380else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021381 pkgconfigdir='${libdir}/pkgconfig'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021382fi
21383
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021384
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021385
21386{ echo "$as_me:$LINENO: pkgconfig directory is ${pkgconfigdir}" >&5
21387echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
21388
21389# Make the *-config binary config scripts optional
21390
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021391# Check whether --with-binconfigs was given.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021392if test "${with_binconfigs+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021393 withval=$with_binconfigs; if test "${withval}" = no; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021394 binconfigs=
21395 { echo "$as_me:$LINENO: libpng-config scripts will not be built" >&5
21396echo "$as_me: libpng-config scripts will not be built" >&6;}
21397 else
21398 binconfigs='${binconfigs}'
21399 fi
21400else
21401 binconfigs='${binconfigs}'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021402fi
21403
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021404
21405
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021406# Allow the old version number library, libpng.so, to be removed from
21407# the build
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021408
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021409# Check whether --with-libpng-compat was given.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021410if test "${with_libpng_compat+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021411 withval=$with_libpng_compat; if test "${withval}" = no; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021412 compatlib=
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021413 else
21414 compatlib=libpng.la
Glenn Randers-Pehrsond60b8fa2006-04-20 21:31:14 -050021415 { echo "$as_me:$LINENO: libpng.so will be built" >&5
21416echo "$as_me: libpng.so will be built" >&6;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021417 fi
21418else
Glenn Randers-Pehrsond60b8fa2006-04-20 21:31:14 -050021419 compatlib=
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021420fi
21421
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021422
21423
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021424# Config files, substituting as above
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021425ac_config_files="$ac_config_files Makefile libpng.pc:scripts/libpng.pc.in"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021426
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021427ac_config_files="$ac_config_files libpng-config:scripts/libpng-config.in"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021428
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021429
21430cat >confcache <<\_ACEOF
21431# This file is a shell script that caches the results of configure
21432# tests run on this system so they can be shared between configure
21433# scripts and configure runs, see configure's option --config-cache.
21434# It is not useful on other systems. If it contains results you don't
21435# want to keep, you may remove or edit it.
21436#
21437# config.status only pays attention to the cache file if you give it
21438# the --recheck option to rerun configure.
21439#
21440# `ac_cv_env_foo' variables (set or unset) will be overridden when
21441# loading this file, other *unset* `ac_cv_foo' will be assigned the
21442# following values.
21443
21444_ACEOF
21445
21446# The following way of writing the cache mishandles newlines in values,
21447# but we know of no workaround that is simple, portable, and efficient.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021448# So, we kill variables containing newlines.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021449# Ultrix sh set writes to stderr and can't be redirected directly,
21450# and sets the high bit in the cache file unless we assign to the vars.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021451(
21452 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21453 eval ac_val=\$$ac_var
21454 case $ac_val in #(
21455 *${as_nl}*)
21456 case $ac_var in #(
21457 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21458echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21459 esac
21460 case $ac_var in #(
21461 _ | IFS | as_nl) ;; #(
21462 *) $as_unset $ac_var ;;
21463 esac ;;
21464 esac
21465 done
21466
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021467 (set) 2>&1 |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021468 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21469 *${as_nl}ac_space=\ *)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021470 # `set' does not quote correctly, so add quotes (double-quote
21471 # substitution turns \\\\ into \\, and sed turns \\ into \).
21472 sed -n \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021473 "s/'/'\\\\''/g;
21474 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021475 ;; #(
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021476 *)
21477 # `set' quotes correctly as required by POSIX, so do not add quotes.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021478 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021479 ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021480 esac |
21481 sort
21482) |
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021483 sed '
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021484 /^ac_cv_env_/b end
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021485 t clear
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021486 :clear
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021487 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21488 t end
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021489 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21490 :end' >>confcache
21491if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21492 if test -w "$cache_file"; then
21493 test "x$cache_file" != "x/dev/null" &&
21494 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21495echo "$as_me: updating cache $cache_file" >&6;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021496 cat confcache >$cache_file
21497 else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021498 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21499echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021500 fi
21501fi
21502rm -f confcache
21503
21504test "x$prefix" = xNONE && prefix=$ac_default_prefix
21505# Let make expand exec_prefix.
21506test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21507
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021508DEFS=-DHAVE_CONFIG_H
21509
21510ac_libobjs=
21511ac_ltlibobjs=
21512for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21513 # 1. Remove the extension, and $U if already installed.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021514 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21515 ac_i=`echo "$ac_i" | sed "$ac_script"`
21516 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21517 # will be set to the directory where LIBOBJS objects are built.
21518 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21519 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021520done
21521LIBOBJS=$ac_libobjs
21522
21523LTLIBOBJS=$ac_ltlibobjs
21524
21525
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021526if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21527 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21528Usually this means the macro was only invoked conditionally." >&5
21529echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21530Usually this means the macro was only invoked conditionally." >&2;}
21531 { (exit 1); exit 1; }; }
21532fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021533if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21534 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21535Usually this means the macro was only invoked conditionally." >&5
21536echo "$as_me: error: conditional \"AMDEP\" was never defined.
21537Usually this means the macro was only invoked conditionally." >&2;}
21538 { (exit 1); exit 1; }; }
21539fi
21540if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21541 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21542Usually this means the macro was only invoked conditionally." >&5
21543echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21544Usually this means the macro was only invoked conditionally." >&2;}
21545 { (exit 1); exit 1; }; }
21546fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021547if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21548 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21549Usually this means the macro was only invoked conditionally." >&5
21550echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21551Usually this means the macro was only invoked conditionally." >&2;}
21552 { (exit 1); exit 1; }; }
21553fi
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060021554if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
21555 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
21556Usually this means the macro was only invoked conditionally." >&5
21557echo "$as_me: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
21558Usually this means the macro was only invoked conditionally." >&2;}
21559 { (exit 1); exit 1; }; }
21560fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021561
21562: ${CONFIG_STATUS=./config.status}
21563ac_clean_files_save=$ac_clean_files
21564ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21565{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21566echo "$as_me: creating $CONFIG_STATUS" >&6;}
21567cat >$CONFIG_STATUS <<_ACEOF
21568#! $SHELL
21569# Generated by $as_me.
21570# Run this file to recreate the current configuration.
21571# Compiler output produced by configure, useful for debugging
21572# configure, is in config.log if it exists.
21573
21574debug=false
21575ac_cs_recheck=false
21576ac_cs_silent=false
21577SHELL=\${CONFIG_SHELL-$SHELL}
21578_ACEOF
21579
21580cat >>$CONFIG_STATUS <<\_ACEOF
21581## --------------------- ##
21582## M4sh Initialization. ##
21583## --------------------- ##
21584
21585# Be Bourne compatible
21586if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21587 emulate sh
21588 NULLCMD=:
21589 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21590 # is contrary to our usage. Disable this feature.
21591 alias -g '${1+"$@"}'='"$@"'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021592 setopt NO_GLOB_SUBST
21593else
21594 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021595fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021596BIN_SH=xpg4; export BIN_SH # for Tru64
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021597DUALCASE=1; export DUALCASE # for MKS sh
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021598
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021599
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021600# PATH needs CR
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021601# Avoid depending upon Character Ranges.
21602as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21603as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21604as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21605as_cr_digits='0123456789'
21606as_cr_alnum=$as_cr_Letters$as_cr_digits
21607
21608# The user is always right.
21609if test "${PATH_SEPARATOR+set}" != set; then
21610 echo "#! /bin/sh" >conf$$.sh
21611 echo "exit 0" >>conf$$.sh
21612 chmod +x conf$$.sh
21613 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21614 PATH_SEPARATOR=';'
21615 else
21616 PATH_SEPARATOR=:
21617 fi
21618 rm -f conf$$.sh
21619fi
21620
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021621# Support unset when possible.
21622if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21623 as_unset=unset
21624else
21625 as_unset=false
21626fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021627
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021628
21629# IFS
21630# We need space, tab and new line, in precisely that order. Quoting is
21631# there to prevent editors from complaining about space-tab.
21632# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21633# splitting by setting IFS to empty value.)
21634as_nl='
21635'
21636IFS=" "" $as_nl"
21637
21638# Find who we are. Look in the path if we contain no directory separator.
21639case $0 in
21640 *[\\/]* ) as_myself=$0 ;;
21641 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021642for as_dir in $PATH
21643do
21644 IFS=$as_save_IFS
21645 test -z "$as_dir" && as_dir=.
21646 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21647done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021648IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021649
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021650 ;;
21651esac
21652# We did not find ourselves, most probably we were run as `sh COMMAND'
21653# in which case we are not to be found in the path.
21654if test "x$as_myself" = x; then
21655 as_myself=$0
21656fi
21657if test ! -f "$as_myself"; then
21658 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21659 { (exit 1); exit 1; }
21660fi
21661
21662# Work around bugs in pre-3.0 UWIN ksh.
21663for as_var in ENV MAIL MAILPATH
21664do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21665done
21666PS1='$ '
21667PS2='> '
21668PS4='+ '
21669
21670# NLS nuisances.
21671for as_var in \
21672 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21673 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21674 LC_TELEPHONE LC_TIME
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021675do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021676 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21677 eval $as_var=C; export $as_var
21678 else
21679 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21680 fi
21681done
21682
21683# Required to use basename.
21684if expr a : '\(a\)' >/dev/null 2>&1 &&
21685 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21686 as_expr=expr
21687else
21688 as_expr=false
21689fi
21690
21691if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21692 as_basename=basename
21693else
21694 as_basename=false
21695fi
21696
21697
21698# Name of the executable.
21699as_me=`$as_basename -- "$0" ||
21700$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21701 X"$0" : 'X\(//\)$' \| \
21702 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21703echo X/"$0" |
21704 sed '/^.*\/\([^/][^/]*\)\/*$/{
21705 s//\1/
21706 q
21707 }
21708 /^X\/\(\/\/\)$/{
21709 s//\1/
21710 q
21711 }
21712 /^X\/\(\/\).*/{
21713 s//\1/
21714 q
21715 }
21716 s/.*/./; q'`
21717
21718# CDPATH.
21719$as_unset CDPATH
21720
21721
21722
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021723 as_lineno_1=$LINENO
21724 as_lineno_2=$LINENO
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021725 test "x$as_lineno_1" != "x$as_lineno_2" &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021726 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021727
21728 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21729 # uniformly replaced by the line number. The first 'sed' inserts a
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021730 # line-number line after each line using $LINENO; the second 'sed'
21731 # does the real work. The second script uses 'N' to pair each
21732 # line-number line with the line containing $LINENO, and appends
21733 # trailing '-' during substitution so that $LINENO is not a special
21734 # case at line end.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021735 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021736 # scripts with optimization help from Paolo Bonzini. Blame Lee
21737 # E. McMahon (1931-1989) for sed's syntax. :-)
21738 sed -n '
21739 p
21740 /[$]LINENO/=
21741 ' <$as_myself |
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021742 sed '
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021743 s/[$]LINENO.*/&-/
21744 t lineno
21745 b
21746 :lineno
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021747 N
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021748 :loop
21749 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021750 t loop
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021751 s/-\n.*//
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021752 ' >$as_me.lineno &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021753 chmod +x "$as_me.lineno" ||
21754 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021755 { (exit 1); exit 1; }; }
21756
21757 # Don't try to exec as it changes $[0], causing all sort of problems
21758 # (the dirname of $[0] is not the place where we might find the
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021759 # original and so on. Autoconf is especially sensitive to this).
21760 . "./$as_me.lineno"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021761 # Exit status is that of the last command.
21762 exit
21763}
21764
21765
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021766if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21767 as_dirname=dirname
21768else
21769 as_dirname=false
21770fi
21771
21772ECHO_C= ECHO_N= ECHO_T=
21773case `echo -n x` in
21774-n*)
21775 case `echo 'x\c'` in
21776 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21777 *) ECHO_C='\c';;
21778 esac;;
21779*)
21780 ECHO_N='-n';;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021781esac
21782
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021783if expr a : '\(a\)' >/dev/null 2>&1 &&
21784 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021785 as_expr=expr
21786else
21787 as_expr=false
21788fi
21789
21790rm -f conf$$ conf$$.exe conf$$.file
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021791if test -d conf$$.dir; then
21792 rm -f conf$$.dir/conf$$.file
21793else
21794 rm -f conf$$.dir
21795 mkdir conf$$.dir
21796fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021797echo >conf$$.file
21798if ln -s conf$$.file conf$$ 2>/dev/null; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021799 as_ln_s='ln -s'
21800 # ... but there are two gotchas:
21801 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21802 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21803 # In both cases, we have to default to `cp -p'.
21804 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021805 as_ln_s='cp -p'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021806elif ln conf$$.file conf$$ 2>/dev/null; then
21807 as_ln_s=ln
21808else
21809 as_ln_s='cp -p'
21810fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021811rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21812rmdir conf$$.dir 2>/dev/null
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021813
21814if mkdir -p . 2>/dev/null; then
21815 as_mkdir_p=:
21816else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021817 test -d ./-p && rmdir ./-p
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021818 as_mkdir_p=false
21819fi
21820
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021821# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21822# systems may use methods other than mode bits to determine executability.
21823cat >conf$$.file <<_ASEOF
21824#! /bin/sh
21825exit 0
21826_ASEOF
21827chmod +x conf$$.file
21828if test -x conf$$.file >/dev/null 2>&1; then
21829 as_executable_p="test -x"
21830else
21831 as_executable_p=:
21832fi
21833rm -f conf$$.file
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021834
21835# Sed expression to map a string onto a valid CPP name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021836as_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 -060021837
21838# Sed expression to map a string onto a valid variable name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021839as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021840
21841
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021842exec 6>&1
21843
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021844# Save the log message, to keep $[0] and so on meaningful, and to
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021845# report actual input values of CONFIG_FILES etc. instead of their
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021846# values after options handling.
21847ac_log="
21848This file was extended by libpng $as_me 1.4.0beta15, which was
21849generated by GNU Autoconf 2.60. Invocation command line was
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021850
21851 CONFIG_FILES = $CONFIG_FILES
21852 CONFIG_HEADERS = $CONFIG_HEADERS
21853 CONFIG_LINKS = $CONFIG_LINKS
21854 CONFIG_COMMANDS = $CONFIG_COMMANDS
21855 $ $0 $@
21856
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021857on `(hostname || uname -n) 2>/dev/null | sed 1q`
21858"
21859
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021860_ACEOF
21861
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021862cat >>$CONFIG_STATUS <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021863# Files that config.status was made for.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021864config_files="$ac_config_files"
21865config_headers="$ac_config_headers"
21866config_commands="$ac_config_commands"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021867
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021868_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021869
21870cat >>$CONFIG_STATUS <<\_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021871ac_cs_usage="\
21872\`$as_me' instantiates files from templates according to the
21873current configuration.
21874
21875Usage: $0 [OPTIONS] [FILE]...
21876
21877 -h, --help print this help, then exit
21878 -V, --version print version number, then exit
21879 -q, --quiet do not print progress messages
21880 -d, --debug don't remove temporary files
21881 --recheck update $as_me by reconfiguring in the same conditions
21882 --file=FILE[:TEMPLATE]
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021883 instantiate the configuration file FILE
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021884 --header=FILE[:TEMPLATE]
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021885 instantiate the configuration header FILE
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021886
21887Configuration files:
21888$config_files
21889
21890Configuration headers:
21891$config_headers
21892
21893Configuration commands:
21894$config_commands
21895
21896Report bugs to <bug-autoconf@gnu.org>."
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021897
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021898_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021899cat >>$CONFIG_STATUS <<_ACEOF
21900ac_cs_version="\\
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021901libpng config.status 1.4.0beta15
21902configured by $0, generated by GNU Autoconf 2.60,
21903 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021904
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021905Copyright (C) 2006 Free Software Foundation, Inc.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021906This config.status script is free software; the Free Software Foundation
21907gives unlimited permission to copy, distribute and modify it."
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021908
21909ac_pwd='$ac_pwd'
21910srcdir='$srcdir'
21911INSTALL='$INSTALL'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021912_ACEOF
21913
21914cat >>$CONFIG_STATUS <<\_ACEOF
21915# If no file are specified by the user, then we need to provide default
21916# value. By we need to know if files were specified by the user.
21917ac_need_defaults=:
21918while test $# != 0
21919do
21920 case $1 in
21921 --*=*)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021922 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21923 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021924 ac_shift=:
21925 ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021926 *)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021927 ac_option=$1
21928 ac_optarg=$2
21929 ac_shift=shift
21930 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021931 esac
21932
21933 case $ac_option in
21934 # Handling of the options.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021935 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21936 ac_cs_recheck=: ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021937 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21938 echo "$ac_cs_version"; exit ;;
21939 --debug | --debu | --deb | --de | --d | -d )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021940 debug=: ;;
21941 --file | --fil | --fi | --f )
21942 $ac_shift
21943 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21944 ac_need_defaults=false;;
21945 --header | --heade | --head | --hea )
21946 $ac_shift
21947 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21948 ac_need_defaults=false;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021949 --he | --h)
21950 # Conflict between --help and --header
21951 { echo "$as_me: error: ambiguous option: $1
21952Try \`$0 --help' for more information." >&2
21953 { (exit 1); exit 1; }; };;
21954 --help | --hel | -h )
21955 echo "$ac_cs_usage"; exit ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21957 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21958 ac_cs_silent=: ;;
21959
21960 # This is an error.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021961 -*) { echo "$as_me: error: unrecognized option: $1
21962Try \`$0 --help' for more information." >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021963 { (exit 1); exit 1; }; } ;;
21964
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021965 *) ac_config_targets="$ac_config_targets $1"
21966 ac_need_defaults=false ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021967
21968 esac
21969 shift
21970done
21971
21972ac_configure_extra_args=
21973
21974if $ac_cs_silent; then
21975 exec 6>/dev/null
21976 ac_configure_extra_args="$ac_configure_extra_args --silent"
21977fi
21978
21979_ACEOF
21980cat >>$CONFIG_STATUS <<_ACEOF
21981if \$ac_cs_recheck; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021982 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21983 CONFIG_SHELL=$SHELL
21984 export CONFIG_SHELL
21985 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021986fi
21987
21988_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021989cat >>$CONFIG_STATUS <<\_ACEOF
21990exec 5>>config.log
21991{
21992 echo
21993 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21994## Running $as_me. ##
21995_ASBOX
21996 echo "$ac_log"
21997} >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021998
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060021999_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022000cat >>$CONFIG_STATUS <<_ACEOF
22001#
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022002# INIT-COMMANDS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022003#
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022004AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22005
22006_ACEOF
22007
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022008cat >>$CONFIG_STATUS <<\_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022009
22010# Handling of arguments.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022011for ac_config_target in $ac_config_targets
22012do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022013 case $ac_config_target in
22014 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22015 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22016 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22017 "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:scripts/libpng.pc.in" ;;
22018 "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:scripts/libpng-config.in" ;;
22019
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022020 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22021echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22022 { (exit 1); exit 1; }; };;
22023 esac
22024done
22025
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022026
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022027# If the user did not use the arguments to specify the items to instantiate,
22028# then the envvar interface is used. Set only those that are not.
22029# We use the long form for the default assignment because of an extremely
22030# bizarre bug on SunOS 4.1.3.
22031if $ac_need_defaults; then
22032 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22033 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22034 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22035fi
22036
22037# Have a temporary directory for convenience. Make it in the build tree
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022038# simply because there is no reason against having it here, and in addition,
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022039# creating and moving files from /tmp can sometimes cause problems.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022040# Hook for its removal unless debugging.
22041# Note that there is a small window in which the directory will not be cleaned:
22042# after its creation but before its name has been assigned to `$tmp'.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022043$debug ||
22044{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022045 tmp=
22046 trap 'exit_status=$?
22047 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22048' 0
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022049 trap '{ (exit 1); exit 1; }' 1 2 13 15
22050}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022051# Create a (secure) tmp directory for tmp files.
22052
22053{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022054 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022055 test -n "$tmp" && test -d "$tmp"
22056} ||
22057{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022058 tmp=./conf$$-$RANDOM
22059 (umask 077 && mkdir "$tmp")
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022060} ||
22061{
22062 echo "$me: cannot create a temporary directory in ." >&2
22063 { (exit 1); exit 1; }
22064}
22065
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022066#
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022067# Set up the sed scripts for CONFIG_FILES section.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022068#
22069
22070# No need to generate the scripts if there are no CONFIG_FILES.
22071# This happens for instance when ./config.status config.h
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022072if test -n "$CONFIG_FILES"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022073
22074_ACEOF
22075
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022076
22077
22078ac_delim='%!_!# '
22079for ac_last_try in false false false false false :; do
22080 cat >conf$$subs.sed <<_ACEOF
22081SHELL!$SHELL$ac_delim
22082PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22083PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22084PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22085PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22086PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22087PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22088exec_prefix!$exec_prefix$ac_delim
22089prefix!$prefix$ac_delim
22090program_transform_name!$program_transform_name$ac_delim
22091bindir!$bindir$ac_delim
22092sbindir!$sbindir$ac_delim
22093libexecdir!$libexecdir$ac_delim
22094datarootdir!$datarootdir$ac_delim
22095datadir!$datadir$ac_delim
22096sysconfdir!$sysconfdir$ac_delim
22097sharedstatedir!$sharedstatedir$ac_delim
22098localstatedir!$localstatedir$ac_delim
22099includedir!$includedir$ac_delim
22100oldincludedir!$oldincludedir$ac_delim
22101docdir!$docdir$ac_delim
22102infodir!$infodir$ac_delim
22103htmldir!$htmldir$ac_delim
22104dvidir!$dvidir$ac_delim
22105pdfdir!$pdfdir$ac_delim
22106psdir!$psdir$ac_delim
22107libdir!$libdir$ac_delim
22108localedir!$localedir$ac_delim
22109mandir!$mandir$ac_delim
22110DEFS!$DEFS$ac_delim
22111ECHO_C!$ECHO_C$ac_delim
22112ECHO_N!$ECHO_N$ac_delim
22113ECHO_T!$ECHO_T$ac_delim
22114LIBS!$LIBS$ac_delim
22115build_alias!$build_alias$ac_delim
22116host_alias!$host_alias$ac_delim
22117target_alias!$target_alias$ac_delim
22118INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22119INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22120INSTALL_DATA!$INSTALL_DATA$ac_delim
22121CYGPATH_W!$CYGPATH_W$ac_delim
22122PACKAGE!$PACKAGE$ac_delim
22123VERSION!$VERSION$ac_delim
22124ACLOCAL!$ACLOCAL$ac_delim
22125AUTOCONF!$AUTOCONF$ac_delim
22126AUTOMAKE!$AUTOMAKE$ac_delim
22127AUTOHEADER!$AUTOHEADER$ac_delim
22128MAKEINFO!$MAKEINFO$ac_delim
22129install_sh!$install_sh$ac_delim
22130STRIP!$STRIP$ac_delim
22131INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22132mkdir_p!$mkdir_p$ac_delim
22133AWK!$AWK$ac_delim
22134SET_MAKE!$SET_MAKE$ac_delim
22135am__leading_dot!$am__leading_dot$ac_delim
22136AMTAR!$AMTAR$ac_delim
22137am__tar!$am__tar$ac_delim
22138am__untar!$am__untar$ac_delim
22139MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
22140MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
22141MAINT!$MAINT$ac_delim
22142CC!$CC$ac_delim
22143CFLAGS!$CFLAGS$ac_delim
22144LDFLAGS!$LDFLAGS$ac_delim
22145CPPFLAGS!$CPPFLAGS$ac_delim
22146ac_ct_CC!$ac_ct_CC$ac_delim
22147EXEEXT!$EXEEXT$ac_delim
22148OBJEXT!$OBJEXT$ac_delim
22149DEPDIR!$DEPDIR$ac_delim
22150am__include!$am__include$ac_delim
22151am__quote!$am__quote$ac_delim
22152AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22153AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22154AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22155CCDEPMODE!$CCDEPMODE$ac_delim
22156am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22157am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22158build!$build$ac_delim
22159build_cpu!$build_cpu$ac_delim
22160build_vendor!$build_vendor$ac_delim
22161build_os!$build_os$ac_delim
22162host!$host$ac_delim
22163host_cpu!$host_cpu$ac_delim
22164host_vendor!$host_vendor$ac_delim
22165host_os!$host_os$ac_delim
22166GREP!$GREP$ac_delim
22167EGREP!$EGREP$ac_delim
22168CPP!$CPP$ac_delim
22169SED!$SED$ac_delim
22170LN_S!$LN_S$ac_delim
22171ECHO!$ECHO$ac_delim
22172AR!$AR$ac_delim
22173RANLIB!$RANLIB$ac_delim
22174CXX!$CXX$ac_delim
22175CXXFLAGS!$CXXFLAGS$ac_delim
22176ac_ct_CXX!$ac_ct_CXX$ac_delim
22177CXXDEPMODE!$CXXDEPMODE$ac_delim
22178_ACEOF
22179
22180 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22181 break
22182 elif $ac_last_try; then
22183 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22184echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22185 { (exit 1); exit 1; }; }
22186 else
22187 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022188 fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022189done
22190
22191ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22192if test -n "$ac_eof"; then
22193 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22194 ac_eof=`expr $ac_eof + 1`
22195fi
22196
22197cat >>$CONFIG_STATUS <<_ACEOF
22198cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22199/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22200_ACEOF
22201sed '
22202s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22203s/^/s,@/; s/!/@,|#_!!_#|/
22204:n
22205t n
22206s/'"$ac_delim"'$/,g/; t
22207s/$/\\/; p
22208N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22209' >>$CONFIG_STATUS <conf$$subs.sed
22210rm -f conf$$subs.sed
22211cat >>$CONFIG_STATUS <<_ACEOF
22212CEOF$ac_eof
22213_ACEOF
22214
22215
22216ac_delim='%!_!# '
22217for ac_last_try in false false false false false :; do
22218 cat >conf$$subs.sed <<_ACEOF
22219am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22220am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22221CXXCPP!$CXXCPP$ac_delim
22222F77!$F77$ac_delim
22223FFLAGS!$FFLAGS$ac_delim
22224ac_ct_F77!$ac_ct_F77$ac_delim
22225LIBTOOL!$LIBTOOL$ac_delim
22226POW_LIB!$POW_LIB$ac_delim
22227LIBOBJS!$LIBOBJS$ac_delim
22228LIBPNG_NO_MMX!$LIBPNG_NO_MMX$ac_delim
22229LIBPNG_DEFINES!$LIBPNG_DEFINES$ac_delim
22230HAVE_LD_VERSION_SCRIPT_TRUE!$HAVE_LD_VERSION_SCRIPT_TRUE$ac_delim
22231HAVE_LD_VERSION_SCRIPT_FALSE!$HAVE_LD_VERSION_SCRIPT_FALSE$ac_delim
22232PNGLIB_VERSION!$PNGLIB_VERSION$ac_delim
22233PNGLIB_MAJOR!$PNGLIB_MAJOR$ac_delim
22234PNGLIB_MINOR!$PNGLIB_MINOR$ac_delim
22235pkgconfigdir!$pkgconfigdir$ac_delim
22236binconfigs!$binconfigs$ac_delim
22237compatlib!$compatlib$ac_delim
22238LTLIBOBJS!$LTLIBOBJS$ac_delim
22239_ACEOF
22240
22241 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then
22242 break
22243 elif $ac_last_try; then
22244 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22245echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22246 { (exit 1); exit 1; }; }
22247 else
22248 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22249 fi
22250done
22251
22252ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22253if test -n "$ac_eof"; then
22254 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22255 ac_eof=`expr $ac_eof + 1`
22256fi
22257
22258cat >>$CONFIG_STATUS <<_ACEOF
22259cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22260/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22261_ACEOF
22262sed '
22263s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22264s/^/s,@/; s/!/@,|#_!!_#|/
22265:n
22266t n
22267s/'"$ac_delim"'$/,g/; t
22268s/$/\\/; p
22269N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22270' >>$CONFIG_STATUS <conf$$subs.sed
22271rm -f conf$$subs.sed
22272cat >>$CONFIG_STATUS <<_ACEOF
22273:end
22274s/|#_!!_#|//g
22275CEOF$ac_eof
22276_ACEOF
22277
22278
22279# VPATH may cause trouble with some makes, so we remove $(srcdir),
22280# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22281# trailing colons and then remove the whole line if VPATH becomes empty
22282# (actually we leave an empty line to preserve line numbers).
22283if test "x$srcdir" = x.; then
22284 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22285s/:*\$(srcdir):*/:/
22286s/:*\${srcdir}:*/:/
22287s/:*@srcdir@:*/:/
22288s/^\([^=]*=[ ]*\):*/\1/
22289s/:*$//
22290s/^[^=]*=[ ]*$//
22291}'
22292fi
22293
22294cat >>$CONFIG_STATUS <<\_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022295fi # test -n "$CONFIG_FILES"
22296
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022297
22298for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22299do
22300 case $ac_tag in
22301 :[FHLC]) ac_mode=$ac_tag; continue;;
22302 esac
22303 case $ac_mode$ac_tag in
22304 :[FHL]*:*);;
22305 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22306echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22307 { (exit 1); exit 1; }; };;
22308 :[FH]-) ac_tag=-:-;;
22309 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22310 esac
22311 ac_save_IFS=$IFS
22312 IFS=:
22313 set x $ac_tag
22314 IFS=$ac_save_IFS
22315 shift
22316 ac_file=$1
22317 shift
22318
22319 case $ac_mode in
22320 :L) ac_source=$1;;
22321 :[FH])
22322 ac_file_inputs=
22323 for ac_f
22324 do
22325 case $ac_f in
22326 -) ac_f="$tmp/stdin";;
22327 *) # Look for the file first in the build tree, then in the source tree
22328 # (if the path is not absolute). The absolute path cannot be DOS-style,
22329 # because $ac_f cannot contain `:'.
22330 test -f "$ac_f" ||
22331 case $ac_f in
22332 [\\/$]*) false;;
22333 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22334 esac ||
22335 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22336echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22337 { (exit 1); exit 1; }; };;
22338 esac
22339 ac_file_inputs="$ac_file_inputs $ac_f"
22340 done
22341
22342 # Let's still pretend it is `configure' which instantiates (i.e., don't
22343 # use $as_me), people would be surprised to read:
22344 # /* config.h. Generated by config.status. */
22345 configure_input="Generated from "`IFS=:
22346 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22347 if test x"$ac_file" != x-; then
22348 configure_input="$ac_file. $configure_input"
22349 { echo "$as_me:$LINENO: creating $ac_file" >&5
22350echo "$as_me: creating $ac_file" >&6;}
22351 fi
22352
22353 case $ac_tag in
22354 *:-:* | *:-) cat >"$tmp/stdin";;
22355 esac
22356 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022357 esac
22358
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022359 ac_dir=`$as_dirname -- "$ac_file" ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022360$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060022361 X"$ac_file" : 'X\(//\)[^/]' \| \
22362 X"$ac_file" : 'X\(//\)$' \| \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022363 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022364echo X"$ac_file" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22366 s//\1/
22367 q
22368 }
22369 /^X\(\/\/\)[^/].*/{
22370 s//\1/
22371 q
22372 }
22373 /^X\(\/\/\)$/{
22374 s//\1/
22375 q
22376 }
22377 /^X\(\/\).*/{
22378 s//\1/
22379 q
22380 }
22381 s/.*/./; q'`
22382 { as_dir="$ac_dir"
22383 case $as_dir in #(
22384 -*) as_dir=./$as_dir;;
22385 esac
22386 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022387 as_dirs=
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022388 while :; do
22389 case $as_dir in #(
22390 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22391 *) as_qdir=$as_dir;;
22392 esac
22393 as_dirs="'$as_qdir' $as_dirs"
22394 as_dir=`$as_dirname -- "$as_dir" ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022395$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060022396 X"$as_dir" : 'X\(//\)[^/]' \| \
22397 X"$as_dir" : 'X\(//\)$' \| \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022398 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022399echo X"$as_dir" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22401 s//\1/
22402 q
22403 }
22404 /^X\(\/\/\)[^/].*/{
22405 s//\1/
22406 q
22407 }
22408 /^X\(\/\/\)$/{
22409 s//\1/
22410 q
22411 }
22412 /^X\(\/\).*/{
22413 s//\1/
22414 q
22415 }
22416 s/.*/./; q'`
22417 test -d "$as_dir" && break
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022418 done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022419 test -z "$as_dirs" || eval "mkdir $as_dirs"
22420 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22421echo "$as_me: error: cannot create directory $as_dir" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022422 { (exit 1); exit 1; }; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022423 ac_builddir=.
22424
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022425case "$ac_dir" in
22426.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22427*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022428 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022429 # A ".." for each directory in $ac_dir_suffix.
22430 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22431 case $ac_top_builddir_sub in
22432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22434 esac ;;
22435esac
22436ac_abs_top_builddir=$ac_pwd
22437ac_abs_builddir=$ac_pwd$ac_dir_suffix
22438# for backward compatibility:
22439ac_top_builddir=$ac_top_build_prefix
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022440
22441case $srcdir in
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022442 .) # We are building in place.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022443 ac_srcdir=.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022444 ac_top_srcdir=$ac_top_builddir_sub
22445 ac_abs_top_srcdir=$ac_pwd ;;
22446 [\\/]* | ?:[\\/]* ) # Absolute name.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022447 ac_srcdir=$srcdir$ac_dir_suffix;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022448 ac_top_srcdir=$srcdir
22449 ac_abs_top_srcdir=$srcdir ;;
22450 *) # Relative name.
22451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22452 ac_top_srcdir=$ac_top_build_prefix$srcdir
22453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022454esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022455ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060022456
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022457
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022458 case $ac_mode in
22459 :F)
22460 #
22461 # CONFIG_FILE
22462 #
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022463
22464 case $INSTALL in
22465 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022466 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022467 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022468_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022469
22470cat >>$CONFIG_STATUS <<\_ACEOF
22471# If the template does not know about datarootdir, expand it.
22472# FIXME: This hack should be removed a few years after 2.60.
22473ac_datarootdir_hack=; ac_datarootdir_seen=
22474
22475case `sed -n '/datarootdir/ {
22476 p
22477 q
22478}
22479/@datadir@/p
22480/@docdir@/p
22481/@infodir@/p
22482/@localedir@/p
22483/@mandir@/p
22484' $ac_file_inputs` in
22485*datarootdir*) ac_datarootdir_seen=yes;;
22486*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22487 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22488echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22489_ACEOF
22490cat >>$CONFIG_STATUS <<_ACEOF
22491 ac_datarootdir_hack='
22492 s&@datadir@&$datadir&g
22493 s&@docdir@&$docdir&g
22494 s&@infodir@&$infodir&g
22495 s&@localedir@&$localedir&g
22496 s&@mandir@&$mandir&g
22497 s&\\\${datarootdir}&$datarootdir&g' ;;
22498esac
22499_ACEOF
22500
22501# Neutralize VPATH when `$srcdir' = `.'.
22502# Shell code in configure.ac might set extrasub.
22503# FIXME: do we really want to maintain this feature?
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022504cat >>$CONFIG_STATUS <<_ACEOF
22505 sed "$ac_vpsub
22506$extrasub
22507_ACEOF
22508cat >>$CONFIG_STATUS <<\_ACEOF
22509:t
22510/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022511s&@configure_input@&$configure_input&;t t
22512s&@top_builddir@&$ac_top_builddir_sub&;t t
22513s&@srcdir@&$ac_srcdir&;t t
22514s&@abs_srcdir@&$ac_abs_srcdir&;t t
22515s&@top_srcdir@&$ac_top_srcdir&;t t
22516s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22517s&@builddir@&$ac_builddir&;t t
22518s&@abs_builddir@&$ac_abs_builddir&;t t
22519s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22520s&@INSTALL@&$ac_INSTALL&;t t
22521$ac_datarootdir_hack
22522" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022523
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022524test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22525 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22526 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22527 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22528which seems to be undefined. Please make sure it is defined." >&5
22529echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22530which seems to be undefined. Please make sure it is defined." >&2;}
22531
22532 rm -f "$tmp/stdin"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060022533 case $ac_file in
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022534 -) cat "$tmp/out"; rm -f "$tmp/out";;
22535 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060022536 esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022537 ;;
22538 :H)
22539 #
22540 # CONFIG_HEADER
22541 #
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022542_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022543
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022544# Transform confdefs.h into a sed script `conftest.defines', that
22545# substitutes the proper values into config.h.in to produce config.h.
22546rm -f conftest.defines conftest.tail
22547# First, append a space to every undef/define line, to ease matching.
22548echo 's/$/ /' >conftest.defines
22549# Then, protect against being on the right side of a sed subst, or in
22550# an unquoted here document, in config.status. If some macros were
22551# called several times there might be several #defines for the same
22552# symbol, which is useless. But do not sort them, since the last
22553# AC_DEFINE must be honored.
22554ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22555# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22556# NAME is the cpp macro being defined, VALUE is the value it is being given.
22557# PARAMS is the parameter list in the macro definition--in most cases, it's
22558# just an empty string.
22559ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22560ac_dB='\\)[ (].*,\\1define\\2'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022561ac_dC=' '
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022562ac_dD=' ,'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022563
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022564uniq confdefs.h |
22565 sed -n '
22566 t rset
22567 :rset
22568 s/^[ ]*#[ ]*define[ ][ ]*//
22569 t ok
22570 d
22571 :ok
22572 s/[\\&,]/\\&/g
22573 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22574 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22575 ' >>conftest.defines
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022576
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022577# Remove the space that was appended to ease matching.
22578# Then replace #undef with comments. This is necessary, for
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022579# example, in the case of _POSIX_SOURCE, which is predefined and required
22580# on some systems where configure will not decide to define it.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022581# (The regexp can be short, since the line contains either #define or #undef.)
22582echo 's/ $//
22583s,^[ #]*u.*,/* & */,' >>conftest.defines
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022584
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022585# Break up conftest.defines:
22586ac_max_sed_lines=50
22587
22588# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22589# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22590# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22591# et cetera.
22592ac_in='$ac_file_inputs'
22593ac_out='"$tmp/out1"'
22594ac_nxt='"$tmp/out2"'
22595
22596while :
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022597do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022598 # Write a here document:
22599 cat >>$CONFIG_STATUS <<_ACEOF
22600 # First, check the format of the line:
22601 cat >"\$tmp/defines.sed" <<\\CEOF
22602/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22603/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22604b
22605:def
22606_ACEOF
22607 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022608 echo 'CEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022609 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22610 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22611 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22612 grep . conftest.tail >/dev/null || break
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022613 rm -f conftest.defines
22614 mv conftest.tail conftest.defines
22615done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022616rm -f conftest.defines conftest.tail
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022617
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022618echo "ac_result=$ac_in" >>$CONFIG_STATUS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022619cat >>$CONFIG_STATUS <<\_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022620 if test x"$ac_file" != x-; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022621 echo "/* $configure_input */" >"$tmp/config.h"
22622 cat "$ac_result" >>"$tmp/config.h"
22623 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022624 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22625echo "$as_me: $ac_file is unchanged" >&6;}
22626 else
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022627 rm -f $ac_file
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022628 mv "$tmp/config.h" $ac_file
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022629 fi
22630 else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022631 echo "/* $configure_input */"
22632 cat "$ac_result"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022633 fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022634 rm -f "$tmp/out12"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060022635# Compute $ac_file's index in $config_headers.
22636_am_stamp_count=1
22637for _am_header in $config_headers :; do
22638 case $_am_header in
22639 $ac_file | $ac_file:* )
22640 break ;;
22641 * )
22642 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22643 esac
22644done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022645echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022646$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060022647 X$ac_file : 'X\(//\)[^/]' \| \
22648 X$ac_file : 'X\(//\)$' \| \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022649 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022650echo X$ac_file |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22652 s//\1/
22653 q
22654 }
22655 /^X\(\/\/\)[^/].*/{
22656 s//\1/
22657 q
22658 }
22659 /^X\(\/\/\)$/{
22660 s//\1/
22661 q
22662 }
22663 /^X\(\/\).*/{
22664 s//\1/
22665 q
22666 }
22667 s/.*/./; q'`/stamp-h$_am_stamp_count
22668 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022669
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022670 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22671echo "$as_me: executing $ac_file commands" >&6;}
22672 ;;
22673 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022674
22675
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022676 case $ac_file$ac_mode in
22677 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022678 # Strip MF so we end up with the name of the file.
22679 mf=`echo "$mf" | sed -e 's/:.*$//'`
22680 # Check whether this is an Automake generated Makefile or not.
22681 # We used to match only the files named `Makefile.in', but
22682 # some people rename them; so instead we look at the file content.
22683 # Grep'ing the first line is not enough: some people post-process
22684 # each Makefile.in and add a new line on top of each file to say so.
22685 # So let's grep whole file.
22686 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022687 dirpart=`$as_dirname -- "$mf" ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022688$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060022689 X"$mf" : 'X\(//\)[^/]' \| \
22690 X"$mf" : 'X\(//\)$' \| \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022691 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022692echo X"$mf" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22694 s//\1/
22695 q
22696 }
22697 /^X\(\/\/\)[^/].*/{
22698 s//\1/
22699 q
22700 }
22701 /^X\(\/\/\)$/{
22702 s//\1/
22703 q
22704 }
22705 /^X\(\/\).*/{
22706 s//\1/
22707 q
22708 }
22709 s/.*/./; q'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022710 else
22711 continue
22712 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060022713 # Extract the definition of DEPDIR, am__include, and am__quote
22714 # from the Makefile without running `make'.
22715 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022716 test -z "$DEPDIR" && continue
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060022717 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22718 test -z "am__include" && continue
22719 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022720 # When using ansi2knr, U may be empty or an underscore; expand it
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060022721 U=`sed -n 's/^U = //p' < "$mf"`
22722 # Find all dependency output files, they are included files with
22723 # $(DEPDIR) in their names. We invoke sed twice because it is the
22724 # simplest approach to changing $(DEPDIR) to its actual value in the
22725 # expansion.
22726 for file in `sed -n "
22727 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022728 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22729 # Make sure the directory exists.
22730 test -f "$dirpart/$file" && continue
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022731 fdir=`$as_dirname -- "$file" ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022732$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060022733 X"$file" : 'X\(//\)[^/]' \| \
22734 X"$file" : 'X\(//\)$' \| \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022735 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022736echo X"$file" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22738 s//\1/
22739 q
22740 }
22741 /^X\(\/\/\)[^/].*/{
22742 s//\1/
22743 q
22744 }
22745 /^X\(\/\/\)$/{
22746 s//\1/
22747 q
22748 }
22749 /^X\(\/\).*/{
22750 s//\1/
22751 q
22752 }
22753 s/.*/./; q'`
22754 { as_dir=$dirpart/$fdir
22755 case $as_dir in #(
22756 -*) as_dir=./$as_dir;;
22757 esac
22758 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022759 as_dirs=
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022760 while :; do
22761 case $as_dir in #(
22762 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22763 *) as_qdir=$as_dir;;
22764 esac
22765 as_dirs="'$as_qdir' $as_dirs"
22766 as_dir=`$as_dirname -- "$as_dir" ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022767$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060022768 X"$as_dir" : 'X\(//\)[^/]' \| \
22769 X"$as_dir" : 'X\(//\)$' \| \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022770 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022771echo X"$as_dir" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22773 s//\1/
22774 q
22775 }
22776 /^X\(\/\/\)[^/].*/{
22777 s//\1/
22778 q
22779 }
22780 /^X\(\/\/\)$/{
22781 s//\1/
22782 q
22783 }
22784 /^X\(\/\).*/{
22785 s//\1/
22786 q
22787 }
22788 s/.*/./; q'`
22789 test -d "$as_dir" && break
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022790 done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022791 test -z "$as_dirs" || eval "mkdir $as_dirs"
22792 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22793echo "$as_me: error: cannot create directory $as_dir" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022794 { (exit 1); exit 1; }; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022795 # echo "creating $dirpart/$file"
22796 echo '# dummy' > "$dirpart/$file"
22797 done
22798done
22799 ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022800 "libpng-config":F) chmod +x libpng-config ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022801
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060022802 esac
22803done # for ac_tag
22804
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060022805
22806{ (exit 0); exit 0; }
22807_ACEOF
22808chmod +x $CONFIG_STATUS
22809ac_clean_files=$ac_clean_files_save
22810
22811
22812# configure is writing to config.log, and then calls config.status.
22813# config.status does its own redirection, appending to config.log.
22814# Unfortunately, on DOS this fails, as config.log is still kept open
22815# by configure, so config.status won't be able to write to it; its
22816# output is simply discarded. So we exec the FD to /dev/null,
22817# effectively closing config.log, so it can be properly (re)opened and
22818# appended to by config.status. When coming back to configure, we
22819# need to make the FD available again.
22820if test "$no_create" != yes; then
22821 ac_cs_success=:
22822 ac_config_status_args=
22823 test "$silent" = yes &&
22824 ac_config_status_args="$ac_config_status_args --quiet"
22825 exec 5>/dev/null
22826 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22827 exec 5>>config.log
22828 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22829 # would make configure fail if this is the last instruction.
22830 $ac_cs_success || { (exit 1); exit 1; }
22831fi
Glenn Randers-Pehrson520a7642000-03-21 05:13:06 -060022832