blob: f51a9c5a9e56c1b1b9b864a7b135f22b22d9d624 [file] [log] [blame]
brynercb91a2f2006-08-25 21:14:45 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
mmentovai8c2a4de2006-09-20 16:20:15 +00003# Generated by GNU Autoconf 2.60 for airbag 0.1.
brynercb91a2f2006-08-25 21:14:45 +00004#
5# Report bugs to <opensource@google.com>.
6#
mmentovai8c2a4de2006-09-20 16:20:15 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00009# 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## --------------------- ##
14
15# 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+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000022 setopt NO_GLOB_SUBST
23else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
brynercb91a2f2006-08-25 21:14:45 +000025fi
mmentovai8c2a4de2006-09-20 16:20:15 +000026BIN_SH=xpg4; export BIN_SH # for Tru64
brynercb91a2f2006-08-25 21:14:45 +000027DUALCASE=1; export DUALCASE # for MKS sh
28
brynercb91a2f2006-08-25 21:14:45 +000029
mmentovai8c2a4de2006-09-20 16:20:15 +000030# PATH needs CR
brynercb91a2f2006-08-25 21:14:45 +000031# 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
mmentovai8c2a4de2006-09-20 16:20:15 +000051# 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
brynercb91a2f2006-08-25 21:14:45 +000057
mmentovai8c2a4de2006-09-20 16:20:15 +000058
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
brynercb91a2f2006-08-25 21:14:45 +000072for 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
mmentovai8c2a4de2006-09-20 16:20:15 +000078IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +000079
mmentovai8c2a4de2006-09-20 16:20:15 +000080 ;;
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
brynercb91a2f2006-08-25 21:14:45 +0000110 fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000111done
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=
brynercb91a2f2006-08-25 21:14:45 +0000219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +0000220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
brynercb91a2f2006-08-25 21:14:45 +0000221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
mmentovai8c2a4de2006-09-20 16:20:15 +0000224 case $as_dir in
brynercb91a2f2006-08-25 21:14:45 +0000225 /*)
mmentovai8c2a4de2006-09-20 16:20:15 +0000226 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(
brynercb91a2f2006-08-25 21:14:45 +0000324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
brynercb91a2f2006-08-25 21:14:45 +0000326 test "x$as_lineno_1" != "x$as_lineno_2" &&
mmentovai8c2a4de2006-09-20 16:20:15 +0000327 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" || {
brynercb91a2f2006-08-25 21:14:45 +0000423
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
mmentovai8c2a4de2006-09-20 16:20:15 +0000426 # 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.
brynercb91a2f2006-08-25 21:14:45 +0000431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mmentovai8c2a4de2006-09-20 16:20:15 +0000432 # 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 |
brynercb91a2f2006-08-25 21:14:45 +0000438 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +0000439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
brynercb91a2f2006-08-25 21:14:45 +0000443 N
mmentovai8c2a4de2006-09-20 16:20:15 +0000444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
brynercb91a2f2006-08-25 21:14:45 +0000446 t loop
mmentovai8c2a4de2006-09-20 16:20:15 +0000447 s/-\n.*//
brynercb91a2f2006-08-25 21:14:45 +0000448 ' >$as_me.lineno &&
mmentovai8c2a4de2006-09-20 16:20:15 +0000449 chmod +x "$as_me.lineno" ||
brynercb91a2f2006-08-25 21:14:45 +0000450 { 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
mmentovai8c2a4de2006-09-20 16:20:15 +0000455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
brynercb91a2f2006-08-25 21:14:45 +0000457 # Exit status is that of the last command.
458 exit
459}
460
461
mmentovai8c2a4de2006-09-20 16:20:15 +0000462if (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';;
brynercb91a2f2006-08-25 21:14:45 +0000477esac
478
mmentovai8c2a4de2006-09-20 16:20:15 +0000479if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
brynercb91a2f2006-08-25 21:14:45 +0000481 as_expr=expr
482else
483 as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +0000487if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492fi
brynercb91a2f2006-08-25 21:14:45 +0000493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +0000495 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 ||
brynercb91a2f2006-08-25 21:14:45 +0000501 as_ln_s='cp -p'
brynercb91a2f2006-08-25 21:14:45 +0000502elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504else
505 as_ln_s='cp -p'
506fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +0000509
510if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
515fi
516
mmentovai8c2a4de2006-09-20 16:20:15 +0000517# 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
brynercb91a2f2006-08-25 21:14:45 +0000530
531# Sed expression to map a string onto a valid CPP name.
532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534# Sed expression to map a string onto a valid variable name.
535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
brynercb91a2f2006-08-25 21:14:45 +0000538
539
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 :
557elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558 # 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
569$*
570EOF
571 exit 0
572fi
573
574# The HP-UX ksh and POSIX shell print the target directory to stdout
575# if CDPATH is set.
mmentovai8c2a4de2006-09-20 16:20:15 +0000576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
brynercb91a2f2006-08-25 21:14:45 +0000577
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, ...
mmentovai8c2a4de2006-09-20 16:20:15 +0000583 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
584 echo_test_string=`eval $cmd` &&
brynercb91a2f2006-08-25 21:14:45 +0000585 (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
603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604 for dir in $PATH /usr/ucb; do
605 IFS="$lt_save_ifs"
606 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
614 IFS="$lt_save_ifs"
615
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
688
689tagnames=${tagnames+${tagnames},}CXX
690
691tagnames=${tagnames+${tagnames},}F77
692
mmentovai8c2a4de2006-09-20 16:20:15 +0000693exec 7<&0 </dev/null 6>&1
694
brynercb91a2f2006-08-25 21:14:45 +0000695# 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
brynercb91a2f2006-08-25 21:14:45 +0000700#
701# Initializations.
702#
703ac_default_prefix=/usr/local
mmentovai8c2a4de2006-09-20 16:20:15 +0000704ac_clean_files=
brynercb91a2f2006-08-25 21:14:45 +0000705ac_config_libobj_dir=.
mmentovai8c2a4de2006-09-20 16:20:15 +0000706LIBOBJS=
brynercb91a2f2006-08-25 21:14:45 +0000707cross_compiling=no
708subdirs=
709MFLAGS=
710MAKEFLAGS=
711SHELL=${CONFIG_SHELL-/bin/sh}
712
brynercb91a2f2006-08-25 21:14:45 +0000713# Identity of this package.
714PACKAGE_NAME='airbag'
715PACKAGE_TARNAME='airbag'
716PACKAGE_VERSION='0.1'
717PACKAGE_STRING='airbag 0.1'
718PACKAGE_BUGREPORT='opensource@google.com'
719
720ac_unique_file="README"
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>
mmentovai8c2a4de2006-09-20 16:20:15 +0000749#endif
750#if HAVE_STDINT_H
751# include <stdint.h>
brynercb91a2f2006-08-25 21:14:45 +0000752#endif
753#if HAVE_UNISTD_H
754# include <unistd.h>
755#endif"
756
mmentovai8c2a4de2006-09-20 16:20:15 +0000757ac_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
815CC
816CFLAGS
817LDFLAGS
818CPPFLAGS
819ac_ct_CC
820EXEEXT
821OBJEXT
822DEPDIR
823am__include
824am__quote
825AMDEP_TRUE
826AMDEP_FALSE
827AMDEPBACKSLASH
828CCDEPMODE
829am__fastdepCC_TRUE
830am__fastdepCC_FALSE
831CPP
832CXX
833CXXFLAGS
834ac_ct_CXX
835CXXDEPMODE
836am__fastdepCXX_TRUE
837am__fastdepCXX_FALSE
838build
839build_cpu
840build_vendor
841build_os
842host
843host_cpu
844host_vendor
845host_os
846GREP
847EGREP
848LN_S
849ECHO
850AR
851RANLIB
852CXXCPP
853F77
854FFLAGS
855ac_ct_F77
856LIBTOOL
857LIBTOOL_DEPS
mmentovai0dbedc92006-09-25 21:16:15 +0000858SELFTEST_TRUE
859SELFTEST_FALSE
mmentovai8c2a4de2006-09-20 16:20:15 +0000860LIBOBJS
861LTLIBOBJS'
brynercb91a2f2006-08-25 21:14:45 +0000862ac_subst_files=''
mmentovai8c2a4de2006-09-20 16:20:15 +0000863 ac_precious_vars='build_alias
864host_alias
865target_alias
866CC
867CFLAGS
868LDFLAGS
869CPPFLAGS
870CPP
871CXX
872CXXFLAGS
873CCC
874CXXCPP
875F77
876FFLAGS'
877
brynercb91a2f2006-08-25 21:14:45 +0000878
879# Initialize some variables set by options.
880ac_init_help=
881ac_init_version=false
882# The variables have the same names as the options, with
883# dashes changed to underlines.
884cache_file=/dev/null
885exec_prefix=NONE
886no_create=
887no_recursion=
888prefix=NONE
889program_prefix=NONE
890program_suffix=NONE
891program_transform_name=s,x,x,
892silent=
893site=
894srcdir=
895verbose=
896x_includes=NONE
897x_libraries=NONE
898
899# Installation directory options.
900# These are left unexpanded so users can "make install exec_prefix=/foo"
901# and all the variables that are supposed to be based on exec_prefix
902# by default will actually change.
903# Use braces instead of parens because sh, perl, etc. also accept them.
mmentovai8c2a4de2006-09-20 16:20:15 +0000904# (The list follows the same order as the GNU Coding Standards.)
brynercb91a2f2006-08-25 21:14:45 +0000905bindir='${exec_prefix}/bin'
906sbindir='${exec_prefix}/sbin'
907libexecdir='${exec_prefix}/libexec'
mmentovai8c2a4de2006-09-20 16:20:15 +0000908datarootdir='${prefix}/share'
909datadir='${datarootdir}'
brynercb91a2f2006-08-25 21:14:45 +0000910sysconfdir='${prefix}/etc'
911sharedstatedir='${prefix}/com'
912localstatedir='${prefix}/var'
brynercb91a2f2006-08-25 21:14:45 +0000913includedir='${prefix}/include'
914oldincludedir='/usr/include'
mmentovai8c2a4de2006-09-20 16:20:15 +0000915docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
916infodir='${datarootdir}/info'
917htmldir='${docdir}'
918dvidir='${docdir}'
919pdfdir='${docdir}'
920psdir='${docdir}'
921libdir='${exec_prefix}/lib'
922localedir='${datarootdir}/locale'
923mandir='${datarootdir}/man'
brynercb91a2f2006-08-25 21:14:45 +0000924
925ac_prev=
mmentovai8c2a4de2006-09-20 16:20:15 +0000926ac_dashdash=
brynercb91a2f2006-08-25 21:14:45 +0000927for ac_option
928do
929 # If the previous option needs an argument, assign it.
930 if test -n "$ac_prev"; then
mmentovai8c2a4de2006-09-20 16:20:15 +0000931 eval $ac_prev=\$ac_option
brynercb91a2f2006-08-25 21:14:45 +0000932 ac_prev=
933 continue
934 fi
935
mmentovai8c2a4de2006-09-20 16:20:15 +0000936 case $ac_option in
937 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938 *) ac_optarg=yes ;;
939 esac
brynercb91a2f2006-08-25 21:14:45 +0000940
941 # Accept the important Cygnus configure options, so we can diagnose typos.
942
mmentovai8c2a4de2006-09-20 16:20:15 +0000943 case $ac_dashdash$ac_option in
944 --)
945 ac_dashdash=yes ;;
brynercb91a2f2006-08-25 21:14:45 +0000946
947 -bindir | --bindir | --bindi | --bind | --bin | --bi)
948 ac_prev=bindir ;;
949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950 bindir=$ac_optarg ;;
951
952 -build | --build | --buil | --bui | --bu)
953 ac_prev=build_alias ;;
954 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955 build_alias=$ac_optarg ;;
956
957 -cache-file | --cache-file | --cache-fil | --cache-fi \
958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959 ac_prev=cache_file ;;
960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962 cache_file=$ac_optarg ;;
963
964 --config-cache | -C)
965 cache_file=config.cache ;;
966
mmentovai8c2a4de2006-09-20 16:20:15 +0000967 -datadir | --datadir | --datadi | --datad)
brynercb91a2f2006-08-25 21:14:45 +0000968 ac_prev=datadir ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000969 -datadir=* | --datadir=* | --datadi=* | --datad=*)
brynercb91a2f2006-08-25 21:14:45 +0000970 datadir=$ac_optarg ;;
971
mmentovai8c2a4de2006-09-20 16:20:15 +0000972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973 | --dataroo | --dataro | --datar)
974 ac_prev=datarootdir ;;
975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977 datarootdir=$ac_optarg ;;
978
brynercb91a2f2006-08-25 21:14:45 +0000979 -disable-* | --disable-*)
980 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
983 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
984 { (exit 1); exit 1; }; }
985 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
mmentovai8c2a4de2006-09-20 16:20:15 +0000986 eval enable_$ac_feature=no ;;
987
988 -docdir | --docdir | --docdi | --doc | --do)
989 ac_prev=docdir ;;
990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991 docdir=$ac_optarg ;;
992
993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 ac_prev=dvidir ;;
995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996 dvidir=$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +0000997
998 -enable-* | --enable-*)
999 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1002 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1003 { (exit 1); exit 1; }; }
1004 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001005 eval enable_$ac_feature=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001006
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1015
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1018 with_gas=yes ;;
1019
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1026
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1031
mmentovai8c2a4de2006-09-20 16:20:15 +00001032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033 ac_prev=htmldir ;;
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035 | --ht=*)
1036 htmldir=$ac_optarg ;;
1037
brynercb91a2f2006-08-25 21:14:45 +00001038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1044
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1046 ac_prev=infodir ;;
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1049
1050 -libdir | --libdir | --libdi | --libd)
1051 ac_prev=libdir ;;
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1054
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1061
mmentovai8c2a4de2006-09-20 16:20:15 +00001062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1066
brynercb91a2f2006-08-25 21:14:45 +00001067 -localstatedir | --localstatedir | --localstatedi | --localstated \
mmentovai8c2a4de2006-09-20 16:20:15 +00001068 | --localstate | --localstat | --localsta | --localst | --locals)
brynercb91a2f2006-08-25 21:14:45 +00001069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mmentovai8c2a4de2006-09-20 16:20:15 +00001071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
brynercb91a2f2006-08-25 21:14:45 +00001072 localstatedir=$ac_optarg ;;
1073
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075 ac_prev=mandir ;;
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1078
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1081 with_fp=no ;;
1082
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1085 no_create=yes ;;
1086
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 no_recursion=yes ;;
1090
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1099
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101 ac_prev=prefix ;;
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1104
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1111
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1118
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1135
mmentovai8c2a4de2006-09-20 16:20:15 +00001136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137 ac_prev=pdfdir ;;
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1140
1141 -psdir | --psdir | --psdi | --psd | --ps)
1142 ac_prev=psdir ;;
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 psdir=$ac_optarg ;;
1145
brynercb91a2f2006-08-25 21:14:45 +00001146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1148 silent=yes ;;
1149
1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151 ac_prev=sbindir ;;
1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153 | --sbi=* | --sb=*)
1154 sbindir=$ac_optarg ;;
1155
1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158 | --sharedst | --shareds | --shared | --share | --shar \
1159 | --sha | --sh)
1160 ac_prev=sharedstatedir ;;
1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164 | --sha=* | --sh=*)
1165 sharedstatedir=$ac_optarg ;;
1166
1167 -site | --site | --sit)
1168 ac_prev=site ;;
1169 -site=* | --site=* | --sit=*)
1170 site=$ac_optarg ;;
1171
1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173 ac_prev=srcdir ;;
1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175 srcdir=$ac_optarg ;;
1176
1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178 | --syscon | --sysco | --sysc | --sys | --sy)
1179 ac_prev=sysconfdir ;;
1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182 sysconfdir=$ac_optarg ;;
1183
1184 -target | --target | --targe | --targ | --tar | --ta | --t)
1185 ac_prev=target_alias ;;
1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187 target_alias=$ac_optarg ;;
1188
1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 verbose=yes ;;
1191
1192 -version | --version | --versio | --versi | --vers | -V)
1193 ac_init_version=: ;;
1194
1195 -with-* | --with-*)
1196 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1199 { echo "$as_me: error: invalid package name: $ac_package" >&2
1200 { (exit 1); exit 1; }; }
1201 ac_package=`echo $ac_package| sed 's/-/_/g'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001202 eval with_$ac_package=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001203
1204 -without-* | --without-*)
1205 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1208 { echo "$as_me: error: invalid package name: $ac_package" >&2
1209 { (exit 1); exit 1; }; }
1210 ac_package=`echo $ac_package | sed 's/-/_/g'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001211 eval with_$ac_package=no ;;
brynercb91a2f2006-08-25 21:14:45 +00001212
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1216
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1223
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1230
1231 -*) { echo "$as_me: error: unrecognized option: $ac_option
1232Try \`$0 --help' for more information." >&2
1233 { (exit 1); exit 1; }; }
1234 ;;
1235
1236 *=*)
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1240 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1241 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00001242 eval $ac_envvar=\$ac_optarg
brynercb91a2f2006-08-25 21:14:45 +00001243 export $ac_envvar ;;
1244
1245 *)
1246 # FIXME: should be removed in autoconf 3.0.
1247 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251 ;;
1252
1253 esac
1254done
1255
1256if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258 { echo "$as_me: error: missing argument to $ac_option" >&2
1259 { (exit 1); exit 1; }; }
1260fi
1261
mmentovai8c2a4de2006-09-20 16:20:15 +00001262# Be sure to have absolute directory names.
1263for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
brynercb91a2f2006-08-25 21:14:45 +00001267do
mmentovai8c2a4de2006-09-20 16:20:15 +00001268 eval ac_val=\$$ac_var
brynercb91a2f2006-08-25 21:14:45 +00001269 case $ac_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
brynercb91a2f2006-08-25 21:14:45 +00001272 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001273 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1274 { (exit 1); exit 1; }; }
brynercb91a2f2006-08-25 21:14:45 +00001275done
1276
1277# There might be people who depend on the old broken behavior: `$host'
1278# used to hold the argument of --host etc.
1279# FIXME: To remove some day.
1280build=$build_alias
1281host=$host_alias
1282target=$target_alias
1283
1284# FIXME: To remove some day.
1285if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1289 If a cross compiler is detected then cross compile mode will be used." >&2
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1292 fi
1293fi
1294
1295ac_tool_prefix=
1296test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298test "$silent" = yes && exec 6>/dev/null
1299
1300
mmentovai8c2a4de2006-09-20 16:20:15 +00001301ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302ac_ls_di=`ls -di .` &&
1303ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 { echo "$as_me: error: Working directory cannot be determined" >&2
1305 { (exit 1); exit 1; }; }
1306test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 { echo "$as_me: error: pwd does not report name of working directory" >&2
1308 { (exit 1); exit 1; }; }
1309
1310
brynercb91a2f2006-08-25 21:14:45 +00001311# Find the source files, if location was not specified.
1312if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00001314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$0" ||
brynercb91a2f2006-08-25 21:14:45 +00001316$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$0" : 'X\(//\)[^/]' \| \
1318 X"$0" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +00001319 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +00001320echo X"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +00001321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\).*/{
1334 s//\1/
1335 q
1336 }
1337 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +00001338 srcdir=$ac_confdir
mmentovai8c2a4de2006-09-20 16:20:15 +00001339 if test ! -r "$srcdir/$ac_unique_file"; then
brynercb91a2f2006-08-25 21:14:45 +00001340 srcdir=..
1341 fi
1342else
1343 ac_srcdir_defaulted=no
1344fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001345if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
brynercb91a2f2006-08-25 21:14:45 +00001348 { (exit 1); exit 1; }; }
brynercb91a2f2006-08-25 21:14:45 +00001349fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001350ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351ac_abs_confdir=`(
1352 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
brynercb91a2f2006-08-25 21:14:45 +00001353 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00001354 pwd)`
1355# When building in place, set srcdir=.
1356if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1358fi
1359# Remove unnecessary trailing slashes from srcdir.
1360# Double slashes in file names in object file debugging info
1361# mess up M-x gdb in Emacs.
1362case $srcdir in
1363*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364esac
1365for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370done
brynercb91a2f2006-08-25 21:14:45 +00001371
1372#
1373# Report the --help message.
1374#
1375if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
1379\`configure' configures airbag 0.1 to adapt to many kinds of systems.
1380
1381Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384VAR=VALUE. See below for descriptions of some of the useful variables.
1385
1386Defaults for the options are specified in brackets.
1387
1388Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398
brynercb91a2f2006-08-25 21:14:45 +00001399Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 [$ac_default_prefix]
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1403 [PREFIX]
1404
1405By default, \`make install' will install all the files in
1406\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408for instance \`--prefix=\$HOME'.
1409
1410For better control, use the options below.
1411
1412Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
brynercb91a2f2006-08-25 21:14:45 +00001416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
mmentovai8c2a4de2006-09-20 16:20:15 +00001422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/airbag]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
brynercb91a2f2006-08-25 21:14:45 +00001432_ACEOF
1433
1434 cat <<\_ACEOF
1435
1436Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440
1441System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444_ACEOF
1445fi
1446
1447if test -n "$ac_init_help"; then
1448 case $ac_init_help in
1449 short | recursive ) echo "Configuration of airbag 0.1:";;
1450 esac
1451 cat <<\_ACEOF
1452
1453Optional Features:
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --disable-dependency-tracking speeds up one-time build
1457 --enable-dependency-tracking do not reject slow dependency extractors
mmentovai8c2a4de2006-09-20 16:20:15 +00001458 --enable-shared[=PKGS] build shared libraries [default=yes]
1459 --enable-static[=PKGS] build static libraries [default=yes]
brynercb91a2f2006-08-25 21:14:45 +00001460 --enable-fast-install[=PKGS]
1461 optimize for fast installation [default=yes]
1462 --disable-libtool-lock avoid locking (might break parallel builds)
mmentovai0dbedc92006-09-25 21:16:15 +00001463 --enable-selftest Run extra tests with "make check" (may conflict with
1464 optimizations) (default is no)
brynercb91a2f2006-08-25 21:14:45 +00001465
1466Optional Packages:
1467 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1468 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1469 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1470 --with-pic try to use only PIC/non-PIC objects [default=use
1471 both]
mmentovai8c2a4de2006-09-20 16:20:15 +00001472 --with-tags[=TAGS] include additional configurations [automatic]
brynercb91a2f2006-08-25 21:14:45 +00001473
1474Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
mmentovai8c2a4de2006-09-20 16:20:15 +00001479 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1480 you have headers in a nonstandard directory <include dir>
brynercb91a2f2006-08-25 21:14:45 +00001481 CPP C preprocessor
1482 CXX C++ compiler command
1483 CXXFLAGS C++ compiler flags
1484 CXXCPP C++ preprocessor
mmentovai8c2a4de2006-09-20 16:20:15 +00001485 F77 Fortran 77 compiler command
1486 FFLAGS Fortran 77 compiler flags
brynercb91a2f2006-08-25 21:14:45 +00001487
1488Use these variables to override the choices made by `configure' or to help
1489it to find libraries and programs with nonstandard names/locations.
1490
1491Report bugs to <opensource@google.com>.
1492_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001493ac_status=$?
brynercb91a2f2006-08-25 21:14:45 +00001494fi
1495
1496if test "$ac_init_help" = "recursive"; then
1497 # If there are subdirs, report their specific --help.
brynercb91a2f2006-08-25 21:14:45 +00001498 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
mmentovai8c2a4de2006-09-20 16:20:15 +00001499 test -d "$ac_dir" || continue
brynercb91a2f2006-08-25 21:14:45 +00001500 ac_builddir=.
1501
mmentovai8c2a4de2006-09-20 16:20:15 +00001502case "$ac_dir" in
1503.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504*)
brynercb91a2f2006-08-25 21:14:45 +00001505 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001506 # A ".." for each directory in $ac_dir_suffix.
1507 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1508 case $ac_top_builddir_sub in
1509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511 esac ;;
1512esac
1513ac_abs_top_builddir=$ac_pwd
1514ac_abs_builddir=$ac_pwd$ac_dir_suffix
1515# for backward compatibility:
1516ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00001517
1518case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00001519 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00001520 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00001521 ac_top_srcdir=$ac_top_builddir_sub
1522 ac_abs_top_srcdir=$ac_pwd ;;
1523 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00001524 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00001525 ac_top_srcdir=$srcdir
1526 ac_abs_top_srcdir=$srcdir ;;
1527 *) # Relative name.
1528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1529 ac_top_srcdir=$ac_top_build_prefix$srcdir
1530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00001531esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001532ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00001533
mmentovai8c2a4de2006-09-20 16:20:15 +00001534 cd "$ac_dir" || { ac_status=$?; continue; }
1535 # Check for guested configure.
1536 if test -f "$ac_srcdir/configure.gnu"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539 elif test -f "$ac_srcdir/configure"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure" --help=recursive
brynercb91a2f2006-08-25 21:14:45 +00001542 else
1543 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mmentovai8c2a4de2006-09-20 16:20:15 +00001544 fi || ac_status=$?
1545 cd "$ac_pwd" || { ac_status=$?; break; }
brynercb91a2f2006-08-25 21:14:45 +00001546 done
1547fi
1548
mmentovai8c2a4de2006-09-20 16:20:15 +00001549test -n "$ac_init_help" && exit $ac_status
brynercb91a2f2006-08-25 21:14:45 +00001550if $ac_init_version; then
1551 cat <<\_ACEOF
1552airbag configure 0.1
mmentovai8c2a4de2006-09-20 16:20:15 +00001553generated by GNU Autoconf 2.60
brynercb91a2f2006-08-25 21:14:45 +00001554
mmentovai8c2a4de2006-09-20 16:20:15 +00001555Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15562002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00001557This configure script is free software; the Free Software Foundation
1558gives unlimited permission to copy, distribute and modify it.
1559_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001560 exit
brynercb91a2f2006-08-25 21:14:45 +00001561fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001562cat >config.log <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00001563This file contains any messages produced by compilers while
1564running configure, to aid debugging if configure makes a mistake.
1565
1566It was created by airbag $as_me 0.1, which was
mmentovai8c2a4de2006-09-20 16:20:15 +00001567generated by GNU Autoconf 2.60. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00001568
1569 $ $0 $@
1570
1571_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001572exec 5>>config.log
brynercb91a2f2006-08-25 21:14:45 +00001573{
1574cat <<_ASUNAME
1575## --------- ##
1576## Platform. ##
1577## --------- ##
1578
1579hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1580uname -m = `(uname -m) 2>/dev/null || echo unknown`
1581uname -r = `(uname -r) 2>/dev/null || echo unknown`
1582uname -s = `(uname -s) 2>/dev/null || echo unknown`
1583uname -v = `(uname -v) 2>/dev/null || echo unknown`
1584
1585/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1586/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1587
1588/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1589/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1590/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mmentovai8c2a4de2006-09-20 16:20:15 +00001591/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
brynercb91a2f2006-08-25 21:14:45 +00001592/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1593/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1594/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1595
1596_ASUNAME
1597
1598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599for as_dir in $PATH
1600do
1601 IFS=$as_save_IFS
1602 test -z "$as_dir" && as_dir=.
1603 echo "PATH: $as_dir"
1604done
mmentovai8c2a4de2006-09-20 16:20:15 +00001605IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00001606
1607} >&5
1608
1609cat >&5 <<_ACEOF
1610
1611
1612## ----------- ##
1613## Core tests. ##
1614## ----------- ##
1615
1616_ACEOF
1617
1618
1619# Keep a trace of the command line.
1620# Strip out --no-create and --no-recursion so they do not pile up.
1621# Strip out --silent because we don't want to record it for future runs.
1622# Also quote any args containing shell meta-characters.
1623# Make two passes to allow for proper duplicate-argument suppression.
1624ac_configure_args=
1625ac_configure_args0=
1626ac_configure_args1=
brynercb91a2f2006-08-25 21:14:45 +00001627ac_must_keep_next=false
1628for ac_pass in 1 2
1629do
1630 for ac_arg
1631 do
1632 case $ac_arg in
1633 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1634 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1635 | -silent | --silent | --silen | --sile | --sil)
1636 continue ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001637 *\'*)
brynercb91a2f2006-08-25 21:14:45 +00001638 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1639 esac
1640 case $ac_pass in
1641 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1642 2)
1643 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1644 if test $ac_must_keep_next = true; then
1645 ac_must_keep_next=false # Got value, back to normal.
1646 else
1647 case $ac_arg in
1648 *=* | --config-cache | -C | -disable-* | --disable-* \
1649 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1650 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1651 | -with-* | --with-* | -without-* | --without-* | --x)
1652 case "$ac_configure_args0 " in
1653 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1654 esac
1655 ;;
1656 -* ) ac_must_keep_next=true ;;
1657 esac
1658 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001659 ac_configure_args="$ac_configure_args '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00001660 ;;
1661 esac
1662 done
1663done
1664$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1665$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1666
1667# When interrupted or exit'd, cleanup temporary files, and complete
1668# config.log. We remove comments because anyway the quotes in there
1669# would cause problems or look ugly.
mmentovai8c2a4de2006-09-20 16:20:15 +00001670# WARNING: Use '\'' to represent an apostrophe within the trap.
1671# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
brynercb91a2f2006-08-25 21:14:45 +00001672trap 'exit_status=$?
1673 # Save into config.log some information that might help in debugging.
1674 {
1675 echo
1676
1677 cat <<\_ASBOX
1678## ---------------- ##
1679## Cache variables. ##
1680## ---------------- ##
1681_ASBOX
1682 echo
1683 # The following way of writing the cache mishandles newlines in values,
mmentovai8c2a4de2006-09-20 16:20:15 +00001684(
1685 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1686 eval ac_val=\$$ac_var
1687 case $ac_val in #(
1688 *${as_nl}*)
1689 case $ac_var in #(
1690 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1691echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1692 esac
1693 case $ac_var in #(
1694 _ | IFS | as_nl) ;; #(
1695 *) $as_unset $ac_var ;;
1696 esac ;;
1697 esac
1698 done
brynercb91a2f2006-08-25 21:14:45 +00001699 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00001700 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1701 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +00001702 sed -n \
mmentovai8c2a4de2006-09-20 16:20:15 +00001703 "s/'\''/'\''\\\\'\'''\''/g;
1704 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1705 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00001706 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00001707 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00001708 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001709 esac |
1710 sort
1711)
brynercb91a2f2006-08-25 21:14:45 +00001712 echo
1713
1714 cat <<\_ASBOX
1715## ----------------- ##
1716## Output variables. ##
1717## ----------------- ##
1718_ASBOX
1719 echo
1720 for ac_var in $ac_subst_vars
1721 do
mmentovai8c2a4de2006-09-20 16:20:15 +00001722 eval ac_val=\$$ac_var
1723 case $ac_val in
1724 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1725 esac
1726 echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00001727 done | sort
1728 echo
1729
1730 if test -n "$ac_subst_files"; then
1731 cat <<\_ASBOX
mmentovai8c2a4de2006-09-20 16:20:15 +00001732## ------------------- ##
1733## File substitutions. ##
1734## ------------------- ##
brynercb91a2f2006-08-25 21:14:45 +00001735_ASBOX
1736 echo
1737 for ac_var in $ac_subst_files
1738 do
mmentovai8c2a4de2006-09-20 16:20:15 +00001739 eval ac_val=\$$ac_var
1740 case $ac_val in
1741 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 esac
1743 echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00001744 done | sort
1745 echo
1746 fi
1747
1748 if test -s confdefs.h; then
1749 cat <<\_ASBOX
1750## ----------- ##
1751## confdefs.h. ##
1752## ----------- ##
1753_ASBOX
1754 echo
mmentovai8c2a4de2006-09-20 16:20:15 +00001755 cat confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00001756 echo
1757 fi
1758 test "$ac_signal" != 0 &&
1759 echo "$as_me: caught signal $ac_signal"
1760 echo "$as_me: exit $exit_status"
1761 } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00001762 rm -f core *.core core.conftest.* &&
1763 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
brynercb91a2f2006-08-25 21:14:45 +00001764 exit $exit_status
mmentovai8c2a4de2006-09-20 16:20:15 +00001765' 0
brynercb91a2f2006-08-25 21:14:45 +00001766for ac_signal in 1 2 13 15; do
1767 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1768done
1769ac_signal=0
1770
1771# confdefs.h avoids OS command line length limits that DEFS can exceed.
mmentovai8c2a4de2006-09-20 16:20:15 +00001772rm -f -r conftest* confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00001773
1774# Predefined preprocessor variables.
1775
1776cat >>confdefs.h <<_ACEOF
1777#define PACKAGE_NAME "$PACKAGE_NAME"
1778_ACEOF
1779
1780
1781cat >>confdefs.h <<_ACEOF
1782#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1783_ACEOF
1784
1785
1786cat >>confdefs.h <<_ACEOF
1787#define PACKAGE_VERSION "$PACKAGE_VERSION"
1788_ACEOF
1789
1790
1791cat >>confdefs.h <<_ACEOF
1792#define PACKAGE_STRING "$PACKAGE_STRING"
1793_ACEOF
1794
1795
1796cat >>confdefs.h <<_ACEOF
1797#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1798_ACEOF
1799
1800
1801# Let the site file select an alternate cache file if it wants to.
1802# Prefer explicitly selected file to automatically selected ones.
mmentovai8c2a4de2006-09-20 16:20:15 +00001803if test -n "$CONFIG_SITE"; then
1804 set x "$CONFIG_SITE"
1805elif test "x$prefix" != xNONE; then
1806 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1807else
1808 set x "$ac_default_prefix/share/config.site" \
1809 "$ac_default_prefix/etc/config.site"
brynercb91a2f2006-08-25 21:14:45 +00001810fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001811shift
1812for ac_site_file
1813do
brynercb91a2f2006-08-25 21:14:45 +00001814 if test -r "$ac_site_file"; then
1815 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1816echo "$as_me: loading site script $ac_site_file" >&6;}
1817 sed 's/^/| /' "$ac_site_file" >&5
1818 . "$ac_site_file"
1819 fi
1820done
1821
1822if test -r "$cache_file"; then
1823 # Some versions of bash will fail to source /dev/null (special
1824 # files actually), so we avoid doing that.
1825 if test -f "$cache_file"; then
1826 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1827echo "$as_me: loading cache $cache_file" >&6;}
1828 case $cache_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00001829 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1830 *) . "./$cache_file";;
brynercb91a2f2006-08-25 21:14:45 +00001831 esac
1832 fi
1833else
1834 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1835echo "$as_me: creating cache $cache_file" >&6;}
1836 >$cache_file
1837fi
1838
1839# Check that the precious variables saved in the cache have kept the same
1840# value.
1841ac_cache_corrupted=false
mmentovai8c2a4de2006-09-20 16:20:15 +00001842for ac_var in $ac_precious_vars; do
brynercb91a2f2006-08-25 21:14:45 +00001843 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1844 eval ac_new_set=\$ac_env_${ac_var}_set
mmentovai8c2a4de2006-09-20 16:20:15 +00001845 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1846 eval ac_new_val=\$ac_env_${ac_var}_value
brynercb91a2f2006-08-25 21:14:45 +00001847 case $ac_old_set,$ac_new_set in
1848 set,)
1849 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1850echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1851 ac_cache_corrupted=: ;;
1852 ,set)
1853 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1854echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1855 ac_cache_corrupted=: ;;
1856 ,);;
1857 *)
1858 if test "x$ac_old_val" != "x$ac_new_val"; then
1859 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1860echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1861 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1862echo "$as_me: former value: $ac_old_val" >&2;}
1863 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1864echo "$as_me: current value: $ac_new_val" >&2;}
1865 ac_cache_corrupted=:
1866 fi;;
1867 esac
1868 # Pass precious variables to config.status.
1869 if test "$ac_new_set" = set; then
1870 case $ac_new_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001871 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00001872 *) ac_arg=$ac_var=$ac_new_val ;;
1873 esac
1874 case " $ac_configure_args " in
1875 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1876 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1877 esac
1878 fi
1879done
1880if $ac_cache_corrupted; then
1881 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1882echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1883 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1884echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1885 { (exit 1); exit 1; }; }
1886fi
1887
mmentovai8c2a4de2006-09-20 16:20:15 +00001888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
brynercb91a2f2006-08-25 21:14:45 +00001912ac_ext=c
1913ac_cpp='$CPP $CPPFLAGS'
1914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1916ac_compiler_gnu=$ac_cv_c_compiler_gnu
1917
1918
1919
brynercb91a2f2006-08-25 21:14:45 +00001920ac_aux_dir=
mmentovai8c2a4de2006-09-20 16:20:15 +00001921for ac_dir in autotools "$srcdir"/autotools; do
1922 if test -f "$ac_dir/install-sh"; then
brynercb91a2f2006-08-25 21:14:45 +00001923 ac_aux_dir=$ac_dir
1924 ac_install_sh="$ac_aux_dir/install-sh -c"
1925 break
mmentovai8c2a4de2006-09-20 16:20:15 +00001926 elif test -f "$ac_dir/install.sh"; then
brynercb91a2f2006-08-25 21:14:45 +00001927 ac_aux_dir=$ac_dir
1928 ac_install_sh="$ac_aux_dir/install.sh -c"
1929 break
mmentovai8c2a4de2006-09-20 16:20:15 +00001930 elif test -f "$ac_dir/shtool"; then
brynercb91a2f2006-08-25 21:14:45 +00001931 ac_aux_dir=$ac_dir
1932 ac_install_sh="$ac_aux_dir/shtool install -c"
1933 break
1934 fi
1935done
1936if test -z "$ac_aux_dir"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00001937 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&5
1938echo "$as_me: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00001939 { (exit 1); exit 1; }; }
1940fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001941
1942# These three variables are undocumented and unsupported,
1943# and are intended to be withdrawn in a future Autoconf release.
1944# They can cause serious problems if a builder's source tree is in a directory
1945# whose full name contains unusual characters.
1946ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1947ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1948ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1949
brynercb91a2f2006-08-25 21:14:45 +00001950
mmentovai425d2562006-08-30 20:05:05 +00001951
1952am__api_version="1.9"
brynercb91a2f2006-08-25 21:14:45 +00001953# Find a good install program. We prefer a C program (faster),
1954# so one script is as good as another. But avoid the broken or
1955# incompatible versions:
1956# SysV /etc/install, /usr/sbin/install
1957# SunOS /usr/etc/install
1958# IRIX /sbin/install
1959# AIX /bin/install
1960# AmigaOS /C/install, which installs bootblocks on floppy discs
1961# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1962# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1963# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1964# OS/2's system install, which has a completely different semantic
1965# ./install, which can be erroneously created by make from ./install.sh.
mmentovai8c2a4de2006-09-20 16:20:15 +00001966{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1967echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00001968if test -z "$INSTALL"; then
1969if test "${ac_cv_path_install+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971else
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973for as_dir in $PATH
1974do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
1977 # Account for people who put trailing slashes in PATH elements.
1978case $as_dir/ in
1979 ./ | .// | /cC/* | \
1980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1982 /usr/ucb/* ) ;;
1983 *)
1984 # OSF1 and SCO ODT 3.0 have their own names for install.
1985 # Don't use installbsd from OSF since it installs stuff as root
1986 # by default.
1987 for ac_prog in ginstall scoinst install; do
1988 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00001989 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00001990 if test $ac_prog = install &&
1991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1992 # AIX install. It has an incompatible calling convention.
1993 :
1994 elif test $ac_prog = install &&
1995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1996 # program-specific install script used by HP pwplus--don't use.
1997 :
1998 else
1999 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2000 break 3
2001 fi
2002 fi
2003 done
2004 done
2005 ;;
2006esac
2007done
mmentovai8c2a4de2006-09-20 16:20:15 +00002008IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002009
2010
2011fi
2012 if test "${ac_cv_path_install+set}" = set; then
2013 INSTALL=$ac_cv_path_install
2014 else
mmentovai8c2a4de2006-09-20 16:20:15 +00002015 # As a last resort, use the slow shell script. Don't cache a
2016 # value for INSTALL within a source directory, because that will
brynercb91a2f2006-08-25 21:14:45 +00002017 # break other packages using the cache if that directory is
mmentovai8c2a4de2006-09-20 16:20:15 +00002018 # removed, or if the value is a relative name.
brynercb91a2f2006-08-25 21:14:45 +00002019 INSTALL=$ac_install_sh
2020 fi
2021fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002022{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2023echo "${ECHO_T}$INSTALL" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002024
2025# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2026# It thinks the first close brace ends the variable substitution.
2027test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2028
2029test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2030
2031test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2032
mmentovai8c2a4de2006-09-20 16:20:15 +00002033{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2034echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002035# Just in case
2036sleep 1
2037echo timestamp > conftest.file
2038# Do `set' in a subshell so we don't clobber the current shell's
2039# arguments. Must try -L first in case configure is actually a
2040# symlink; some systems play weird games with the mod time of symlinks
2041# (eg FreeBSD returns the mod time of the symlink's containing
2042# directory).
2043if (
2044 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2045 if test "$*" = "X"; then
2046 # -L didn't work.
2047 set X `ls -t $srcdir/configure conftest.file`
2048 fi
2049 rm -f conftest.file
2050 if test "$*" != "X $srcdir/configure conftest.file" \
2051 && test "$*" != "X conftest.file $srcdir/configure"; then
2052
2053 # If neither matched, then we have a broken ls. This can happen
2054 # if, for instance, CONFIG_SHELL is bash and it inherits a
2055 # broken ls alias from the environment. This has actually
2056 # happened. Such a system could not be considered "sane".
2057 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2058alias in your environment" >&5
2059echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2060alias in your environment" >&2;}
2061 { (exit 1); exit 1; }; }
2062 fi
2063
2064 test "$2" = conftest.file
2065 )
2066then
2067 # Ok.
2068 :
2069else
2070 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2071Check your system clock" >&5
2072echo "$as_me: error: newly created file is older than distributed files!
2073Check your system clock" >&2;}
2074 { (exit 1); exit 1; }; }
2075fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002076{ echo "$as_me:$LINENO: result: yes" >&5
2077echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002078test "$program_prefix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002079 program_transform_name="s&^&$program_prefix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002080# Use a double $ so make ignores it.
2081test "$program_suffix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002082 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002083# Double any \ or $. echo might interpret backslashes.
2084# By default was `s,x,x', remove it if useless.
2085cat <<\_ACEOF >conftest.sed
2086s/[\\$]/&&/g;s/;s,x,x,$//
2087_ACEOF
2088program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
mmentovai8c2a4de2006-09-20 16:20:15 +00002089rm -f conftest.sed
brynercb91a2f2006-08-25 21:14:45 +00002090
2091# expand $ac_aux_dir to an absolute path
2092am_aux_dir=`cd $ac_aux_dir && pwd`
2093
2094test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2095# Use eval to expand $SHELL
2096if eval "$MISSING --run true"; then
2097 am_missing_run="$MISSING --run "
2098else
2099 am_missing_run=
2100 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2101echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2102fi
2103
2104if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2105 # We used to keeping the `.' as first argument, in order to
2106 # allow $(mkdir_p) to be used without argument. As in
2107 # $(mkdir_p) $(somedir)
2108 # where $(somedir) is conditionally defined. However this is wrong
2109 # for two reasons:
2110 # 1. if the package is installed by a user who cannot write `.'
2111 # make install will fail,
2112 # 2. the above comment should most certainly read
2113 # $(mkdir_p) $(DESTDIR)$(somedir)
2114 # so it does not work when $(somedir) is undefined and
2115 # $(DESTDIR) is not.
2116 # To support the latter case, we have to write
2117 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2118 # so the `.' trick is pointless.
2119 mkdir_p='mkdir -p --'
2120else
2121 # On NextStep and OpenStep, the `mkdir' command does not
2122 # recognize any option. It will interpret all options as
2123 # directories to create, and then abort because `.' already
2124 # exists.
2125 for d in ./-p ./--version;
2126 do
2127 test -d $d && rmdir $d
2128 done
2129 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2130 if test -f "$ac_aux_dir/mkinstalldirs"; then
2131 mkdir_p='$(mkinstalldirs)'
2132 else
2133 mkdir_p='$(install_sh) -d'
2134 fi
2135fi
2136
2137for ac_prog in gawk mawk nawk awk
2138do
2139 # Extract the first word of "$ac_prog", so it can be a program name with args.
2140set dummy $ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002143if test "${ac_cv_prog_AWK+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145else
2146 if test -n "$AWK"; then
2147 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2148else
2149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150for as_dir in $PATH
2151do
2152 IFS=$as_save_IFS
2153 test -z "$as_dir" && as_dir=.
2154 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002156 ac_cv_prog_AWK="$ac_prog"
2157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 break 2
2159 fi
2160done
2161done
mmentovai8c2a4de2006-09-20 16:20:15 +00002162IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002163
2164fi
2165fi
2166AWK=$ac_cv_prog_AWK
2167if test -n "$AWK"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002168 { echo "$as_me:$LINENO: result: $AWK" >&5
2169echo "${ECHO_T}$AWK" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002170else
mmentovai8c2a4de2006-09-20 16:20:15 +00002171 { echo "$as_me:$LINENO: result: no" >&5
2172echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002173fi
2174
mmentovai8c2a4de2006-09-20 16:20:15 +00002175
brynercb91a2f2006-08-25 21:14:45 +00002176 test -n "$AWK" && break
2177done
2178
mmentovai8c2a4de2006-09-20 16:20:15 +00002179{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2180echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2181set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2182if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184else
2185 cat >conftest.make <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002186SHELL = /bin/sh
brynercb91a2f2006-08-25 21:14:45 +00002187all:
mmentovai8c2a4de2006-09-20 16:20:15 +00002188 @echo '@@@%%%=$(MAKE)=@@@%%%'
brynercb91a2f2006-08-25 21:14:45 +00002189_ACEOF
2190# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
mmentovai8c2a4de2006-09-20 16:20:15 +00002191case `${MAKE-make} -f conftest.make 2>/dev/null` in
2192 *@@@%%%=?*=@@@%%%*)
2193 eval ac_cv_prog_make_${ac_make}_set=yes;;
2194 *)
2195 eval ac_cv_prog_make_${ac_make}_set=no;;
2196esac
brynercb91a2f2006-08-25 21:14:45 +00002197rm -f conftest.make
2198fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002199if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2200 { echo "$as_me:$LINENO: result: yes" >&5
2201echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002202 SET_MAKE=
2203else
mmentovai8c2a4de2006-09-20 16:20:15 +00002204 { echo "$as_me:$LINENO: result: no" >&5
2205echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002206 SET_MAKE="MAKE=${MAKE-make}"
2207fi
2208
2209rm -rf .tst 2>/dev/null
2210mkdir .tst 2>/dev/null
2211if test -d .tst; then
2212 am__leading_dot=.
2213else
2214 am__leading_dot=_
2215fi
2216rmdir .tst 2>/dev/null
2217
2218# test to see if srcdir already configured
2219if test "`cd $srcdir && pwd`" != "`pwd`" &&
2220 test -f $srcdir/config.status; then
2221 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2222echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2223 { (exit 1); exit 1; }; }
2224fi
2225
2226# test whether we have cygpath
2227if test -z "$CYGPATH_W"; then
2228 if (cygpath --version) >/dev/null 2>/dev/null; then
2229 CYGPATH_W='cygpath -w'
2230 else
2231 CYGPATH_W=echo
2232 fi
2233fi
2234
2235
2236# Define the identity of the package.
2237 PACKAGE='airbag'
2238 VERSION='0.1'
2239
2240
2241cat >>confdefs.h <<_ACEOF
2242#define PACKAGE "$PACKAGE"
2243_ACEOF
2244
2245
2246cat >>confdefs.h <<_ACEOF
2247#define VERSION "$VERSION"
2248_ACEOF
2249
2250# Some tools Automake needs.
2251
2252ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2253
2254
2255AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2256
2257
2258AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2259
2260
2261AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2262
2263
2264MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2265
2266install_sh=${install_sh-"$am_aux_dir/install-sh"}
2267
2268# Installed binaries are usually stripped using `strip' when the user
2269# run `make install-strip'. However `strip' might not be the right
2270# tool to use in cross-compilation environments, therefore Automake
2271# will honor the `STRIP' environment variable to overrule this program.
2272if test "$cross_compiling" != no; then
2273 if test -n "$ac_tool_prefix"; then
2274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2275set dummy ${ac_tool_prefix}strip; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002276{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002278if test "${ac_cv_prog_STRIP+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280else
2281 if test -n "$STRIP"; then
2282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2283else
2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285for as_dir in $PATH
2286do
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002291 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 break 2
2294 fi
2295done
2296done
mmentovai8c2a4de2006-09-20 16:20:15 +00002297IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002298
2299fi
2300fi
2301STRIP=$ac_cv_prog_STRIP
2302if test -n "$STRIP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002303 { echo "$as_me:$LINENO: result: $STRIP" >&5
2304echo "${ECHO_T}$STRIP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002305else
mmentovai8c2a4de2006-09-20 16:20:15 +00002306 { echo "$as_me:$LINENO: result: no" >&5
2307echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002308fi
2309
mmentovai8c2a4de2006-09-20 16:20:15 +00002310
brynercb91a2f2006-08-25 21:14:45 +00002311fi
2312if test -z "$ac_cv_prog_STRIP"; then
2313 ac_ct_STRIP=$STRIP
2314 # Extract the first word of "strip", so it can be a program name with args.
2315set dummy strip; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002316{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002318if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320else
2321 if test -n "$ac_ct_STRIP"; then
2322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2323else
2324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325for as_dir in $PATH
2326do
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002331 ac_cv_prog_ac_ct_STRIP="strip"
2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 break 2
2334 fi
2335done
2336done
mmentovai8c2a4de2006-09-20 16:20:15 +00002337IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002338
brynercb91a2f2006-08-25 21:14:45 +00002339fi
2340fi
2341ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2342if test -n "$ac_ct_STRIP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002343 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2344echo "${ECHO_T}$ac_ct_STRIP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002345else
mmentovai8c2a4de2006-09-20 16:20:15 +00002346 { echo "$as_me:$LINENO: result: no" >&5
2347echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002348fi
2349
mmentovai8c2a4de2006-09-20 16:20:15 +00002350 if test "x$ac_ct_STRIP" = x; then
2351 STRIP=":"
2352 else
2353 case $cross_compiling:$ac_tool_warned in
2354yes:)
2355{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2356whose name does not start with the host triplet. If you think this
2357configuration is useful to you, please write to autoconf@gnu.org." >&5
2358echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2359whose name does not start with the host triplet. If you think this
2360configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2361ac_tool_warned=yes ;;
2362esac
2363 STRIP=$ac_ct_STRIP
2364 fi
brynercb91a2f2006-08-25 21:14:45 +00002365else
2366 STRIP="$ac_cv_prog_STRIP"
2367fi
2368
2369fi
2370INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2371
2372# We need awk for the "check" target. The system "awk" is bad on
2373# some platforms.
2374# Always define AMTAR for backward compatibility.
2375
2376AMTAR=${AMTAR-"${am_missing_run}tar"}
2377
2378am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2379
2380
2381
2382
2383
mmentovai8c2a4de2006-09-20 16:20:15 +00002384ac_config_headers="$ac_config_headers src/config.h"
brynercb91a2f2006-08-25 21:14:45 +00002385
2386
brynercb91a2f2006-08-25 21:14:45 +00002387ac_ext=c
2388ac_cpp='$CPP $CPPFLAGS'
2389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392if test -n "$ac_tool_prefix"; then
2393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2394set dummy ${ac_tool_prefix}gcc; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002397if test "${ac_cv_prog_CC+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2399else
2400 if test -n "$CC"; then
2401 ac_cv_prog_CC="$CC" # Let the user override the test.
2402else
2403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404for as_dir in $PATH
2405do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 break 2
2413 fi
2414done
2415done
mmentovai8c2a4de2006-09-20 16:20:15 +00002416IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002417
2418fi
2419fi
2420CC=$ac_cv_prog_CC
2421if test -n "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002422 { echo "$as_me:$LINENO: result: $CC" >&5
2423echo "${ECHO_T}$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002424else
mmentovai8c2a4de2006-09-20 16:20:15 +00002425 { echo "$as_me:$LINENO: result: no" >&5
2426echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002427fi
2428
mmentovai8c2a4de2006-09-20 16:20:15 +00002429
brynercb91a2f2006-08-25 21:14:45 +00002430fi
2431if test -z "$ac_cv_prog_CC"; then
2432 ac_ct_CC=$CC
2433 # Extract the first word of "gcc", so it can be a program name with args.
2434set dummy gcc; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002437if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2439else
2440 if test -n "$ac_ct_CC"; then
2441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442else
2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444for as_dir in $PATH
2445do
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002450 ac_cv_prog_ac_ct_CC="gcc"
2451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 break 2
2453 fi
2454done
2455done
mmentovai8c2a4de2006-09-20 16:20:15 +00002456IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002457
2458fi
2459fi
2460ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461if test -n "$ac_ct_CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002462 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463echo "${ECHO_T}$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002464else
mmentovai8c2a4de2006-09-20 16:20:15 +00002465 { echo "$as_me:$LINENO: result: no" >&5
2466echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002467fi
2468
mmentovai8c2a4de2006-09-20 16:20:15 +00002469 if test "x$ac_ct_CC" = x; then
2470 CC=""
2471 else
2472 case $cross_compiling:$ac_tool_warned in
2473yes:)
2474{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475whose name does not start with the host triplet. If you think this
2476configuration is useful to you, please write to autoconf@gnu.org." >&5
2477echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478whose name does not start with the host triplet. If you think this
2479configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2480ac_tool_warned=yes ;;
2481esac
2482 CC=$ac_ct_CC
2483 fi
brynercb91a2f2006-08-25 21:14:45 +00002484else
2485 CC="$ac_cv_prog_CC"
2486fi
2487
2488if test -z "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002489 if test -n "$ac_tool_prefix"; then
2490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
brynercb91a2f2006-08-25 21:14:45 +00002491set dummy ${ac_tool_prefix}cc; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002494if test "${ac_cv_prog_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2496else
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC="$CC" # Let the user override the test.
2499else
2500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501for as_dir in $PATH
2502do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002507 ac_cv_prog_CC="${ac_tool_prefix}cc"
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2510 fi
2511done
2512done
mmentovai8c2a4de2006-09-20 16:20:15 +00002513IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002514
2515fi
2516fi
2517CC=$ac_cv_prog_CC
2518if test -n "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002519 { echo "$as_me:$LINENO: result: $CC" >&5
2520echo "${ECHO_T}$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002521else
mmentovai8c2a4de2006-09-20 16:20:15 +00002522 { echo "$as_me:$LINENO: result: no" >&5
2523echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002524fi
2525
mmentovai8c2a4de2006-09-20 16:20:15 +00002526
brynercb91a2f2006-08-25 21:14:45 +00002527 fi
brynercb91a2f2006-08-25 21:14:45 +00002528fi
2529if test -z "$CC"; then
2530 # Extract the first word of "cc", so it can be a program name with args.
2531set dummy cc; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002534if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536else
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2539else
2540 ac_prog_rejected=no
2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2549 ac_prog_rejected=yes
2550 continue
2551 fi
2552 ac_cv_prog_CC="cc"
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 break 2
2555 fi
2556done
2557done
mmentovai8c2a4de2006-09-20 16:20:15 +00002558IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002559
2560if test $ac_prog_rejected = yes; then
2561 # We found a bogon in the path, so make sure we never use it.
2562 set dummy $ac_cv_prog_CC
2563 shift
2564 if test $# != 0; then
2565 # We chose a different compiler from the bogus one.
2566 # However, it has the same basename, so the bogon will be chosen
2567 # first if we set CC to just the basename; use the full file name.
2568 shift
2569 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2570 fi
2571fi
2572fi
2573fi
2574CC=$ac_cv_prog_CC
2575if test -n "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002576 { echo "$as_me:$LINENO: result: $CC" >&5
2577echo "${ECHO_T}$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002578else
mmentovai8c2a4de2006-09-20 16:20:15 +00002579 { echo "$as_me:$LINENO: result: no" >&5
2580echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002581fi
2582
mmentovai8c2a4de2006-09-20 16:20:15 +00002583
brynercb91a2f2006-08-25 21:14:45 +00002584fi
2585if test -z "$CC"; then
2586 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002587 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00002588 do
2589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2590set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002593if test "${ac_cv_prog_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595else
2596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
2598else
2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600for as_dir in $PATH
2601do
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 break 2
2609 fi
2610done
2611done
mmentovai8c2a4de2006-09-20 16:20:15 +00002612IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002613
2614fi
2615fi
2616CC=$ac_cv_prog_CC
2617if test -n "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002618 { echo "$as_me:$LINENO: result: $CC" >&5
2619echo "${ECHO_T}$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002620else
mmentovai8c2a4de2006-09-20 16:20:15 +00002621 { echo "$as_me:$LINENO: result: no" >&5
2622echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002623fi
2624
mmentovai8c2a4de2006-09-20 16:20:15 +00002625
brynercb91a2f2006-08-25 21:14:45 +00002626 test -n "$CC" && break
2627 done
2628fi
2629if test -z "$CC"; then
2630 ac_ct_CC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00002631 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00002632do
2633 # Extract the first word of "$ac_prog", so it can be a program name with args.
2634set dummy $ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002637if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639else
2640 if test -n "$ac_ct_CC"; then
2641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2642else
2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002650 ac_cv_prog_ac_ct_CC="$ac_prog"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2653 fi
2654done
2655done
mmentovai8c2a4de2006-09-20 16:20:15 +00002656IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002657
2658fi
2659fi
2660ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661if test -n "$ac_ct_CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002662 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663echo "${ECHO_T}$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002664else
mmentovai8c2a4de2006-09-20 16:20:15 +00002665 { echo "$as_me:$LINENO: result: no" >&5
2666echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002667fi
2668
mmentovai8c2a4de2006-09-20 16:20:15 +00002669
brynercb91a2f2006-08-25 21:14:45 +00002670 test -n "$ac_ct_CC" && break
2671done
2672
mmentovai8c2a4de2006-09-20 16:20:15 +00002673 if test "x$ac_ct_CC" = x; then
2674 CC=""
2675 else
2676 case $cross_compiling:$ac_tool_warned in
2677yes:)
2678{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679whose name does not start with the host triplet. If you think this
2680configuration is useful to you, please write to autoconf@gnu.org." >&5
2681echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682whose name does not start with the host triplet. If you think this
2683configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2684ac_tool_warned=yes ;;
2685esac
2686 CC=$ac_ct_CC
2687 fi
brynercb91a2f2006-08-25 21:14:45 +00002688fi
2689
2690fi
2691
2692
2693test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2694See \`config.log' for more details." >&5
2695echo "$as_me: error: no acceptable C compiler found in \$PATH
2696See \`config.log' for more details." >&2;}
2697 { (exit 1); exit 1; }; }
2698
2699# Provide some information about the compiler.
mmentovai8c2a4de2006-09-20 16:20:15 +00002700echo "$as_me:$LINENO: checking for C compiler version" >&5
brynercb91a2f2006-08-25 21:14:45 +00002701ac_compiler=`set X $ac_compile; echo $2`
mmentovai8c2a4de2006-09-20 16:20:15 +00002702{ (ac_try="$ac_compiler --version >&5"
2703case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706esac
2707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compiler --version >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }
mmentovai8c2a4de2006-09-20 16:20:15 +00002712{ (ac_try="$ac_compiler -v >&5"
2713case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716esac
2717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler -v >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
mmentovai8c2a4de2006-09-20 16:20:15 +00002722{ (ac_try="$ac_compiler -V >&5"
2723case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler -V >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
2732
2733cat >conftest.$ac_ext <<_ACEOF
2734/* confdefs.h. */
2735_ACEOF
2736cat confdefs.h >>conftest.$ac_ext
2737cat >>conftest.$ac_ext <<_ACEOF
2738/* end confdefs.h. */
2739
2740int
2741main ()
2742{
2743
2744 ;
2745 return 0;
2746}
2747_ACEOF
2748ac_clean_files_save=$ac_clean_files
2749ac_clean_files="$ac_clean_files a.out a.exe b.out"
2750# Try to create an executable without -o first, disregard a.out.
2751# It will help us diagnose broken compilers, and finding out an intuition
2752# of exeext.
mmentovai8c2a4de2006-09-20 16:20:15 +00002753{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2754echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002755ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
mmentovai8c2a4de2006-09-20 16:20:15 +00002756#
2757# List of possible output files, starting from the most likely.
2758# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2759# only as a last resort. b.out is created by i960 compilers.
2760ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2761#
2762# The IRIX 6 linker writes into existing files which may not be
2763# executable, retaining their permissions. Remove them first so a
2764# subsequent execution test works.
2765ac_rmfiles=
2766for ac_file in $ac_files
2767do
2768 case $ac_file in
2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2771 esac
2772done
2773rm -f $ac_rmfiles
2774
2775if { (ac_try="$ac_link_default"
2776case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779esac
2780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_link_default") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2786# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2787# in a Makefile. We should not override ac_cv_exeext if it was cached,
2788# so that the user can short-circuit this test for compilers unknown to
2789# Autoconf.
2790for ac_file in $ac_files
brynercb91a2f2006-08-25 21:14:45 +00002791do
2792 test -f "$ac_file" || continue
2793 case $ac_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
brynercb91a2f2006-08-25 21:14:45 +00002795 ;;
2796 [ab].out )
2797 # We found the default executable, but exeext='' is most
2798 # certainly right.
2799 break;;
2800 *.* )
mmentovai8c2a4de2006-09-20 16:20:15 +00002801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2802 then :; else
2803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2804 fi
2805 # We set ac_cv_exeext here because the later test for it is not
2806 # safe: cross compilers may not add the suffix if given an `-o'
2807 # argument, so we may need to know it at that point already.
2808 # Even if this section looks crufty: it has the advantage of
2809 # actually working.
brynercb91a2f2006-08-25 21:14:45 +00002810 break;;
2811 * )
2812 break;;
2813 esac
2814done
mmentovai8c2a4de2006-09-20 16:20:15 +00002815test "$ac_cv_exeext" = no && ac_cv_exeext=
2816
brynercb91a2f2006-08-25 21:14:45 +00002817else
2818 echo "$as_me: failed program was:" >&5
2819sed 's/^/| /' conftest.$ac_ext >&5
2820
2821{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2822See \`config.log' for more details." >&5
2823echo "$as_me: error: C compiler cannot create executables
2824See \`config.log' for more details." >&2;}
2825 { (exit 77); exit 77; }; }
2826fi
2827
2828ac_exeext=$ac_cv_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00002829{ echo "$as_me:$LINENO: result: $ac_file" >&5
2830echo "${ECHO_T}$ac_file" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002831
mmentovai8c2a4de2006-09-20 16:20:15 +00002832# Check that the compiler produces executables we can run. If not, either
brynercb91a2f2006-08-25 21:14:45 +00002833# the compiler is broken, or we cross compile.
mmentovai8c2a4de2006-09-20 16:20:15 +00002834{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2835echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002836# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2837# If not cross compiling, check that we can run a simple program.
2838if test "$cross_compiling" != yes; then
2839 if { ac_try='./$ac_file'
mmentovai8c2a4de2006-09-20 16:20:15 +00002840 { (case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843esac
2844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2849 cross_compiling=no
2850 else
2851 if test "$cross_compiling" = maybe; then
2852 cross_compiling=yes
2853 else
2854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2855If you meant to cross compile, use \`--host'.
2856See \`config.log' for more details." >&5
2857echo "$as_me: error: cannot run C compiled programs.
2858If you meant to cross compile, use \`--host'.
2859See \`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }
2861 fi
2862 fi
2863fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002864{ echo "$as_me:$LINENO: result: yes" >&5
2865echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002866
2867rm -f a.out a.exe conftest$ac_cv_exeext b.out
2868ac_clean_files=$ac_clean_files_save
mmentovai8c2a4de2006-09-20 16:20:15 +00002869# Check that the compiler produces executables we can run. If not, either
brynercb91a2f2006-08-25 21:14:45 +00002870# the compiler is broken, or we cross compile.
mmentovai8c2a4de2006-09-20 16:20:15 +00002871{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2872echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2873{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2874echo "${ECHO_T}$cross_compiling" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002875
mmentovai8c2a4de2006-09-20 16:20:15 +00002876{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2877echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2878if { (ac_try="$ac_link"
2879case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882esac
2883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; then
2888 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2889# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2890# work properly (i.e., refer to `conftest.exe'), while it won't with
2891# `rm'.
2892for ac_file in conftest.exe conftest conftest.*; do
2893 test -f "$ac_file" || continue
2894 case $ac_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
brynercb91a2f2006-08-25 21:14:45 +00002896 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
brynercb91a2f2006-08-25 21:14:45 +00002897 break;;
2898 * ) break;;
2899 esac
2900done
2901else
2902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2903See \`config.log' for more details." >&5
2904echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2905See \`config.log' for more details." >&2;}
2906 { (exit 1); exit 1; }; }
2907fi
2908
2909rm -f conftest$ac_cv_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00002910{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2911echo "${ECHO_T}$ac_cv_exeext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002912
2913rm -f conftest.$ac_ext
2914EXEEXT=$ac_cv_exeext
2915ac_exeext=$EXEEXT
mmentovai8c2a4de2006-09-20 16:20:15 +00002916{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2917echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002918if test "${ac_cv_objext+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920else
2921 cat >conftest.$ac_ext <<_ACEOF
2922/* confdefs.h. */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
2926/* end confdefs.h. */
2927
2928int
2929main ()
2930{
2931
2932 ;
2933 return 0;
2934}
2935_ACEOF
2936rm -f conftest.o conftest.obj
mmentovai8c2a4de2006-09-20 16:20:15 +00002937if { (ac_try="$ac_compile"
2938case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941esac
2942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002947 for ac_file in conftest.o conftest.obj conftest.*; do
2948 test -f "$ac_file" || continue;
brynercb91a2f2006-08-25 21:14:45 +00002949 case $ac_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
brynercb91a2f2006-08-25 21:14:45 +00002951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2952 break;;
2953 esac
2954done
2955else
2956 echo "$as_me: failed program was:" >&5
2957sed 's/^/| /' conftest.$ac_ext >&5
2958
2959{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2960See \`config.log' for more details." >&5
2961echo "$as_me: error: cannot compute suffix of object files: cannot compile
2962See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }
2964fi
2965
2966rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002968{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2969echo "${ECHO_T}$ac_cv_objext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002970OBJEXT=$ac_cv_objext
2971ac_objext=$OBJEXT
mmentovai8c2a4de2006-09-20 16:20:15 +00002972{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2973echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002974if test "${ac_cv_c_compiler_gnu+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976else
2977 cat >conftest.$ac_ext <<_ACEOF
2978/* confdefs.h. */
2979_ACEOF
2980cat confdefs.h >>conftest.$ac_ext
2981cat >>conftest.$ac_ext <<_ACEOF
2982/* end confdefs.h. */
2983
2984int
2985main ()
2986{
2987#ifndef __GNUC__
2988 choke me
2989#endif
2990
2991 ;
2992 return 0;
2993}
2994_ACEOF
2995rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00002996if { (ac_try="$ac_compile"
2997case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000esac
3001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003003 ac_status=$?
3004 grep -v '^ *+' conftest.er1 >conftest.err
3005 rm -f conftest.er1
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00003009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010 { (case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013esac
3014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; } &&
3019 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00003020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
3029 ac_compiler_gnu=yes
3030else
3031 echo "$as_me: failed program was:" >&5
3032sed 's/^/| /' conftest.$ac_ext >&5
3033
mmentovai8c2a4de2006-09-20 16:20:15 +00003034 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00003035fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003036
3037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003038ac_cv_c_compiler_gnu=$ac_compiler_gnu
3039
3040fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003041{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3042echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003043GCC=`test $ac_compiler_gnu = yes && echo yes`
3044ac_test_CFLAGS=${CFLAGS+set}
3045ac_save_CFLAGS=$CFLAGS
mmentovai8c2a4de2006-09-20 16:20:15 +00003046{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3047echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003048if test "${ac_cv_prog_cc_g+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3050else
mmentovai8c2a4de2006-09-20 16:20:15 +00003051 ac_save_c_werror_flag=$ac_c_werror_flag
3052 ac_c_werror_flag=yes
3053 ac_cv_prog_cc_g=no
3054 CFLAGS="-g"
3055 cat >conftest.$ac_ext <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00003056/* confdefs.h. */
3057_ACEOF
3058cat confdefs.h >>conftest.$ac_ext
3059cat >>conftest.$ac_ext <<_ACEOF
3060/* end confdefs.h. */
3061
3062int
3063main ()
3064{
3065
3066 ;
3067 return 0;
3068}
3069_ACEOF
3070rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00003071if { (ac_try="$ac_compile"
3072case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075esac
3076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00003084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00003095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 ac_cv_prog_cc_g=yes
3105else
3106 echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
mmentovai8c2a4de2006-09-20 16:20:15 +00003109 CFLAGS=""
3110 cat >conftest.$ac_ext <<_ACEOF
3111/* confdefs.h. */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
3115/* end confdefs.h. */
3116
3117int
3118main ()
3119{
3120
3121 ;
3122 return 0;
3123}
3124_ACEOF
3125rm -f conftest.$ac_objext
3126if { (ac_try="$ac_compile"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 :
3160else
3161 echo "$as_me: failed program was:" >&5
3162sed 's/^/| /' conftest.$ac_ext >&5
3163
3164 ac_c_werror_flag=$ac_save_c_werror_flag
3165 CFLAGS="-g"
3166 cat >conftest.$ac_ext <<_ACEOF
3167/* confdefs.h. */
3168_ACEOF
3169cat confdefs.h >>conftest.$ac_ext
3170cat >>conftest.$ac_ext <<_ACEOF
3171/* end confdefs.h. */
3172
3173int
3174main ()
3175{
3176
3177 ;
3178 return 0;
3179}
3180_ACEOF
3181rm -f conftest.$ac_objext
3182if { (ac_try="$ac_compile"
3183case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186esac
3187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3189 ac_status=$?
3190 grep -v '^ *+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3196 { (case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199esac
3200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_try") 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209esac
3210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_try") 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
3215 ac_cv_prog_cc_g=yes
3216else
3217 echo "$as_me: failed program was:" >&5
3218sed 's/^/| /' conftest.$ac_ext >&5
3219
3220
brynercb91a2f2006-08-25 21:14:45 +00003221fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003222
3223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003224fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003225
3226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227fi
3228
3229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 ac_c_werror_flag=$ac_save_c_werror_flag
3231fi
3232{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003234if test "$ac_test_CFLAGS" = set; then
3235 CFLAGS=$ac_save_CFLAGS
3236elif test $ac_cv_prog_cc_g = yes; then
3237 if test "$GCC" = yes; then
3238 CFLAGS="-g -O2"
3239 else
3240 CFLAGS="-g"
3241 fi
3242else
3243 if test "$GCC" = yes; then
3244 CFLAGS="-O2"
3245 else
3246 CFLAGS=
3247 fi
3248fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003249{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3250echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3251if test "${ac_cv_prog_cc_c89+set}" = set; then
brynercb91a2f2006-08-25 21:14:45 +00003252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253else
mmentovai8c2a4de2006-09-20 16:20:15 +00003254 ac_cv_prog_cc_c89=no
brynercb91a2f2006-08-25 21:14:45 +00003255ac_save_CC=$CC
3256cat >conftest.$ac_ext <<_ACEOF
3257/* confdefs.h. */
3258_ACEOF
3259cat confdefs.h >>conftest.$ac_ext
3260cat >>conftest.$ac_ext <<_ACEOF
3261/* end confdefs.h. */
3262#include <stdarg.h>
3263#include <stdio.h>
3264#include <sys/types.h>
3265#include <sys/stat.h>
3266/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267struct buf { int x; };
3268FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269static char *e (p, i)
3270 char **p;
3271 int i;
3272{
3273 return p[i];
3274}
3275static char *f (char * (*g) (char **, int), char **p, ...)
3276{
3277 char *s;
3278 va_list v;
3279 va_start (v,p);
3280 s = g (p, va_arg (v,int));
3281 va_end (v);
3282 return s;
3283}
3284
3285/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286 function prototypes and stuff, but not '\xHH' hex character constants.
3287 These don't provoke an error unfortunately, instead are silently treated
mmentovai8c2a4de2006-09-20 16:20:15 +00003288 as 'x'. The following induces an error, until -std is added to get
brynercb91a2f2006-08-25 21:14:45 +00003289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290 array size at least. It's necessary to write '\x00'==0 to get something
mmentovai8c2a4de2006-09-20 16:20:15 +00003291 that's true only with -std. */
brynercb91a2f2006-08-25 21:14:45 +00003292int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3293
mmentovai8c2a4de2006-09-20 16:20:15 +00003294/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295 inside strings and character constants. */
3296#define FOO(x) 'x'
3297int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3298
brynercb91a2f2006-08-25 21:14:45 +00003299int test (int i, double x);
3300struct s1 {int (*f) (int a);};
3301struct s2 {int (*f) (double a);};
3302int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303int argc;
3304char **argv;
3305int
3306main ()
3307{
3308return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3309 ;
3310 return 0;
3311}
3312_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003313for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
brynercb91a2f2006-08-25 21:14:45 +00003315do
3316 CC="$ac_save_CC $ac_arg"
3317 rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00003318if { (ac_try="$ac_compile"
3319case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322esac
3323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00003331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332 { (case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335esac
3336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00003342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345esac
3346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003351 ac_cv_prog_cc_c89=$ac_arg
brynercb91a2f2006-08-25 21:14:45 +00003352else
3353 echo "$as_me: failed program was:" >&5
3354sed 's/^/| /' conftest.$ac_ext >&5
3355
mmentovai8c2a4de2006-09-20 16:20:15 +00003356
brynercb91a2f2006-08-25 21:14:45 +00003357fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003358
3359rm -f core conftest.err conftest.$ac_objext
3360 test "x$ac_cv_prog_cc_c89" != "xno" && break
brynercb91a2f2006-08-25 21:14:45 +00003361done
mmentovai8c2a4de2006-09-20 16:20:15 +00003362rm -f conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003363CC=$ac_save_CC
3364
3365fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003366# AC_CACHE_VAL
3367case "x$ac_cv_prog_cc_c89" in
3368 x)
3369 { echo "$as_me:$LINENO: result: none needed" >&5
3370echo "${ECHO_T}none needed" >&6; } ;;
3371 xno)
3372 { echo "$as_me:$LINENO: result: unsupported" >&5
3373echo "${ECHO_T}unsupported" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003374 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00003375 CC="$CC $ac_cv_prog_cc_c89"
3376 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3377echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003378esac
3379
brynercb91a2f2006-08-25 21:14:45 +00003380
brynercb91a2f2006-08-25 21:14:45 +00003381ac_ext=c
3382ac_cpp='$CPP $CPPFLAGS'
3383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386DEPDIR="${am__leading_dot}deps"
3387
mmentovai8c2a4de2006-09-20 16:20:15 +00003388ac_config_commands="$ac_config_commands depfiles"
brynercb91a2f2006-08-25 21:14:45 +00003389
3390
3391am_make=${MAKE-make}
3392cat > confinc << 'END'
3393am__doit:
3394 @echo done
3395.PHONY: am__doit
3396END
3397# If we don't find an include directive, just comment out the code.
mmentovai8c2a4de2006-09-20 16:20:15 +00003398{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3399echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003400am__include="#"
3401am__quote=
3402_am_result=none
3403# First try GNU make style include.
3404echo "include confinc" > confmf
3405# We grep out `Entering directory' and `Leaving directory'
3406# messages which can occur if `w' ends up in MAKEFLAGS.
3407# In particular we don't look at `^make:' because GNU make might
3408# be invoked under some other name (usually "gmake"), in which
3409# case it prints its new name instead of `make'.
3410if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3411 am__include=include
3412 am__quote=
3413 _am_result=GNU
3414fi
3415# Now try BSD make style include.
3416if test "$am__include" = "#"; then
3417 echo '.include "confinc"' > confmf
3418 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3419 am__include=.include
3420 am__quote="\""
3421 _am_result=BSD
3422 fi
3423fi
3424
3425
mmentovai8c2a4de2006-09-20 16:20:15 +00003426{ echo "$as_me:$LINENO: result: $_am_result" >&5
3427echo "${ECHO_T}$_am_result" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003428rm -f confinc confmf
3429
mmentovai8c2a4de2006-09-20 16:20:15 +00003430# Check whether --enable-dependency-tracking was given.
brynercb91a2f2006-08-25 21:14:45 +00003431if test "${enable_dependency_tracking+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003432 enableval=$enable_dependency_tracking;
3433fi
brynercb91a2f2006-08-25 21:14:45 +00003434
brynercb91a2f2006-08-25 21:14:45 +00003435if test "x$enable_dependency_tracking" != xno; then
3436 am_depcomp="$ac_aux_dir/depcomp"
3437 AMDEPBACKSLASH='\'
3438fi
3439
3440
3441if test "x$enable_dependency_tracking" != xno; then
3442 AMDEP_TRUE=
3443 AMDEP_FALSE='#'
3444else
3445 AMDEP_TRUE='#'
3446 AMDEP_FALSE=
3447fi
3448
3449
3450
3451
3452depcc="$CC" am_compiler_list=
3453
mmentovai8c2a4de2006-09-20 16:20:15 +00003454{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3455echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003456if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458else
3459 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3460 # We make a subdir and do the tests there. Otherwise we can end up
3461 # making bogus files that we don't know about and never remove. For
3462 # instance it was reported that on HP-UX the gcc test will end up
3463 # making a dummy file named `D' -- because `-MD' means `put the output
3464 # in D'.
3465 mkdir conftest.dir
3466 # Copy depcomp to subdir because otherwise we won't find it if we're
3467 # using a relative directory.
3468 cp "$am_depcomp" conftest.dir
3469 cd conftest.dir
3470 # We will build objects and dependencies in a subdirectory because
3471 # it helps to detect inapplicable dependency modes. For instance
3472 # both Tru64's cc and ICC support -MD to output dependencies as a
3473 # side effect of compilation, but ICC will put the dependencies in
3474 # the current directory while Tru64 will put them in the object
3475 # directory.
3476 mkdir sub
3477
3478 am_cv_CC_dependencies_compiler_type=none
3479 if test "$am_compiler_list" = ""; then
3480 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3481 fi
3482 for depmode in $am_compiler_list; do
3483 # Setup a source with many dependencies, because some compilers
3484 # like to wrap large dependency lists on column 80 (with \), and
3485 # we should not choose a depcomp mode which is confused by this.
3486 #
3487 # We need to recreate these files for each test, as the compiler may
3488 # overwrite some of them when testing with obscure command lines.
3489 # This happens at least with the AIX C compiler.
3490 : > sub/conftest.c
3491 for i in 1 2 3 4 5 6; do
3492 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3493 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3494 # Solaris 8's {/usr,}/bin/sh.
3495 touch sub/conftst$i.h
3496 done
3497 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3498
3499 case $depmode in
3500 nosideeffect)
3501 # after this tag, mechanisms are not by side-effect, so they'll
3502 # only be used when explicitly requested
3503 if test "x$enable_dependency_tracking" = xyes; then
3504 continue
3505 else
3506 break
3507 fi
3508 ;;
3509 none) break ;;
3510 esac
3511 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3512 # mode. It turns out that the SunPro C++ compiler does not properly
3513 # handle `-M -o', and we need to detect this.
3514 if depmode=$depmode \
3515 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3516 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3517 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3518 >/dev/null 2>conftest.err &&
3519 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3520 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3521 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3522 # icc doesn't choke on unknown options, it will just issue warnings
3523 # or remarks (even with -Werror). So we grep stderr for any message
3524 # that says an option was ignored or not supported.
3525 # When given -MP, icc 7.0 and 7.1 complain thusly:
3526 # icc: Command line warning: ignoring option '-M'; no argument required
3527 # The diagnosis changed in icc 8.0:
3528 # icc: Command line remark: option '-MP' not supported
3529 if (grep 'ignoring option' conftest.err ||
3530 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3531 am_cv_CC_dependencies_compiler_type=$depmode
3532 break
3533 fi
3534 fi
3535 done
3536
3537 cd ..
3538 rm -rf conftest.dir
3539else
3540 am_cv_CC_dependencies_compiler_type=none
3541fi
3542
3543fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003544{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3545echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003546CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3547
3548
3549
3550if
3551 test "x$enable_dependency_tracking" != xno \
3552 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3553 am__fastdepCC_TRUE=
3554 am__fastdepCC_FALSE='#'
3555else
3556 am__fastdepCC_TRUE='#'
3557 am__fastdepCC_FALSE=
3558fi
3559
3560
3561ac_ext=c
3562ac_cpp='$CPP $CPPFLAGS'
3563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565ac_compiler_gnu=$ac_cv_c_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00003566{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3567echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003568# On Suns, sometimes $CPP names a directory.
3569if test -n "$CPP" && test -d "$CPP"; then
3570 CPP=
3571fi
3572if test -z "$CPP"; then
3573 if test "${ac_cv_prog_CPP+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3575else
3576 # Double quotes because CPP needs to be expanded
3577 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3578 do
3579 ac_preproc_ok=false
3580for ac_c_preproc_warn_flag in '' yes
3581do
3582 # Use a header file that comes with gcc, so configuring glibc
3583 # with a fresh cross-compiler works.
3584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3585 # <limits.h> exists even on freestanding compilers.
3586 # On the NeXT, cc -E runs the code through the compiler's parser,
3587 # not just through cpp. "Syntax error" is here to catch this case.
3588 cat >conftest.$ac_ext <<_ACEOF
3589/* confdefs.h. */
3590_ACEOF
3591cat confdefs.h >>conftest.$ac_ext
3592cat >>conftest.$ac_ext <<_ACEOF
3593/* end confdefs.h. */
3594#ifdef __STDC__
3595# include <limits.h>
3596#else
3597# include <assert.h>
3598#endif
3599 Syntax error
3600_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003601if { (ac_try="$ac_cpp conftest.$ac_ext"
3602case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605esac
3606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003608 ac_status=$?
3609 grep -v '^ *+' conftest.er1 >conftest.err
3610 rm -f conftest.er1
3611 cat conftest.err >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } >/dev/null; then
3614 if test -s conftest.err; then
3615 ac_cpp_err=$ac_c_preproc_warn_flag
3616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3617 else
3618 ac_cpp_err=
3619 fi
3620else
3621 ac_cpp_err=yes
3622fi
3623if test -z "$ac_cpp_err"; then
3624 :
3625else
3626 echo "$as_me: failed program was:" >&5
3627sed 's/^/| /' conftest.$ac_ext >&5
3628
3629 # Broken: fails on valid input.
3630continue
3631fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003632
brynercb91a2f2006-08-25 21:14:45 +00003633rm -f conftest.err conftest.$ac_ext
3634
mmentovai8c2a4de2006-09-20 16:20:15 +00003635 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00003636 # can be detected and how.
3637 cat >conftest.$ac_ext <<_ACEOF
3638/* confdefs.h. */
3639_ACEOF
3640cat confdefs.h >>conftest.$ac_ext
3641cat >>conftest.$ac_ext <<_ACEOF
3642/* end confdefs.h. */
3643#include <ac_nonexistent.h>
3644_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003645if { (ac_try="$ac_cpp conftest.$ac_ext"
3646case "(($ac_try" in
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3649esac
3650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003652 ac_status=$?
3653 grep -v '^ *+' conftest.er1 >conftest.err
3654 rm -f conftest.er1
3655 cat conftest.err >&5
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); } >/dev/null; then
3658 if test -s conftest.err; then
3659 ac_cpp_err=$ac_c_preproc_warn_flag
3660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3661 else
3662 ac_cpp_err=
3663 fi
3664else
3665 ac_cpp_err=yes
3666fi
3667if test -z "$ac_cpp_err"; then
3668 # Broken: success on invalid input.
3669continue
3670else
3671 echo "$as_me: failed program was:" >&5
3672sed 's/^/| /' conftest.$ac_ext >&5
3673
3674 # Passes both tests.
3675ac_preproc_ok=:
3676break
3677fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003678
brynercb91a2f2006-08-25 21:14:45 +00003679rm -f conftest.err conftest.$ac_ext
3680
3681done
3682# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3683rm -f conftest.err conftest.$ac_ext
3684if $ac_preproc_ok; then
3685 break
3686fi
3687
3688 done
3689 ac_cv_prog_CPP=$CPP
3690
3691fi
3692 CPP=$ac_cv_prog_CPP
3693else
3694 ac_cv_prog_CPP=$CPP
3695fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003696{ echo "$as_me:$LINENO: result: $CPP" >&5
3697echo "${ECHO_T}$CPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003698ac_preproc_ok=false
3699for ac_c_preproc_warn_flag in '' yes
3700do
3701 # Use a header file that comes with gcc, so configuring glibc
3702 # with a fresh cross-compiler works.
3703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3704 # <limits.h> exists even on freestanding compilers.
3705 # On the NeXT, cc -E runs the code through the compiler's parser,
3706 # not just through cpp. "Syntax error" is here to catch this case.
3707 cat >conftest.$ac_ext <<_ACEOF
3708/* confdefs.h. */
3709_ACEOF
3710cat confdefs.h >>conftest.$ac_ext
3711cat >>conftest.$ac_ext <<_ACEOF
3712/* end confdefs.h. */
3713#ifdef __STDC__
3714# include <limits.h>
3715#else
3716# include <assert.h>
3717#endif
3718 Syntax error
3719_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003720if { (ac_try="$ac_cpp conftest.$ac_ext"
3721case "(($ac_try" in
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3724esac
3725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003727 ac_status=$?
3728 grep -v '^ *+' conftest.er1 >conftest.err
3729 rm -f conftest.er1
3730 cat conftest.err >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } >/dev/null; then
3733 if test -s conftest.err; then
3734 ac_cpp_err=$ac_c_preproc_warn_flag
3735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3736 else
3737 ac_cpp_err=
3738 fi
3739else
3740 ac_cpp_err=yes
3741fi
3742if test -z "$ac_cpp_err"; then
3743 :
3744else
3745 echo "$as_me: failed program was:" >&5
3746sed 's/^/| /' conftest.$ac_ext >&5
3747
3748 # Broken: fails on valid input.
3749continue
3750fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003751
brynercb91a2f2006-08-25 21:14:45 +00003752rm -f conftest.err conftest.$ac_ext
3753
mmentovai8c2a4de2006-09-20 16:20:15 +00003754 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00003755 # can be detected and how.
3756 cat >conftest.$ac_ext <<_ACEOF
3757/* confdefs.h. */
3758_ACEOF
3759cat confdefs.h >>conftest.$ac_ext
3760cat >>conftest.$ac_ext <<_ACEOF
3761/* end confdefs.h. */
3762#include <ac_nonexistent.h>
3763_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003764if { (ac_try="$ac_cpp conftest.$ac_ext"
3765case "(($ac_try" in
3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767 *) ac_try_echo=$ac_try;;
3768esac
3769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003771 ac_status=$?
3772 grep -v '^ *+' conftest.er1 >conftest.err
3773 rm -f conftest.er1
3774 cat conftest.err >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } >/dev/null; then
3777 if test -s conftest.err; then
3778 ac_cpp_err=$ac_c_preproc_warn_flag
3779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3780 else
3781 ac_cpp_err=
3782 fi
3783else
3784 ac_cpp_err=yes
3785fi
3786if test -z "$ac_cpp_err"; then
3787 # Broken: success on invalid input.
3788continue
3789else
3790 echo "$as_me: failed program was:" >&5
3791sed 's/^/| /' conftest.$ac_ext >&5
3792
3793 # Passes both tests.
3794ac_preproc_ok=:
3795break
3796fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003797
brynercb91a2f2006-08-25 21:14:45 +00003798rm -f conftest.err conftest.$ac_ext
3799
3800done
3801# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3802rm -f conftest.err conftest.$ac_ext
3803if $ac_preproc_ok; then
3804 :
3805else
3806 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3807See \`config.log' for more details." >&5
3808echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3809See \`config.log' for more details." >&2;}
3810 { (exit 1); exit 1; }; }
3811fi
3812
3813ac_ext=c
3814ac_cpp='$CPP $CPPFLAGS'
3815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818
mmentovai8c2a4de2006-09-20 16:20:15 +00003819ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00003820ac_cpp='$CXXCPP $CPPFLAGS'
3821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00003824if test -z "$CXX"; then
3825 if test -n "$CCC"; then
3826 CXX=$CCC
3827 else
3828 if test -n "$ac_tool_prefix"; then
3829 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
brynercb91a2f2006-08-25 21:14:45 +00003830 do
3831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3832set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00003833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003835if test "${ac_cv_prog_CXX+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3837else
3838 if test -n "$CXX"; then
3839 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3840else
3841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842for as_dir in $PATH
3843do
3844 IFS=$as_save_IFS
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00003847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003848 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3850 break 2
3851 fi
3852done
3853done
mmentovai8c2a4de2006-09-20 16:20:15 +00003854IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003855
3856fi
3857fi
3858CXX=$ac_cv_prog_CXX
3859if test -n "$CXX"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003860 { echo "$as_me:$LINENO: result: $CXX" >&5
3861echo "${ECHO_T}$CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003862else
mmentovai8c2a4de2006-09-20 16:20:15 +00003863 { echo "$as_me:$LINENO: result: no" >&5
3864echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003865fi
3866
mmentovai8c2a4de2006-09-20 16:20:15 +00003867
brynercb91a2f2006-08-25 21:14:45 +00003868 test -n "$CXX" && break
3869 done
3870fi
3871if test -z "$CXX"; then
3872 ac_ct_CXX=$CXX
mmentovai8c2a4de2006-09-20 16:20:15 +00003873 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
brynercb91a2f2006-08-25 21:14:45 +00003874do
3875 # Extract the first word of "$ac_prog", so it can be a program name with args.
3876set dummy $ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00003877{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003879if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881else
3882 if test -n "$ac_ct_CXX"; then
3883 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3884else
3885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886for as_dir in $PATH
3887do
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00003891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003892 ac_cv_prog_ac_ct_CXX="$ac_prog"
3893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 break 2
3895 fi
3896done
3897done
mmentovai8c2a4de2006-09-20 16:20:15 +00003898IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003899
3900fi
3901fi
3902ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3903if test -n "$ac_ct_CXX"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003904 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3905echo "${ECHO_T}$ac_ct_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003906else
mmentovai8c2a4de2006-09-20 16:20:15 +00003907 { echo "$as_me:$LINENO: result: no" >&5
3908echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003909fi
3910
mmentovai8c2a4de2006-09-20 16:20:15 +00003911
brynercb91a2f2006-08-25 21:14:45 +00003912 test -n "$ac_ct_CXX" && break
3913done
brynercb91a2f2006-08-25 21:14:45 +00003914
mmentovai8c2a4de2006-09-20 16:20:15 +00003915 if test "x$ac_ct_CXX" = x; then
3916 CXX="g++"
3917 else
3918 case $cross_compiling:$ac_tool_warned in
3919yes:)
3920{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3921whose name does not start with the host triplet. If you think this
3922configuration is useful to you, please write to autoconf@gnu.org." >&5
3923echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3924whose name does not start with the host triplet. If you think this
3925configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3926ac_tool_warned=yes ;;
3927esac
3928 CXX=$ac_ct_CXX
3929 fi
brynercb91a2f2006-08-25 21:14:45 +00003930fi
3931
mmentovai8c2a4de2006-09-20 16:20:15 +00003932 fi
3933fi
brynercb91a2f2006-08-25 21:14:45 +00003934# Provide some information about the compiler.
mmentovai8c2a4de2006-09-20 16:20:15 +00003935echo "$as_me:$LINENO: checking for C++ compiler version" >&5
brynercb91a2f2006-08-25 21:14:45 +00003936ac_compiler=`set X $ac_compile; echo $2`
mmentovai8c2a4de2006-09-20 16:20:15 +00003937{ (ac_try="$ac_compiler --version >&5"
3938case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941esac
3942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3943 (eval "$ac_compiler --version >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }
mmentovai8c2a4de2006-09-20 16:20:15 +00003947{ (ac_try="$ac_compiler -v >&5"
3948case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951esac
3952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953 (eval "$ac_compiler -v >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003954 ac_status=$?
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }
mmentovai8c2a4de2006-09-20 16:20:15 +00003957{ (ac_try="$ac_compiler -V >&5"
3958case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961esac
3962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963 (eval "$ac_compiler -V >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }
3967
mmentovai8c2a4de2006-09-20 16:20:15 +00003968{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3969echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003970if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972else
3973 cat >conftest.$ac_ext <<_ACEOF
3974/* confdefs.h. */
3975_ACEOF
3976cat confdefs.h >>conftest.$ac_ext
3977cat >>conftest.$ac_ext <<_ACEOF
3978/* end confdefs.h. */
3979
3980int
3981main ()
3982{
3983#ifndef __GNUC__
3984 choke me
3985#endif
3986
3987 ;
3988 return 0;
3989}
3990_ACEOF
3991rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00003992if { (ac_try="$ac_compile"
3993case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996esac
3997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003999 ac_status=$?
4000 grep -v '^ *+' conftest.er1 >conftest.err
4001 rm -f conftest.er1
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00004005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4006 { (case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4009esac
4010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4011 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00004012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; } &&
4015 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00004016 { (case "(($ac_try" in
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4019esac
4020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00004022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4025 ac_compiler_gnu=yes
4026else
4027 echo "$as_me: failed program was:" >&5
4028sed 's/^/| /' conftest.$ac_ext >&5
4029
mmentovai8c2a4de2006-09-20 16:20:15 +00004030 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00004031fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004032
4033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004034ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4035
4036fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004037{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4038echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004039GXX=`test $ac_compiler_gnu = yes && echo yes`
4040ac_test_CXXFLAGS=${CXXFLAGS+set}
4041ac_save_CXXFLAGS=$CXXFLAGS
mmentovai8c2a4de2006-09-20 16:20:15 +00004042{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4043echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004044if test "${ac_cv_prog_cxx_g+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046else
mmentovai8c2a4de2006-09-20 16:20:15 +00004047 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4048 ac_cxx_werror_flag=yes
4049 ac_cv_prog_cxx_g=no
4050 CXXFLAGS="-g"
4051 cat >conftest.$ac_ext <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00004052/* confdefs.h. */
4053_ACEOF
4054cat confdefs.h >>conftest.$ac_ext
4055cat >>conftest.$ac_ext <<_ACEOF
4056/* end confdefs.h. */
4057
4058int
4059main ()
4060{
4061
4062 ;
4063 return 0;
4064}
4065_ACEOF
4066rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00004067if { (ac_try="$ac_compile"
4068case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071esac
4072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00004074 ac_status=$?
4075 grep -v '^ *+' conftest.er1 >conftest.err
4076 rm -f conftest.er1
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00004080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4081 { (case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4084esac
4085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00004087 ac_status=$?
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; } &&
4090 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00004091 { (case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094esac
4095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00004097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4100 ac_cv_prog_cxx_g=yes
4101else
4102 echo "$as_me: failed program was:" >&5
4103sed 's/^/| /' conftest.$ac_ext >&5
4104
mmentovai8c2a4de2006-09-20 16:20:15 +00004105 CXXFLAGS=""
4106 cat >conftest.$ac_ext <<_ACEOF
4107/* confdefs.h. */
4108_ACEOF
4109cat confdefs.h >>conftest.$ac_ext
4110cat >>conftest.$ac_ext <<_ACEOF
4111/* end confdefs.h. */
4112
4113int
4114main ()
4115{
4116
4117 ;
4118 return 0;
4119}
4120_ACEOF
4121rm -f conftest.$ac_objext
4122if { (ac_try="$ac_compile"
4123case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126esac
4127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_compile") 2>conftest.er1
4129 ac_status=$?
4130 grep -v '^ *+' conftest.er1 >conftest.err
4131 rm -f conftest.er1
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } &&
4135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139esac
4140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; } &&
4145 { ac_try='test -s conftest.$ac_objext'
4146 { (case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149esac
4150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_try") 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 :
4156else
4157 echo "$as_me: failed program was:" >&5
4158sed 's/^/| /' conftest.$ac_ext >&5
4159
4160 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4161 CXXFLAGS="-g"
4162 cat >conftest.$ac_ext <<_ACEOF
4163/* confdefs.h. */
4164_ACEOF
4165cat confdefs.h >>conftest.$ac_ext
4166cat >>conftest.$ac_ext <<_ACEOF
4167/* end confdefs.h. */
4168
4169int
4170main ()
4171{
4172
4173 ;
4174 return 0;
4175}
4176_ACEOF
4177rm -f conftest.$ac_objext
4178if { (ac_try="$ac_compile"
4179case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4182esac
4183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_compile") 2>conftest.er1
4185 ac_status=$?
4186 grep -v '^ *+' conftest.er1 >conftest.err
4187 rm -f conftest.er1
4188 cat conftest.err >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } &&
4191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4192 { (case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195esac
4196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_try") 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; } &&
4201 { ac_try='test -s conftest.$ac_objext'
4202 { (case "(($ac_try" in
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4205esac
4206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_try") 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4211 ac_cv_prog_cxx_g=yes
4212else
4213 echo "$as_me: failed program was:" >&5
4214sed 's/^/| /' conftest.$ac_ext >&5
4215
4216
brynercb91a2f2006-08-25 21:14:45 +00004217fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004218
4219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004220fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004221
4222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223fi
4224
4225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4227fi
4228{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4229echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004230if test "$ac_test_CXXFLAGS" = set; then
4231 CXXFLAGS=$ac_save_CXXFLAGS
4232elif test $ac_cv_prog_cxx_g = yes; then
4233 if test "$GXX" = yes; then
4234 CXXFLAGS="-g -O2"
4235 else
4236 CXXFLAGS="-g"
4237 fi
4238else
4239 if test "$GXX" = yes; then
4240 CXXFLAGS="-O2"
4241 else
4242 CXXFLAGS=
4243 fi
4244fi
brynercb91a2f2006-08-25 21:14:45 +00004245ac_ext=c
4246ac_cpp='$CPP $CPPFLAGS'
4247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250
4251depcc="$CXX" am_compiler_list=
4252
mmentovai8c2a4de2006-09-20 16:20:15 +00004253{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4254echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004255if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4257else
4258 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4259 # We make a subdir and do the tests there. Otherwise we can end up
4260 # making bogus files that we don't know about and never remove. For
4261 # instance it was reported that on HP-UX the gcc test will end up
4262 # making a dummy file named `D' -- because `-MD' means `put the output
4263 # in D'.
4264 mkdir conftest.dir
4265 # Copy depcomp to subdir because otherwise we won't find it if we're
4266 # using a relative directory.
4267 cp "$am_depcomp" conftest.dir
4268 cd conftest.dir
4269 # We will build objects and dependencies in a subdirectory because
4270 # it helps to detect inapplicable dependency modes. For instance
4271 # both Tru64's cc and ICC support -MD to output dependencies as a
4272 # side effect of compilation, but ICC will put the dependencies in
4273 # the current directory while Tru64 will put them in the object
4274 # directory.
4275 mkdir sub
4276
4277 am_cv_CXX_dependencies_compiler_type=none
4278 if test "$am_compiler_list" = ""; then
4279 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4280 fi
4281 for depmode in $am_compiler_list; do
4282 # Setup a source with many dependencies, because some compilers
4283 # like to wrap large dependency lists on column 80 (with \), and
4284 # we should not choose a depcomp mode which is confused by this.
4285 #
4286 # We need to recreate these files for each test, as the compiler may
4287 # overwrite some of them when testing with obscure command lines.
4288 # This happens at least with the AIX C compiler.
4289 : > sub/conftest.c
4290 for i in 1 2 3 4 5 6; do
4291 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4292 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4293 # Solaris 8's {/usr,}/bin/sh.
4294 touch sub/conftst$i.h
4295 done
4296 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4297
4298 case $depmode in
4299 nosideeffect)
4300 # after this tag, mechanisms are not by side-effect, so they'll
4301 # only be used when explicitly requested
4302 if test "x$enable_dependency_tracking" = xyes; then
4303 continue
4304 else
4305 break
4306 fi
4307 ;;
4308 none) break ;;
4309 esac
4310 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4311 # mode. It turns out that the SunPro C++ compiler does not properly
4312 # handle `-M -o', and we need to detect this.
4313 if depmode=$depmode \
4314 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4315 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4316 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4317 >/dev/null 2>conftest.err &&
4318 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4319 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4320 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4321 # icc doesn't choke on unknown options, it will just issue warnings
4322 # or remarks (even with -Werror). So we grep stderr for any message
4323 # that says an option was ignored or not supported.
4324 # When given -MP, icc 7.0 and 7.1 complain thusly:
4325 # icc: Command line warning: ignoring option '-M'; no argument required
4326 # The diagnosis changed in icc 8.0:
4327 # icc: Command line remark: option '-MP' not supported
4328 if (grep 'ignoring option' conftest.err ||
4329 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4330 am_cv_CXX_dependencies_compiler_type=$depmode
4331 break
4332 fi
4333 fi
4334 done
4335
4336 cd ..
4337 rm -rf conftest.dir
4338else
4339 am_cv_CXX_dependencies_compiler_type=none
4340fi
4341
4342fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004343{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4344echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004345CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4346
4347
4348
4349if
4350 test "x$enable_dependency_tracking" != xno \
4351 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4352 am__fastdepCXX_TRUE=
4353 am__fastdepCXX_FALSE='#'
4354else
4355 am__fastdepCXX_TRUE='#'
4356 am__fastdepCXX_FALSE=
4357fi
4358
4359
4360
mmentovai8c2a4de2006-09-20 16:20:15 +00004361# Check whether --enable-shared was given.
brynercb91a2f2006-08-25 21:14:45 +00004362if test "${enable_shared+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004363 enableval=$enable_shared; p=${PACKAGE-default}
brynercb91a2f2006-08-25 21:14:45 +00004364 case $enableval in
4365 yes) enable_shared=yes ;;
4366 no) enable_shared=no ;;
4367 *)
4368 enable_shared=no
4369 # Look at the argument we got. We use all the common list separators.
4370 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4371 for pkg in $enableval; do
4372 IFS="$lt_save_ifs"
4373 if test "X$pkg" = "X$p"; then
4374 enable_shared=yes
4375 fi
4376 done
4377 IFS="$lt_save_ifs"
4378 ;;
4379 esac
4380else
4381 enable_shared=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00004382fi
brynercb91a2f2006-08-25 21:14:45 +00004383
mmentovai8c2a4de2006-09-20 16:20:15 +00004384
4385# Check whether --enable-static was given.
brynercb91a2f2006-08-25 21:14:45 +00004386if test "${enable_static+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004387 enableval=$enable_static; p=${PACKAGE-default}
brynercb91a2f2006-08-25 21:14:45 +00004388 case $enableval in
4389 yes) enable_static=yes ;;
4390 no) enable_static=no ;;
4391 *)
4392 enable_static=no
4393 # Look at the argument we got. We use all the common list separators.
4394 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4395 for pkg in $enableval; do
4396 IFS="$lt_save_ifs"
4397 if test "X$pkg" = "X$p"; then
4398 enable_static=yes
4399 fi
4400 done
4401 IFS="$lt_save_ifs"
4402 ;;
4403 esac
4404else
4405 enable_static=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00004406fi
brynercb91a2f2006-08-25 21:14:45 +00004407
mmentovai8c2a4de2006-09-20 16:20:15 +00004408
4409# Check whether --enable-fast-install was given.
brynercb91a2f2006-08-25 21:14:45 +00004410if test "${enable_fast_install+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004411 enableval=$enable_fast_install; p=${PACKAGE-default}
brynercb91a2f2006-08-25 21:14:45 +00004412 case $enableval in
4413 yes) enable_fast_install=yes ;;
4414 no) enable_fast_install=no ;;
4415 *)
4416 enable_fast_install=no
4417 # Look at the argument we got. We use all the common list separators.
4418 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4419 for pkg in $enableval; do
4420 IFS="$lt_save_ifs"
4421 if test "X$pkg" = "X$p"; then
4422 enable_fast_install=yes
4423 fi
4424 done
4425 IFS="$lt_save_ifs"
4426 ;;
4427 esac
4428else
4429 enable_fast_install=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00004430fi
4431
brynercb91a2f2006-08-25 21:14:45 +00004432
4433# Make sure we can run config.sub.
mmentovai8c2a4de2006-09-20 16:20:15 +00004434$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4435 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4436echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00004437 { (exit 1); exit 1; }; }
4438
mmentovai8c2a4de2006-09-20 16:20:15 +00004439{ echo "$as_me:$LINENO: checking build system type" >&5
4440echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004441if test "${ac_cv_build+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443else
mmentovai8c2a4de2006-09-20 16:20:15 +00004444 ac_build_alias=$build_alias
4445test "x$ac_build_alias" = x &&
4446 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4447test "x$ac_build_alias" = x &&
brynercb91a2f2006-08-25 21:14:45 +00004448 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4449echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4450 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004451ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4452 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4453echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00004454 { (exit 1); exit 1; }; }
4455
4456fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004457{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4458echo "${ECHO_T}$ac_cv_build" >&6; }
4459case $ac_cv_build in
4460*-*-*) ;;
4461*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4462echo "$as_me: error: invalid value of canonical build" >&2;}
4463 { (exit 1); exit 1; }; };;
4464esac
brynercb91a2f2006-08-25 21:14:45 +00004465build=$ac_cv_build
mmentovai8c2a4de2006-09-20 16:20:15 +00004466ac_save_IFS=$IFS; IFS='-'
4467set x $ac_cv_build
4468shift
4469build_cpu=$1
4470build_vendor=$2
4471shift; shift
4472# Remember, the first character of IFS is used to create $*,
4473# except with old shells:
4474build_os=$*
4475IFS=$ac_save_IFS
4476case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
brynercb91a2f2006-08-25 21:14:45 +00004477
4478
mmentovai8c2a4de2006-09-20 16:20:15 +00004479{ echo "$as_me:$LINENO: checking host system type" >&5
4480echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004481if test "${ac_cv_host+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483else
mmentovai8c2a4de2006-09-20 16:20:15 +00004484 if test "x$host_alias" = x; then
4485 ac_cv_host=$ac_cv_build
4486else
4487 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4488 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4489echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00004490 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004491fi
brynercb91a2f2006-08-25 21:14:45 +00004492
4493fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004494{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4495echo "${ECHO_T}$ac_cv_host" >&6; }
4496case $ac_cv_host in
4497*-*-*) ;;
4498*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4499echo "$as_me: error: invalid value of canonical host" >&2;}
4500 { (exit 1); exit 1; }; };;
4501esac
brynercb91a2f2006-08-25 21:14:45 +00004502host=$ac_cv_host
mmentovai8c2a4de2006-09-20 16:20:15 +00004503ac_save_IFS=$IFS; IFS='-'
4504set x $ac_cv_host
4505shift
4506host_cpu=$1
4507host_vendor=$2
4508shift; shift
4509# Remember, the first character of IFS is used to create $*,
4510# except with old shells:
4511host_os=$*
4512IFS=$ac_save_IFS
4513case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
brynercb91a2f2006-08-25 21:14:45 +00004514
4515
mmentovai8c2a4de2006-09-20 16:20:15 +00004516{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4517echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004518if test "${lt_cv_path_SED+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4520else
4521 # Loop through the user's path and test for sed and gsed.
4522# Then use that list of sed's as ones to test for truncation.
4523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH
4525do
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for lt_ac_prog in sed gsed; do
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4531 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4532 fi
4533 done
4534 done
4535done
4536lt_ac_max=0
4537lt_ac_count=0
4538# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4539# along with /bin/sed that truncates output.
4540for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
mmentovai8c2a4de2006-09-20 16:20:15 +00004541 test ! -f $lt_ac_sed && continue
brynercb91a2f2006-08-25 21:14:45 +00004542 cat /dev/null > conftest.in
4543 lt_ac_count=0
4544 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4545 # Check for GNU sed and select it if it is found.
4546 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4547 lt_cv_path_SED=$lt_ac_sed
4548 break
4549 fi
4550 while true; do
4551 cat conftest.in conftest.in >conftest.tmp
4552 mv conftest.tmp conftest.in
4553 cp conftest.in conftest.nl
4554 echo >>conftest.nl
4555 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4556 cmp -s conftest.out conftest.nl || break
4557 # 10000 chars as input seems more than enough
4558 test $lt_ac_count -gt 10 && break
4559 lt_ac_count=`expr $lt_ac_count + 1`
4560 if test $lt_ac_count -gt $lt_ac_max; then
4561 lt_ac_max=$lt_ac_count
4562 lt_cv_path_SED=$lt_ac_sed
4563 fi
4564 done
4565done
brynercb91a2f2006-08-25 21:14:45 +00004566
4567fi
4568
mmentovai8c2a4de2006-09-20 16:20:15 +00004569SED=$lt_cv_path_SED
4570{ echo "$as_me:$LINENO: result: $SED" >&5
4571echo "${ECHO_T}$SED" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004572
mmentovai8c2a4de2006-09-20 16:20:15 +00004573{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4574echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4575if test "${ac_cv_path_GREP+set}" = set; then
brynercb91a2f2006-08-25 21:14:45 +00004576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577else
mmentovai8c2a4de2006-09-20 16:20:15 +00004578 # Extract the first word of "grep ggrep" to use in msg output
4579if test -z "$GREP"; then
4580set dummy grep ggrep; ac_prog_name=$2
4581if test "${ac_cv_path_GREP+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
4584 ac_path_GREP_found=false
4585# Loop through the user's path and test for each of PROGNAME-LIST
4586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4588do
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_prog in grep ggrep; do
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4594 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4595 # Check for GNU ac_path_GREP and select it if it is found.
4596 # Check for GNU $ac_path_GREP
4597case `"$ac_path_GREP" --version 2>&1` in
4598*GNU*)
4599 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4600*)
4601 ac_count=0
4602 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4603 while :
4604 do
4605 cat "conftest.in" "conftest.in" >"conftest.tmp"
4606 mv "conftest.tmp" "conftest.in"
4607 cp "conftest.in" "conftest.nl"
4608 echo 'GREP' >> "conftest.nl"
4609 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4611 ac_count=`expr $ac_count + 1`
4612 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4613 # Best one so far, save it but keep looking for a better one
4614 ac_cv_path_GREP="$ac_path_GREP"
4615 ac_path_GREP_max=$ac_count
brynercb91a2f2006-08-25 21:14:45 +00004616 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004617 # 10*(2^10) chars as input seems more than enough
4618 test $ac_count -gt 10 && break
4619 done
4620 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4621esac
4622
4623
4624 $ac_path_GREP_found && break 3
4625 done
4626done
4627
4628done
4629IFS=$as_save_IFS
4630
4631
brynercb91a2f2006-08-25 21:14:45 +00004632fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004633
4634GREP="$ac_cv_path_GREP"
4635if test -z "$GREP"; then
4636 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4637echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4638 { (exit 1); exit 1; }; }
4639fi
4640
4641else
4642 ac_cv_path_GREP=$GREP
4643fi
4644
4645
4646fi
4647{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4648echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4649 GREP="$ac_cv_path_GREP"
4650
4651
4652{ echo "$as_me:$LINENO: checking for egrep" >&5
4653echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4654if test "${ac_cv_path_EGREP+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4656else
4657 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4658 then ac_cv_path_EGREP="$GREP -E"
4659 else
4660 # Extract the first word of "egrep" to use in msg output
4661if test -z "$EGREP"; then
4662set dummy egrep; ac_prog_name=$2
4663if test "${ac_cv_path_EGREP+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665else
4666 ac_path_EGREP_found=false
4667# Loop through the user's path and test for each of PROGNAME-LIST
4668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4670do
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_prog in egrep; do
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4676 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4677 # Check for GNU ac_path_EGREP and select it if it is found.
4678 # Check for GNU $ac_path_EGREP
4679case `"$ac_path_EGREP" --version 2>&1` in
4680*GNU*)
4681 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4682*)
4683 ac_count=0
4684 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4685 while :
4686 do
4687 cat "conftest.in" "conftest.in" >"conftest.tmp"
4688 mv "conftest.tmp" "conftest.in"
4689 cp "conftest.in" "conftest.nl"
4690 echo 'EGREP' >> "conftest.nl"
4691 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4693 ac_count=`expr $ac_count + 1`
4694 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4695 # Best one so far, save it but keep looking for a better one
4696 ac_cv_path_EGREP="$ac_path_EGREP"
4697 ac_path_EGREP_max=$ac_count
4698 fi
4699 # 10*(2^10) chars as input seems more than enough
4700 test $ac_count -gt 10 && break
4701 done
4702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4703esac
4704
4705
4706 $ac_path_EGREP_found && break 3
4707 done
4708done
4709
4710done
4711IFS=$as_save_IFS
4712
4713
4714fi
4715
4716EGREP="$ac_cv_path_EGREP"
4717if test -z "$EGREP"; then
4718 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4719echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4720 { (exit 1); exit 1; }; }
4721fi
4722
4723else
4724 ac_cv_path_EGREP=$EGREP
4725fi
4726
4727
4728 fi
4729fi
4730{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4731echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4732 EGREP="$ac_cv_path_EGREP"
brynercb91a2f2006-08-25 21:14:45 +00004733
4734
4735
mmentovai8c2a4de2006-09-20 16:20:15 +00004736# Check whether --with-gnu-ld was given.
brynercb91a2f2006-08-25 21:14:45 +00004737if test "${with_gnu_ld+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004738 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +00004739else
4740 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +00004741fi
4742
brynercb91a2f2006-08-25 21:14:45 +00004743ac_prog=ld
4744if test "$GCC" = yes; then
4745 # Check if gcc -print-prog-name=ld gives a path.
mmentovai8c2a4de2006-09-20 16:20:15 +00004746 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4747echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004748 case $host in
4749 *-*-mingw*)
4750 # gcc leaves a trailing carriage return which upsets mingw
4751 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4752 *)
4753 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4754 esac
4755 case $ac_prog in
4756 # Accept absolute paths.
4757 [\\/]* | ?:[\\/]*)
4758 re_direlt='/[^/][^/]*/\.\./'
4759 # Canonicalize the pathname of ld
4760 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4761 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4762 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4763 done
4764 test -z "$LD" && LD="$ac_prog"
4765 ;;
4766 "")
4767 # If it fails, then pretend we aren't using GCC.
4768 ac_prog=ld
4769 ;;
4770 *)
4771 # If it is relative, then search for the first ld in PATH.
4772 with_gnu_ld=unknown
4773 ;;
4774 esac
4775elif test "$with_gnu_ld" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004776 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4777echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004778else
mmentovai8c2a4de2006-09-20 16:20:15 +00004779 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4780echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004781fi
4782if test "${lt_cv_path_LD+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784else
4785 if test -z "$LD"; then
4786 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4787 for ac_dir in $PATH; do
4788 IFS="$lt_save_ifs"
4789 test -z "$ac_dir" && ac_dir=.
4790 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4791 lt_cv_path_LD="$ac_dir/$ac_prog"
4792 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +00004793 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004794 # Break only if it was the GNU/non-GNU ld that we prefer.
4795 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4796 *GNU* | *'with BFD'*)
4797 test "$with_gnu_ld" != no && break
4798 ;;
4799 *)
4800 test "$with_gnu_ld" != yes && break
4801 ;;
4802 esac
4803 fi
4804 done
4805 IFS="$lt_save_ifs"
4806else
4807 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4808fi
4809fi
4810
4811LD="$lt_cv_path_LD"
4812if test -n "$LD"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004813 { echo "$as_me:$LINENO: result: $LD" >&5
4814echo "${ECHO_T}$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004815else
mmentovai8c2a4de2006-09-20 16:20:15 +00004816 { echo "$as_me:$LINENO: result: no" >&5
4817echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004818fi
4819test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4820echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4821 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004822{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4823echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004824if test "${lt_cv_prog_gnu_ld+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
mmentovai8c2a4de2006-09-20 16:20:15 +00004827 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004828case `$LD -v 2>&1 </dev/null` in
4829*GNU* | *'with BFD'*)
4830 lt_cv_prog_gnu_ld=yes
4831 ;;
4832*)
4833 lt_cv_prog_gnu_ld=no
4834 ;;
4835esac
4836fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004837{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4838echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004839with_gnu_ld=$lt_cv_prog_gnu_ld
4840
4841
mmentovai8c2a4de2006-09-20 16:20:15 +00004842{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4843echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004844if test "${lt_cv_ld_reload_flag+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4846else
4847 lt_cv_ld_reload_flag='-r'
4848fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004849{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4850echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004851reload_flag=$lt_cv_ld_reload_flag
4852case $reload_flag in
4853"" | " "*) ;;
4854*) reload_flag=" $reload_flag" ;;
4855esac
4856reload_cmds='$LD$reload_flag -o $output$reload_objs'
mmentovai8c2a4de2006-09-20 16:20:15 +00004857case $host_os in
4858 darwin*)
4859 if test "$GCC" = yes; then
4860 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4861 else
4862 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4863 fi
4864 ;;
4865esac
brynercb91a2f2006-08-25 21:14:45 +00004866
mmentovai8c2a4de2006-09-20 16:20:15 +00004867{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4868echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004869if test "${lt_cv_path_NM+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4871else
4872 if test -n "$NM"; then
4873 # Let the user override the test.
4874 lt_cv_path_NM="$NM"
4875else
mmentovai8c2a4de2006-09-20 16:20:15 +00004876 lt_nm_to_check="${ac_tool_prefix}nm"
4877 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4878 lt_nm_to_check="$lt_nm_to_check nm"
4879 fi
4880 for lt_tmp_nm in $lt_nm_to_check; do
4881 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4882 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4883 IFS="$lt_save_ifs"
4884 test -z "$ac_dir" && ac_dir=.
4885 tmp_nm="$ac_dir/$lt_tmp_nm"
4886 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4887 # Check to see if the nm accepts a BSD-compat flag.
4888 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4889 # nm: unknown option "B" ignored
4890 # Tru64's nm complains that /dev/null is an invalid object file
4891 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4892 */dev/null* | *'Invalid file or object type'*)
4893 lt_cv_path_NM="$tmp_nm -B"
brynercb91a2f2006-08-25 21:14:45 +00004894 break
4895 ;;
4896 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00004897 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4898 */dev/null*)
4899 lt_cv_path_NM="$tmp_nm -p"
4900 break
4901 ;;
4902 *)
4903 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4904 continue # so that we can try to find one that supports BSD flags
4905 ;;
4906 esac
brynercb91a2f2006-08-25 21:14:45 +00004907 ;;
4908 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00004909 fi
4910 done
4911 IFS="$lt_save_ifs"
brynercb91a2f2006-08-25 21:14:45 +00004912 done
brynercb91a2f2006-08-25 21:14:45 +00004913 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4914fi
4915fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004916{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4917echo "${ECHO_T}$lt_cv_path_NM" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004918NM="$lt_cv_path_NM"
4919
mmentovai8c2a4de2006-09-20 16:20:15 +00004920{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4921echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004922LN_S=$as_ln_s
4923if test "$LN_S" = "ln -s"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004924 { echo "$as_me:$LINENO: result: yes" >&5
4925echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004926else
mmentovai8c2a4de2006-09-20 16:20:15 +00004927 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4928echo "${ECHO_T}no, using $LN_S" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004929fi
4930
mmentovai8c2a4de2006-09-20 16:20:15 +00004931{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4932echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004933if test "${lt_cv_deplibs_check_method+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4935else
4936 lt_cv_file_magic_cmd='$MAGIC_CMD'
4937lt_cv_file_magic_test_file=
4938lt_cv_deplibs_check_method='unknown'
4939# Need to set the preceding variable on all platforms that support
4940# interlibrary dependencies.
4941# 'none' -- dependencies not supported.
4942# `unknown' -- same as none, but documents that we really don't know.
4943# 'pass_all' -- all dependencies passed with no checks.
4944# 'test_compile' -- check by making test program.
4945# 'file_magic [[regex]]' -- check by looking for files in library path
4946# which responds to the $file_magic_cmd with a given extended regex.
4947# If you have `file' or equivalent on your system and you're not sure
4948# whether `pass_all' will *always* work, you probably want this one.
4949
4950case $host_os in
4951aix4* | aix5*)
4952 lt_cv_deplibs_check_method=pass_all
4953 ;;
4954
4955beos*)
4956 lt_cv_deplibs_check_method=pass_all
4957 ;;
4958
mmentovai8c2a4de2006-09-20 16:20:15 +00004959bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00004960 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4961 lt_cv_file_magic_cmd='/usr/bin/file -L'
4962 lt_cv_file_magic_test_file=/shlib/libc.so
4963 ;;
4964
4965cygwin*)
4966 # func_win32_libid is a shell function defined in ltmain.sh
4967 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4968 lt_cv_file_magic_cmd='func_win32_libid'
4969 ;;
4970
4971mingw* | pw32*)
4972 # Base MSYS/MinGW do not provide the 'file' command needed by
4973 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4974 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4975 lt_cv_file_magic_cmd='$OBJDUMP -f'
4976 ;;
4977
4978darwin* | rhapsody*)
4979 lt_cv_deplibs_check_method=pass_all
4980 ;;
4981
mmentovai8c2a4de2006-09-20 16:20:15 +00004982freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +00004983 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4984 case $host_cpu in
4985 i*86 )
4986 # Not sure whether the presence of OpenBSD here was a mistake.
4987 # Let's accept both of them until this is cleared up.
mmentovai8c2a4de2006-09-20 16:20:15 +00004988 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
brynercb91a2f2006-08-25 21:14:45 +00004989 lt_cv_file_magic_cmd=/usr/bin/file
4990 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4991 ;;
4992 esac
4993 else
4994 lt_cv_deplibs_check_method=pass_all
4995 fi
4996 ;;
4997
4998gnu*)
4999 lt_cv_deplibs_check_method=pass_all
5000 ;;
5001
5002hpux10.20* | hpux11*)
5003 lt_cv_file_magic_cmd=/usr/bin/file
mmentovai8c2a4de2006-09-20 16:20:15 +00005004 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00005005 ia64*)
5006 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5007 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5008 ;;
5009 hppa*64*)
5010 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]'
5011 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5012 ;;
5013 *)
5014 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5015 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5016 ;;
5017 esac
5018 ;;
5019
mmentovai8c2a4de2006-09-20 16:20:15 +00005020interix3*)
5021 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5023 ;;
5024
brynercb91a2f2006-08-25 21:14:45 +00005025irix5* | irix6* | nonstopux*)
5026 case $LD in
5027 *-32|*"-32 ") libmagic=32-bit;;
5028 *-n32|*"-n32 ") libmagic=N32;;
5029 *-64|*"-64 ") libmagic=64-bit;;
5030 *) libmagic=never-match;;
5031 esac
5032 lt_cv_deplibs_check_method=pass_all
5033 ;;
5034
5035# This must be Linux ELF.
5036linux*)
5037 lt_cv_deplibs_check_method=pass_all
5038 ;;
5039
mmentovai8c2a4de2006-09-20 16:20:15 +00005040netbsd*)
brynercb91a2f2006-08-25 21:14:45 +00005041 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5042 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5043 else
5044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5045 fi
5046 ;;
5047
5048newos6*)
5049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5050 lt_cv_file_magic_cmd=/usr/bin/file
5051 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5052 ;;
5053
5054nto-qnx*)
5055 lt_cv_deplibs_check_method=unknown
5056 ;;
5057
5058openbsd*)
brynercb91a2f2006-08-25 21:14:45 +00005059 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005060 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005061 else
mmentovai8c2a4de2006-09-20 16:20:15 +00005062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005063 fi
5064 ;;
5065
5066osf3* | osf4* | osf5*)
5067 lt_cv_deplibs_check_method=pass_all
5068 ;;
5069
brynercb91a2f2006-08-25 21:14:45 +00005070solaris*)
5071 lt_cv_deplibs_check_method=pass_all
5072 ;;
5073
mmentovai8c2a4de2006-09-20 16:20:15 +00005074sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00005075 case $host_vendor in
5076 motorola)
5077 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]'
5078 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5079 ;;
5080 ncr)
5081 lt_cv_deplibs_check_method=pass_all
5082 ;;
5083 sequent)
5084 lt_cv_file_magic_cmd='/bin/file'
5085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5086 ;;
5087 sni)
5088 lt_cv_file_magic_cmd='/bin/file'
5089 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5090 lt_cv_file_magic_test_file=/lib/libc.so
5091 ;;
5092 siemens)
5093 lt_cv_deplibs_check_method=pass_all
5094 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005095 pc)
5096 lt_cv_deplibs_check_method=pass_all
5097 ;;
brynercb91a2f2006-08-25 21:14:45 +00005098 esac
5099 ;;
5100
mmentovai8c2a4de2006-09-20 16:20:15 +00005101sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
brynercb91a2f2006-08-25 21:14:45 +00005102 lt_cv_deplibs_check_method=pass_all
5103 ;;
5104esac
5105
5106fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005107{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5108echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005109file_magic_cmd=$lt_cv_file_magic_cmd
5110deplibs_check_method=$lt_cv_deplibs_check_method
5111test -z "$deplibs_check_method" && deplibs_check_method=unknown
5112
5113
5114
5115
5116# If no C compiler was specified, use CC.
5117LTCC=${LTCC-"$CC"}
5118
mmentovai8c2a4de2006-09-20 16:20:15 +00005119# If no C compiler flags were specified, use CFLAGS.
5120LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5121
brynercb91a2f2006-08-25 21:14:45 +00005122# Allow CC to be a program name with arguments.
5123compiler=$CC
5124
5125
mmentovai8c2a4de2006-09-20 16:20:15 +00005126# Check whether --enable-libtool-lock was given.
brynercb91a2f2006-08-25 21:14:45 +00005127if test "${enable_libtool_lock+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005128 enableval=$enable_libtool_lock;
5129fi
brynercb91a2f2006-08-25 21:14:45 +00005130
brynercb91a2f2006-08-25 21:14:45 +00005131test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5132
5133# Some flags need to be propagated to the compiler or linker for good
5134# libtool support.
5135case $host in
5136ia64-*-hpux*)
5137 # Find out which ABI we are using.
5138 echo 'int i;' > conftest.$ac_ext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5140 (eval $ac_compile) 2>&5
5141 ac_status=$?
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; then
5144 case `/usr/bin/file conftest.$ac_objext` in
5145 *ELF-32*)
5146 HPUX_IA64_MODE="32"
5147 ;;
5148 *ELF-64*)
5149 HPUX_IA64_MODE="64"
5150 ;;
5151 esac
5152 fi
5153 rm -rf conftest*
5154 ;;
5155*-*-irix6*)
5156 # Find out which ABI we are using.
mmentovai0dbedc92006-09-25 21:16:15 +00005157 echo '#line 5157 "configure"' > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5159 (eval $ac_compile) 2>&5
5160 ac_status=$?
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; then
5163 if test "$lt_cv_prog_gnu_ld" = yes; then
5164 case `/usr/bin/file conftest.$ac_objext` in
5165 *32-bit*)
5166 LD="${LD-ld} -melf32bsmip"
5167 ;;
5168 *N32*)
5169 LD="${LD-ld} -melf32bmipn32"
5170 ;;
5171 *64-bit*)
5172 LD="${LD-ld} -melf64bmip"
5173 ;;
5174 esac
5175 else
5176 case `/usr/bin/file conftest.$ac_objext` in
5177 *32-bit*)
5178 LD="${LD-ld} -32"
5179 ;;
5180 *N32*)
5181 LD="${LD-ld} -n32"
5182 ;;
5183 *64-bit*)
5184 LD="${LD-ld} -64"
5185 ;;
5186 esac
5187 fi
5188 fi
5189 rm -rf conftest*
5190 ;;
5191
5192x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5193 # Find out which ABI we are using.
5194 echo 'int i;' > conftest.$ac_ext
5195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5196 (eval $ac_compile) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005200 case `/usr/bin/file conftest.o` in
brynercb91a2f2006-08-25 21:14:45 +00005201 *32-bit*)
5202 case $host in
5203 x86_64-*linux*)
5204 LD="${LD-ld} -m elf_i386"
5205 ;;
5206 ppc64-*linux*|powerpc64-*linux*)
5207 LD="${LD-ld} -m elf32ppclinux"
5208 ;;
5209 s390x-*linux*)
5210 LD="${LD-ld} -m elf_s390"
5211 ;;
5212 sparc64-*linux*)
5213 LD="${LD-ld} -m elf32_sparc"
5214 ;;
5215 esac
5216 ;;
5217 *64-bit*)
5218 case $host in
5219 x86_64-*linux*)
5220 LD="${LD-ld} -m elf_x86_64"
5221 ;;
5222 ppc*-*linux*|powerpc*-*linux*)
5223 LD="${LD-ld} -m elf64ppc"
5224 ;;
5225 s390*-*linux*)
5226 LD="${LD-ld} -m elf64_s390"
5227 ;;
5228 sparc*-*linux*)
5229 LD="${LD-ld} -m elf64_sparc"
5230 ;;
5231 esac
5232 ;;
5233 esac
5234 fi
5235 rm -rf conftest*
5236 ;;
5237
5238*-*-sco3.2v5*)
5239 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5240 SAVE_CFLAGS="$CFLAGS"
5241 CFLAGS="$CFLAGS -belf"
mmentovai8c2a4de2006-09-20 16:20:15 +00005242 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5243echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005244if test "${lt_cv_cc_needs_belf+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5246else
5247 ac_ext=c
5248ac_cpp='$CPP $CPPFLAGS'
5249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5251ac_compiler_gnu=$ac_cv_c_compiler_gnu
5252
5253 cat >conftest.$ac_ext <<_ACEOF
5254/* confdefs.h. */
5255_ACEOF
5256cat confdefs.h >>conftest.$ac_ext
5257cat >>conftest.$ac_ext <<_ACEOF
5258/* end confdefs.h. */
5259
5260int
5261main ()
5262{
5263
5264 ;
5265 return 0;
5266}
5267_ACEOF
5268rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00005269if { (ac_try="$ac_link"
5270case "(($ac_try" in
5271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272 *) ac_try_echo=$ac_try;;
5273esac
5274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5275 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005276 ac_status=$?
5277 grep -v '^ *+' conftest.er1 >conftest.err
5278 rm -f conftest.er1
5279 cat conftest.err >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00005282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5283 { (case "(($ac_try" in
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5286esac
5287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; } &&
5292 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00005293 { (case "(($ac_try" in
5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5296esac
5297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; }; then
5302 lt_cv_cc_needs_belf=yes
5303else
5304 echo "$as_me: failed program was:" >&5
5305sed 's/^/| /' conftest.$ac_ext >&5
5306
mmentovai8c2a4de2006-09-20 16:20:15 +00005307 lt_cv_cc_needs_belf=no
brynercb91a2f2006-08-25 21:14:45 +00005308fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005309
5310rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00005311 conftest$ac_exeext conftest.$ac_ext
5312 ac_ext=c
5313ac_cpp='$CPP $CPPFLAGS'
5314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316ac_compiler_gnu=$ac_cv_c_compiler_gnu
5317
5318fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005319{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5320echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005321 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5322 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5323 CFLAGS="$SAVE_CFLAGS"
5324 fi
5325 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005326sparc*-*solaris*)
5327 # Find out which ABI we are using.
5328 echo 'int i;' > conftest.$ac_ext
5329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5330 (eval $ac_compile) 2>&5
5331 ac_status=$?
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; then
5334 case `/usr/bin/file conftest.o` in
5335 *64-bit*)
5336 case $lt_cv_prog_gnu_ld in
5337 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5338 *) LD="${LD-ld} -64" ;;
5339 esac
5340 ;;
5341 esac
5342 fi
5343 rm -rf conftest*
5344 ;;
5345
brynercb91a2f2006-08-25 21:14:45 +00005346
5347esac
5348
5349need_locks="$enable_libtool_lock"
5350
5351
5352
mmentovai8c2a4de2006-09-20 16:20:15 +00005353{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5354echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005355if test "${ac_cv_header_stdc+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357else
5358 cat >conftest.$ac_ext <<_ACEOF
5359/* confdefs.h. */
5360_ACEOF
5361cat confdefs.h >>conftest.$ac_ext
5362cat >>conftest.$ac_ext <<_ACEOF
5363/* end confdefs.h. */
5364#include <stdlib.h>
5365#include <stdarg.h>
5366#include <string.h>
5367#include <float.h>
5368
5369int
5370main ()
5371{
5372
5373 ;
5374 return 0;
5375}
5376_ACEOF
5377rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00005378if { (ac_try="$ac_compile"
5379case "(($ac_try" in
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5382esac
5383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005385 ac_status=$?
5386 grep -v '^ *+' conftest.er1 >conftest.err
5387 rm -f conftest.er1
5388 cat conftest.err >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00005391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5392 { (case "(($ac_try" in
5393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394 *) ac_try_echo=$ac_try;;
5395esac
5396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005398 ac_status=$?
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; } &&
5401 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00005402 { (case "(($ac_try" in
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5405esac
5406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005408 ac_status=$?
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; }; then
5411 ac_cv_header_stdc=yes
5412else
5413 echo "$as_me: failed program was:" >&5
5414sed 's/^/| /' conftest.$ac_ext >&5
5415
mmentovai8c2a4de2006-09-20 16:20:15 +00005416 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +00005417fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005418
5419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005420
5421if test $ac_cv_header_stdc = yes; then
5422 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5423 cat >conftest.$ac_ext <<_ACEOF
5424/* confdefs.h. */
5425_ACEOF
5426cat confdefs.h >>conftest.$ac_ext
5427cat >>conftest.$ac_ext <<_ACEOF
5428/* end confdefs.h. */
5429#include <string.h>
5430
5431_ACEOF
5432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5433 $EGREP "memchr" >/dev/null 2>&1; then
5434 :
5435else
5436 ac_cv_header_stdc=no
5437fi
5438rm -f conftest*
5439
5440fi
5441
5442if test $ac_cv_header_stdc = yes; then
5443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5444 cat >conftest.$ac_ext <<_ACEOF
5445/* confdefs.h. */
5446_ACEOF
5447cat confdefs.h >>conftest.$ac_ext
5448cat >>conftest.$ac_ext <<_ACEOF
5449/* end confdefs.h. */
5450#include <stdlib.h>
5451
5452_ACEOF
5453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5454 $EGREP "free" >/dev/null 2>&1; then
5455 :
5456else
5457 ac_cv_header_stdc=no
5458fi
5459rm -f conftest*
5460
5461fi
5462
5463if test $ac_cv_header_stdc = yes; then
5464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5465 if test "$cross_compiling" = yes; then
5466 :
5467else
5468 cat >conftest.$ac_ext <<_ACEOF
5469/* confdefs.h. */
5470_ACEOF
5471cat confdefs.h >>conftest.$ac_ext
5472cat >>conftest.$ac_ext <<_ACEOF
5473/* end confdefs.h. */
5474#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +00005475#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +00005476#if ((' ' & 0x0FF) == 0x020)
5477# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5478# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5479#else
5480# define ISLOWER(c) \
5481 (('a' <= (c) && (c) <= 'i') \
5482 || ('j' <= (c) && (c) <= 'r') \
5483 || ('s' <= (c) && (c) <= 'z'))
5484# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5485#endif
5486
5487#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5488int
5489main ()
5490{
5491 int i;
5492 for (i = 0; i < 256; i++)
5493 if (XOR (islower (i), ISLOWER (i))
5494 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +00005495 return 2;
5496 return 0;
brynercb91a2f2006-08-25 21:14:45 +00005497}
5498_ACEOF
5499rm -f conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00005500if { (ac_try="$ac_link"
5501case "(($ac_try" in
5502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5504esac
5505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005507 ac_status=$?
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00005510 { (case "(($ac_try" in
5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512 *) ac_try_echo=$ac_try;;
5513esac
5514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005516 ac_status=$?
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; }; then
5519 :
5520else
5521 echo "$as_me: program exited with status $ac_status" >&5
5522echo "$as_me: failed program was:" >&5
5523sed 's/^/| /' conftest.$ac_ext >&5
5524
5525( exit $ac_status )
5526ac_cv_header_stdc=no
5527fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005528rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5529fi
5530
5531
brynercb91a2f2006-08-25 21:14:45 +00005532fi
5533fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005534{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5535echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005536if test $ac_cv_header_stdc = yes; then
5537
5538cat >>confdefs.h <<\_ACEOF
5539#define STDC_HEADERS 1
5540_ACEOF
5541
5542fi
5543
5544# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5555 inttypes.h stdint.h unistd.h
5556do
5557as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mmentovai8c2a4de2006-09-20 16:20:15 +00005558{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
brynercb91a2f2006-08-25 21:14:45 +00005561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562else
5563 cat >conftest.$ac_ext <<_ACEOF
5564/* confdefs.h. */
5565_ACEOF
5566cat confdefs.h >>conftest.$ac_ext
5567cat >>conftest.$ac_ext <<_ACEOF
5568/* end confdefs.h. */
5569$ac_includes_default
5570
5571#include <$ac_header>
5572_ACEOF
5573rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00005574if { (ac_try="$ac_compile"
5575case "(($ac_try" in
5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577 *) ac_try_echo=$ac_try;;
5578esac
5579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005581 ac_status=$?
5582 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00005587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5588 { (case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5591esac
5592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; } &&
5597 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00005598 { (case "(($ac_try" in
5599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600 *) ac_try_echo=$ac_try;;
5601esac
5602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5603 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005604 ac_status=$?
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; }; then
5607 eval "$as_ac_Header=yes"
5608else
5609 echo "$as_me: failed program was:" >&5
5610sed 's/^/| /' conftest.$ac_ext >&5
5611
mmentovai8c2a4de2006-09-20 16:20:15 +00005612 eval "$as_ac_Header=no"
brynercb91a2f2006-08-25 21:14:45 +00005613fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005614
5615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005616fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005617ac_res=`eval echo '${'$as_ac_Header'}'`
5618 { echo "$as_me:$LINENO: result: $ac_res" >&5
5619echo "${ECHO_T}$ac_res" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005620if test `eval echo '${'$as_ac_Header'}'` = yes; then
5621 cat >>confdefs.h <<_ACEOF
5622#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5623_ACEOF
5624
5625fi
5626
5627done
5628
5629
5630
5631for ac_header in dlfcn.h
5632do
5633as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mmentovai8c2a4de2006-09-20 16:20:15 +00005634if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5637if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
brynercb91a2f2006-08-25 21:14:45 +00005638 echo $ECHO_N "(cached) $ECHO_C" >&6
5639fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005640ac_res=`eval echo '${'$as_ac_Header'}'`
5641 { echo "$as_me:$LINENO: result: $ac_res" >&5
5642echo "${ECHO_T}$ac_res" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005643else
5644 # Is the header compilable?
mmentovai8c2a4de2006-09-20 16:20:15 +00005645{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5646echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005647cat >conftest.$ac_ext <<_ACEOF
5648/* confdefs.h. */
5649_ACEOF
5650cat confdefs.h >>conftest.$ac_ext
5651cat >>conftest.$ac_ext <<_ACEOF
5652/* end confdefs.h. */
5653$ac_includes_default
5654#include <$ac_header>
5655_ACEOF
5656rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00005657if { (ac_try="$ac_compile"
5658case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661esac
5662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00005670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5671 { (case "(($ac_try" in
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5674esac
5675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; } &&
5680 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00005681 { (case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684esac
5685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005687 ac_status=$?
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; }; then
5690 ac_header_compiler=yes
5691else
5692 echo "$as_me: failed program was:" >&5
5693sed 's/^/| /' conftest.$ac_ext >&5
5694
mmentovai8c2a4de2006-09-20 16:20:15 +00005695 ac_header_compiler=no
brynercb91a2f2006-08-25 21:14:45 +00005696fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005697
5698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5700echo "${ECHO_T}$ac_header_compiler" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005701
5702# Is the header present?
mmentovai8c2a4de2006-09-20 16:20:15 +00005703{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5704echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005705cat >conftest.$ac_ext <<_ACEOF
5706/* confdefs.h. */
5707_ACEOF
5708cat confdefs.h >>conftest.$ac_ext
5709cat >>conftest.$ac_ext <<_ACEOF
5710/* end confdefs.h. */
5711#include <$ac_header>
5712_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005713if { (ac_try="$ac_cpp conftest.$ac_ext"
5714case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717esac
5718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005720 ac_status=$?
5721 grep -v '^ *+' conftest.er1 >conftest.err
5722 rm -f conftest.er1
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } >/dev/null; then
5726 if test -s conftest.err; then
5727 ac_cpp_err=$ac_c_preproc_warn_flag
5728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5729 else
5730 ac_cpp_err=
5731 fi
5732else
5733 ac_cpp_err=yes
5734fi
5735if test -z "$ac_cpp_err"; then
5736 ac_header_preproc=yes
5737else
5738 echo "$as_me: failed program was:" >&5
5739sed 's/^/| /' conftest.$ac_ext >&5
5740
5741 ac_header_preproc=no
5742fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005743
brynercb91a2f2006-08-25 21:14:45 +00005744rm -f conftest.err conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00005745{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5746echo "${ECHO_T}$ac_header_preproc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005747
5748# So? What about this header?
5749case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5750 yes:no: )
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5752echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5754echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5755 ac_header_preproc=yes
5756 ;;
5757 no:yes:* )
5758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5759echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5761echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5763echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5765echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5767echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5769echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00005770 ( cat <<\_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00005771## ------------------------------------ ##
5772## Report this to opensource@google.com ##
5773## ------------------------------------ ##
5774_ASBOX
mmentovai8c2a4de2006-09-20 16:20:15 +00005775 ) | sed "s/^/$as_me: WARNING: /" >&2
brynercb91a2f2006-08-25 21:14:45 +00005776 ;;
5777esac
mmentovai8c2a4de2006-09-20 16:20:15 +00005778{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
brynercb91a2f2006-08-25 21:14:45 +00005781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782else
5783 eval "$as_ac_Header=\$ac_header_preproc"
5784fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005785ac_res=`eval echo '${'$as_ac_Header'}'`
5786 { echo "$as_me:$LINENO: result: $ac_res" >&5
5787echo "${ECHO_T}$ac_res" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005788
5789fi
5790if test `eval echo '${'$as_ac_Header'}'` = yes; then
5791 cat >>confdefs.h <<_ACEOF
5792#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5793_ACEOF
5794
5795fi
5796
5797done
5798
mmentovai8c2a4de2006-09-20 16:20:15 +00005799
5800
5801if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5802 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5803 (test "X$CXX" != "Xg++"))) ; then
5804 ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00005805ac_cpp='$CXXCPP $CPPFLAGS'
5806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00005809{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5810echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005811if test -z "$CXXCPP"; then
5812 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814else
5815 # Double quotes because CXXCPP needs to be expanded
5816 for CXXCPP in "$CXX -E" "/lib/cpp"
5817 do
5818 ac_preproc_ok=false
5819for ac_cxx_preproc_warn_flag in '' yes
5820do
5821 # Use a header file that comes with gcc, so configuring glibc
5822 # with a fresh cross-compiler works.
5823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5824 # <limits.h> exists even on freestanding compilers.
5825 # On the NeXT, cc -E runs the code through the compiler's parser,
5826 # not just through cpp. "Syntax error" is here to catch this case.
5827 cat >conftest.$ac_ext <<_ACEOF
5828/* confdefs.h. */
5829_ACEOF
5830cat confdefs.h >>conftest.$ac_ext
5831cat >>conftest.$ac_ext <<_ACEOF
5832/* end confdefs.h. */
5833#ifdef __STDC__
5834# include <limits.h>
5835#else
5836# include <assert.h>
5837#endif
5838 Syntax error
5839_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005840if { (ac_try="$ac_cpp conftest.$ac_ext"
5841case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5844esac
5845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005847 ac_status=$?
5848 grep -v '^ *+' conftest.er1 >conftest.err
5849 rm -f conftest.er1
5850 cat conftest.err >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } >/dev/null; then
5853 if test -s conftest.err; then
5854 ac_cpp_err=$ac_cxx_preproc_warn_flag
5855 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5856 else
5857 ac_cpp_err=
5858 fi
5859else
5860 ac_cpp_err=yes
5861fi
5862if test -z "$ac_cpp_err"; then
5863 :
5864else
5865 echo "$as_me: failed program was:" >&5
5866sed 's/^/| /' conftest.$ac_ext >&5
5867
5868 # Broken: fails on valid input.
5869continue
5870fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005871
brynercb91a2f2006-08-25 21:14:45 +00005872rm -f conftest.err conftest.$ac_ext
5873
mmentovai8c2a4de2006-09-20 16:20:15 +00005874 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00005875 # can be detected and how.
5876 cat >conftest.$ac_ext <<_ACEOF
5877/* confdefs.h. */
5878_ACEOF
5879cat confdefs.h >>conftest.$ac_ext
5880cat >>conftest.$ac_ext <<_ACEOF
5881/* end confdefs.h. */
5882#include <ac_nonexistent.h>
5883_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005884if { (ac_try="$ac_cpp conftest.$ac_ext"
5885case "(($ac_try" in
5886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887 *) ac_try_echo=$ac_try;;
5888esac
5889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005891 ac_status=$?
5892 grep -v '^ *+' conftest.er1 >conftest.err
5893 rm -f conftest.er1
5894 cat conftest.err >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); } >/dev/null; then
5897 if test -s conftest.err; then
5898 ac_cpp_err=$ac_cxx_preproc_warn_flag
5899 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5900 else
5901 ac_cpp_err=
5902 fi
5903else
5904 ac_cpp_err=yes
5905fi
5906if test -z "$ac_cpp_err"; then
5907 # Broken: success on invalid input.
5908continue
5909else
5910 echo "$as_me: failed program was:" >&5
5911sed 's/^/| /' conftest.$ac_ext >&5
5912
5913 # Passes both tests.
5914ac_preproc_ok=:
5915break
5916fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005917
brynercb91a2f2006-08-25 21:14:45 +00005918rm -f conftest.err conftest.$ac_ext
5919
5920done
5921# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5922rm -f conftest.err conftest.$ac_ext
5923if $ac_preproc_ok; then
5924 break
5925fi
5926
5927 done
5928 ac_cv_prog_CXXCPP=$CXXCPP
5929
5930fi
5931 CXXCPP=$ac_cv_prog_CXXCPP
5932else
5933 ac_cv_prog_CXXCPP=$CXXCPP
5934fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005935{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5936echo "${ECHO_T}$CXXCPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005937ac_preproc_ok=false
5938for ac_cxx_preproc_warn_flag in '' yes
5939do
5940 # Use a header file that comes with gcc, so configuring glibc
5941 # with a fresh cross-compiler works.
5942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5943 # <limits.h> exists even on freestanding compilers.
5944 # On the NeXT, cc -E runs the code through the compiler's parser,
5945 # not just through cpp. "Syntax error" is here to catch this case.
5946 cat >conftest.$ac_ext <<_ACEOF
5947/* confdefs.h. */
5948_ACEOF
5949cat confdefs.h >>conftest.$ac_ext
5950cat >>conftest.$ac_ext <<_ACEOF
5951/* end confdefs.h. */
5952#ifdef __STDC__
5953# include <limits.h>
5954#else
5955# include <assert.h>
5956#endif
5957 Syntax error
5958_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005959if { (ac_try="$ac_cpp conftest.$ac_ext"
5960case "(($ac_try" in
5961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5962 *) ac_try_echo=$ac_try;;
5963esac
5964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005966 ac_status=$?
5967 grep -v '^ *+' conftest.er1 >conftest.err
5968 rm -f conftest.er1
5969 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } >/dev/null; then
5972 if test -s conftest.err; then
5973 ac_cpp_err=$ac_cxx_preproc_warn_flag
5974 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5975 else
5976 ac_cpp_err=
5977 fi
5978else
5979 ac_cpp_err=yes
5980fi
5981if test -z "$ac_cpp_err"; then
5982 :
5983else
5984 echo "$as_me: failed program was:" >&5
5985sed 's/^/| /' conftest.$ac_ext >&5
5986
5987 # Broken: fails on valid input.
5988continue
5989fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005990
brynercb91a2f2006-08-25 21:14:45 +00005991rm -f conftest.err conftest.$ac_ext
5992
mmentovai8c2a4de2006-09-20 16:20:15 +00005993 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00005994 # can be detected and how.
5995 cat >conftest.$ac_ext <<_ACEOF
5996/* confdefs.h. */
5997_ACEOF
5998cat confdefs.h >>conftest.$ac_ext
5999cat >>conftest.$ac_ext <<_ACEOF
6000/* end confdefs.h. */
6001#include <ac_nonexistent.h>
6002_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00006003if { (ac_try="$ac_cpp conftest.$ac_ext"
6004case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007esac
6008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00006010 ac_status=$?
6011 grep -v '^ *+' conftest.er1 >conftest.err
6012 rm -f conftest.er1
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } >/dev/null; then
6016 if test -s conftest.err; then
6017 ac_cpp_err=$ac_cxx_preproc_warn_flag
6018 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6019 else
6020 ac_cpp_err=
6021 fi
6022else
6023 ac_cpp_err=yes
6024fi
6025if test -z "$ac_cpp_err"; then
6026 # Broken: success on invalid input.
6027continue
6028else
6029 echo "$as_me: failed program was:" >&5
6030sed 's/^/| /' conftest.$ac_ext >&5
6031
6032 # Passes both tests.
6033ac_preproc_ok=:
6034break
6035fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006036
brynercb91a2f2006-08-25 21:14:45 +00006037rm -f conftest.err conftest.$ac_ext
6038
6039done
6040# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6041rm -f conftest.err conftest.$ac_ext
6042if $ac_preproc_ok; then
6043 :
6044else
6045 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6046See \`config.log' for more details." >&5
6047echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6048See \`config.log' for more details." >&2;}
6049 { (exit 1); exit 1; }; }
6050fi
6051
mmentovai8c2a4de2006-09-20 16:20:15 +00006052ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00006053ac_cpp='$CXXCPP $CPPFLAGS'
6054ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6057
mmentovai8c2a4de2006-09-20 16:20:15 +00006058fi
6059
6060
6061ac_ext=f
6062ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6063ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6064ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6065if test -n "$ac_tool_prefix"; then
6066 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
6067 do
6068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6069set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6070{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6072if test "${ac_cv_prog_F77+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6074else
6075 if test -n "$F77"; then
6076 ac_cv_prog_F77="$F77" # Let the user override the test.
6077else
6078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079for as_dir in $PATH
6080do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6085 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 break 2
6088 fi
6089done
6090done
6091IFS=$as_save_IFS
6092
6093fi
6094fi
6095F77=$ac_cv_prog_F77
6096if test -n "$F77"; then
6097 { echo "$as_me:$LINENO: result: $F77" >&5
6098echo "${ECHO_T}$F77" >&6; }
6099else
6100 { echo "$as_me:$LINENO: result: no" >&5
6101echo "${ECHO_T}no" >&6; }
6102fi
6103
6104
6105 test -n "$F77" && break
6106 done
6107fi
6108if test -z "$F77"; then
6109 ac_ct_F77=$F77
6110 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
6111do
6112 # Extract the first word of "$ac_prog", so it can be a program name with args.
6113set dummy $ac_prog; ac_word=$2
6114{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6116if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118else
6119 if test -n "$ac_ct_F77"; then
6120 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6121else
6122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123for as_dir in $PATH
6124do
6125 IFS=$as_save_IFS
6126 test -z "$as_dir" && as_dir=.
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6129 ac_cv_prog_ac_ct_F77="$ac_prog"
6130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 break 2
6132 fi
6133done
6134done
6135IFS=$as_save_IFS
6136
6137fi
6138fi
6139ac_ct_F77=$ac_cv_prog_ac_ct_F77
6140if test -n "$ac_ct_F77"; then
6141 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6142echo "${ECHO_T}$ac_ct_F77" >&6; }
6143else
6144 { echo "$as_me:$LINENO: result: no" >&5
6145echo "${ECHO_T}no" >&6; }
6146fi
6147
6148
6149 test -n "$ac_ct_F77" && break
6150done
6151
6152 if test "x$ac_ct_F77" = x; then
6153 F77=""
6154 else
6155 case $cross_compiling:$ac_tool_warned in
6156yes:)
6157{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6158whose name does not start with the host triplet. If you think this
6159configuration is useful to you, please write to autoconf@gnu.org." >&5
6160echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6161whose name does not start with the host triplet. If you think this
6162configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6163ac_tool_warned=yes ;;
6164esac
6165 F77=$ac_ct_F77
6166 fi
6167fi
6168
6169
6170# Provide some information about the compiler.
6171echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6172ac_compiler=`set X $ac_compile; echo $2`
6173{ (ac_try="$ac_compiler --version >&5"
6174case "(($ac_try" in
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6177esac
6178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179 (eval "$ac_compiler --version >&5") 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }
6183{ (ac_try="$ac_compiler -v >&5"
6184case "(($ac_try" in
6185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186 *) ac_try_echo=$ac_try;;
6187esac
6188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6189 (eval "$ac_compiler -v >&5") 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }
6193{ (ac_try="$ac_compiler -V >&5"
6194case "(($ac_try" in
6195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196 *) ac_try_echo=$ac_try;;
6197esac
6198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6199 (eval "$ac_compiler -V >&5") 2>&5
6200 ac_status=$?
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }
6203rm -f a.out
6204
6205# If we don't use `.F' as extension, the preprocessor is not run on the
6206# input file. (Note that this only needs to work for GNU compilers.)
6207ac_save_ext=$ac_ext
6208ac_ext=F
6209{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6210echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6211if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6213else
6214 cat >conftest.$ac_ext <<_ACEOF
6215 program main
6216#ifndef __GNUC__
6217 choke me
6218#endif
6219
6220 end
6221_ACEOF
6222rm -f conftest.$ac_objext
6223if { (ac_try="$ac_compile"
6224case "(($ac_try" in
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6227esac
6228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6229 (eval "$ac_compile") 2>conftest.er1
6230 ac_status=$?
6231 grep -v '^ *+' conftest.er1 >conftest.err
6232 rm -f conftest.er1
6233 cat conftest.err >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } &&
6236 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6237 { (case "(($ac_try" in
6238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6239 *) ac_try_echo=$ac_try;;
6240esac
6241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6242 (eval "$ac_try") 2>&5
6243 ac_status=$?
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; } &&
6246 { ac_try='test -s conftest.$ac_objext'
6247 { (case "(($ac_try" in
6248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6249 *) ac_try_echo=$ac_try;;
6250esac
6251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6252 (eval "$ac_try") 2>&5
6253 ac_status=$?
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6256 ac_compiler_gnu=yes
6257else
6258 echo "$as_me: failed program was:" >&5
6259sed 's/^/| /' conftest.$ac_ext >&5
6260
6261 ac_compiler_gnu=no
6262fi
6263
6264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6266
6267fi
6268{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6269echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6270ac_ext=$ac_save_ext
6271ac_test_FFLAGS=${FFLAGS+set}
6272ac_save_FFLAGS=$FFLAGS
6273FFLAGS=
6274{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6275echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6276if test "${ac_cv_prog_f77_g+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6278else
6279 FFLAGS=-g
6280cat >conftest.$ac_ext <<_ACEOF
6281 program main
6282
6283 end
6284_ACEOF
6285rm -f conftest.$ac_objext
6286if { (ac_try="$ac_compile"
6287case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6290esac
6291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_compile") 2>conftest.er1
6293 ac_status=$?
6294 grep -v '^ *+' conftest.er1 >conftest.err
6295 rm -f conftest.er1
6296 cat conftest.err >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } &&
6299 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6300 { (case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303esac
6304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_try") 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; } &&
6309 { ac_try='test -s conftest.$ac_objext'
6310 { (case "(($ac_try" in
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6313esac
6314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_try") 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
6319 ac_cv_prog_f77_g=yes
6320else
6321 echo "$as_me: failed program was:" >&5
6322sed 's/^/| /' conftest.$ac_ext >&5
6323
6324 ac_cv_prog_f77_g=no
6325fi
6326
6327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328
6329fi
6330{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6331echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6332if test "$ac_test_FFLAGS" = set; then
6333 FFLAGS=$ac_save_FFLAGS
6334elif test $ac_cv_prog_f77_g = yes; then
6335 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6336 FFLAGS="-g -O2"
6337 else
6338 FFLAGS="-g"
6339 fi
6340else
6341 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6342 FFLAGS="-O2"
6343 else
6344 FFLAGS=
6345 fi
6346fi
6347
6348G77=`test $ac_compiler_gnu = yes && echo yes`
6349ac_ext=c
6350ac_cpp='$CPP $CPPFLAGS'
6351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6353ac_compiler_gnu=$ac_cv_c_compiler_gnu
brynercb91a2f2006-08-25 21:14:45 +00006354
6355
6356
6357# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6358
6359# find the maximum length of command line arguments
mmentovai8c2a4de2006-09-20 16:20:15 +00006360{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6361echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006362if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6364else
6365 i=0
6366 teststring="ABCD"
6367
6368 case $build_os in
6369 msdosdjgpp*)
6370 # On DJGPP, this test can blow up pretty badly due to problems in libc
6371 # (any single argument exceeding 2000 bytes causes a buffer overrun
6372 # during glob expansion). Even if it were fixed, the result of this
6373 # check would be larger than it should be.
6374 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6375 ;;
6376
6377 gnu*)
6378 # Under GNU Hurd, this test is not required because there is
6379 # no limit to the length of command line arguments.
6380 # Libtool will interpret -1 as no limit whatsoever
6381 lt_cv_sys_max_cmd_len=-1;
6382 ;;
6383
6384 cygwin* | mingw*)
6385 # On Win9x/ME, this test blows up -- it succeeds, but takes
6386 # about 5 minutes as the teststring grows exponentially.
6387 # Worse, since 9x/ME are not pre-emptively multitasking,
6388 # you end up with a "frozen" computer, even though with patience
6389 # the test eventually succeeds (with a max line length of 256k).
6390 # Instead, let's just punt: use the minimum linelength reported by
6391 # all of the supported platforms: 8192 (on NT/2K/XP).
6392 lt_cv_sys_max_cmd_len=8192;
6393 ;;
6394
6395 amigaos*)
6396 # On AmigaOS with pdksh, this test takes hours, literally.
6397 # So we just punt and use a minimum line length of 8192.
6398 lt_cv_sys_max_cmd_len=8192;
6399 ;;
6400
mmentovai8c2a4de2006-09-20 16:20:15 +00006401 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6402 # This has been around since 386BSD, at least. Likely further.
6403 if test -x /sbin/sysctl; then
6404 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6405 elif test -x /usr/sbin/sysctl; then
6406 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6407 else
6408 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6409 fi
6410 # And add a safety zone
6411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6412 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6413 ;;
6414
6415 interix*)
6416 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6417 lt_cv_sys_max_cmd_len=196608
6418 ;;
6419
6420 osf*)
6421 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6422 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6423 # nice to cause kernel panics so lets avoid the loop below.
6424 # First set a reasonable default.
6425 lt_cv_sys_max_cmd_len=16384
6426 #
6427 if test -x /sbin/sysconfig; then
6428 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6429 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6430 esac
6431 fi
6432 ;;
6433 sco3.2v5*)
6434 lt_cv_sys_max_cmd_len=102400
6435 ;;
6436 sysv5* | sco5v6* | sysv4.2uw2*)
6437 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6438 if test -n "$kargmax"; then
6439 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6440 else
6441 lt_cv_sys_max_cmd_len=32768
6442 fi
6443 ;;
6444 *)
brynercb91a2f2006-08-25 21:14:45 +00006445 # If test is not a shell built-in, we'll probably end up computing a
6446 # maximum length that is only half of the actual maximum length, but
6447 # we can't tell.
mmentovai8c2a4de2006-09-20 16:20:15 +00006448 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6449 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
brynercb91a2f2006-08-25 21:14:45 +00006450 = "XX$teststring") >/dev/null 2>&1 &&
6451 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6452 lt_cv_sys_max_cmd_len=$new_result &&
6453 test $i != 17 # 1/2 MB should be enough
6454 do
6455 i=`expr $i + 1`
6456 teststring=$teststring$teststring
6457 done
6458 teststring=
6459 # Add a significant safety factor because C++ compilers can tack on massive
6460 # amounts of additional arguments before passing them to the linker.
6461 # It appears as though 1/2 is a usable value.
6462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6463 ;;
6464 esac
6465
6466fi
6467
6468if test -n $lt_cv_sys_max_cmd_len ; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006469 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6470echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006471else
mmentovai8c2a4de2006-09-20 16:20:15 +00006472 { echo "$as_me:$LINENO: result: none" >&5
6473echo "${ECHO_T}none" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006474fi
6475
6476
6477
6478
6479# Check for command to grab the raw symbol name followed by C symbol from nm.
mmentovai8c2a4de2006-09-20 16:20:15 +00006480{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6481echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006482if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484else
6485
6486# These are sane defaults that work on at least a few old systems.
6487# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6488
6489# Character class describing NM global symbol codes.
6490symcode='[BCDEGRST]'
6491
6492# Regexp to match symbols that can be accessed directly from C.
6493sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6494
brynercb91a2f2006-08-25 21:14:45 +00006495# Transform an extracted symbol line into a proper C declaration
6496lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6497
6498# Transform an extracted symbol line into symbol name and symbol address
6499lt_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'"
6500
6501# Define system-specific variables.
6502case $host_os in
6503aix*)
6504 symcode='[BCDT]'
6505 ;;
6506cygwin* | mingw* | pw32*)
6507 symcode='[ABCDGISTW]'
6508 ;;
6509hpux*) # Its linker distinguishes data from code symbols
6510 if test "$host_cpu" = ia64; then
6511 symcode='[ABCDEGRST]'
6512 fi
6513 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6514 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'"
6515 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006516linux*)
6517 if test "$host_cpu" = ia64; then
6518 symcode='[ABCDGIRSTW]'
6519 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6520 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'"
6521 fi
6522 ;;
brynercb91a2f2006-08-25 21:14:45 +00006523irix* | nonstopux*)
6524 symcode='[BCDEGRST]'
6525 ;;
6526osf*)
6527 symcode='[BCDEGQRST]'
6528 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006529solaris*)
brynercb91a2f2006-08-25 21:14:45 +00006530 symcode='[BDRT]'
6531 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006532sco3.2v5*)
6533 symcode='[DT]'
6534 ;;
6535sysv4.2uw2*)
6536 symcode='[DT]'
6537 ;;
6538sysv5* | sco5v6* | unixware* | OpenUNIX*)
6539 symcode='[ABDT]'
6540 ;;
brynercb91a2f2006-08-25 21:14:45 +00006541sysv4)
6542 symcode='[DFNSTU]'
6543 ;;
6544esac
6545
6546# Handle CRLF in mingw tool chain
6547opt_cr=
6548case $build_os in
6549mingw*)
6550 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6551 ;;
6552esac
6553
6554# If we're using GNU nm, then use its standard symbol codes.
6555case `$NM -V 2>&1` in
6556*GNU* | *'with BFD'*)
6557 symcode='[ABCDGIRSTW]' ;;
6558esac
6559
6560# Try without a prefix undercore, then with it.
6561for ac_symprfx in "" "_"; do
6562
mmentovai8c2a4de2006-09-20 16:20:15 +00006563 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6564 symxfrm="\\1 $ac_symprfx\\2 \\2"
6565
brynercb91a2f2006-08-25 21:14:45 +00006566 # Write the raw and C identifiers.
mmentovai8c2a4de2006-09-20 16:20:15 +00006567 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
brynercb91a2f2006-08-25 21:14:45 +00006568
6569 # Check to see that the pipe works correctly.
6570 pipe_works=no
6571
6572 rm -f conftest*
6573 cat > conftest.$ac_ext <<EOF
6574#ifdef __cplusplus
6575extern "C" {
6576#endif
6577char nm_test_var;
6578void nm_test_func(){}
6579#ifdef __cplusplus
6580}
6581#endif
6582int main(){nm_test_var='a';nm_test_func();return(0);}
6583EOF
6584
6585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6586 (eval $ac_compile) 2>&5
6587 ac_status=$?
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; then
6590 # Now try to grab the symbols.
6591 nlist=conftest.nm
6592 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6593 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6594 ac_status=$?
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } && test -s "$nlist"; then
6597 # Try sorting and uniquifying the output.
6598 if sort "$nlist" | uniq > "$nlist"T; then
6599 mv -f "$nlist"T "$nlist"
6600 else
6601 rm -f "$nlist"T
6602 fi
6603
6604 # Make sure that we snagged all the symbols we need.
6605 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6606 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6607 cat <<EOF > conftest.$ac_ext
6608#ifdef __cplusplus
6609extern "C" {
6610#endif
6611
6612EOF
6613 # Now generate the symbol file.
6614 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6615
6616 cat <<EOF >> conftest.$ac_ext
6617#if defined (__STDC__) && __STDC__
6618# define lt_ptr_t void *
6619#else
6620# define lt_ptr_t char *
6621# define const
6622#endif
6623
6624/* The mapping between symbol names and symbols. */
6625const struct {
6626 const char *name;
6627 lt_ptr_t address;
6628}
6629lt_preloaded_symbols[] =
6630{
6631EOF
6632 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6633 cat <<\EOF >> conftest.$ac_ext
6634 {0, (lt_ptr_t) 0}
6635};
6636
6637#ifdef __cplusplus
6638}
6639#endif
6640EOF
6641 # Now try linking the two files.
6642 mv conftest.$ac_objext conftstm.$ac_objext
6643 lt_save_LIBS="$LIBS"
6644 lt_save_CFLAGS="$CFLAGS"
6645 LIBS="conftstm.$ac_objext"
6646 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6648 (eval $ac_link) 2>&5
6649 ac_status=$?
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6652 pipe_works=yes
6653 fi
6654 LIBS="$lt_save_LIBS"
6655 CFLAGS="$lt_save_CFLAGS"
6656 else
6657 echo "cannot find nm_test_func in $nlist" >&5
6658 fi
6659 else
6660 echo "cannot find nm_test_var in $nlist" >&5
6661 fi
6662 else
6663 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6664 fi
6665 else
6666 echo "$progname: failed program was:" >&5
6667 cat conftest.$ac_ext >&5
6668 fi
6669 rm -f conftest* conftst*
6670
6671 # Do not use the global_symbol_pipe unless it works.
6672 if test "$pipe_works" = yes; then
6673 break
6674 else
6675 lt_cv_sys_global_symbol_pipe=
6676 fi
6677done
6678
6679fi
6680
6681if test -z "$lt_cv_sys_global_symbol_pipe"; then
6682 lt_cv_sys_global_symbol_to_cdecl=
6683fi
6684if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006685 { echo "$as_me:$LINENO: result: failed" >&5
6686echo "${ECHO_T}failed" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006687else
mmentovai8c2a4de2006-09-20 16:20:15 +00006688 { echo "$as_me:$LINENO: result: ok" >&5
6689echo "${ECHO_T}ok" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006690fi
6691
mmentovai8c2a4de2006-09-20 16:20:15 +00006692{ echo "$as_me:$LINENO: checking for objdir" >&5
6693echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006694if test "${lt_cv_objdir+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696else
6697 rm -f .libs 2>/dev/null
6698mkdir .libs 2>/dev/null
6699if test -d .libs; then
6700 lt_cv_objdir=.libs
6701else
6702 # MS-DOS does not allow filenames that begin with a dot.
6703 lt_cv_objdir=_libs
6704fi
6705rmdir .libs 2>/dev/null
6706fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006707{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6708echo "${ECHO_T}$lt_cv_objdir" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006709objdir=$lt_cv_objdir
6710
6711
6712
6713
6714
6715case $host_os in
6716aix3*)
6717 # AIX sometimes has problems with the GCC collect2 program. For some
6718 # reason, if we set the COLLECT_NAMES environment variable, the problems
6719 # vanish in a puff of smoke.
6720 if test "X${COLLECT_NAMES+set}" != Xset; then
6721 COLLECT_NAMES=
6722 export COLLECT_NAMES
6723 fi
6724 ;;
6725esac
6726
6727# Sed substitution that helps us do robust quoting. It backslashifies
6728# metacharacters that are still active within double-quoted strings.
mmentovai8c2a4de2006-09-20 16:20:15 +00006729Xsed='sed -e 1s/^X//'
brynercb91a2f2006-08-25 21:14:45 +00006730sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6731
6732# Same as above, but do not quote variable references.
6733double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6734
6735# Sed substitution to delay expansion of an escaped shell variable in a
6736# double_quote_subst'ed string.
6737delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6738
6739# Sed substitution to avoid accidental globbing in evaled expressions
6740no_glob_subst='s/\*/\\\*/g'
6741
6742# Constants:
6743rm="rm -f"
6744
6745# Global variables:
6746default_ofile=libtool
6747can_build_shared=yes
6748
mmentovai8c2a4de2006-09-20 16:20:15 +00006749# All known linkers require a `.a' archive for static linking (except MSVC,
brynercb91a2f2006-08-25 21:14:45 +00006750# which needs '.lib').
6751libext=a
6752ltmain="$ac_aux_dir/ltmain.sh"
6753ofile="$default_ofile"
6754with_gnu_ld="$lt_cv_prog_gnu_ld"
6755
6756if test -n "$ac_tool_prefix"; then
6757 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6758set dummy ${ac_tool_prefix}ar; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006759{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006761if test "${ac_cv_prog_AR+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763else
6764 if test -n "$AR"; then
6765 ac_cv_prog_AR="$AR" # Let the user override the test.
6766else
6767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768for as_dir in $PATH
6769do
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00006773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00006774 ac_cv_prog_AR="${ac_tool_prefix}ar"
6775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6777 fi
6778done
6779done
mmentovai8c2a4de2006-09-20 16:20:15 +00006780IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006781
6782fi
6783fi
6784AR=$ac_cv_prog_AR
6785if test -n "$AR"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006786 { echo "$as_me:$LINENO: result: $AR" >&5
6787echo "${ECHO_T}$AR" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006788else
mmentovai8c2a4de2006-09-20 16:20:15 +00006789 { echo "$as_me:$LINENO: result: no" >&5
6790echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006791fi
6792
mmentovai8c2a4de2006-09-20 16:20:15 +00006793
brynercb91a2f2006-08-25 21:14:45 +00006794fi
6795if test -z "$ac_cv_prog_AR"; then
6796 ac_ct_AR=$AR
6797 # Extract the first word of "ar", so it can be a program name with args.
6798set dummy ar; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006801if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803else
6804 if test -n "$ac_ct_AR"; then
6805 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6806else
6807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00006813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00006814 ac_cv_prog_ac_ct_AR="ar"
6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818done
6819done
mmentovai8c2a4de2006-09-20 16:20:15 +00006820IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006821
brynercb91a2f2006-08-25 21:14:45 +00006822fi
6823fi
6824ac_ct_AR=$ac_cv_prog_ac_ct_AR
6825if test -n "$ac_ct_AR"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006826 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6827echo "${ECHO_T}$ac_ct_AR" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006828else
mmentovai8c2a4de2006-09-20 16:20:15 +00006829 { echo "$as_me:$LINENO: result: no" >&5
6830echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006831fi
6832
mmentovai8c2a4de2006-09-20 16:20:15 +00006833 if test "x$ac_ct_AR" = x; then
6834 AR="false"
6835 else
6836 case $cross_compiling:$ac_tool_warned in
6837yes:)
6838{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6839whose name does not start with the host triplet. If you think this
6840configuration is useful to you, please write to autoconf@gnu.org." >&5
6841echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6842whose name does not start with the host triplet. If you think this
6843configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6844ac_tool_warned=yes ;;
6845esac
6846 AR=$ac_ct_AR
6847 fi
brynercb91a2f2006-08-25 21:14:45 +00006848else
6849 AR="$ac_cv_prog_AR"
6850fi
6851
6852if test -n "$ac_tool_prefix"; then
6853 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6854set dummy ${ac_tool_prefix}ranlib; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006855{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006857if test "${ac_cv_prog_RANLIB+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859else
6860 if test -n "$RANLIB"; then
6861 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6862else
6863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864for as_dir in $PATH
6865do
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00006869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00006870 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 break 2
6873 fi
6874done
6875done
mmentovai8c2a4de2006-09-20 16:20:15 +00006876IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006877
6878fi
6879fi
6880RANLIB=$ac_cv_prog_RANLIB
6881if test -n "$RANLIB"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006882 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6883echo "${ECHO_T}$RANLIB" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006884else
mmentovai8c2a4de2006-09-20 16:20:15 +00006885 { echo "$as_me:$LINENO: result: no" >&5
6886echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006887fi
6888
mmentovai8c2a4de2006-09-20 16:20:15 +00006889
brynercb91a2f2006-08-25 21:14:45 +00006890fi
6891if test -z "$ac_cv_prog_RANLIB"; then
6892 ac_ct_RANLIB=$RANLIB
6893 # Extract the first word of "ranlib", so it can be a program name with args.
6894set dummy ranlib; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006895{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006897if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6899else
6900 if test -n "$ac_ct_RANLIB"; then
6901 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6902else
6903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904for as_dir in $PATH
6905do
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00006909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00006910 ac_cv_prog_ac_ct_RANLIB="ranlib"
6911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 break 2
6913 fi
6914done
6915done
mmentovai8c2a4de2006-09-20 16:20:15 +00006916IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006917
brynercb91a2f2006-08-25 21:14:45 +00006918fi
6919fi
6920ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6921if test -n "$ac_ct_RANLIB"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006922 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6923echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006924else
mmentovai8c2a4de2006-09-20 16:20:15 +00006925 { echo "$as_me:$LINENO: result: no" >&5
6926echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006927fi
6928
mmentovai8c2a4de2006-09-20 16:20:15 +00006929 if test "x$ac_ct_RANLIB" = x; then
6930 RANLIB=":"
6931 else
6932 case $cross_compiling:$ac_tool_warned in
6933yes:)
6934{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6935whose name does not start with the host triplet. If you think this
6936configuration is useful to you, please write to autoconf@gnu.org." >&5
6937echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6938whose name does not start with the host triplet. If you think this
6939configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6940ac_tool_warned=yes ;;
6941esac
6942 RANLIB=$ac_ct_RANLIB
6943 fi
brynercb91a2f2006-08-25 21:14:45 +00006944else
6945 RANLIB="$ac_cv_prog_RANLIB"
6946fi
6947
6948if test -n "$ac_tool_prefix"; then
6949 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6950set dummy ${ac_tool_prefix}strip; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006953if test "${ac_cv_prog_STRIP+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955else
6956 if test -n "$STRIP"; then
6957 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6958else
6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00006965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00006966 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
6969 fi
6970done
6971done
mmentovai8c2a4de2006-09-20 16:20:15 +00006972IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006973
6974fi
6975fi
6976STRIP=$ac_cv_prog_STRIP
6977if test -n "$STRIP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006978 { echo "$as_me:$LINENO: result: $STRIP" >&5
6979echo "${ECHO_T}$STRIP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006980else
mmentovai8c2a4de2006-09-20 16:20:15 +00006981 { echo "$as_me:$LINENO: result: no" >&5
6982echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006983fi
6984
mmentovai8c2a4de2006-09-20 16:20:15 +00006985
brynercb91a2f2006-08-25 21:14:45 +00006986fi
6987if test -z "$ac_cv_prog_STRIP"; then
6988 ac_ct_STRIP=$STRIP
6989 # Extract the first word of "strip", so it can be a program name with args.
6990set dummy strip; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006991{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006993if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6995else
6996 if test -n "$ac_ct_STRIP"; then
6997 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6998else
6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00007005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00007006 ac_cv_prog_ac_ct_STRIP="strip"
7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7009 fi
7010done
7011done
mmentovai8c2a4de2006-09-20 16:20:15 +00007012IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00007013
brynercb91a2f2006-08-25 21:14:45 +00007014fi
7015fi
7016ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7017if test -n "$ac_ct_STRIP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007018 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7019echo "${ECHO_T}$ac_ct_STRIP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007020else
mmentovai8c2a4de2006-09-20 16:20:15 +00007021 { echo "$as_me:$LINENO: result: no" >&5
7022echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007023fi
7024
mmentovai8c2a4de2006-09-20 16:20:15 +00007025 if test "x$ac_ct_STRIP" = x; then
7026 STRIP=":"
7027 else
7028 case $cross_compiling:$ac_tool_warned in
7029yes:)
7030{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7031whose name does not start with the host triplet. If you think this
7032configuration is useful to you, please write to autoconf@gnu.org." >&5
7033echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7034whose name does not start with the host triplet. If you think this
7035configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7036ac_tool_warned=yes ;;
7037esac
7038 STRIP=$ac_ct_STRIP
7039 fi
brynercb91a2f2006-08-25 21:14:45 +00007040else
7041 STRIP="$ac_cv_prog_STRIP"
7042fi
7043
7044
7045old_CC="$CC"
7046old_CFLAGS="$CFLAGS"
7047
7048# Set sane defaults for various variables
7049test -z "$AR" && AR=ar
7050test -z "$AR_FLAGS" && AR_FLAGS=cru
7051test -z "$AS" && AS=as
7052test -z "$CC" && CC=cc
7053test -z "$LTCC" && LTCC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00007054test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
brynercb91a2f2006-08-25 21:14:45 +00007055test -z "$DLLTOOL" && DLLTOOL=dlltool
7056test -z "$LD" && LD=ld
7057test -z "$LN_S" && LN_S="ln -s"
7058test -z "$MAGIC_CMD" && MAGIC_CMD=file
7059test -z "$NM" && NM=nm
7060test -z "$SED" && SED=sed
7061test -z "$OBJDUMP" && OBJDUMP=objdump
7062test -z "$RANLIB" && RANLIB=:
7063test -z "$STRIP" && STRIP=:
7064test -z "$ac_objext" && ac_objext=o
7065
7066# Determine commands to create old-style static archives.
7067old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7068old_postinstall_cmds='chmod 644 $oldlib'
7069old_postuninstall_cmds=
7070
7071if test -n "$RANLIB"; then
7072 case $host_os in
7073 openbsd*)
mmentovai8c2a4de2006-09-20 16:20:15 +00007074 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
brynercb91a2f2006-08-25 21:14:45 +00007075 ;;
7076 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00007077 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
brynercb91a2f2006-08-25 21:14:45 +00007078 ;;
7079 esac
7080 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7081fi
7082
mmentovai8c2a4de2006-09-20 16:20:15 +00007083for cc_temp in $compiler""; do
7084 case $cc_temp in
7085 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7086 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7087 \-*) ;;
7088 *) break;;
7089 esac
7090done
7091cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7092
7093
brynercb91a2f2006-08-25 21:14:45 +00007094# Only perform the check for file, if the check method requires it
7095case $deplibs_check_method in
7096file_magic*)
7097 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007098 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7099echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007100if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7102else
7103 case $MAGIC_CMD in
7104[\\/*] | ?:[\\/]*)
7105 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7106 ;;
7107*)
7108 lt_save_MAGIC_CMD="$MAGIC_CMD"
7109 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7110 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7111 for ac_dir in $ac_dummy; do
7112 IFS="$lt_save_ifs"
7113 test -z "$ac_dir" && ac_dir=.
7114 if test -f $ac_dir/${ac_tool_prefix}file; then
7115 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7116 if test -n "$file_magic_test_file"; then
7117 case $deplibs_check_method in
7118 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00007119 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00007120 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7121 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7122 $EGREP "$file_magic_regex" > /dev/null; then
7123 :
7124 else
7125 cat <<EOF 1>&2
7126
7127*** Warning: the command libtool uses to detect shared libraries,
7128*** $file_magic_cmd, produces output that libtool cannot recognize.
7129*** The result is that libtool may fail to recognize shared libraries
7130*** as such. This will affect the creation of libtool libraries that
7131*** depend on shared libraries, but programs linked with such libtool
7132*** libraries will work regardless of this problem. Nevertheless, you
7133*** may want to report the problem to your system manager and/or to
7134*** bug-libtool@gnu.org
7135
7136EOF
7137 fi ;;
7138 esac
7139 fi
7140 break
7141 fi
7142 done
7143 IFS="$lt_save_ifs"
7144 MAGIC_CMD="$lt_save_MAGIC_CMD"
7145 ;;
7146esac
7147fi
7148
7149MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7150if test -n "$MAGIC_CMD"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007151 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7152echo "${ECHO_T}$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007153else
mmentovai8c2a4de2006-09-20 16:20:15 +00007154 { echo "$as_me:$LINENO: result: no" >&5
7155echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007156fi
7157
7158if test -z "$lt_cv_path_MAGIC_CMD"; then
7159 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007160 { echo "$as_me:$LINENO: checking for file" >&5
7161echo $ECHO_N "checking for file... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007162if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164else
7165 case $MAGIC_CMD in
7166[\\/*] | ?:[\\/]*)
7167 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7168 ;;
7169*)
7170 lt_save_MAGIC_CMD="$MAGIC_CMD"
7171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7172 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7173 for ac_dir in $ac_dummy; do
7174 IFS="$lt_save_ifs"
7175 test -z "$ac_dir" && ac_dir=.
7176 if test -f $ac_dir/file; then
7177 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7178 if test -n "$file_magic_test_file"; then
7179 case $deplibs_check_method in
7180 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00007181 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00007182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7183 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7184 $EGREP "$file_magic_regex" > /dev/null; then
7185 :
7186 else
7187 cat <<EOF 1>&2
7188
7189*** Warning: the command libtool uses to detect shared libraries,
7190*** $file_magic_cmd, produces output that libtool cannot recognize.
7191*** The result is that libtool may fail to recognize shared libraries
7192*** as such. This will affect the creation of libtool libraries that
7193*** depend on shared libraries, but programs linked with such libtool
7194*** libraries will work regardless of this problem. Nevertheless, you
7195*** may want to report the problem to your system manager and/or to
7196*** bug-libtool@gnu.org
7197
7198EOF
7199 fi ;;
7200 esac
7201 fi
7202 break
7203 fi
7204 done
7205 IFS="$lt_save_ifs"
7206 MAGIC_CMD="$lt_save_MAGIC_CMD"
7207 ;;
7208esac
7209fi
7210
7211MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7212if test -n "$MAGIC_CMD"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007213 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7214echo "${ECHO_T}$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007215else
mmentovai8c2a4de2006-09-20 16:20:15 +00007216 { echo "$as_me:$LINENO: result: no" >&5
7217echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007218fi
7219
7220 else
7221 MAGIC_CMD=:
7222 fi
7223fi
7224
7225 fi
7226 ;;
7227esac
7228
7229enable_dlopen=no
7230enable_win32_dll=no
7231
mmentovai8c2a4de2006-09-20 16:20:15 +00007232# Check whether --enable-libtool-lock was given.
brynercb91a2f2006-08-25 21:14:45 +00007233if test "${enable_libtool_lock+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007234 enableval=$enable_libtool_lock;
7235fi
brynercb91a2f2006-08-25 21:14:45 +00007236
brynercb91a2f2006-08-25 21:14:45 +00007237test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7238
7239
mmentovai8c2a4de2006-09-20 16:20:15 +00007240# Check whether --with-pic was given.
brynercb91a2f2006-08-25 21:14:45 +00007241if test "${with_pic+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007242 withval=$with_pic; pic_mode="$withval"
brynercb91a2f2006-08-25 21:14:45 +00007243else
7244 pic_mode=default
mmentovai8c2a4de2006-09-20 16:20:15 +00007245fi
7246
brynercb91a2f2006-08-25 21:14:45 +00007247test -z "$pic_mode" && pic_mode=default
7248
7249# Use C for the default configuration in the libtool script
7250tagname=
7251lt_save_CC="$CC"
7252ac_ext=c
7253ac_cpp='$CPP $CPPFLAGS'
7254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7256ac_compiler_gnu=$ac_cv_c_compiler_gnu
7257
7258
7259# Source file extension for C test sources.
7260ac_ext=c
7261
7262# Object file extension for compiled C test sources.
7263objext=o
7264objext=$objext
7265
7266# Code to be used in simple compile tests
7267lt_simple_compile_test_code="int some_variable = 0;\n"
7268
7269# Code to be used in simple link tests
7270lt_simple_link_test_code='int main(){return(0);}\n'
7271
7272
7273# If no C compiler was specified, use CC.
7274LTCC=${LTCC-"$CC"}
7275
mmentovai8c2a4de2006-09-20 16:20:15 +00007276# If no C compiler flags were specified, use CFLAGS.
7277LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7278
brynercb91a2f2006-08-25 21:14:45 +00007279# Allow CC to be a program name with arguments.
7280compiler=$CC
7281
7282
mmentovai8c2a4de2006-09-20 16:20:15 +00007283# save warnings/boilerplate of simple test code
7284ac_outfile=conftest.$ac_objext
7285printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7286eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7287_lt_compiler_boilerplate=`cat conftest.err`
7288$rm conftest*
brynercb91a2f2006-08-25 21:14:45 +00007289
mmentovai8c2a4de2006-09-20 16:20:15 +00007290ac_outfile=conftest.$ac_objext
7291printf "$lt_simple_link_test_code" >conftest.$ac_ext
7292eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7293_lt_linker_boilerplate=`cat conftest.err`
7294$rm conftest*
brynercb91a2f2006-08-25 21:14:45 +00007295
7296
7297
7298lt_prog_compiler_no_builtin_flag=
7299
7300if test "$GCC" = yes; then
7301 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7302
7303
mmentovai8c2a4de2006-09-20 16:20:15 +00007304{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7305echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007306if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7308else
7309 lt_cv_prog_compiler_rtti_exceptions=no
7310 ac_outfile=conftest.$ac_objext
7311 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7312 lt_compiler_flag="-fno-rtti -fno-exceptions"
7313 # Insert the option either (1) after the last *FLAGS variable, or
7314 # (2) before a word containing "conftest.", or (3) at the end.
7315 # Note that $ac_compile itself does not contain backslashes and begins
7316 # with a dollar sign (not a hyphen), so the echo should work correctly.
7317 # The option is referenced via a variable to avoid confusing sed.
7318 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00007319 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00007320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7321 -e 's:$: $lt_compiler_flag:'`
mmentovai0dbedc92006-09-25 21:16:15 +00007322 (eval echo "\"\$as_me:7322: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00007323 (eval "$lt_compile" 2>conftest.err)
7324 ac_status=$?
7325 cat conftest.err >&5
mmentovai0dbedc92006-09-25 21:16:15 +00007326 echo "$as_me:7326: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00007327 if (exit $ac_status) && test -s "$ac_outfile"; then
7328 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00007329 # So say no if there are warnings other than the usual output.
7330 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7331 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7332 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00007333 lt_cv_prog_compiler_rtti_exceptions=yes
7334 fi
7335 fi
7336 $rm conftest*
7337
7338fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007339{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7340echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007341
7342if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7343 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7344else
7345 :
7346fi
7347
7348fi
7349
7350lt_prog_compiler_wl=
7351lt_prog_compiler_pic=
7352lt_prog_compiler_static=
7353
mmentovai8c2a4de2006-09-20 16:20:15 +00007354{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7355echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007356
7357 if test "$GCC" = yes; then
7358 lt_prog_compiler_wl='-Wl,'
7359 lt_prog_compiler_static='-static'
7360
7361 case $host_os in
7362 aix*)
7363 # All AIX code is PIC.
7364 if test "$host_cpu" = ia64; then
7365 # AIX 5 now supports IA64 processor
7366 lt_prog_compiler_static='-Bstatic'
7367 fi
7368 ;;
7369
7370 amigaos*)
7371 # FIXME: we need at least 68020 code to build shared libraries, but
7372 # adding the `-m68020' flag to GCC prevents building anything better,
7373 # like `-m68040'.
7374 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7375 ;;
7376
7377 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7378 # PIC is the default for these OSes.
7379 ;;
7380
7381 mingw* | pw32* | os2*)
7382 # This hack is so that the source file can tell whether it is being
7383 # built for inclusion in a dll (and should export symbols for example).
7384 lt_prog_compiler_pic='-DDLL_EXPORT'
7385 ;;
7386
7387 darwin* | rhapsody*)
7388 # PIC is the default on this platform
7389 # Common symbols not allowed in MH_DYLIB files
7390 lt_prog_compiler_pic='-fno-common'
7391 ;;
7392
mmentovai8c2a4de2006-09-20 16:20:15 +00007393 interix3*)
7394 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7395 # Instead, we relocate shared libraries at runtime.
7396 ;;
7397
brynercb91a2f2006-08-25 21:14:45 +00007398 msdosdjgpp*)
7399 # Just because we use GCC doesn't mean we suddenly get shared libraries
7400 # on systems that don't support them.
7401 lt_prog_compiler_can_build_shared=no
7402 enable_shared=no
7403 ;;
7404
7405 sysv4*MP*)
7406 if test -d /usr/nec; then
7407 lt_prog_compiler_pic=-Kconform_pic
7408 fi
7409 ;;
7410
7411 hpux*)
7412 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7413 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +00007414 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00007415 hppa*64*|ia64*)
7416 # +Z the default
7417 ;;
7418 *)
7419 lt_prog_compiler_pic='-fPIC'
7420 ;;
7421 esac
7422 ;;
7423
7424 *)
7425 lt_prog_compiler_pic='-fPIC'
7426 ;;
7427 esac
7428 else
7429 # PORTME Check for flag to pass linker flags through the system compiler.
7430 case $host_os in
7431 aix*)
7432 lt_prog_compiler_wl='-Wl,'
7433 if test "$host_cpu" = ia64; then
7434 # AIX 5 now supports IA64 processor
7435 lt_prog_compiler_static='-Bstatic'
7436 else
7437 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7438 fi
7439 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007440 darwin*)
7441 # PIC is the default on this platform
7442 # Common symbols not allowed in MH_DYLIB files
7443 case $cc_basename in
7444 xlc*)
7445 lt_prog_compiler_pic='-qnocommon'
7446 lt_prog_compiler_wl='-Wl,'
7447 ;;
7448 esac
7449 ;;
brynercb91a2f2006-08-25 21:14:45 +00007450
7451 mingw* | pw32* | os2*)
7452 # This hack is so that the source file can tell whether it is being
7453 # built for inclusion in a dll (and should export symbols for example).
7454 lt_prog_compiler_pic='-DDLL_EXPORT'
7455 ;;
7456
7457 hpux9* | hpux10* | hpux11*)
7458 lt_prog_compiler_wl='-Wl,'
7459 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7460 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +00007461 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00007462 hppa*64*|ia64*)
7463 # +Z the default
7464 ;;
7465 *)
7466 lt_prog_compiler_pic='+Z'
7467 ;;
7468 esac
7469 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7470 lt_prog_compiler_static='${wl}-a ${wl}archive'
7471 ;;
7472
7473 irix5* | irix6* | nonstopux*)
7474 lt_prog_compiler_wl='-Wl,'
7475 # PIC (with -KPIC) is the default.
7476 lt_prog_compiler_static='-non_shared'
7477 ;;
7478
7479 newsos6)
7480 lt_prog_compiler_pic='-KPIC'
7481 lt_prog_compiler_static='-Bstatic'
7482 ;;
7483
7484 linux*)
mmentovai8c2a4de2006-09-20 16:20:15 +00007485 case $cc_basename in
brynercb91a2f2006-08-25 21:14:45 +00007486 icc* | ecc*)
7487 lt_prog_compiler_wl='-Wl,'
7488 lt_prog_compiler_pic='-KPIC'
7489 lt_prog_compiler_static='-static'
7490 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007491 pgcc* | pgf77* | pgf90* | pgf95*)
7492 # Portland Group compilers (*not* the Pentium gcc compiler,
7493 # which looks to be a dead project)
7494 lt_prog_compiler_wl='-Wl,'
7495 lt_prog_compiler_pic='-fpic'
7496 lt_prog_compiler_static='-Bstatic'
7497 ;;
brynercb91a2f2006-08-25 21:14:45 +00007498 ccc*)
7499 lt_prog_compiler_wl='-Wl,'
7500 # All Alpha code is PIC.
7501 lt_prog_compiler_static='-non_shared'
7502 ;;
7503 esac
7504 ;;
7505
7506 osf3* | osf4* | osf5*)
7507 lt_prog_compiler_wl='-Wl,'
7508 # All OSF/1 code is PIC.
7509 lt_prog_compiler_static='-non_shared'
7510 ;;
7511
brynercb91a2f2006-08-25 21:14:45 +00007512 solaris*)
brynercb91a2f2006-08-25 21:14:45 +00007513 lt_prog_compiler_pic='-KPIC'
7514 lt_prog_compiler_static='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +00007515 case $cc_basename in
7516 f77* | f90* | f95*)
7517 lt_prog_compiler_wl='-Qoption ld ';;
7518 *)
7519 lt_prog_compiler_wl='-Wl,';;
7520 esac
brynercb91a2f2006-08-25 21:14:45 +00007521 ;;
7522
7523 sunos4*)
7524 lt_prog_compiler_wl='-Qoption ld '
7525 lt_prog_compiler_pic='-PIC'
7526 lt_prog_compiler_static='-Bstatic'
7527 ;;
7528
mmentovai8c2a4de2006-09-20 16:20:15 +00007529 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00007530 lt_prog_compiler_wl='-Wl,'
7531 lt_prog_compiler_pic='-KPIC'
7532 lt_prog_compiler_static='-Bstatic'
7533 ;;
7534
7535 sysv4*MP*)
7536 if test -d /usr/nec ;then
7537 lt_prog_compiler_pic='-Kconform_pic'
7538 lt_prog_compiler_static='-Bstatic'
7539 fi
7540 ;;
7541
mmentovai8c2a4de2006-09-20 16:20:15 +00007542 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7543 lt_prog_compiler_wl='-Wl,'
7544 lt_prog_compiler_pic='-KPIC'
7545 lt_prog_compiler_static='-Bstatic'
7546 ;;
7547
7548 unicos*)
7549 lt_prog_compiler_wl='-Wl,'
7550 lt_prog_compiler_can_build_shared=no
7551 ;;
7552
brynercb91a2f2006-08-25 21:14:45 +00007553 uts4*)
7554 lt_prog_compiler_pic='-pic'
7555 lt_prog_compiler_static='-Bstatic'
7556 ;;
7557
7558 *)
7559 lt_prog_compiler_can_build_shared=no
7560 ;;
7561 esac
7562 fi
7563
mmentovai8c2a4de2006-09-20 16:20:15 +00007564{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7565echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007566
7567#
7568# Check to make sure the PIC flag actually works.
7569#
7570if test -n "$lt_prog_compiler_pic"; then
7571
mmentovai8c2a4de2006-09-20 16:20:15 +00007572{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7573echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007574if test "${lt_prog_compiler_pic_works+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7576else
7577 lt_prog_compiler_pic_works=no
7578 ac_outfile=conftest.$ac_objext
7579 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7580 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7581 # Insert the option either (1) after the last *FLAGS variable, or
7582 # (2) before a word containing "conftest.", or (3) at the end.
7583 # Note that $ac_compile itself does not contain backslashes and begins
7584 # with a dollar sign (not a hyphen), so the echo should work correctly.
7585 # The option is referenced via a variable to avoid confusing sed.
7586 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00007587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00007588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7589 -e 's:$: $lt_compiler_flag:'`
mmentovai0dbedc92006-09-25 21:16:15 +00007590 (eval echo "\"\$as_me:7590: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00007591 (eval "$lt_compile" 2>conftest.err)
7592 ac_status=$?
7593 cat conftest.err >&5
mmentovai0dbedc92006-09-25 21:16:15 +00007594 echo "$as_me:7594: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00007595 if (exit $ac_status) && test -s "$ac_outfile"; then
7596 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00007597 # So say no if there are warnings other than the usual output.
7598 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7599 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7600 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00007601 lt_prog_compiler_pic_works=yes
7602 fi
7603 fi
7604 $rm conftest*
7605
7606fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007607{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7608echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007609
7610if test x"$lt_prog_compiler_pic_works" = xyes; then
7611 case $lt_prog_compiler_pic in
7612 "" | " "*) ;;
7613 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7614 esac
7615else
7616 lt_prog_compiler_pic=
7617 lt_prog_compiler_can_build_shared=no
7618fi
7619
7620fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007621case $host_os in
brynercb91a2f2006-08-25 21:14:45 +00007622 # For platforms which do not support PIC, -DPIC is meaningless:
7623 *djgpp*)
7624 lt_prog_compiler_pic=
7625 ;;
7626 *)
7627 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7628 ;;
7629esac
7630
mmentovai8c2a4de2006-09-20 16:20:15 +00007631#
7632# Check to make sure the static flag actually works.
7633#
7634wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7635{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7636echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7637if test "${lt_prog_compiler_static_works+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7639else
7640 lt_prog_compiler_static_works=no
7641 save_LDFLAGS="$LDFLAGS"
7642 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7643 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7644 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7645 # The linker can only warn and ignore the option if not recognized
7646 # So say no if there are warnings
7647 if test -s conftest.err; then
7648 # Append any errors to the config.log.
7649 cat conftest.err 1>&5
7650 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7652 if diff conftest.exp conftest.er2 >/dev/null; then
7653 lt_prog_compiler_static_works=yes
7654 fi
7655 else
7656 lt_prog_compiler_static_works=yes
7657 fi
7658 fi
7659 $rm conftest*
7660 LDFLAGS="$save_LDFLAGS"
7661
7662fi
7663{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7664echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7665
7666if test x"$lt_prog_compiler_static_works" = xyes; then
7667 :
7668else
7669 lt_prog_compiler_static=
7670fi
7671
7672
7673{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7674echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007675if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7677else
7678 lt_cv_prog_compiler_c_o=no
7679 $rm -r conftest 2>/dev/null
7680 mkdir conftest
7681 cd conftest
7682 mkdir out
7683 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7684
7685 lt_compiler_flag="-o out/conftest2.$ac_objext"
7686 # Insert the option either (1) after the last *FLAGS variable, or
7687 # (2) before a word containing "conftest.", or (3) at the end.
7688 # Note that $ac_compile itself does not contain backslashes and begins
7689 # with a dollar sign (not a hyphen), so the echo should work correctly.
7690 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00007691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00007692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7693 -e 's:$: $lt_compiler_flag:'`
mmentovai0dbedc92006-09-25 21:16:15 +00007694 (eval echo "\"\$as_me:7694: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00007695 (eval "$lt_compile" 2>out/conftest.err)
7696 ac_status=$?
7697 cat out/conftest.err >&5
mmentovai0dbedc92006-09-25 21:16:15 +00007698 echo "$as_me:7698: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00007699 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7700 then
7701 # The compiler can only warn and ignore the option if not recognized
7702 # So say no if there are warnings
mmentovai8c2a4de2006-09-20 16:20:15 +00007703 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7704 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7705 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00007706 lt_cv_prog_compiler_c_o=yes
7707 fi
7708 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007709 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +00007710 $rm conftest*
7711 # SGI C++ compiler will create directory out/ii_files/ for
7712 # template instantiation
7713 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7714 $rm out/* && rmdir out
7715 cd ..
7716 rmdir conftest
7717 $rm conftest*
7718
7719fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007720{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7721echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007722
7723
7724hard_links="nottested"
7725if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7726 # do not overwrite the value of need_locks provided by the user
mmentovai8c2a4de2006-09-20 16:20:15 +00007727 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7728echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007729 hard_links=yes
7730 $rm conftest*
7731 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7732 touch conftest.a
7733 ln conftest.a conftest.b 2>&5 || hard_links=no
7734 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mmentovai8c2a4de2006-09-20 16:20:15 +00007735 { echo "$as_me:$LINENO: result: $hard_links" >&5
7736echo "${ECHO_T}$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007737 if test "$hard_links" = no; then
7738 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7739echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7740 need_locks=warn
7741 fi
7742else
7743 need_locks=no
7744fi
7745
mmentovai8c2a4de2006-09-20 16:20:15 +00007746{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7747echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007748
7749 runpath_var=
7750 allow_undefined_flag=
7751 enable_shared_with_static_runtimes=no
7752 archive_cmds=
7753 archive_expsym_cmds=
7754 old_archive_From_new_cmds=
7755 old_archive_from_expsyms_cmds=
7756 export_dynamic_flag_spec=
7757 whole_archive_flag_spec=
7758 thread_safe_flag_spec=
7759 hardcode_libdir_flag_spec=
7760 hardcode_libdir_flag_spec_ld=
7761 hardcode_libdir_separator=
7762 hardcode_direct=no
7763 hardcode_minus_L=no
7764 hardcode_shlibpath_var=unsupported
7765 link_all_deplibs=unknown
7766 hardcode_automatic=no
7767 module_cmds=
7768 module_expsym_cmds=
7769 always_export_symbols=no
7770 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7771 # include_expsyms should be a list of space-separated symbols to be *always*
7772 # included in the symbol list
7773 include_expsyms=
7774 # exclude_expsyms can be an extended regexp of symbols to exclude
7775 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7776 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7777 # as well as any symbol that contains `d'.
7778 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7779 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7780 # platforms (ab)use it in PIC code, but their linkers get confused if
7781 # the symbol is explicitly referenced. Since portable code cannot
7782 # rely on this symbol name, it's probably fine to never include it in
7783 # preloaded symbol tables.
7784 extract_expsyms_cmds=
mmentovai8c2a4de2006-09-20 16:20:15 +00007785 # Just being paranoid about ensuring that cc_basename is set.
7786 for cc_temp in $compiler""; do
7787 case $cc_temp in
7788 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7789 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7790 \-*) ;;
7791 *) break;;
7792 esac
7793done
7794cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +00007795
7796 case $host_os in
7797 cygwin* | mingw* | pw32*)
7798 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7799 # When not using gcc, we currently assume that we are using
7800 # Microsoft Visual C++.
7801 if test "$GCC" != yes; then
7802 with_gnu_ld=no
7803 fi
7804 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007805 interix*)
7806 # we just hope/assume this is gcc and not c89 (= MSVC++)
7807 with_gnu_ld=yes
7808 ;;
brynercb91a2f2006-08-25 21:14:45 +00007809 openbsd*)
7810 with_gnu_ld=no
7811 ;;
7812 esac
7813
7814 ld_shlibs=yes
7815 if test "$with_gnu_ld" = yes; then
7816 # If archive_cmds runs LD, not CC, wlarc should be empty
7817 wlarc='${wl}'
7818
mmentovai8c2a4de2006-09-20 16:20:15 +00007819 # Set some defaults for GNU ld with shared library support. These
7820 # are reset later if shared libraries are not supported. Putting them
7821 # here allows them to be overridden if necessary.
7822 runpath_var=LD_RUN_PATH
7823 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7824 export_dynamic_flag_spec='${wl}--export-dynamic'
7825 # ancient GNU ld didn't support --whole-archive et. al.
7826 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7827 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7828 else
7829 whole_archive_flag_spec=
7830 fi
7831 supports_anon_versioning=no
7832 case `$LD -v 2>/dev/null` in
7833 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7834 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7835 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7836 *\ 2.11.*) ;; # other 2.11 versions
7837 *) supports_anon_versioning=yes ;;
7838 esac
7839
brynercb91a2f2006-08-25 21:14:45 +00007840 # See if GNU ld supports shared libraries.
7841 case $host_os in
7842 aix3* | aix4* | aix5*)
7843 # On AIX/PPC, the GNU linker is very broken
7844 if test "$host_cpu" != ia64; then
7845 ld_shlibs=no
7846 cat <<EOF 1>&2
7847
7848*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7849*** to be unable to reliably create shared libraries on AIX.
7850*** Therefore, libtool is disabling shared libraries support. If you
7851*** really care for shared libraries, you may want to modify your PATH
7852*** so that a non-GNU linker is found, and then restart.
7853
7854EOF
7855 fi
7856 ;;
7857
7858 amigaos*)
7859 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)'
7860 hardcode_libdir_flag_spec='-L$libdir'
7861 hardcode_minus_L=yes
7862
7863 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7864 # that the semantics of dynamic libraries on AmigaOS, at least up
7865 # to version 4, is to share data among multiple programs linked
7866 # with the same dynamic library. Since this doesn't match the
7867 # behavior of shared libraries on other platforms, we can't use
7868 # them.
7869 ld_shlibs=no
7870 ;;
7871
7872 beos*)
7873 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7874 allow_undefined_flag=unsupported
7875 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7876 # support --undefined. This deserves some investigation. FIXME
7877 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7878 else
7879 ld_shlibs=no
7880 fi
7881 ;;
7882
7883 cygwin* | mingw* | pw32*)
7884 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7885 # as there is no search path for DLLs.
7886 hardcode_libdir_flag_spec='-L$libdir'
7887 allow_undefined_flag=unsupported
7888 always_export_symbols=no
7889 enable_shared_with_static_runtimes=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00007890 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +00007891
7892 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +00007894 # If the export-symbols file already is a .def file (1st line
7895 # is EXPORTS), use it as is; otherwise, prepend...
7896 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7897 cp $export_symbols $output_objdir/$soname.def;
7898 else
7899 echo EXPORTS > $output_objdir/$soname.def;
7900 cat $export_symbols >> $output_objdir/$soname.def;
7901 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +00007902 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +00007903 else
7904 ld_shlibs=no
7905 fi
7906 ;;
7907
mmentovai8c2a4de2006-09-20 16:20:15 +00007908 interix3*)
7909 hardcode_direct=no
7910 hardcode_shlibpath_var=no
7911 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7912 export_dynamic_flag_spec='${wl}-E'
7913 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7914 # Instead, shared libraries are loaded at an image base (0x10000000 by
7915 # default) and relocated if they conflict, which is a slow very memory
7916 # consuming and fragmenting process. To avoid this, we pick a random,
7917 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7918 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7919 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7920 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'
7921 ;;
7922
7923 linux*)
7924 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7925 tmp_addflag=
7926 case $cc_basename,$host_cpu in
7927 pgcc*) # Portland Group C compiler
7928 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'
7929 tmp_addflag=' $pic_flag'
7930 ;;
7931 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7932 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'
7933 tmp_addflag=' $pic_flag -Mnomain' ;;
7934 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7935 tmp_addflag=' -i_dynamic' ;;
7936 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7937 tmp_addflag=' -i_dynamic -nofor_main' ;;
7938 ifc* | ifort*) # Intel Fortran compiler
7939 tmp_addflag=' -nofor_main' ;;
7940 esac
7941 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7942
7943 if test $supports_anon_versioning = yes; then
7944 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7945 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7946 $echo "local: *; };" >> $output_objdir/$libname.ver~
7947 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7948 fi
7949 else
7950 ld_shlibs=no
7951 fi
7952 ;;
7953
7954 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +00007955 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7956 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7957 wlarc=
7958 else
7959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7960 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7961 fi
7962 ;;
7963
mmentovai8c2a4de2006-09-20 16:20:15 +00007964 solaris*)
brynercb91a2f2006-08-25 21:14:45 +00007965 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7966 ld_shlibs=no
7967 cat <<EOF 1>&2
7968
7969*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7970*** create shared libraries on Solaris systems. Therefore, libtool
7971*** is disabling shared libraries support. We urge you to upgrade GNU
7972*** binutils to release 2.9.1 or newer. Another option is to modify
7973*** your PATH or compiler configuration so that the native linker is
7974*** used, and then restart.
7975
7976EOF
7977 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7979 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7980 else
7981 ld_shlibs=no
7982 fi
7983 ;;
7984
mmentovai8c2a4de2006-09-20 16:20:15 +00007985 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7986 case `$LD -v 2>&1` in
7987 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7988 ld_shlibs=no
7989 cat <<_LT_EOF 1>&2
7990
7991*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7992*** reliably create shared libraries on SCO systems. Therefore, libtool
7993*** is disabling shared libraries support. We urge you to upgrade GNU
7994*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7995*** your PATH or compiler configuration so that the native linker is
7996*** used, and then restart.
7997
7998_LT_EOF
7999 ;;
8000 *)
8001 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8002 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8004 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8005 else
8006 ld_shlibs=no
8007 fi
8008 ;;
8009 esac
8010 ;;
8011
brynercb91a2f2006-08-25 21:14:45 +00008012 sunos4*)
8013 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8014 wlarc=
8015 hardcode_direct=yes
8016 hardcode_shlibpath_var=no
8017 ;;
8018
brynercb91a2f2006-08-25 21:14:45 +00008019 *)
8020 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8022 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8023 else
8024 ld_shlibs=no
8025 fi
8026 ;;
8027 esac
8028
mmentovai8c2a4de2006-09-20 16:20:15 +00008029 if test "$ld_shlibs" = no; then
8030 runpath_var=
8031 hardcode_libdir_flag_spec=
8032 export_dynamic_flag_spec=
8033 whole_archive_flag_spec=
brynercb91a2f2006-08-25 21:14:45 +00008034 fi
8035 else
8036 # PORTME fill in a description of your system's linker (not GNU ld)
8037 case $host_os in
8038 aix3*)
8039 allow_undefined_flag=unsupported
8040 always_export_symbols=yes
8041 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'
8042 # Note: this linker hardcodes the directories in LIBPATH if there
8043 # are no directories specified by -L.
8044 hardcode_minus_L=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008045 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +00008046 # Neither direct hardcoding nor static linking is supported with a
8047 # broken collect2.
8048 hardcode_direct=unsupported
8049 fi
8050 ;;
8051
8052 aix4* | aix5*)
8053 if test "$host_cpu" = ia64; then
8054 # On IA64, the linker does run time linking by default, so we don't
8055 # have to do anything special.
8056 aix_use_runtimelinking=no
8057 exp_sym_flag='-Bexport'
8058 no_entry_flag=""
8059 else
8060 # If we're using GNU nm, then we don't want the "-C" option.
8061 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8062 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8063 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'
8064 else
8065 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'
8066 fi
8067 aix_use_runtimelinking=no
8068
8069 # Test if we are trying to use run time linking or normal
8070 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8071 # need to do runtime linking.
8072 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8073 for ld_flag in $LDFLAGS; do
8074 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8075 aix_use_runtimelinking=yes
8076 break
8077 fi
8078 done
mmentovai8c2a4de2006-09-20 16:20:15 +00008079 ;;
brynercb91a2f2006-08-25 21:14:45 +00008080 esac
8081
8082 exp_sym_flag='-bexport'
8083 no_entry_flag='-bnoentry'
8084 fi
8085
8086 # When large executables or shared objects are built, AIX ld can
8087 # have problems creating the table of contents. If linking a library
8088 # or program results in "error TOC overflow" add -mminimal-toc to
8089 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8090 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8091
8092 archive_cmds=''
8093 hardcode_direct=yes
8094 hardcode_libdir_separator=':'
8095 link_all_deplibs=yes
8096
8097 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008098 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +00008099 # We only want to do this on AIX 4.2 and lower, the check
8100 # below for broken collect2 doesn't work under 4.3+
8101 collect2name=`${CC} -print-prog-name=collect2`
8102 if test -f "$collect2name" && \
8103 strings "$collect2name" | grep resolve_lib_name >/dev/null
8104 then
8105 # We have reworked collect2
8106 hardcode_direct=yes
8107 else
8108 # We have old collect2
8109 hardcode_direct=unsupported
8110 # It fails to find uninstalled libraries when the uninstalled
8111 # path is not listed in the libpath. Setting hardcode_minus_L
8112 # to unsupported forces relinking
8113 hardcode_minus_L=yes
8114 hardcode_libdir_flag_spec='-L$libdir'
8115 hardcode_libdir_separator=
8116 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008117 ;;
brynercb91a2f2006-08-25 21:14:45 +00008118 esac
8119 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +00008120 if test "$aix_use_runtimelinking" = yes; then
8121 shared_flag="$shared_flag "'${wl}-G'
8122 fi
brynercb91a2f2006-08-25 21:14:45 +00008123 else
8124 # not using gcc
8125 if test "$host_cpu" = ia64; then
8126 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8127 # chokes on -Wl,-G. The following line is correct:
8128 shared_flag='-G'
8129 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008130 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +00008131 shared_flag='${wl}-G'
8132 else
8133 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +00008134 fi
brynercb91a2f2006-08-25 21:14:45 +00008135 fi
8136 fi
8137
8138 # It seems that -bexpall does not export symbols beginning with
8139 # underscore (_), so it is better to generate a list of symbols to export.
8140 always_export_symbols=yes
8141 if test "$aix_use_runtimelinking" = yes; then
8142 # Warning - without using the other runtime loading flags (-brtl),
8143 # -berok will link without error, but may produce a broken library.
8144 allow_undefined_flag='-berok'
8145 # Determine the default libpath from the value encoded in an empty executable.
8146 cat >conftest.$ac_ext <<_ACEOF
8147/* confdefs.h. */
8148_ACEOF
8149cat confdefs.h >>conftest.$ac_ext
8150cat >>conftest.$ac_ext <<_ACEOF
8151/* end confdefs.h. */
8152
8153int
8154main ()
8155{
8156
8157 ;
8158 return 0;
8159}
8160_ACEOF
8161rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00008162if { (ac_try="$ac_link"
8163case "(($ac_try" in
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8166esac
8167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00008169 ac_status=$?
8170 grep -v '^ *+' conftest.er1 >conftest.err
8171 rm -f conftest.er1
8172 cat conftest.err >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00008175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8176 { (case "(($ac_try" in
8177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178 *) ac_try_echo=$ac_try;;
8179esac
8180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00008182 ac_status=$?
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; } &&
8185 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00008186 { (case "(($ac_try" in
8187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188 *) ac_try_echo=$ac_try;;
8189esac
8190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8191 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00008192 ac_status=$?
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; }; then
8195
8196aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8197}'`
8198# Check for a 64-bit object if we didn't find anything.
8199if 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; }
8200}'`; fi
8201else
8202 echo "$as_me: failed program was:" >&5
8203sed 's/^/| /' conftest.$ac_ext >&5
8204
mmentovai8c2a4de2006-09-20 16:20:15 +00008205
brynercb91a2f2006-08-25 21:14:45 +00008206fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008207
8208rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00008209 conftest$ac_exeext conftest.$ac_ext
8210if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8211
8212 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
mmentovai8c2a4de2006-09-20 16:20:15 +00008213 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"
brynercb91a2f2006-08-25 21:14:45 +00008214 else
8215 if test "$host_cpu" = ia64; then
8216 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8217 allow_undefined_flag="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +00008218 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"
brynercb91a2f2006-08-25 21:14:45 +00008219 else
8220 # Determine the default libpath from the value encoded in an empty executable.
8221 cat >conftest.$ac_ext <<_ACEOF
8222/* confdefs.h. */
8223_ACEOF
8224cat confdefs.h >>conftest.$ac_ext
8225cat >>conftest.$ac_ext <<_ACEOF
8226/* end confdefs.h. */
8227
8228int
8229main ()
8230{
8231
8232 ;
8233 return 0;
8234}
8235_ACEOF
8236rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00008237if { (ac_try="$ac_link"
8238case "(($ac_try" in
8239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8240 *) ac_try_echo=$ac_try;;
8241esac
8242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8243 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00008244 ac_status=$?
8245 grep -v '^ *+' conftest.er1 >conftest.err
8246 rm -f conftest.er1
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00008250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8251 { (case "(($ac_try" in
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8254esac
8255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00008257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; } &&
8260 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00008261 { (case "(($ac_try" in
8262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8263 *) ac_try_echo=$ac_try;;
8264esac
8265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8266 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00008267 ac_status=$?
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); }; }; then
8270
8271aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8272}'`
8273# Check for a 64-bit object if we didn't find anything.
8274if 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; }
8275}'`; fi
8276else
8277 echo "$as_me: failed program was:" >&5
8278sed 's/^/| /' conftest.$ac_ext >&5
8279
mmentovai8c2a4de2006-09-20 16:20:15 +00008280
brynercb91a2f2006-08-25 21:14:45 +00008281fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008282
8283rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00008284 conftest$ac_exeext conftest.$ac_ext
8285if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8286
8287 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8288 # Warning - without using the other run time loading flags,
8289 # -berok will link without error, but may produce a broken library.
8290 no_undefined_flag=' ${wl}-bernotok'
8291 allow_undefined_flag=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +00008292 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +00008293 whole_archive_flag_spec='$convenience'
brynercb91a2f2006-08-25 21:14:45 +00008294 archive_cmds_need_lc=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008295 # This is similar to how AIX traditionally builds its shared libraries.
8296 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'
brynercb91a2f2006-08-25 21:14:45 +00008297 fi
8298 fi
8299 ;;
8300
8301 amigaos*)
8302 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)'
8303 hardcode_libdir_flag_spec='-L$libdir'
8304 hardcode_minus_L=yes
8305 # see comment about different semantics on the GNU ld section
8306 ld_shlibs=no
8307 ;;
8308
mmentovai8c2a4de2006-09-20 16:20:15 +00008309 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00008310 export_dynamic_flag_spec=-rdynamic
8311 ;;
8312
8313 cygwin* | mingw* | pw32*)
8314 # When not using gcc, we currently assume that we are using
8315 # Microsoft Visual C++.
8316 # hardcode_libdir_flag_spec is actually meaningless, as there is
8317 # no search path for DLLs.
8318 hardcode_libdir_flag_spec=' '
8319 allow_undefined_flag=unsupported
8320 # Tell ltmain to make .lib files, not .a files.
8321 libext=lib
8322 # Tell ltmain to make .dll files, not .so files.
8323 shrext_cmds=".dll"
8324 # FIXME: Setting linknames here is a bad hack.
8325 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8326 # The linker will automatically build a .lib file if we build a DLL.
8327 old_archive_From_new_cmds='true'
8328 # FIXME: Should let the user specify the lib program.
8329 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8330 fix_srcfile_path='`cygpath -w "$srcfile"`'
8331 enable_shared_with_static_runtimes=yes
8332 ;;
8333
8334 darwin* | rhapsody*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008335 case $host_os in
8336 rhapsody* | darwin1.[012])
8337 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8338 ;;
8339 *) # Darwin 1.3 on
8340 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8341 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8342 else
8343 case ${MACOSX_DEPLOYMENT_TARGET} in
8344 10.[012])
8345 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8346 ;;
8347 10.*)
8348 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8349 ;;
8350 esac
8351 fi
8352 ;;
brynerd5e66382006-09-08 02:35:53 +00008353 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00008354 archive_cmds_need_lc=no
brynercb91a2f2006-08-25 21:14:45 +00008355 hardcode_direct=no
8356 hardcode_automatic=yes
8357 hardcode_shlibpath_var=unsupported
mmentovai8c2a4de2006-09-20 16:20:15 +00008358 whole_archive_flag_spec=''
brynercb91a2f2006-08-25 21:14:45 +00008359 link_all_deplibs=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008360 if test "$GCC" = yes ; then
8361 output_verbose_link_cmd='echo'
8362 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8363 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8364 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8365 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}'
8366 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}'
brynercb91a2f2006-08-25 21:14:45 +00008367 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008368 case $cc_basename in
8369 xlc*)
8370 output_verbose_link_cmd='echo'
8371 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8372 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8373 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8374 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}'
8375 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}'
8376 ;;
8377 *)
8378 ld_shlibs=no
8379 ;;
8380 esac
brynercb91a2f2006-08-25 21:14:45 +00008381 fi
8382 ;;
8383
8384 dgux*)
8385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8386 hardcode_libdir_flag_spec='-L$libdir'
8387 hardcode_shlibpath_var=no
8388 ;;
8389
8390 freebsd1*)
8391 ld_shlibs=no
8392 ;;
8393
8394 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8395 # support. Future versions do this automatically, but an explicit c++rt0.o
8396 # does not break anything, and helps significantly (at the cost of a little
8397 # extra space).
8398 freebsd2.2*)
8399 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8400 hardcode_libdir_flag_spec='-R$libdir'
8401 hardcode_direct=yes
8402 hardcode_shlibpath_var=no
8403 ;;
8404
8405 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8406 freebsd2*)
8407 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8408 hardcode_direct=yes
8409 hardcode_minus_L=yes
8410 hardcode_shlibpath_var=no
8411 ;;
8412
8413 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mmentovai8c2a4de2006-09-20 16:20:15 +00008414 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +00008415 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8416 hardcode_libdir_flag_spec='-R$libdir'
8417 hardcode_direct=yes
8418 hardcode_shlibpath_var=no
8419 ;;
8420
8421 hpux9*)
8422 if test "$GCC" = yes; then
8423 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'
8424 else
8425 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'
8426 fi
8427 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8428 hardcode_libdir_separator=:
8429 hardcode_direct=yes
8430
8431 # hardcode_minus_L: Not really in the search PATH,
8432 # but as the default location of the library.
8433 hardcode_minus_L=yes
8434 export_dynamic_flag_spec='${wl}-E'
8435 ;;
8436
mmentovai8c2a4de2006-09-20 16:20:15 +00008437 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +00008438 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008439 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8440 else
8441 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8442 fi
8443 if test "$with_gnu_ld" = no; then
8444 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8445 hardcode_libdir_separator=:
8446
8447 hardcode_direct=yes
8448 export_dynamic_flag_spec='${wl}-E'
8449
8450 # hardcode_minus_L: Not really in the search PATH,
8451 # but as the default location of the library.
8452 hardcode_minus_L=yes
8453 fi
8454 ;;
8455
8456 hpux11*)
8457 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8458 case $host_cpu in
8459 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +00008460 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8461 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008462 ia64*)
8463 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8464 ;;
brynercb91a2f2006-08-25 21:14:45 +00008465 *)
8466 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8467 ;;
8468 esac
8469 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008470 case $host_cpu in
8471 hppa*64*)
8472 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8473 ;;
8474 ia64*)
8475 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +00008476 ;;
8477 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00008478 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +00008479 ;;
8480 esac
8481 fi
8482 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8484 hardcode_libdir_separator=:
brynerd5e66382006-09-08 02:35:53 +00008485
mmentovai8c2a4de2006-09-20 16:20:15 +00008486 case $host_cpu in
8487 hppa*64*|ia64*)
8488 hardcode_libdir_flag_spec_ld='+b $libdir'
8489 hardcode_direct=no
8490 hardcode_shlibpath_var=no
brynerd5e66382006-09-08 02:35:53 +00008491 ;;
brynercb91a2f2006-08-25 21:14:45 +00008492 *)
brynercb91a2f2006-08-25 21:14:45 +00008493 hardcode_direct=yes
8494 export_dynamic_flag_spec='${wl}-E'
8495
8496 # hardcode_minus_L: Not really in the search PATH,
8497 # but as the default location of the library.
8498 hardcode_minus_L=yes
8499 ;;
8500 esac
8501 fi
8502 ;;
8503
8504 irix5* | irix6* | nonstopux*)
8505 if test "$GCC" = yes; then
8506 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'
8507 else
8508 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'
8509 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8510 fi
8511 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8512 hardcode_libdir_separator=:
8513 link_all_deplibs=yes
8514 ;;
8515
mmentovai8c2a4de2006-09-20 16:20:15 +00008516 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +00008517 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8519 else
8520 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8521 fi
8522 hardcode_libdir_flag_spec='-R$libdir'
8523 hardcode_direct=yes
8524 hardcode_shlibpath_var=no
8525 ;;
8526
8527 newsos6)
8528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8529 hardcode_direct=yes
8530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8531 hardcode_libdir_separator=:
8532 hardcode_shlibpath_var=no
8533 ;;
8534
8535 openbsd*)
8536 hardcode_direct=yes
8537 hardcode_shlibpath_var=no
8538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00008540 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
brynercb91a2f2006-08-25 21:14:45 +00008541 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8542 export_dynamic_flag_spec='${wl}-E'
8543 else
8544 case $host_os in
8545 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8547 hardcode_libdir_flag_spec='-R$libdir'
8548 ;;
8549 *)
8550 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8551 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8552 ;;
8553 esac
8554 fi
8555 ;;
8556
8557 os2*)
8558 hardcode_libdir_flag_spec='-L$libdir'
8559 hardcode_minus_L=yes
8560 allow_undefined_flag=unsupported
8561 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'
8562 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8563 ;;
8564
8565 osf3*)
8566 if test "$GCC" = yes; then
8567 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8568 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'
8569 else
8570 allow_undefined_flag=' -expect_unresolved \*'
8571 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'
8572 fi
8573 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8574 hardcode_libdir_separator=:
8575 ;;
8576
8577 osf4* | osf5*) # as osf3* with the addition of -msym flag
8578 if test "$GCC" = yes; then
8579 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8580 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'
8581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8582 else
8583 allow_undefined_flag=' -expect_unresolved \*'
8584 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'
8585 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
mmentovai8c2a4de2006-09-20 16:20:15 +00008586 $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'
brynercb91a2f2006-08-25 21:14:45 +00008587
8588 # Both c and cxx compiler support -rpath directly
8589 hardcode_libdir_flag_spec='-rpath $libdir'
8590 fi
8591 hardcode_libdir_separator=:
8592 ;;
8593
brynercb91a2f2006-08-25 21:14:45 +00008594 solaris*)
8595 no_undefined_flag=' -z text'
8596 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008597 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +00008598 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8599 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8600 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8601 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008602 wlarc=''
brynercb91a2f2006-08-25 21:14:45 +00008603 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8604 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8605 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8606 fi
8607 hardcode_libdir_flag_spec='-R$libdir'
8608 hardcode_shlibpath_var=no
8609 case $host_os in
8610 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008611 *)
8612 # The compiler driver will combine linker options so we
8613 # cannot just pass the convience library names through
8614 # without $wl, iff we do not link with $LD.
8615 # Luckily, gcc supports the same syntax we need for Sun Studio.
8616 # Supported since Solaris 2.6 (maybe 2.5.1?)
8617 case $wlarc in
8618 '')
8619 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8620 *)
8621 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' ;;
8622 esac ;;
brynercb91a2f2006-08-25 21:14:45 +00008623 esac
8624 link_all_deplibs=yes
8625 ;;
8626
8627 sunos4*)
8628 if test "x$host_vendor" = xsequent; then
8629 # Use $CC to link under sequent, because it throws in some extra .o
8630 # files that make .init and .fini sections work.
8631 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8632 else
8633 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8634 fi
8635 hardcode_libdir_flag_spec='-L$libdir'
8636 hardcode_direct=yes
8637 hardcode_minus_L=yes
8638 hardcode_shlibpath_var=no
8639 ;;
8640
8641 sysv4)
8642 case $host_vendor in
8643 sni)
8644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8645 hardcode_direct=yes # is this really true???
8646 ;;
8647 siemens)
8648 ## LD is ld it makes a PLAMLIB
8649 ## CC just makes a GrossModule.
8650 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8651 reload_cmds='$CC -r -o $output$reload_objs'
8652 hardcode_direct=no
8653 ;;
8654 motorola)
8655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8656 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8657 ;;
8658 esac
8659 runpath_var='LD_RUN_PATH'
8660 hardcode_shlibpath_var=no
8661 ;;
8662
8663 sysv4.3*)
8664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8665 hardcode_shlibpath_var=no
8666 export_dynamic_flag_spec='-Bexport'
8667 ;;
8668
8669 sysv4*MP*)
8670 if test -d /usr/nec; then
8671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8672 hardcode_shlibpath_var=no
8673 runpath_var=LD_RUN_PATH
8674 hardcode_runpath_var=yes
8675 ld_shlibs=yes
8676 fi
8677 ;;
8678
mmentovai8c2a4de2006-09-20 16:20:15 +00008679 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8680 no_undefined_flag='${wl}-z,text'
8681 archive_cmds_need_lc=no
brynercb91a2f2006-08-25 21:14:45 +00008682 hardcode_shlibpath_var=no
mmentovai8c2a4de2006-09-20 16:20:15 +00008683 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +00008684
mmentovai3261e8b2006-09-06 02:56:44 +00008685 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008686 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8687 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00008688 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008689 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8690 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00008691 fi
brynerd5e66382006-09-08 02:35:53 +00008692 ;;
8693
mmentovai8c2a4de2006-09-20 16:20:15 +00008694 sysv5* | sco3.2v5* | sco5v6*)
8695 # Note: We can NOT use -z defs as we might desire, because we do not
8696 # link with -lc, and that would cause any symbols used from libc to
8697 # always be unresolved, which means just about no library would
8698 # ever link correctly. If we're not using GNU ld we use -z text
8699 # though, which does catch some bad symbols but isn't as heavy-handed
8700 # as -z defs.
8701 no_undefined_flag='${wl}-z,text'
8702 allow_undefined_flag='${wl}-z,nodefs'
8703 archive_cmds_need_lc=no
brynerd5e66382006-09-08 02:35:53 +00008704 hardcode_shlibpath_var=no
mmentovai8c2a4de2006-09-20 16:20:15 +00008705 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8706 hardcode_libdir_separator=':'
8707 link_all_deplibs=yes
8708 export_dynamic_flag_spec='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +00008709 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +00008710
8711 if test "$GCC" = yes; then
8712 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8713 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8714 else
8715 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8716 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8717 fi
brynercb91a2f2006-08-25 21:14:45 +00008718 ;;
8719
8720 uts4*)
8721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8722 hardcode_libdir_flag_spec='-L$libdir'
8723 hardcode_shlibpath_var=no
8724 ;;
8725
8726 *)
8727 ld_shlibs=no
8728 ;;
8729 esac
8730 fi
8731
mmentovai8c2a4de2006-09-20 16:20:15 +00008732{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8733echo "${ECHO_T}$ld_shlibs" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008734test "$ld_shlibs" = no && can_build_shared=no
8735
brynercb91a2f2006-08-25 21:14:45 +00008736#
8737# Do we need to explicitly link libc?
8738#
8739case "x$archive_cmds_need_lc" in
8740x|xyes)
8741 # Assume -lc should be added
8742 archive_cmds_need_lc=yes
8743
8744 if test "$enable_shared" = yes && test "$GCC" = yes; then
8745 case $archive_cmds in
8746 *'~'*)
8747 # FIXME: we may have to deal with multi-command sequences.
8748 ;;
8749 '$CC '*)
8750 # Test whether the compiler implicitly links with -lc since on some
8751 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8752 # to ld, don't add -lc before -lgcc.
mmentovai8c2a4de2006-09-20 16:20:15 +00008753 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8754echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008755 $rm conftest*
8756 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8757
8758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8759 (eval $ac_compile) 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } 2>conftest.err; then
8763 soname=conftest
8764 lib=conftest
8765 libobjs=conftest.$ac_objext
8766 deplibs=
8767 wl=$lt_prog_compiler_wl
mmentovai8c2a4de2006-09-20 16:20:15 +00008768 pic_flag=$lt_prog_compiler_pic
brynercb91a2f2006-08-25 21:14:45 +00008769 compiler_flags=-v
8770 linker_flags=-v
8771 verstring=
8772 output_objdir=.
8773 libname=conftest
8774 lt_save_allow_undefined_flag=$allow_undefined_flag
8775 allow_undefined_flag=
8776 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8777 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8778 ac_status=$?
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }
8781 then
8782 archive_cmds_need_lc=no
8783 else
8784 archive_cmds_need_lc=yes
8785 fi
8786 allow_undefined_flag=$lt_save_allow_undefined_flag
8787 else
8788 cat conftest.err 1>&5
8789 fi
8790 $rm conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +00008791 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8792echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008793 ;;
8794 esac
8795 fi
8796 ;;
8797esac
8798
mmentovai8c2a4de2006-09-20 16:20:15 +00008799{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8800echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008801library_names_spec=
8802libname_spec='lib$name'
8803soname_spec=
8804shrext_cmds=".so"
8805postinstall_cmds=
8806postuninstall_cmds=
8807finish_cmds=
8808finish_eval=
8809shlibpath_var=
8810shlibpath_overrides_runpath=unknown
8811version_type=none
8812dynamic_linker="$host_os ld.so"
8813sys_lib_dlsearch_path_spec="/lib /usr/lib"
8814if test "$GCC" = yes; then
8815 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8816 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8817 # if the path contains ";" then we assume it to be the separator
8818 # otherwise default to the standard path separator (i.e. ":") - it is
8819 # assumed that no part of a normal pathname contains ";" but that should
8820 # okay in the real world where ";" in dirpaths is itself problematic.
8821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8822 else
8823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8824 fi
8825else
8826 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8827fi
8828need_lib_prefix=unknown
8829hardcode_into_libs=no
8830
8831# when you set need_version to no, make sure it does not cause -set_version
8832# flags to be left without arguments
8833need_version=unknown
8834
8835case $host_os in
8836aix3*)
8837 version_type=linux
8838 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8839 shlibpath_var=LIBPATH
8840
8841 # AIX 3 has no versioning support, so we append a major version to the name.
8842 soname_spec='${libname}${release}${shared_ext}$major'
8843 ;;
8844
8845aix4* | aix5*)
8846 version_type=linux
8847 need_lib_prefix=no
8848 need_version=no
8849 hardcode_into_libs=yes
8850 if test "$host_cpu" = ia64; then
8851 # AIX 5 supports IA64
8852 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8853 shlibpath_var=LD_LIBRARY_PATH
8854 else
8855 # With GCC up to 2.95.x, collect2 would create an import file
8856 # for dependence libraries. The import file would start with
8857 # the line `#! .'. This would cause the generated library to
8858 # depend on `.', always an invalid library. This was fixed in
8859 # development snapshots of GCC prior to 3.0.
8860 case $host_os in
8861 aix4 | aix4.[01] | aix4.[01].*)
8862 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8863 echo ' yes '
8864 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8865 :
8866 else
8867 can_build_shared=no
8868 fi
8869 ;;
8870 esac
8871 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8872 # soname into executable. Probably we can add versioning support to
8873 # collect2, so additional links can be useful in future.
8874 if test "$aix_use_runtimelinking" = yes; then
8875 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8876 # instead of lib<name>.a to let people know that these are not
8877 # typical AIX shared libraries.
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8879 else
8880 # We preserve .a as extension for shared libraries through AIX4.2
8881 # and later when we are not doing run time linking.
8882 library_names_spec='${libname}${release}.a $libname.a'
8883 soname_spec='${libname}${release}${shared_ext}$major'
8884 fi
8885 shlibpath_var=LIBPATH
8886 fi
8887 ;;
8888
8889amigaos*)
8890 library_names_spec='$libname.ixlibrary $libname.a'
8891 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8892 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'
8893 ;;
8894
8895beos*)
8896 library_names_spec='${libname}${shared_ext}'
8897 dynamic_linker="$host_os ld.so"
8898 shlibpath_var=LIBRARY_PATH
8899 ;;
8900
mmentovai8c2a4de2006-09-20 16:20:15 +00008901bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00008902 version_type=linux
8903 need_version=no
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8907 shlibpath_var=LD_LIBRARY_PATH
8908 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8909 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8910 # the default ld.so.conf also contains /usr/contrib/lib and
8911 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8912 # libtool to hard-code these into programs
8913 ;;
8914
8915cygwin* | mingw* | pw32*)
8916 version_type=windows
8917 shrext_cmds=".dll"
8918 need_version=no
8919 need_lib_prefix=no
8920
8921 case $GCC,$host_os in
8922 yes,cygwin* | yes,mingw* | yes,pw32*)
8923 library_names_spec='$libname.dll.a'
8924 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8925 postinstall_cmds='base_file=`basename \${file}`~
8926 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8927 dldir=$destdir/`dirname \$dlpath`~
8928 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +00008929 $install_prog $dir/$dlname \$dldir/$dlname~
8930 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +00008931 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8932 dlpath=$dir/\$dldll~
8933 $rm \$dlpath'
8934 shlibpath_overrides_runpath=yes
8935
8936 case $host_os in
8937 cygwin*)
8938 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8939 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8940 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8941 ;;
8942 mingw*)
8943 # MinGW DLLs use traditional 'lib' prefix
8944 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8945 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8946 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8947 # It is most probably a Windows format PATH printed by
8948 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8949 # path with ; separators, and with drive letters. We can handle the
8950 # drive letters (cygwin fileutils understands them), so leave them,
8951 # especially as we might pass files found there to a mingw objdump,
8952 # which wouldn't understand a cygwinified path. Ahh.
8953 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8954 else
8955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8956 fi
8957 ;;
8958 pw32*)
8959 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +00008960 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
brynercb91a2f2006-08-25 21:14:45 +00008961 ;;
8962 esac
8963 ;;
8964
8965 *)
8966 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8967 ;;
8968 esac
8969 dynamic_linker='Win32 ld.exe'
8970 # FIXME: first we should search . and the directory the executable is in
8971 shlibpath_var=PATH
8972 ;;
8973
8974darwin* | rhapsody*)
8975 dynamic_linker="$host_os dyld"
8976 version_type=darwin
8977 need_lib_prefix=no
8978 need_version=no
8979 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8980 soname_spec='${libname}${release}${major}$shared_ext'
8981 shlibpath_overrides_runpath=yes
8982 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +00008983 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
brynercb91a2f2006-08-25 21:14:45 +00008984 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8985 if test "$GCC" = yes; then
8986 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"`
8987 else
8988 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8989 fi
8990 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8991 ;;
8992
8993dgux*)
8994 version_type=linux
8995 need_lib_prefix=no
8996 need_version=no
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 shlibpath_var=LD_LIBRARY_PATH
9000 ;;
9001
9002freebsd1*)
9003 dynamic_linker=no
9004 ;;
9005
9006kfreebsd*-gnu)
9007 version_type=linux
9008 need_lib_prefix=no
9009 need_version=no
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
9012 shlibpath_var=LD_LIBRARY_PATH
9013 shlibpath_overrides_runpath=no
9014 hardcode_into_libs=yes
9015 dynamic_linker='GNU ld.so'
9016 ;;
9017
mmentovai8c2a4de2006-09-20 16:20:15 +00009018freebsd* | dragonfly*)
9019 # DragonFly does not have aout. When/if they implement a new
9020 # versioning mechanism, adjust this.
9021 if test -x /usr/bin/objformat; then
9022 objformat=`/usr/bin/objformat`
9023 else
9024 case $host_os in
9025 freebsd[123]*) objformat=aout ;;
9026 *) objformat=elf ;;
9027 esac
9028 fi
brynercb91a2f2006-08-25 21:14:45 +00009029 version_type=freebsd-$objformat
9030 case $version_type in
9031 freebsd-elf*)
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9033 need_version=no
9034 need_lib_prefix=no
9035 ;;
9036 freebsd-*)
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9038 need_version=yes
9039 ;;
9040 esac
9041 shlibpath_var=LD_LIBRARY_PATH
9042 case $host_os in
9043 freebsd2*)
9044 shlibpath_overrides_runpath=yes
9045 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009046 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +00009047 shlibpath_overrides_runpath=yes
9048 hardcode_into_libs=yes
9049 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009050 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9051 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +00009052 shlibpath_overrides_runpath=no
9053 hardcode_into_libs=yes
9054 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009055 freebsd*) # from 4.6 on
9056 shlibpath_overrides_runpath=yes
9057 hardcode_into_libs=yes
9058 ;;
brynercb91a2f2006-08-25 21:14:45 +00009059 esac
9060 ;;
9061
9062gnu*)
9063 version_type=linux
9064 need_lib_prefix=no
9065 need_version=no
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9067 soname_spec='${libname}${release}${shared_ext}$major'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 hardcode_into_libs=yes
9070 ;;
9071
9072hpux9* | hpux10* | hpux11*)
9073 # Give a soname corresponding to the major version so that dld.sl refuses to
9074 # link against other versions.
9075 version_type=sunos
9076 need_lib_prefix=no
9077 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009078 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00009079 ia64*)
9080 shrext_cmds='.so'
9081 hardcode_into_libs=yes
9082 dynamic_linker="$host_os dld.so"
9083 shlibpath_var=LD_LIBRARY_PATH
9084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9086 soname_spec='${libname}${release}${shared_ext}$major'
9087 if test "X$HPUX_IA64_MODE" = X32; then
9088 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9089 else
9090 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9091 fi
9092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9093 ;;
9094 hppa*64*)
9095 shrext_cmds='.sl'
9096 hardcode_into_libs=yes
9097 dynamic_linker="$host_os dld.sl"
9098 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101 soname_spec='${libname}${release}${shared_ext}$major'
9102 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9104 ;;
9105 *)
9106 shrext_cmds='.sl'
9107 dynamic_linker="$host_os dld.sl"
9108 shlibpath_var=SHLIB_PATH
9109 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111 soname_spec='${libname}${release}${shared_ext}$major'
9112 ;;
9113 esac
9114 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9115 postinstall_cmds='chmod 555 $lib'
9116 ;;
9117
mmentovai8c2a4de2006-09-20 16:20:15 +00009118interix3*)
9119 version_type=linux
9120 need_lib_prefix=no
9121 need_version=no
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9125 shlibpath_var=LD_LIBRARY_PATH
9126 shlibpath_overrides_runpath=no
9127 hardcode_into_libs=yes
9128 ;;
9129
brynercb91a2f2006-08-25 21:14:45 +00009130irix5* | irix6* | nonstopux*)
9131 case $host_os in
9132 nonstopux*) version_type=nonstopux ;;
9133 *)
9134 if test "$lt_cv_prog_gnu_ld" = yes; then
9135 version_type=linux
9136 else
9137 version_type=irix
9138 fi ;;
9139 esac
9140 need_lib_prefix=no
9141 need_version=no
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9144 case $host_os in
9145 irix5* | nonstopux*)
9146 libsuff= shlibsuff=
9147 ;;
9148 *)
9149 case $LD in # libtool.m4 will add one of these switches to LD
9150 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9151 libsuff= shlibsuff= libmagic=32-bit;;
9152 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9153 libsuff=32 shlibsuff=N32 libmagic=N32;;
9154 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9155 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9156 *) libsuff= shlibsuff= libmagic=never-match;;
9157 esac
9158 ;;
9159 esac
9160 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9161 shlibpath_overrides_runpath=no
9162 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9163 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9164 hardcode_into_libs=yes
9165 ;;
9166
9167# No shared lib support for Linux oldld, aout, or coff.
9168linux*oldld* | linux*aout* | linux*coff*)
9169 dynamic_linker=no
9170 ;;
9171
9172# This must be Linux ELF.
9173linux*)
9174 version_type=linux
9175 need_lib_prefix=no
9176 need_version=no
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath=no
9182 # This implies no fast_install, which is unacceptable.
9183 # Some rework will be needed to allow for fast_install
9184 # before this can be enabled.
9185 hardcode_into_libs=yes
9186
9187 # Append ld.so.conf contents to the search path
9188 if test -f /etc/ld.so.conf; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009189 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' ' '`
brynercb91a2f2006-08-25 21:14:45 +00009190 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9191 fi
9192
9193 # We used to test for /lib/ld.so.1 and disable shared libraries on
9194 # powerpc, because MkLinux only supported shared libraries with the
9195 # GNU dynamic linker. Since this was broken with cross compilers,
9196 # most powerpc-linux boxes support dynamic linking these days and
9197 # people can always --disable-shared, the test was removed, and we
9198 # assume the GNU/Linux dynamic linker is in use.
9199 dynamic_linker='GNU/Linux ld.so'
9200 ;;
9201
brynercb91a2f2006-08-25 21:14:45 +00009202knetbsd*-gnu)
9203 version_type=linux
9204 need_lib_prefix=no
9205 need_version=no
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9207 soname_spec='${libname}${release}${shared_ext}$major'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 shlibpath_overrides_runpath=no
9210 hardcode_into_libs=yes
9211 dynamic_linker='GNU ld.so'
9212 ;;
9213
9214netbsd*)
9215 version_type=sunos
9216 need_lib_prefix=no
9217 need_version=no
9218 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9221 dynamic_linker='NetBSD (a.out) ld.so'
9222 else
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 dynamic_linker='NetBSD ld.elf_so'
9226 fi
9227 shlibpath_var=LD_LIBRARY_PATH
9228 shlibpath_overrides_runpath=yes
9229 hardcode_into_libs=yes
9230 ;;
9231
9232newsos6)
9233 version_type=linux
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 shlibpath_var=LD_LIBRARY_PATH
9236 shlibpath_overrides_runpath=yes
9237 ;;
9238
9239nto-qnx*)
9240 version_type=linux
9241 need_lib_prefix=no
9242 need_version=no
9243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9244 soname_spec='${libname}${release}${shared_ext}$major'
9245 shlibpath_var=LD_LIBRARY_PATH
9246 shlibpath_overrides_runpath=yes
9247 ;;
9248
9249openbsd*)
9250 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +00009251 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +00009252 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009253 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9254 case $host_os in
9255 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9256 *) need_version=no ;;
9257 esac
brynercb91a2f2006-08-25 21:14:45 +00009258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9259 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9262 case $host_os in
9263 openbsd2.[89] | openbsd2.[89].*)
9264 shlibpath_overrides_runpath=no
9265 ;;
9266 *)
9267 shlibpath_overrides_runpath=yes
9268 ;;
9269 esac
9270 else
9271 shlibpath_overrides_runpath=yes
9272 fi
9273 ;;
9274
9275os2*)
9276 libname_spec='$name'
9277 shrext_cmds=".dll"
9278 need_lib_prefix=no
9279 library_names_spec='$libname${shared_ext} $libname.a'
9280 dynamic_linker='OS/2 ld.exe'
9281 shlibpath_var=LIBPATH
9282 ;;
9283
9284osf3* | osf4* | osf5*)
9285 version_type=osf
9286 need_lib_prefix=no
9287 need_version=no
9288 soname_spec='${libname}${release}${shared_ext}$major'
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9292 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9293 ;;
9294
brynercb91a2f2006-08-25 21:14:45 +00009295solaris*)
9296 version_type=linux
9297 need_lib_prefix=no
9298 need_version=no
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9300 soname_spec='${libname}${release}${shared_ext}$major'
9301 shlibpath_var=LD_LIBRARY_PATH
9302 shlibpath_overrides_runpath=yes
9303 hardcode_into_libs=yes
9304 # ldd complains unless libraries are executable
9305 postinstall_cmds='chmod +x $lib'
9306 ;;
9307
9308sunos4*)
9309 version_type=sunos
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9311 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9312 shlibpath_var=LD_LIBRARY_PATH
9313 shlibpath_overrides_runpath=yes
9314 if test "$with_gnu_ld" = yes; then
9315 need_lib_prefix=no
9316 fi
9317 need_version=yes
9318 ;;
9319
mmentovai8c2a4de2006-09-20 16:20:15 +00009320sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00009321 version_type=linux
9322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323 soname_spec='${libname}${release}${shared_ext}$major'
9324 shlibpath_var=LD_LIBRARY_PATH
9325 case $host_vendor in
9326 sni)
9327 shlibpath_overrides_runpath=no
9328 need_lib_prefix=no
9329 export_dynamic_flag_spec='${wl}-Blargedynsym'
9330 runpath_var=LD_RUN_PATH
9331 ;;
9332 siemens)
9333 need_lib_prefix=no
9334 ;;
9335 motorola)
9336 need_lib_prefix=no
9337 need_version=no
9338 shlibpath_overrides_runpath=no
9339 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9340 ;;
9341 esac
9342 ;;
9343
9344sysv4*MP*)
9345 if test -d /usr/nec ;then
9346 version_type=linux
9347 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9348 soname_spec='$libname${shared_ext}.$major'
9349 shlibpath_var=LD_LIBRARY_PATH
9350 fi
9351 ;;
9352
mmentovai8c2a4de2006-09-20 16:20:15 +00009353sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9354 version_type=freebsd-elf
9355 need_lib_prefix=no
9356 need_version=no
9357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9358 soname_spec='${libname}${release}${shared_ext}$major'
9359 shlibpath_var=LD_LIBRARY_PATH
9360 hardcode_into_libs=yes
9361 if test "$with_gnu_ld" = yes; then
9362 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9363 shlibpath_overrides_runpath=no
9364 else
9365 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9366 shlibpath_overrides_runpath=yes
9367 case $host_os in
9368 sco3.2v5*)
9369 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9370 ;;
9371 esac
9372 fi
9373 sys_lib_dlsearch_path_spec='/usr/lib'
9374 ;;
9375
brynercb91a2f2006-08-25 21:14:45 +00009376uts4*)
9377 version_type=linux
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9379 soname_spec='${libname}${release}${shared_ext}$major'
9380 shlibpath_var=LD_LIBRARY_PATH
9381 ;;
9382
9383*)
9384 dynamic_linker=no
9385 ;;
9386esac
mmentovai8c2a4de2006-09-20 16:20:15 +00009387{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9388echo "${ECHO_T}$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009389test "$dynamic_linker" = no && can_build_shared=no
9390
mmentovai8c2a4de2006-09-20 16:20:15 +00009391variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9392if test "$GCC" = yes; then
9393 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9394fi
9395
9396{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9397echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009398hardcode_action=
9399if test -n "$hardcode_libdir_flag_spec" || \
mmentovai8c2a4de2006-09-20 16:20:15 +00009400 test -n "$runpath_var" || \
9401 test "X$hardcode_automatic" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +00009402
9403 # We can hardcode non-existant directories.
9404 if test "$hardcode_direct" != no &&
9405 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9406 # have to relink, otherwise we might link with an installed library
9407 # when we should be linking with a yet-to-be-installed one
9408 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9409 test "$hardcode_minus_L" != no; then
9410 # Linking always hardcodes the temporary library directory.
9411 hardcode_action=relink
9412 else
9413 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9414 hardcode_action=immediate
9415 fi
9416else
9417 # We cannot hardcode anything, or else we can only hardcode existing
9418 # directories.
9419 hardcode_action=unsupported
9420fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009421{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9422echo "${ECHO_T}$hardcode_action" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009423
9424if test "$hardcode_action" = relink; then
9425 # Fast installation is not supported
9426 enable_fast_install=no
9427elif test "$shlibpath_overrides_runpath" = yes ||
9428 test "$enable_shared" = no; then
9429 # Fast installation is not necessary
9430 enable_fast_install=needless
9431fi
9432
9433striplib=
9434old_striplib=
mmentovai8c2a4de2006-09-20 16:20:15 +00009435{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9436echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009437if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9438 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9439 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
mmentovai8c2a4de2006-09-20 16:20:15 +00009440 { echo "$as_me:$LINENO: result: yes" >&5
9441echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009442else
9443# FIXME - insert some real tests, host_os isn't really good enough
9444 case $host_os in
9445 darwin*)
9446 if test -n "$STRIP" ; then
9447 striplib="$STRIP -x"
mmentovai8c2a4de2006-09-20 16:20:15 +00009448 { echo "$as_me:$LINENO: result: yes" >&5
9449echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009450 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009451 { echo "$as_me:$LINENO: result: no" >&5
9452echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009453fi
9454 ;;
9455 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00009456 { echo "$as_me:$LINENO: result: no" >&5
9457echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009458 ;;
9459 esac
9460fi
9461
9462if test "x$enable_dlopen" != xyes; then
9463 enable_dlopen=unknown
9464 enable_dlopen_self=unknown
9465 enable_dlopen_self_static=unknown
9466else
9467 lt_cv_dlopen=no
9468 lt_cv_dlopen_libs=
9469
9470 case $host_os in
9471 beos*)
9472 lt_cv_dlopen="load_add_on"
9473 lt_cv_dlopen_libs=
9474 lt_cv_dlopen_self=yes
9475 ;;
9476
9477 mingw* | pw32*)
9478 lt_cv_dlopen="LoadLibrary"
9479 lt_cv_dlopen_libs=
9480 ;;
9481
9482 cygwin*)
9483 lt_cv_dlopen="dlopen"
9484 lt_cv_dlopen_libs=
9485 ;;
9486
9487 darwin*)
9488 # if libdl is installed we need to link against it
mmentovai8c2a4de2006-09-20 16:20:15 +00009489 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9490echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009491if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9493else
9494 ac_check_lib_save_LIBS=$LIBS
9495LIBS="-ldl $LIBS"
9496cat >conftest.$ac_ext <<_ACEOF
9497/* confdefs.h. */
9498_ACEOF
9499cat confdefs.h >>conftest.$ac_ext
9500cat >>conftest.$ac_ext <<_ACEOF
9501/* end confdefs.h. */
9502
mmentovai8c2a4de2006-09-20 16:20:15 +00009503/* Override any GCC internal prototype to avoid an error.
9504 Use char because int might match the return type of a GCC
9505 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009506#ifdef __cplusplus
9507extern "C"
9508#endif
brynercb91a2f2006-08-25 21:14:45 +00009509char dlopen ();
9510int
9511main ()
9512{
mmentovai8c2a4de2006-09-20 16:20:15 +00009513return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +00009514 ;
9515 return 0;
9516}
9517_ACEOF
9518rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009519if { (ac_try="$ac_link"
9520case "(($ac_try" in
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9523esac
9524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009526 ac_status=$?
9527 grep -v '^ *+' conftest.er1 >conftest.err
9528 rm -f conftest.er1
9529 cat conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00009532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9533 { (case "(($ac_try" in
9534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535 *) ac_try_echo=$ac_try;;
9536esac
9537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009539 ac_status=$?
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; } &&
9542 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00009543 { (case "(($ac_try" in
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9546esac
9547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009549 ac_status=$?
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; }; then
9552 ac_cv_lib_dl_dlopen=yes
9553else
9554 echo "$as_me: failed program was:" >&5
9555sed 's/^/| /' conftest.$ac_ext >&5
9556
mmentovai8c2a4de2006-09-20 16:20:15 +00009557 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +00009558fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009559
9560rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00009561 conftest$ac_exeext conftest.$ac_ext
9562LIBS=$ac_check_lib_save_LIBS
9563fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009564{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9565echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009566if test $ac_cv_lib_dl_dlopen = yes; then
9567 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9568else
9569
9570 lt_cv_dlopen="dyld"
9571 lt_cv_dlopen_libs=
9572 lt_cv_dlopen_self=yes
9573
9574fi
9575
9576 ;;
9577
9578 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00009579 { echo "$as_me:$LINENO: checking for shl_load" >&5
9580echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009581if test "${ac_cv_func_shl_load+set}" = set; then
9582 echo $ECHO_N "(cached) $ECHO_C" >&6
9583else
9584 cat >conftest.$ac_ext <<_ACEOF
9585/* confdefs.h. */
9586_ACEOF
9587cat confdefs.h >>conftest.$ac_ext
9588cat >>conftest.$ac_ext <<_ACEOF
9589/* end confdefs.h. */
9590/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9592#define shl_load innocuous_shl_load
9593
9594/* System header to define __stub macros and hopefully few prototypes,
9595 which can conflict with char shl_load (); below.
9596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9597 <limits.h> exists even on freestanding compilers. */
9598
9599#ifdef __STDC__
9600# include <limits.h>
9601#else
9602# include <assert.h>
9603#endif
9604
9605#undef shl_load
9606
mmentovai8c2a4de2006-09-20 16:20:15 +00009607/* Override any GCC internal prototype to avoid an error.
9608 Use char because int might match the return type of a GCC
9609 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009610#ifdef __cplusplus
9611extern "C"
brynercb91a2f2006-08-25 21:14:45 +00009612#endif
brynercb91a2f2006-08-25 21:14:45 +00009613char shl_load ();
9614/* The GNU C library defines this for functions which it implements
9615 to always fail with ENOSYS. Some functions are actually named
9616 something starting with __ and the normal name is an alias. */
mmentovai8c2a4de2006-09-20 16:20:15 +00009617#if defined __stub_shl_load || defined __stub___shl_load
brynercb91a2f2006-08-25 21:14:45 +00009618choke me
brynercb91a2f2006-08-25 21:14:45 +00009619#endif
9620
9621int
9622main ()
9623{
mmentovai8c2a4de2006-09-20 16:20:15 +00009624return shl_load ();
brynercb91a2f2006-08-25 21:14:45 +00009625 ;
9626 return 0;
9627}
9628_ACEOF
9629rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009630if { (ac_try="$ac_link"
9631case "(($ac_try" in
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9634esac
9635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009637 ac_status=$?
9638 grep -v '^ *+' conftest.er1 >conftest.err
9639 rm -f conftest.er1
9640 cat conftest.err >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00009643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9644 { (case "(($ac_try" in
9645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9646 *) ac_try_echo=$ac_try;;
9647esac
9648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9649 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009650 ac_status=$?
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; } &&
9653 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00009654 { (case "(($ac_try" in
9655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9656 *) ac_try_echo=$ac_try;;
9657esac
9658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9659 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009660 ac_status=$?
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); }; }; then
9663 ac_cv_func_shl_load=yes
9664else
9665 echo "$as_me: failed program was:" >&5
9666sed 's/^/| /' conftest.$ac_ext >&5
9667
mmentovai8c2a4de2006-09-20 16:20:15 +00009668 ac_cv_func_shl_load=no
brynercb91a2f2006-08-25 21:14:45 +00009669fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009670
9671rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00009672 conftest$ac_exeext conftest.$ac_ext
9673fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009674{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9675echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009676if test $ac_cv_func_shl_load = yes; then
9677 lt_cv_dlopen="shl_load"
9678else
mmentovai8c2a4de2006-09-20 16:20:15 +00009679 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9680echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009681if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9683else
9684 ac_check_lib_save_LIBS=$LIBS
9685LIBS="-ldld $LIBS"
9686cat >conftest.$ac_ext <<_ACEOF
9687/* confdefs.h. */
9688_ACEOF
9689cat confdefs.h >>conftest.$ac_ext
9690cat >>conftest.$ac_ext <<_ACEOF
9691/* end confdefs.h. */
9692
mmentovai8c2a4de2006-09-20 16:20:15 +00009693/* Override any GCC internal prototype to avoid an error.
9694 Use char because int might match the return type of a GCC
9695 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009696#ifdef __cplusplus
9697extern "C"
9698#endif
brynercb91a2f2006-08-25 21:14:45 +00009699char shl_load ();
9700int
9701main ()
9702{
mmentovai8c2a4de2006-09-20 16:20:15 +00009703return shl_load ();
brynercb91a2f2006-08-25 21:14:45 +00009704 ;
9705 return 0;
9706}
9707_ACEOF
9708rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009709if { (ac_try="$ac_link"
9710case "(($ac_try" in
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9713esac
9714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009716 ac_status=$?
9717 grep -v '^ *+' conftest.er1 >conftest.err
9718 rm -f conftest.er1
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00009722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9723 { (case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9726esac
9727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; } &&
9732 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00009733 { (case "(($ac_try" in
9734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735 *) ac_try_echo=$ac_try;;
9736esac
9737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9738 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009739 ac_status=$?
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; }; then
9742 ac_cv_lib_dld_shl_load=yes
9743else
9744 echo "$as_me: failed program was:" >&5
9745sed 's/^/| /' conftest.$ac_ext >&5
9746
mmentovai8c2a4de2006-09-20 16:20:15 +00009747 ac_cv_lib_dld_shl_load=no
brynercb91a2f2006-08-25 21:14:45 +00009748fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009749
9750rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00009751 conftest$ac_exeext conftest.$ac_ext
9752LIBS=$ac_check_lib_save_LIBS
9753fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009754{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9755echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009756if test $ac_cv_lib_dld_shl_load = yes; then
9757 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9758else
mmentovai8c2a4de2006-09-20 16:20:15 +00009759 { echo "$as_me:$LINENO: checking for dlopen" >&5
9760echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009761if test "${ac_cv_func_dlopen+set}" = set; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9763else
9764 cat >conftest.$ac_ext <<_ACEOF
9765/* confdefs.h. */
9766_ACEOF
9767cat confdefs.h >>conftest.$ac_ext
9768cat >>conftest.$ac_ext <<_ACEOF
9769/* end confdefs.h. */
9770/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9772#define dlopen innocuous_dlopen
9773
9774/* System header to define __stub macros and hopefully few prototypes,
9775 which can conflict with char dlopen (); below.
9776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9777 <limits.h> exists even on freestanding compilers. */
9778
9779#ifdef __STDC__
9780# include <limits.h>
9781#else
9782# include <assert.h>
9783#endif
9784
9785#undef dlopen
9786
mmentovai8c2a4de2006-09-20 16:20:15 +00009787/* Override any GCC internal prototype to avoid an error.
9788 Use char because int might match the return type of a GCC
9789 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009790#ifdef __cplusplus
9791extern "C"
brynercb91a2f2006-08-25 21:14:45 +00009792#endif
brynercb91a2f2006-08-25 21:14:45 +00009793char dlopen ();
9794/* The GNU C library defines this for functions which it implements
9795 to always fail with ENOSYS. Some functions are actually named
9796 something starting with __ and the normal name is an alias. */
mmentovai8c2a4de2006-09-20 16:20:15 +00009797#if defined __stub_dlopen || defined __stub___dlopen
brynercb91a2f2006-08-25 21:14:45 +00009798choke me
brynercb91a2f2006-08-25 21:14:45 +00009799#endif
9800
9801int
9802main ()
9803{
mmentovai8c2a4de2006-09-20 16:20:15 +00009804return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +00009805 ;
9806 return 0;
9807}
9808_ACEOF
9809rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009810if { (ac_try="$ac_link"
9811case "(($ac_try" in
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9814esac
9815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009817 ac_status=$?
9818 grep -v '^ *+' conftest.er1 >conftest.err
9819 rm -f conftest.er1
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00009823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9824 { (case "(($ac_try" in
9825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826 *) ac_try_echo=$ac_try;;
9827esac
9828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00009834 { (case "(($ac_try" in
9835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836 *) ac_try_echo=$ac_try;;
9837esac
9838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009840 ac_status=$?
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; }; then
9843 ac_cv_func_dlopen=yes
9844else
9845 echo "$as_me: failed program was:" >&5
9846sed 's/^/| /' conftest.$ac_ext >&5
9847
mmentovai8c2a4de2006-09-20 16:20:15 +00009848 ac_cv_func_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +00009849fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009850
9851rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00009852 conftest$ac_exeext conftest.$ac_ext
9853fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009854{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9855echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009856if test $ac_cv_func_dlopen = yes; then
9857 lt_cv_dlopen="dlopen"
9858else
mmentovai8c2a4de2006-09-20 16:20:15 +00009859 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9860echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009861if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863else
9864 ac_check_lib_save_LIBS=$LIBS
9865LIBS="-ldl $LIBS"
9866cat >conftest.$ac_ext <<_ACEOF
9867/* confdefs.h. */
9868_ACEOF
9869cat confdefs.h >>conftest.$ac_ext
9870cat >>conftest.$ac_ext <<_ACEOF
9871/* end confdefs.h. */
9872
mmentovai8c2a4de2006-09-20 16:20:15 +00009873/* Override any GCC internal prototype to avoid an error.
9874 Use char because int might match the return type of a GCC
9875 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009876#ifdef __cplusplus
9877extern "C"
9878#endif
brynercb91a2f2006-08-25 21:14:45 +00009879char dlopen ();
9880int
9881main ()
9882{
mmentovai8c2a4de2006-09-20 16:20:15 +00009883return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +00009884 ;
9885 return 0;
9886}
9887_ACEOF
9888rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009889if { (ac_try="$ac_link"
9890case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9893esac
9894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009896 ac_status=$?
9897 grep -v '^ *+' conftest.er1 >conftest.err
9898 rm -f conftest.er1
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00009902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9903 { (case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906esac
9907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; } &&
9912 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00009913 { (case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9916esac
9917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009919 ac_status=$?
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 ac_cv_lib_dl_dlopen=yes
9923else
9924 echo "$as_me: failed program was:" >&5
9925sed 's/^/| /' conftest.$ac_ext >&5
9926
mmentovai8c2a4de2006-09-20 16:20:15 +00009927 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +00009928fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009929
9930rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00009931 conftest$ac_exeext conftest.$ac_ext
9932LIBS=$ac_check_lib_save_LIBS
9933fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009934{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9935echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009936if test $ac_cv_lib_dl_dlopen = yes; then
9937 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9938else
mmentovai8c2a4de2006-09-20 16:20:15 +00009939 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9940echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009941if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9943else
9944 ac_check_lib_save_LIBS=$LIBS
9945LIBS="-lsvld $LIBS"
9946cat >conftest.$ac_ext <<_ACEOF
9947/* confdefs.h. */
9948_ACEOF
9949cat confdefs.h >>conftest.$ac_ext
9950cat >>conftest.$ac_ext <<_ACEOF
9951/* end confdefs.h. */
9952
mmentovai8c2a4de2006-09-20 16:20:15 +00009953/* Override any GCC internal prototype to avoid an error.
9954 Use char because int might match the return type of a GCC
9955 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009956#ifdef __cplusplus
9957extern "C"
9958#endif
brynercb91a2f2006-08-25 21:14:45 +00009959char dlopen ();
9960int
9961main ()
9962{
mmentovai8c2a4de2006-09-20 16:20:15 +00009963return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +00009964 ;
9965 return 0;
9966}
9967_ACEOF
9968rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009969if { (ac_try="$ac_link"
9970case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9973esac
9974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009976 ac_status=$?
9977 grep -v '^ *+' conftest.er1 >conftest.err
9978 rm -f conftest.er1
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00009982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9983 { (case "(($ac_try" in
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9986esac
9987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009989 ac_status=$?
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; } &&
9992 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00009993 { (case "(($ac_try" in
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9996esac
9997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009999 ac_status=$?
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; }; then
10002 ac_cv_lib_svld_dlopen=yes
10003else
10004 echo "$as_me: failed program was:" >&5
10005sed 's/^/| /' conftest.$ac_ext >&5
10006
mmentovai8c2a4de2006-09-20 16:20:15 +000010007 ac_cv_lib_svld_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000010008fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010009
10010rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000010011 conftest$ac_exeext conftest.$ac_ext
10012LIBS=$ac_check_lib_save_LIBS
10013fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010014{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10015echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010016if test $ac_cv_lib_svld_dlopen = yes; then
10017 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10018else
mmentovai8c2a4de2006-09-20 16:20:15 +000010019 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10020echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010021if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10023else
10024 ac_check_lib_save_LIBS=$LIBS
10025LIBS="-ldld $LIBS"
10026cat >conftest.$ac_ext <<_ACEOF
10027/* confdefs.h. */
10028_ACEOF
10029cat confdefs.h >>conftest.$ac_ext
10030cat >>conftest.$ac_ext <<_ACEOF
10031/* end confdefs.h. */
10032
mmentovai8c2a4de2006-09-20 16:20:15 +000010033/* Override any GCC internal prototype to avoid an error.
10034 Use char because int might match the return type of a GCC
10035 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010036#ifdef __cplusplus
10037extern "C"
10038#endif
brynercb91a2f2006-08-25 21:14:45 +000010039char dld_link ();
10040int
10041main ()
10042{
mmentovai8c2a4de2006-09-20 16:20:15 +000010043return dld_link ();
brynercb91a2f2006-08-25 21:14:45 +000010044 ;
10045 return 0;
10046}
10047_ACEOF
10048rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000010049if { (ac_try="$ac_link"
10050case "(($ac_try" in
10051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052 *) ac_try_echo=$ac_try;;
10053esac
10054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000010056 ac_status=$?
10057 grep -v '^ *+' conftest.er1 >conftest.err
10058 rm -f conftest.er1
10059 cat conftest.err >&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000010062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10063 { (case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10066esac
10067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000010069 ac_status=$?
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; } &&
10072 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000010073 { (case "(($ac_try" in
10074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075 *) ac_try_echo=$ac_try;;
10076esac
10077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000010079 ac_status=$?
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; }; then
10082 ac_cv_lib_dld_dld_link=yes
10083else
10084 echo "$as_me: failed program was:" >&5
10085sed 's/^/| /' conftest.$ac_ext >&5
10086
mmentovai8c2a4de2006-09-20 16:20:15 +000010087 ac_cv_lib_dld_dld_link=no
brynercb91a2f2006-08-25 21:14:45 +000010088fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010089
10090rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000010091 conftest$ac_exeext conftest.$ac_ext
10092LIBS=$ac_check_lib_save_LIBS
10093fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010094{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10095echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010096if test $ac_cv_lib_dld_dld_link = yes; then
10097 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10098fi
10099
10100
10101fi
10102
10103
10104fi
10105
10106
10107fi
10108
10109
10110fi
10111
10112
10113fi
10114
10115 ;;
10116 esac
10117
10118 if test "x$lt_cv_dlopen" != xno; then
10119 enable_dlopen=yes
10120 else
10121 enable_dlopen=no
10122 fi
10123
10124 case $lt_cv_dlopen in
10125 dlopen)
10126 save_CPPFLAGS="$CPPFLAGS"
10127 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10128
10129 save_LDFLAGS="$LDFLAGS"
mmentovai8c2a4de2006-09-20 16:20:15 +000010130 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
brynercb91a2f2006-08-25 21:14:45 +000010131
10132 save_LIBS="$LIBS"
10133 LIBS="$lt_cv_dlopen_libs $LIBS"
10134
mmentovai8c2a4de2006-09-20 16:20:15 +000010135 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10136echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010137if test "${lt_cv_dlopen_self+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10139else
10140 if test "$cross_compiling" = yes; then :
10141 lt_cv_dlopen_self=cross
10142else
10143 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10144 lt_status=$lt_dlunknown
10145 cat > conftest.$ac_ext <<EOF
mmentovai0dbedc92006-09-25 21:16:15 +000010146#line 10146 "configure"
brynercb91a2f2006-08-25 21:14:45 +000010147#include "confdefs.h"
10148
10149#if HAVE_DLFCN_H
10150#include <dlfcn.h>
10151#endif
10152
10153#include <stdio.h>
10154
10155#ifdef RTLD_GLOBAL
10156# define LT_DLGLOBAL RTLD_GLOBAL
10157#else
10158# ifdef DL_GLOBAL
10159# define LT_DLGLOBAL DL_GLOBAL
10160# else
10161# define LT_DLGLOBAL 0
10162# endif
10163#endif
10164
10165/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10166 find out it does not work in some platform. */
10167#ifndef LT_DLLAZY_OR_NOW
10168# ifdef RTLD_LAZY
10169# define LT_DLLAZY_OR_NOW RTLD_LAZY
10170# else
10171# ifdef DL_LAZY
10172# define LT_DLLAZY_OR_NOW DL_LAZY
10173# else
10174# ifdef RTLD_NOW
10175# define LT_DLLAZY_OR_NOW RTLD_NOW
10176# else
10177# ifdef DL_NOW
10178# define LT_DLLAZY_OR_NOW DL_NOW
10179# else
10180# define LT_DLLAZY_OR_NOW 0
10181# endif
10182# endif
10183# endif
10184# endif
10185#endif
10186
10187#ifdef __cplusplus
10188extern "C" void exit (int);
10189#endif
10190
10191void fnord() { int i=42;}
10192int main ()
10193{
10194 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10195 int status = $lt_dlunknown;
10196
10197 if (self)
10198 {
10199 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10200 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10201 /* dlclose (self); */
10202 }
mmentovai8c2a4de2006-09-20 16:20:15 +000010203 else
10204 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000010205
10206 exit (status);
10207}
10208EOF
10209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210 (eval $ac_link) 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010214 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000010215 lt_status=$?
10216 case x$lt_status in
10217 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10218 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010219 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
brynercb91a2f2006-08-25 21:14:45 +000010220 esac
10221 else :
10222 # compilation failed
10223 lt_cv_dlopen_self=no
10224 fi
10225fi
10226rm -fr conftest*
10227
10228
10229fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010230{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10231echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010232
10233 if test "x$lt_cv_dlopen_self" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010234 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10235 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10236echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010237if test "${lt_cv_dlopen_self_static+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239else
10240 if test "$cross_compiling" = yes; then :
10241 lt_cv_dlopen_self_static=cross
10242else
10243 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10244 lt_status=$lt_dlunknown
10245 cat > conftest.$ac_ext <<EOF
mmentovai0dbedc92006-09-25 21:16:15 +000010246#line 10246 "configure"
brynercb91a2f2006-08-25 21:14:45 +000010247#include "confdefs.h"
10248
10249#if HAVE_DLFCN_H
10250#include <dlfcn.h>
10251#endif
10252
10253#include <stdio.h>
10254
10255#ifdef RTLD_GLOBAL
10256# define LT_DLGLOBAL RTLD_GLOBAL
10257#else
10258# ifdef DL_GLOBAL
10259# define LT_DLGLOBAL DL_GLOBAL
10260# else
10261# define LT_DLGLOBAL 0
10262# endif
10263#endif
10264
10265/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10266 find out it does not work in some platform. */
10267#ifndef LT_DLLAZY_OR_NOW
10268# ifdef RTLD_LAZY
10269# define LT_DLLAZY_OR_NOW RTLD_LAZY
10270# else
10271# ifdef DL_LAZY
10272# define LT_DLLAZY_OR_NOW DL_LAZY
10273# else
10274# ifdef RTLD_NOW
10275# define LT_DLLAZY_OR_NOW RTLD_NOW
10276# else
10277# ifdef DL_NOW
10278# define LT_DLLAZY_OR_NOW DL_NOW
10279# else
10280# define LT_DLLAZY_OR_NOW 0
10281# endif
10282# endif
10283# endif
10284# endif
10285#endif
10286
10287#ifdef __cplusplus
10288extern "C" void exit (int);
10289#endif
10290
10291void fnord() { int i=42;}
10292int main ()
10293{
10294 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10295 int status = $lt_dlunknown;
10296
10297 if (self)
10298 {
10299 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10300 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10301 /* dlclose (self); */
10302 }
mmentovai8c2a4de2006-09-20 16:20:15 +000010303 else
10304 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000010305
10306 exit (status);
10307}
10308EOF
10309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10310 (eval $ac_link) 2>&5
10311 ac_status=$?
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010314 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000010315 lt_status=$?
10316 case x$lt_status in
10317 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10318 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010319 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
brynercb91a2f2006-08-25 21:14:45 +000010320 esac
10321 else :
10322 # compilation failed
10323 lt_cv_dlopen_self_static=no
10324 fi
10325fi
10326rm -fr conftest*
10327
10328
10329fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010330{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10331echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010332 fi
10333
10334 CPPFLAGS="$save_CPPFLAGS"
10335 LDFLAGS="$save_LDFLAGS"
10336 LIBS="$save_LIBS"
10337 ;;
10338 esac
10339
10340 case $lt_cv_dlopen_self in
10341 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10342 *) enable_dlopen_self=unknown ;;
10343 esac
10344
10345 case $lt_cv_dlopen_self_static in
10346 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10347 *) enable_dlopen_self_static=unknown ;;
10348 esac
10349fi
10350
10351
mmentovai8c2a4de2006-09-20 16:20:15 +000010352# Report which library types will actually be built
10353{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10354echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10355{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10356echo "${ECHO_T}$can_build_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010357
mmentovai8c2a4de2006-09-20 16:20:15 +000010358{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10359echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010360test "$can_build_shared" = "no" && enable_shared=no
10361
10362# On AIX, shared libraries and static libraries use the same namespace, and
10363# are all built from PIC.
mmentovai8c2a4de2006-09-20 16:20:15 +000010364case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000010365aix3*)
10366 test "$enable_shared" = yes && enable_static=no
10367 if test -n "$RANLIB"; then
10368 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10369 postinstall_cmds='$RANLIB $lib'
10370 fi
10371 ;;
10372
10373aix4* | aix5*)
10374 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10375 test "$enable_shared" = yes && enable_static=no
10376 fi
brynercb91a2f2006-08-25 21:14:45 +000010377 ;;
10378esac
mmentovai8c2a4de2006-09-20 16:20:15 +000010379{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10380echo "${ECHO_T}$enable_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010381
mmentovai8c2a4de2006-09-20 16:20:15 +000010382{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10383echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010384# Make sure either enable_shared or enable_static is yes.
10385test "$enable_shared" = yes || enable_static=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000010386{ echo "$as_me:$LINENO: result: $enable_static" >&5
10387echo "${ECHO_T}$enable_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010388
10389# The else clause should only fire when bootstrapping the
10390# libtool distribution, otherwise you forgot to ship ltmain.sh
10391# with your package, and you will get complaints that there are
10392# no rules to generate ltmain.sh.
10393if test -f "$ltmain"; then
10394 # See if we are running on zsh, and set the options which allow our commands through
10395 # without removal of \ escapes.
10396 if test -n "${ZSH_VERSION+set}" ; then
10397 setopt NO_GLOB_SUBST
10398 fi
10399 # Now quote all the things that may contain metacharacters while being
10400 # careful not to overquote the AC_SUBSTed values. We take copies of the
10401 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000010402 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000010403 SED SHELL STRIP \
10404 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10405 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10406 deplibs_check_method reload_flag reload_cmds need_locks \
10407 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10408 lt_cv_sys_global_symbol_to_c_name_address \
10409 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10410 old_postinstall_cmds old_postuninstall_cmds \
10411 compiler \
10412 CC \
10413 LD \
10414 lt_prog_compiler_wl \
10415 lt_prog_compiler_pic \
10416 lt_prog_compiler_static \
10417 lt_prog_compiler_no_builtin_flag \
10418 export_dynamic_flag_spec \
10419 thread_safe_flag_spec \
10420 whole_archive_flag_spec \
10421 enable_shared_with_static_runtimes \
10422 old_archive_cmds \
10423 old_archive_from_new_cmds \
10424 predep_objects \
10425 postdep_objects \
10426 predeps \
10427 postdeps \
10428 compiler_lib_search_path \
10429 archive_cmds \
10430 archive_expsym_cmds \
10431 postinstall_cmds \
10432 postuninstall_cmds \
10433 old_archive_from_expsyms_cmds \
10434 allow_undefined_flag \
10435 no_undefined_flag \
10436 export_symbols_cmds \
10437 hardcode_libdir_flag_spec \
10438 hardcode_libdir_flag_spec_ld \
10439 hardcode_libdir_separator \
10440 hardcode_automatic \
10441 module_cmds \
10442 module_expsym_cmds \
10443 lt_cv_prog_compiler_c_o \
10444 exclude_expsyms \
10445 include_expsyms; do
10446
10447 case $var in
10448 old_archive_cmds | \
10449 old_archive_from_new_cmds | \
10450 archive_cmds | \
10451 archive_expsym_cmds | \
10452 module_cmds | \
10453 module_expsym_cmds | \
10454 old_archive_from_expsyms_cmds | \
10455 export_symbols_cmds | \
10456 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10457 postinstall_cmds | postuninstall_cmds | \
10458 old_postinstall_cmds | old_postuninstall_cmds | \
10459 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10460 # Double-quote double-evaled strings.
10461 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10462 ;;
10463 *)
10464 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10465 ;;
10466 esac
10467 done
10468
10469 case $lt_echo in
10470 *'\$0 --fallback-echo"')
10471 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10472 ;;
10473 esac
10474
10475cfgfile="${ofile}T"
10476 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10477 $rm -f "$cfgfile"
10478 { echo "$as_me:$LINENO: creating $ofile" >&5
10479echo "$as_me: creating $ofile" >&6;}
10480
10481 cat <<__EOF__ >> "$cfgfile"
10482#! $SHELL
10483
10484# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10485# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10486# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10487#
10488# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10489# Free Software Foundation, Inc.
10490#
10491# This file is part of GNU Libtool:
10492# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10493#
10494# This program is free software; you can redistribute it and/or modify
10495# it under the terms of the GNU General Public License as published by
10496# the Free Software Foundation; either version 2 of the License, or
10497# (at your option) any later version.
10498#
10499# This program is distributed in the hope that it will be useful, but
10500# WITHOUT ANY WARRANTY; without even the implied warranty of
10501# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10502# General Public License for more details.
10503#
10504# You should have received a copy of the GNU General Public License
10505# along with this program; if not, write to the Free Software
mmentovai8c2a4de2006-09-20 16:20:15 +000010506# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
brynercb91a2f2006-08-25 21:14:45 +000010507#
10508# As a special exception to the GNU General Public License, if you
10509# distribute this file as part of a program that contains a
10510# configuration script generated by Autoconf, you may include it under
10511# the same distribution terms that you use for the rest of that program.
10512
10513# A sed program that does not truncate output.
10514SED=$lt_SED
10515
10516# Sed that helps us avoid accidentally triggering echo(1) options like -n.
mmentovai8c2a4de2006-09-20 16:20:15 +000010517Xsed="$SED -e 1s/^X//"
brynercb91a2f2006-08-25 21:14:45 +000010518
10519# The HP-UX ksh and POSIX shell print the target directory to stdout
10520# if CDPATH is set.
mmentovai8c2a4de2006-09-20 16:20:15 +000010521(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
brynercb91a2f2006-08-25 21:14:45 +000010522
10523# The names of the tagged configurations supported by this script.
10524available_tags=
10525
10526# ### BEGIN LIBTOOL CONFIG
10527
10528# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10529
10530# Shell to use when invoking shell scripts.
10531SHELL=$lt_SHELL
10532
10533# Whether or not to build shared libraries.
10534build_libtool_libs=$enable_shared
10535
10536# Whether or not to build static libraries.
10537build_old_libs=$enable_static
10538
10539# Whether or not to add -lc for building shared libraries.
10540build_libtool_need_lc=$archive_cmds_need_lc
10541
10542# Whether or not to disallow shared libs when runtime libs are static
10543allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10544
10545# Whether or not to optimize for fast installation.
10546fast_install=$enable_fast_install
10547
10548# The host system.
10549host_alias=$host_alias
10550host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000010551host_os=$host_os
10552
10553# The build system.
10554build_alias=$build_alias
10555build=$build
10556build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000010557
10558# An echo program that does not interpret backslashes.
10559echo=$lt_echo
10560
10561# The archiver.
10562AR=$lt_AR
10563AR_FLAGS=$lt_AR_FLAGS
10564
10565# A C compiler.
10566LTCC=$lt_LTCC
10567
mmentovai8c2a4de2006-09-20 16:20:15 +000010568# LTCC compiler flags.
10569LTCFLAGS=$lt_LTCFLAGS
10570
brynercb91a2f2006-08-25 21:14:45 +000010571# A language-specific compiler.
10572CC=$lt_compiler
10573
10574# Is the compiler the GNU C compiler?
10575with_gcc=$GCC
10576
10577# An ERE matcher.
10578EGREP=$lt_EGREP
10579
10580# The linker used to build libraries.
10581LD=$lt_LD
10582
10583# Whether we need hard or soft links.
10584LN_S=$lt_LN_S
10585
10586# A BSD-compatible nm program.
10587NM=$lt_NM
10588
10589# A symbol stripping program
10590STRIP=$lt_STRIP
10591
10592# Used to examine libraries when file_magic_cmd begins "file"
10593MAGIC_CMD=$MAGIC_CMD
10594
10595# Used on cygwin: DLL creation program.
10596DLLTOOL="$DLLTOOL"
10597
10598# Used on cygwin: object dumper.
10599OBJDUMP="$OBJDUMP"
10600
10601# Used on cygwin: assembler.
10602AS="$AS"
10603
10604# The name of the directory that contains temporary libtool files.
10605objdir=$objdir
10606
10607# How to create reloadable object files.
10608reload_flag=$lt_reload_flag
10609reload_cmds=$lt_reload_cmds
10610
10611# How to pass a linker flag through the compiler.
10612wl=$lt_lt_prog_compiler_wl
10613
10614# Object file suffix (normally "o").
10615objext="$ac_objext"
10616
10617# Old archive suffix (normally "a").
10618libext="$libext"
10619
10620# Shared library suffix (normally ".so").
10621shrext_cmds='$shrext_cmds'
10622
10623# Executable file suffix (normally "").
10624exeext="$exeext"
10625
10626# Additional compiler flags for building library objects.
10627pic_flag=$lt_lt_prog_compiler_pic
10628pic_mode=$pic_mode
10629
10630# What is the maximum length of a command?
10631max_cmd_len=$lt_cv_sys_max_cmd_len
10632
10633# Does compiler simultaneously support -c and -o options?
10634compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10635
mmentovai8c2a4de2006-09-20 16:20:15 +000010636# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000010637need_locks=$lt_need_locks
10638
10639# Do we need the lib prefix for modules?
10640need_lib_prefix=$need_lib_prefix
10641
10642# Do we need a version for libraries?
10643need_version=$need_version
10644
10645# Whether dlopen is supported.
10646dlopen_support=$enable_dlopen
10647
10648# Whether dlopen of programs is supported.
10649dlopen_self=$enable_dlopen_self
10650
10651# Whether dlopen of statically linked programs is supported.
10652dlopen_self_static=$enable_dlopen_self_static
10653
10654# Compiler flag to prevent dynamic linking.
10655link_static_flag=$lt_lt_prog_compiler_static
10656
10657# Compiler flag to turn off builtin functions.
10658no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10659
10660# Compiler flag to allow reflexive dlopens.
10661export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10662
10663# Compiler flag to generate shared objects directly from archives.
10664whole_archive_flag_spec=$lt_whole_archive_flag_spec
10665
10666# Compiler flag to generate thread-safe objects.
10667thread_safe_flag_spec=$lt_thread_safe_flag_spec
10668
10669# Library versioning type.
10670version_type=$version_type
10671
10672# Format of library name prefix.
10673libname_spec=$lt_libname_spec
10674
10675# List of archive names. First name is the real one, the rest are links.
10676# The last name is the one that the linker finds with -lNAME.
10677library_names_spec=$lt_library_names_spec
10678
10679# The coded name of the library, if different from the real name.
10680soname_spec=$lt_soname_spec
10681
10682# Commands used to build and install an old-style archive.
10683RANLIB=$lt_RANLIB
10684old_archive_cmds=$lt_old_archive_cmds
10685old_postinstall_cmds=$lt_old_postinstall_cmds
10686old_postuninstall_cmds=$lt_old_postuninstall_cmds
10687
10688# Create an old-style archive from a shared archive.
10689old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10690
10691# Create a temporary old-style archive to link instead of a shared archive.
10692old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10693
10694# Commands used to build and install a shared archive.
10695archive_cmds=$lt_archive_cmds
10696archive_expsym_cmds=$lt_archive_expsym_cmds
10697postinstall_cmds=$lt_postinstall_cmds
10698postuninstall_cmds=$lt_postuninstall_cmds
10699
10700# Commands used to build a loadable module (assumed same as above if empty)
10701module_cmds=$lt_module_cmds
10702module_expsym_cmds=$lt_module_expsym_cmds
10703
10704# Commands to strip libraries.
10705old_striplib=$lt_old_striplib
10706striplib=$lt_striplib
10707
10708# Dependencies to place before the objects being linked to create a
10709# shared library.
10710predep_objects=$lt_predep_objects
10711
10712# Dependencies to place after the objects being linked to create a
10713# shared library.
10714postdep_objects=$lt_postdep_objects
10715
10716# Dependencies to place before the objects being linked to create a
10717# shared library.
10718predeps=$lt_predeps
10719
10720# Dependencies to place after the objects being linked to create a
10721# shared library.
10722postdeps=$lt_postdeps
10723
10724# The library search path used internally by the compiler when linking
10725# a shared library.
10726compiler_lib_search_path=$lt_compiler_lib_search_path
10727
10728# Method to check whether dependent libraries are shared objects.
10729deplibs_check_method=$lt_deplibs_check_method
10730
10731# Command to use when deplibs_check_method == file_magic.
10732file_magic_cmd=$lt_file_magic_cmd
10733
10734# Flag that allows shared libraries with undefined symbols to be built.
10735allow_undefined_flag=$lt_allow_undefined_flag
10736
10737# Flag that forces no undefined symbols.
10738no_undefined_flag=$lt_no_undefined_flag
10739
10740# Commands used to finish a libtool library installation in a directory.
10741finish_cmds=$lt_finish_cmds
10742
10743# Same as above, but a single script fragment to be evaled but not shown.
10744finish_eval=$lt_finish_eval
10745
10746# Take the output of nm and produce a listing of raw symbols and C names.
10747global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10748
10749# Transform the output of nm in a proper C declaration
10750global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10751
10752# Transform the output of nm in a C name address pair
10753global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10754
10755# This is the shared library runtime path variable.
10756runpath_var=$runpath_var
10757
10758# This is the shared library path variable.
10759shlibpath_var=$shlibpath_var
10760
10761# Is shlibpath searched before the hard-coded library search path?
10762shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10763
10764# How to hardcode a shared library path into an executable.
10765hardcode_action=$hardcode_action
10766
10767# Whether we should hardcode library paths into libraries.
10768hardcode_into_libs=$hardcode_into_libs
10769
10770# Flag to hardcode \$libdir into a binary during linking.
10771# This must work even if \$libdir does not exist.
10772hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10773
10774# If ld is used when linking, flag to hardcode \$libdir into
10775# a binary during linking. This must work even if \$libdir does
10776# not exist.
10777hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10778
10779# Whether we need a single -rpath flag with a separated argument.
10780hardcode_libdir_separator=$lt_hardcode_libdir_separator
10781
10782# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10783# resulting binary.
10784hardcode_direct=$hardcode_direct
10785
10786# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10787# resulting binary.
10788hardcode_minus_L=$hardcode_minus_L
10789
10790# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10791# the resulting binary.
10792hardcode_shlibpath_var=$hardcode_shlibpath_var
10793
10794# Set to yes if building a shared library automatically hardcodes DIR into the library
10795# and all subsequent libraries and executables linked against it.
10796hardcode_automatic=$hardcode_automatic
10797
10798# Variables whose values should be saved in libtool wrapper scripts and
10799# restored at relink time.
10800variables_saved_for_relink="$variables_saved_for_relink"
10801
10802# Whether libtool must link a program against all its dependency libraries.
10803link_all_deplibs=$link_all_deplibs
10804
10805# Compile-time system search path for libraries
10806sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10807
10808# Run-time system search path for libraries
10809sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10810
10811# Fix the shell variable \$srcfile for the compiler.
10812fix_srcfile_path="$fix_srcfile_path"
10813
10814# Set to yes if exported symbols are required.
10815always_export_symbols=$always_export_symbols
10816
10817# The commands to list exported symbols.
10818export_symbols_cmds=$lt_export_symbols_cmds
10819
10820# The commands to extract the exported symbol list from a shared archive.
10821extract_expsyms_cmds=$lt_extract_expsyms_cmds
10822
10823# Symbols that should not be listed in the preloaded symbols.
10824exclude_expsyms=$lt_exclude_expsyms
10825
10826# Symbols that must always be exported.
10827include_expsyms=$lt_include_expsyms
10828
10829# ### END LIBTOOL CONFIG
10830
10831__EOF__
10832
10833
10834 case $host_os in
10835 aix3*)
10836 cat <<\EOF >> "$cfgfile"
10837
10838# AIX sometimes has problems with the GCC collect2 program. For some
10839# reason, if we set the COLLECT_NAMES environment variable, the problems
10840# vanish in a puff of smoke.
10841if test "X${COLLECT_NAMES+set}" != Xset; then
10842 COLLECT_NAMES=
10843 export COLLECT_NAMES
10844fi
10845EOF
10846 ;;
10847 esac
10848
10849 # We use sed instead of cat because bash on DJGPP gets confused if
10850 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10851 # text mode, it properly converts lines to CR/LF. This bash problem
10852 # is reportedly fixed, but why not run on old versions too?
10853 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10854
10855 mv -f "$cfgfile" "$ofile" || \
10856 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10857 chmod +x "$ofile"
10858
10859else
10860 # If there is no Makefile yet, we rely on a make rule to execute
10861 # `config.status --recheck' to rerun these tests and create the
10862 # libtool script then.
10863 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10864 if test -f "$ltmain_in"; then
10865 test -f Makefile && make "$ltmain"
10866 fi
10867fi
10868
10869
10870ac_ext=c
10871ac_cpp='$CPP $CPPFLAGS'
10872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10874ac_compiler_gnu=$ac_cv_c_compiler_gnu
10875
10876CC="$lt_save_CC"
10877
10878
mmentovai8c2a4de2006-09-20 16:20:15 +000010879# Check whether --with-tags was given.
brynercb91a2f2006-08-25 21:14:45 +000010880if test "${with_tags+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010881 withval=$with_tags; tagnames="$withval"
10882fi
10883
brynercb91a2f2006-08-25 21:14:45 +000010884
10885if test -f "$ltmain" && test -n "$tagnames"; then
10886 if test ! -f "${ofile}"; then
10887 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10888echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10889 fi
10890
10891 if test -z "$LTCC"; then
10892 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10893 if test -z "$LTCC"; then
10894 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10895echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10896 else
10897 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10898echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10899 fi
10900 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010901 if test -z "$LTCFLAGS"; then
10902 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10903 fi
brynercb91a2f2006-08-25 21:14:45 +000010904
10905 # Extract list of available tagged configurations in $ofile.
10906 # Note that this assumes the entire list is on one line.
10907 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10908
10909 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10910 for tagname in $tagnames; do
10911 IFS="$lt_save_ifs"
10912 # Check whether tagname contains only valid characters
10913 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10914 "") ;;
10915 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10916echo "$as_me: error: invalid tag name: $tagname" >&2;}
10917 { (exit 1); exit 1; }; }
10918 ;;
10919 esac
10920
10921 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10922 then
10923 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10924echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10925 { (exit 1); exit 1; }; }
10926 fi
10927
10928 # Update the list of available tags.
10929 if test -n "$tagname"; then
10930 echo appending configuration tag \"$tagname\" to $ofile
10931
10932 case $tagname in
10933 CXX)
mmentovai8c2a4de2006-09-20 16:20:15 +000010934 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10935 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10936 (test "X$CXX" != "Xg++"))) ; then
10937 ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000010938ac_cpp='$CXXCPP $CPPFLAGS'
10939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10942
10943
10944
10945
10946archive_cmds_need_lc_CXX=no
10947allow_undefined_flag_CXX=
10948always_export_symbols_CXX=no
10949archive_expsym_cmds_CXX=
10950export_dynamic_flag_spec_CXX=
10951hardcode_direct_CXX=no
10952hardcode_libdir_flag_spec_CXX=
10953hardcode_libdir_flag_spec_ld_CXX=
10954hardcode_libdir_separator_CXX=
10955hardcode_minus_L_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000010956hardcode_shlibpath_var_CXX=unsupported
brynercb91a2f2006-08-25 21:14:45 +000010957hardcode_automatic_CXX=no
10958module_cmds_CXX=
10959module_expsym_cmds_CXX=
10960link_all_deplibs_CXX=unknown
10961old_archive_cmds_CXX=$old_archive_cmds
10962no_undefined_flag_CXX=
10963whole_archive_flag_spec_CXX=
10964enable_shared_with_static_runtimes_CXX=no
10965
10966# Dependencies to place before and after the object being linked:
10967predep_objects_CXX=
10968postdep_objects_CXX=
10969predeps_CXX=
10970postdeps_CXX=
10971compiler_lib_search_path_CXX=
10972
10973# Source file extension for C++ test sources.
mmentovai8c2a4de2006-09-20 16:20:15 +000010974ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000010975
10976# Object file extension for compiled C++ test sources.
10977objext=o
10978objext_CXX=$objext
10979
10980# Code to be used in simple compile tests
10981lt_simple_compile_test_code="int some_variable = 0;\n"
10982
10983# Code to be used in simple link tests
mmentovai8c2a4de2006-09-20 16:20:15 +000010984lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
brynercb91a2f2006-08-25 21:14:45 +000010985
10986# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10987
10988# If no C compiler was specified, use CC.
10989LTCC=${LTCC-"$CC"}
10990
mmentovai8c2a4de2006-09-20 16:20:15 +000010991# If no C compiler flags were specified, use CFLAGS.
10992LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10993
brynercb91a2f2006-08-25 21:14:45 +000010994# Allow CC to be a program name with arguments.
10995compiler=$CC
10996
10997
mmentovai8c2a4de2006-09-20 16:20:15 +000010998# save warnings/boilerplate of simple test code
10999ac_outfile=conftest.$ac_objext
11000printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11001eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11002_lt_compiler_boilerplate=`cat conftest.err`
11003$rm conftest*
11004
11005ac_outfile=conftest.$ac_objext
11006printf "$lt_simple_link_test_code" >conftest.$ac_ext
11007eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11008_lt_linker_boilerplate=`cat conftest.err`
11009$rm conftest*
11010
11011
brynercb91a2f2006-08-25 21:14:45 +000011012# Allow CC to be a program name with arguments.
11013lt_save_CC=$CC
11014lt_save_LD=$LD
11015lt_save_GCC=$GCC
11016GCC=$GXX
11017lt_save_with_gnu_ld=$with_gnu_ld
11018lt_save_path_LD=$lt_cv_path_LD
11019if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11020 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11021else
mmentovai8c2a4de2006-09-20 16:20:15 +000011022 $as_unset lt_cv_prog_gnu_ld
brynercb91a2f2006-08-25 21:14:45 +000011023fi
11024if test -n "${lt_cv_path_LDCXX+set}"; then
11025 lt_cv_path_LD=$lt_cv_path_LDCXX
11026else
mmentovai8c2a4de2006-09-20 16:20:15 +000011027 $as_unset lt_cv_path_LD
brynercb91a2f2006-08-25 21:14:45 +000011028fi
11029test -z "${LDCXX+set}" || LD=$LDCXX
11030CC=${CXX-"c++"}
11031compiler=$CC
11032compiler_CXX=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +000011033for cc_temp in $compiler""; do
11034 case $cc_temp in
11035 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11036 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11037 \-*) ;;
11038 *) break;;
11039 esac
11040done
11041cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11042
brynercb91a2f2006-08-25 21:14:45 +000011043
11044# We don't want -fno-exception wen compiling C++ code, so set the
11045# no_builtin_flag separately
11046if test "$GXX" = yes; then
11047 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11048else
11049 lt_prog_compiler_no_builtin_flag_CXX=
11050fi
11051
11052if test "$GXX" = yes; then
11053 # Set up default GNU C++ configuration
11054
11055
mmentovai8c2a4de2006-09-20 16:20:15 +000011056# Check whether --with-gnu-ld was given.
brynercb91a2f2006-08-25 21:14:45 +000011057if test "${with_gnu_ld+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011058 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +000011059else
11060 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011061fi
11062
brynercb91a2f2006-08-25 21:14:45 +000011063ac_prog=ld
11064if test "$GCC" = yes; then
11065 # Check if gcc -print-prog-name=ld gives a path.
mmentovai8c2a4de2006-09-20 16:20:15 +000011066 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11067echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011068 case $host in
11069 *-*-mingw*)
11070 # gcc leaves a trailing carriage return which upsets mingw
11071 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11072 *)
11073 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11074 esac
11075 case $ac_prog in
11076 # Accept absolute paths.
11077 [\\/]* | ?:[\\/]*)
11078 re_direlt='/[^/][^/]*/\.\./'
11079 # Canonicalize the pathname of ld
11080 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11081 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11082 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11083 done
11084 test -z "$LD" && LD="$ac_prog"
11085 ;;
11086 "")
11087 # If it fails, then pretend we aren't using GCC.
11088 ac_prog=ld
11089 ;;
11090 *)
11091 # If it is relative, then search for the first ld in PATH.
11092 with_gnu_ld=unknown
11093 ;;
11094 esac
11095elif test "$with_gnu_ld" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011096 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11097echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011098else
mmentovai8c2a4de2006-09-20 16:20:15 +000011099 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11100echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011101fi
11102if test "${lt_cv_path_LD+set}" = set; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11104else
11105 if test -z "$LD"; then
11106 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11107 for ac_dir in $PATH; do
11108 IFS="$lt_save_ifs"
11109 test -z "$ac_dir" && ac_dir=.
11110 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11111 lt_cv_path_LD="$ac_dir/$ac_prog"
11112 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +000011113 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011114 # Break only if it was the GNU/non-GNU ld that we prefer.
11115 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11116 *GNU* | *'with BFD'*)
11117 test "$with_gnu_ld" != no && break
11118 ;;
11119 *)
11120 test "$with_gnu_ld" != yes && break
11121 ;;
11122 esac
11123 fi
11124 done
11125 IFS="$lt_save_ifs"
11126else
11127 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11128fi
11129fi
11130
11131LD="$lt_cv_path_LD"
11132if test -n "$LD"; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011133 { echo "$as_me:$LINENO: result: $LD" >&5
11134echo "${ECHO_T}$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011135else
mmentovai8c2a4de2006-09-20 16:20:15 +000011136 { echo "$as_me:$LINENO: result: no" >&5
11137echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011138fi
11139test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11140echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11141 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +000011142{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11143echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011144if test "${lt_cv_prog_gnu_ld+set}" = set; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11146else
mmentovai8c2a4de2006-09-20 16:20:15 +000011147 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011148case `$LD -v 2>&1 </dev/null` in
11149*GNU* | *'with BFD'*)
11150 lt_cv_prog_gnu_ld=yes
11151 ;;
11152*)
11153 lt_cv_prog_gnu_ld=no
11154 ;;
11155esac
11156fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011157{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11158echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011159with_gnu_ld=$lt_cv_prog_gnu_ld
11160
11161
11162
11163 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11164 # archiving commands below assume that GNU ld is being used.
11165 if test "$with_gnu_ld" = yes; then
11166 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11167 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'
11168
11169 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11170 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11171
11172 # If archive_cmds runs LD, not CC, wlarc should be empty
11173 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11174 # investigate it a little bit more. (MM)
11175 wlarc='${wl}'
11176
11177 # ancient GNU ld didn't support --whole-archive et. al.
11178 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11179 grep 'no-whole-archive' > /dev/null; then
11180 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11181 else
11182 whole_archive_flag_spec_CXX=
11183 fi
11184 else
11185 with_gnu_ld=no
11186 wlarc=
11187
11188 # A generic and very simple default shared library creation
11189 # command for GNU C++ for the case where it uses the native
11190 # linker, instead of GNU ld. If possible, this setting should
11191 # overridden to take advantage of the native linker features on
11192 # the platform it is being used on.
11193 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11194 fi
11195
11196 # Commands to make compiler produce verbose output that lists
11197 # what "hidden" libraries, object files and flags are used when
11198 # linking a shared library.
11199 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11200
11201else
11202 GXX=no
11203 with_gnu_ld=no
11204 wlarc=
11205fi
11206
11207# PORTME: fill in a description of your system's C++ link characteristics
mmentovai8c2a4de2006-09-20 16:20:15 +000011208{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11209echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011210ld_shlibs_CXX=yes
11211case $host_os in
11212 aix3*)
11213 # FIXME: insert proper C++ library support
11214 ld_shlibs_CXX=no
11215 ;;
11216 aix4* | aix5*)
11217 if test "$host_cpu" = ia64; then
11218 # On IA64, the linker does run time linking by default, so we don't
11219 # have to do anything special.
11220 aix_use_runtimelinking=no
11221 exp_sym_flag='-Bexport'
11222 no_entry_flag=""
11223 else
11224 aix_use_runtimelinking=no
11225
11226 # Test if we are trying to use run time linking or normal
11227 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11228 # need to do runtime linking.
11229 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11230 for ld_flag in $LDFLAGS; do
11231 case $ld_flag in
11232 *-brtl*)
11233 aix_use_runtimelinking=yes
11234 break
11235 ;;
11236 esac
11237 done
mmentovai8c2a4de2006-09-20 16:20:15 +000011238 ;;
brynercb91a2f2006-08-25 21:14:45 +000011239 esac
11240
11241 exp_sym_flag='-bexport'
11242 no_entry_flag='-bnoentry'
11243 fi
11244
11245 # When large executables or shared objects are built, AIX ld can
11246 # have problems creating the table of contents. If linking a library
11247 # or program results in "error TOC overflow" add -mminimal-toc to
11248 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11249 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11250
11251 archive_cmds_CXX=''
11252 hardcode_direct_CXX=yes
11253 hardcode_libdir_separator_CXX=':'
11254 link_all_deplibs_CXX=yes
11255
11256 if test "$GXX" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011257 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +000011258 # We only want to do this on AIX 4.2 and lower, the check
11259 # below for broken collect2 doesn't work under 4.3+
11260 collect2name=`${CC} -print-prog-name=collect2`
11261 if test -f "$collect2name" && \
11262 strings "$collect2name" | grep resolve_lib_name >/dev/null
11263 then
11264 # We have reworked collect2
11265 hardcode_direct_CXX=yes
11266 else
11267 # We have old collect2
11268 hardcode_direct_CXX=unsupported
11269 # It fails to find uninstalled libraries when the uninstalled
11270 # path is not listed in the libpath. Setting hardcode_minus_L
11271 # to unsupported forces relinking
11272 hardcode_minus_L_CXX=yes
11273 hardcode_libdir_flag_spec_CXX='-L$libdir'
11274 hardcode_libdir_separator_CXX=
11275 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011276 ;;
brynercb91a2f2006-08-25 21:14:45 +000011277 esac
11278 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +000011279 if test "$aix_use_runtimelinking" = yes; then
11280 shared_flag="$shared_flag "'${wl}-G'
11281 fi
brynercb91a2f2006-08-25 21:14:45 +000011282 else
11283 # not using gcc
11284 if test "$host_cpu" = ia64; then
11285 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11286 # chokes on -Wl,-G. The following line is correct:
11287 shared_flag='-G'
11288 else
11289 if test "$aix_use_runtimelinking" = yes; then
11290 shared_flag='${wl}-G'
11291 else
11292 shared_flag='${wl}-bM:SRE'
11293 fi
11294 fi
11295 fi
11296
11297 # It seems that -bexpall does not export symbols beginning with
11298 # underscore (_), so it is better to generate a list of symbols to export.
11299 always_export_symbols_CXX=yes
11300 if test "$aix_use_runtimelinking" = yes; then
11301 # Warning - without using the other runtime loading flags (-brtl),
11302 # -berok will link without error, but may produce a broken library.
11303 allow_undefined_flag_CXX='-berok'
11304 # Determine the default libpath from the value encoded in an empty executable.
11305 cat >conftest.$ac_ext <<_ACEOF
11306/* confdefs.h. */
11307_ACEOF
11308cat confdefs.h >>conftest.$ac_ext
11309cat >>conftest.$ac_ext <<_ACEOF
11310/* end confdefs.h. */
11311
11312int
11313main ()
11314{
11315
11316 ;
11317 return 0;
11318}
11319_ACEOF
11320rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000011321if { (ac_try="$ac_link"
11322case "(($ac_try" in
11323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11324 *) ac_try_echo=$ac_try;;
11325esac
11326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11327 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000011328 ac_status=$?
11329 grep -v '^ *+' conftest.er1 >conftest.err
11330 rm -f conftest.er1
11331 cat conftest.err >&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000011334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11335 { (case "(($ac_try" in
11336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337 *) ac_try_echo=$ac_try;;
11338esac
11339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000011341 ac_status=$?
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; } &&
11344 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000011345 { (case "(($ac_try" in
11346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347 *) ac_try_echo=$ac_try;;
11348esac
11349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000011351 ac_status=$?
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; }; then
11354
11355aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11356}'`
11357# Check for a 64-bit object if we didn't find anything.
11358if 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; }
11359}'`; fi
11360else
11361 echo "$as_me: failed program was:" >&5
11362sed 's/^/| /' conftest.$ac_ext >&5
11363
mmentovai8c2a4de2006-09-20 16:20:15 +000011364
brynercb91a2f2006-08-25 21:14:45 +000011365fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011366
11367rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000011368 conftest$ac_exeext conftest.$ac_ext
11369if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11370
11371 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11372
mmentovai8c2a4de2006-09-20 16:20:15 +000011373 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"
brynercb91a2f2006-08-25 21:14:45 +000011374 else
11375 if test "$host_cpu" = ia64; then
11376 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11377 allow_undefined_flag_CXX="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +000011378 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"
brynercb91a2f2006-08-25 21:14:45 +000011379 else
11380 # Determine the default libpath from the value encoded in an empty executable.
11381 cat >conftest.$ac_ext <<_ACEOF
11382/* confdefs.h. */
11383_ACEOF
11384cat confdefs.h >>conftest.$ac_ext
11385cat >>conftest.$ac_ext <<_ACEOF
11386/* end confdefs.h. */
11387
11388int
11389main ()
11390{
11391
11392 ;
11393 return 0;
11394}
11395_ACEOF
11396rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000011397if { (ac_try="$ac_link"
11398case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11401esac
11402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000011404 ac_status=$?
11405 grep -v '^ *+' conftest.er1 >conftest.err
11406 rm -f conftest.er1
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000011410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11411 { (case "(($ac_try" in
11412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413 *) ac_try_echo=$ac_try;;
11414esac
11415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000011417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; } &&
11420 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000011421 { (case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11424esac
11425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000011427 ac_status=$?
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; }; then
11430
11431aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11432}'`
11433# Check for a 64-bit object if we didn't find anything.
11434if 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; }
11435}'`; fi
11436else
11437 echo "$as_me: failed program was:" >&5
11438sed 's/^/| /' conftest.$ac_ext >&5
11439
mmentovai8c2a4de2006-09-20 16:20:15 +000011440
brynercb91a2f2006-08-25 21:14:45 +000011441fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011442
11443rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000011444 conftest$ac_exeext conftest.$ac_ext
11445if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11446
11447 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11448 # Warning - without using the other run time loading flags,
11449 # -berok will link without error, but may produce a broken library.
11450 no_undefined_flag_CXX=' ${wl}-bernotok'
11451 allow_undefined_flag_CXX=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +000011452 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +000011453 whole_archive_flag_spec_CXX='$convenience'
brynercb91a2f2006-08-25 21:14:45 +000011454 archive_cmds_need_lc_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000011455 # This is similar to how AIX traditionally builds its shared libraries.
11456 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'
brynercb91a2f2006-08-25 21:14:45 +000011457 fi
11458 fi
11459 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011460
11461 beos*)
11462 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11463 allow_undefined_flag_CXX=unsupported
11464 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11465 # support --undefined. This deserves some investigation. FIXME
11466 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11467 else
11468 ld_shlibs_CXX=no
11469 fi
11470 ;;
11471
brynercb91a2f2006-08-25 21:14:45 +000011472 chorus*)
11473 case $cc_basename in
11474 *)
11475 # FIXME: insert proper C++ library support
11476 ld_shlibs_CXX=no
11477 ;;
11478 esac
11479 ;;
11480
11481 cygwin* | mingw* | pw32*)
11482 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11483 # as there is no search path for DLLs.
11484 hardcode_libdir_flag_spec_CXX='-L$libdir'
11485 allow_undefined_flag_CXX=unsupported
11486 always_export_symbols_CXX=no
11487 enable_shared_with_static_runtimes_CXX=yes
11488
11489 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011490 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'
brynercb91a2f2006-08-25 21:14:45 +000011491 # If the export-symbols file already is a .def file (1st line
11492 # is EXPORTS), use it as is; otherwise, prepend...
11493 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11494 cp $export_symbols $output_objdir/$soname.def;
11495 else
11496 echo EXPORTS > $output_objdir/$soname.def;
11497 cat $export_symbols >> $output_objdir/$soname.def;
11498 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +000011499 $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'
brynercb91a2f2006-08-25 21:14:45 +000011500 else
11501 ld_shlibs_CXX=no
11502 fi
11503 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011504 darwin* | rhapsody*)
11505 case $host_os in
11506 rhapsody* | darwin1.[012])
11507 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11508 ;;
11509 *) # Darwin 1.3 on
11510 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11511 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11512 else
11513 case ${MACOSX_DEPLOYMENT_TARGET} in
11514 10.[012])
11515 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11516 ;;
11517 10.*)
11518 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11519 ;;
11520 esac
11521 fi
11522 ;;
brynerd5e66382006-09-08 02:35:53 +000011523 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000011524 archive_cmds_need_lc_CXX=no
11525 hardcode_direct_CXX=no
11526 hardcode_automatic_CXX=yes
11527 hardcode_shlibpath_var_CXX=unsupported
11528 whole_archive_flag_spec_CXX=''
11529 link_all_deplibs_CXX=yes
brynerd5e66382006-09-08 02:35:53 +000011530
mmentovai8c2a4de2006-09-20 16:20:15 +000011531 if test "$GXX" = yes ; then
11532 lt_int_apple_cc_single_mod=no
11533 output_verbose_link_cmd='echo'
11534 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11535 lt_int_apple_cc_single_mod=yes
11536 fi
11537 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11538 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11539 else
11540 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'
11541 fi
11542 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11543 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11544 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11545 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}'
11546 else
11547 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}'
11548 fi
11549 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}'
11550 else
11551 case $cc_basename in
11552 xlc*)
11553 output_verbose_link_cmd='echo'
11554 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'
11555 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11556 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11557 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}'
11558 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}'
11559 ;;
11560 *)
11561 ld_shlibs_CXX=no
11562 ;;
11563 esac
11564 fi
11565 ;;
brynercb91a2f2006-08-25 21:14:45 +000011566
11567 dgux*)
11568 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011569 ec++*)
brynercb91a2f2006-08-25 21:14:45 +000011570 # FIXME: insert proper C++ library support
11571 ld_shlibs_CXX=no
11572 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011573 ghcx*)
brynercb91a2f2006-08-25 21:14:45 +000011574 # Green Hills C++ Compiler
11575 # FIXME: insert proper C++ library support
11576 ld_shlibs_CXX=no
11577 ;;
11578 *)
11579 # FIXME: insert proper C++ library support
11580 ld_shlibs_CXX=no
11581 ;;
11582 esac
11583 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011584 freebsd[12]*)
brynercb91a2f2006-08-25 21:14:45 +000011585 # C++ shared libraries reported to be fairly broken before switch to ELF
11586 ld_shlibs_CXX=no
11587 ;;
11588 freebsd-elf*)
11589 archive_cmds_need_lc_CXX=no
11590 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011591 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000011592 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11593 # conventions
11594 ld_shlibs_CXX=yes
11595 ;;
11596 gnu*)
11597 ;;
11598 hpux9*)
11599 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11600 hardcode_libdir_separator_CXX=:
11601 export_dynamic_flag_spec_CXX='${wl}-E'
11602 hardcode_direct_CXX=yes
11603 hardcode_minus_L_CXX=yes # Not in the search PATH,
11604 # but as the default
11605 # location of the library.
11606
11607 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011608 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011609 # FIXME: insert proper C++ library support
11610 ld_shlibs_CXX=no
11611 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011612 aCC*)
brynercb91a2f2006-08-25 21:14:45 +000011613 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'
11614 # Commands to make compiler produce verbose output that lists
11615 # what "hidden" libraries, object files and flags are used when
11616 # linking a shared library.
11617 #
11618 # There doesn't appear to be a way to prevent this compiler from
11619 # explicitly linking system object files so we need to strip them
11620 # from the output so that they don't get included in the library
11621 # dependencies.
mmentovai8c2a4de2006-09-20 16:20:15 +000011622 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'
brynercb91a2f2006-08-25 21:14:45 +000011623 ;;
11624 *)
11625 if test "$GXX" = yes; then
11626 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'
11627 else
11628 # FIXME: insert proper C++ library support
11629 ld_shlibs_CXX=no
11630 fi
11631 ;;
11632 esac
11633 ;;
11634 hpux10*|hpux11*)
11635 if test $with_gnu_ld = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011636 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11637 hardcode_libdir_separator_CXX=:
11638
11639 case $host_cpu in
11640 hppa*64*|ia64*)
brynercb91a2f2006-08-25 21:14:45 +000011641 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
brynercb91a2f2006-08-25 21:14:45 +000011642 ;;
11643 *)
brynercb91a2f2006-08-25 21:14:45 +000011644 export_dynamic_flag_spec_CXX='${wl}-E'
11645 ;;
11646 esac
11647 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011648 case $host_cpu in
11649 hppa*64*|ia64*)
brynercb91a2f2006-08-25 21:14:45 +000011650 hardcode_direct_CXX=no
11651 hardcode_shlibpath_var_CXX=no
11652 ;;
brynercb91a2f2006-08-25 21:14:45 +000011653 *)
11654 hardcode_direct_CXX=yes
11655 hardcode_minus_L_CXX=yes # Not in the search PATH,
11656 # but as the default
11657 # location of the library.
11658 ;;
11659 esac
11660
11661 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011662 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011663 # FIXME: insert proper C++ library support
11664 ld_shlibs_CXX=no
11665 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011666 aCC*)
11667 case $host_cpu in
11668 hppa*64*)
11669 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11670 ;;
11671 ia64*)
11672 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000011673 ;;
11674 *)
11675 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11676 ;;
11677 esac
11678 # Commands to make compiler produce verbose output that lists
11679 # what "hidden" libraries, object files and flags are used when
11680 # linking a shared library.
11681 #
11682 # There doesn't appear to be a way to prevent this compiler from
11683 # explicitly linking system object files so we need to strip them
11684 # from the output so that they don't get included in the library
11685 # dependencies.
11686 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'
11687 ;;
11688 *)
11689 if test "$GXX" = yes; then
11690 if test $with_gnu_ld = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011691 case $host_cpu in
11692 hppa*64*)
11693 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11694 ;;
11695 ia64*)
11696 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000011697 ;;
11698 *)
11699 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'
11700 ;;
11701 esac
11702 fi
11703 else
11704 # FIXME: insert proper C++ library support
11705 ld_shlibs_CXX=no
11706 fi
11707 ;;
11708 esac
11709 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011710 interix3*)
11711 hardcode_direct_CXX=no
11712 hardcode_shlibpath_var_CXX=no
11713 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11714 export_dynamic_flag_spec_CXX='${wl}-E'
11715 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11716 # Instead, shared libraries are loaded at an image base (0x10000000 by
11717 # default) and relocated if they conflict, which is a slow very memory
11718 # consuming and fragmenting process. To avoid this, we pick a random,
11719 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11720 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11721 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'
11722 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'
11723 ;;
brynercb91a2f2006-08-25 21:14:45 +000011724 irix5* | irix6*)
11725 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011726 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011727 # SGI C++
mmentovai8c2a4de2006-09-20 16:20:15 +000011728 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'
brynercb91a2f2006-08-25 21:14:45 +000011729
11730 # Archives containing C++ object files must be created using
11731 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11732 # necessary to make sure instantiated templates are included
11733 # in the archive.
11734 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11735 ;;
11736 *)
11737 if test "$GXX" = yes; then
11738 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011739 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'
brynercb91a2f2006-08-25 21:14:45 +000011740 else
11741 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'
11742 fi
11743 fi
11744 link_all_deplibs_CXX=yes
11745 ;;
11746 esac
11747 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11748 hardcode_libdir_separator_CXX=:
11749 ;;
11750 linux*)
11751 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011752 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000011753 # Kuck and Associates, Inc. (KAI) C++ Compiler
11754
11755 # KCC will only create a shared library if the output file
11756 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11757 # to its proper name (with version) after linking.
11758 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'
11759 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'
11760 # Commands to make compiler produce verbose output that lists
11761 # what "hidden" libraries, object files and flags are used when
11762 # linking a shared library.
11763 #
11764 # There doesn't appear to be a way to prevent this compiler from
11765 # explicitly linking system object files so we need to strip them
11766 # from the output so that they don't get included in the library
11767 # dependencies.
11768 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'
11769
11770 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11771 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11772
11773 # Archives containing C++ object files must be created using
11774 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11775 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11776 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011777 icpc*)
brynercb91a2f2006-08-25 21:14:45 +000011778 # Intel C++
11779 with_gnu_ld=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000011780 # version 8.0 and above of icpc choke on multiply defined symbols
11781 # if we add $predep_objects and $postdep_objects, however 7.1 and
11782 # earlier do not add the objects themselves.
11783 case `$CC -V 2>&1` in
11784 *"Version 7."*)
11785 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11786 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'
11787 ;;
11788 *) # Version 8.0 or newer
11789 tmp_idyn=
11790 case $host_cpu in
11791 ia64*) tmp_idyn=' -i_dynamic';;
11792 esac
11793 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11794 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'
11795 ;;
11796 esac
brynercb91a2f2006-08-25 21:14:45 +000011797 archive_cmds_need_lc_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11799 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11800 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11801 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011802 pgCC*)
11803 # Portland Group C++ compiler
11804 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11805 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'
11806
11807 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11808 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11809 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'
11810 ;;
11811 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011812 # Compaq C++
11813 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11814 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'
11815
11816 runpath_var=LD_RUN_PATH
11817 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11818 hardcode_libdir_separator_CXX=:
11819
11820 # Commands to make compiler produce verbose output that lists
11821 # what "hidden" libraries, object files and flags are used when
11822 # linking a shared library.
11823 #
11824 # There doesn't appear to be a way to prevent this compiler from
11825 # explicitly linking system object files so we need to strip them
11826 # from the output so that they don't get included in the library
11827 # dependencies.
11828 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'
11829 ;;
11830 esac
11831 ;;
11832 lynxos*)
11833 # FIXME: insert proper C++ library support
11834 ld_shlibs_CXX=no
11835 ;;
11836 m88k*)
11837 # FIXME: insert proper C++ library support
11838 ld_shlibs_CXX=no
11839 ;;
11840 mvs*)
11841 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011842 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011843 # FIXME: insert proper C++ library support
11844 ld_shlibs_CXX=no
11845 ;;
11846 *)
11847 # FIXME: insert proper C++ library support
11848 ld_shlibs_CXX=no
11849 ;;
11850 esac
11851 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011852 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000011853 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11854 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11855 wlarc=
11856 hardcode_libdir_flag_spec_CXX='-R$libdir'
11857 hardcode_direct_CXX=yes
11858 hardcode_shlibpath_var_CXX=no
11859 fi
11860 # Workaround some broken pre-1.5 toolchains
11861 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11862 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011863 openbsd2*)
11864 # C++ shared libraries are fairly broken
11865 ld_shlibs_CXX=no
11866 ;;
11867 openbsd*)
11868 hardcode_direct_CXX=yes
11869 hardcode_shlibpath_var_CXX=no
11870 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11871 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11872 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11873 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11874 export_dynamic_flag_spec_CXX='${wl}-E'
11875 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11876 fi
11877 output_verbose_link_cmd='echo'
11878 ;;
brynercb91a2f2006-08-25 21:14:45 +000011879 osf3*)
11880 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011881 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000011882 # Kuck and Associates, Inc. (KAI) C++ Compiler
11883
11884 # KCC will only create a shared library if the output file
11885 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11886 # to its proper name (with version) after linking.
11887 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'
11888
11889 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11890 hardcode_libdir_separator_CXX=:
11891
11892 # Archives containing C++ object files must be created using
11893 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11894 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11895
11896 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011897 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000011898 # Rational C++ 2.4.1
11899 # FIXME: insert proper C++ library support
11900 ld_shlibs_CXX=no
11901 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011902 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011903 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
mmentovai8c2a4de2006-09-20 16:20:15 +000011904 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'
brynercb91a2f2006-08-25 21:14:45 +000011905
11906 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11907 hardcode_libdir_separator_CXX=:
11908
11909 # Commands to make compiler produce verbose output that lists
11910 # what "hidden" libraries, object files and flags are used when
11911 # linking a shared library.
11912 #
11913 # There doesn't appear to be a way to prevent this compiler from
11914 # explicitly linking system object files so we need to strip them
11915 # from the output so that they don't get included in the library
11916 # dependencies.
11917 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'
11918 ;;
11919 *)
11920 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11921 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
mmentovai8c2a4de2006-09-20 16:20:15 +000011922 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'
brynercb91a2f2006-08-25 21:14:45 +000011923
11924 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11925 hardcode_libdir_separator_CXX=:
11926
11927 # Commands to make compiler produce verbose output that lists
11928 # what "hidden" libraries, object files and flags are used when
11929 # linking a shared library.
11930 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11931
11932 else
11933 # FIXME: insert proper C++ library support
11934 ld_shlibs_CXX=no
11935 fi
11936 ;;
11937 esac
11938 ;;
11939 osf4* | osf5*)
11940 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011941 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000011942 # Kuck and Associates, Inc. (KAI) C++ Compiler
11943
11944 # KCC will only create a shared library if the output file
11945 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11946 # to its proper name (with version) after linking.
11947 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'
11948
11949 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11950 hardcode_libdir_separator_CXX=:
11951
11952 # Archives containing C++ object files must be created using
11953 # the KAI C++ compiler.
11954 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11955 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011956 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000011957 # Rational C++ 2.4.1
11958 # FIXME: insert proper C++ library support
11959 ld_shlibs_CXX=no
11960 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011961 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011962 allow_undefined_flag_CXX=' -expect_unresolved \*'
mmentovai8c2a4de2006-09-20 16:20:15 +000011963 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'
brynercb91a2f2006-08-25 21:14:45 +000011964 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11965 echo "-hidden">> $lib.exp~
mmentovai8c2a4de2006-09-20 16:20:15 +000011966 $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~
brynercb91a2f2006-08-25 21:14:45 +000011967 $rm $lib.exp'
11968
11969 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11970 hardcode_libdir_separator_CXX=:
11971
11972 # Commands to make compiler produce verbose output that lists
11973 # what "hidden" libraries, object files and flags are used when
11974 # linking a shared library.
11975 #
11976 # There doesn't appear to be a way to prevent this compiler from
11977 # explicitly linking system object files so we need to strip them
11978 # from the output so that they don't get included in the library
11979 # dependencies.
11980 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'
11981 ;;
11982 *)
11983 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11984 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
mmentovai8c2a4de2006-09-20 16:20:15 +000011985 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'
brynercb91a2f2006-08-25 21:14:45 +000011986
11987 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11988 hardcode_libdir_separator_CXX=:
11989
11990 # Commands to make compiler produce verbose output that lists
11991 # what "hidden" libraries, object files and flags are used when
11992 # linking a shared library.
11993 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11994
11995 else
11996 # FIXME: insert proper C++ library support
11997 ld_shlibs_CXX=no
11998 fi
11999 ;;
12000 esac
12001 ;;
12002 psos*)
12003 # FIXME: insert proper C++ library support
12004 ld_shlibs_CXX=no
12005 ;;
brynercb91a2f2006-08-25 21:14:45 +000012006 sunos4*)
12007 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012008 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012009 # Sun C++ 4.x
12010 # FIXME: insert proper C++ library support
12011 ld_shlibs_CXX=no
12012 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012013 lcc*)
brynercb91a2f2006-08-25 21:14:45 +000012014 # Lucid
12015 # FIXME: insert proper C++ library support
12016 ld_shlibs_CXX=no
12017 ;;
12018 *)
12019 # FIXME: insert proper C++ library support
12020 ld_shlibs_CXX=no
12021 ;;
12022 esac
12023 ;;
12024 solaris*)
12025 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012026 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012027 # Sun C++ 4.2, 5.x and Centerline C++
mmentovai8c2a4de2006-09-20 16:20:15 +000012028 archive_cmds_need_lc_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000012029 no_undefined_flag_CXX=' -zdefs'
mmentovai8c2a4de2006-09-20 16:20:15 +000012030 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000012031 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
mmentovai8c2a4de2006-09-20 16:20:15 +000012032 $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'
brynercb91a2f2006-08-25 21:14:45 +000012033
12034 hardcode_libdir_flag_spec_CXX='-R$libdir'
12035 hardcode_shlibpath_var_CXX=no
12036 case $host_os in
mmentovai8c2a4de2006-09-20 16:20:15 +000012037 solaris2.[0-5] | solaris2.[0-5].*) ;;
brynercb91a2f2006-08-25 21:14:45 +000012038 *)
12039 # The C++ compiler is used as linker so we must use $wl
12040 # flag to pass the commands to the underlying system
mmentovai8c2a4de2006-09-20 16:20:15 +000012041 # linker. We must also pass each convience library through
12042 # to the system linker between allextract/defaultextract.
12043 # The C++ compiler will combine linker options so we
12044 # cannot just pass the convience library names through
12045 # without $wl.
brynercb91a2f2006-08-25 21:14:45 +000012046 # Supported since Solaris 2.6 (maybe 2.5.1?)
mmentovai8c2a4de2006-09-20 16:20:15 +000012047 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'
brynercb91a2f2006-08-25 21:14:45 +000012048 ;;
12049 esac
12050 link_all_deplibs_CXX=yes
12051
mmentovai8c2a4de2006-09-20 16:20:15 +000012052 output_verbose_link_cmd='echo'
brynercb91a2f2006-08-25 21:14:45 +000012053
12054 # Archives containing C++ object files must be created using
12055 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12056 # necessary to make sure instantiated templates are included
12057 # in the archive.
12058 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12059 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012060 gcx*)
brynercb91a2f2006-08-25 21:14:45 +000012061 # Green Hills C++ Compiler
12062 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12063
12064 # The C++ compiler must be used to create the archive.
12065 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12066 ;;
12067 *)
12068 # GNU C++ compiler with Solaris linker
12069 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12070 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12071 if $CC --version | grep -v '^2\.7' > /dev/null; then
12072 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12073 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12074 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12075
12076 # Commands to make compiler produce verbose output that lists
12077 # what "hidden" libraries, object files and flags are used when
12078 # linking a shared library.
12079 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12080 else
12081 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12082 # platform.
12083 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12084 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12085 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12086
12087 # Commands to make compiler produce verbose output that lists
12088 # what "hidden" libraries, object files and flags are used when
12089 # linking a shared library.
12090 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12091 fi
12092
12093 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12094 fi
12095 ;;
12096 esac
12097 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012098 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12099 no_undefined_flag_CXX='${wl}-z,text'
brynercb91a2f2006-08-25 21:14:45 +000012100 archive_cmds_need_lc_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000012101 hardcode_shlibpath_var_CXX=no
12102 runpath_var='LD_RUN_PATH'
12103
12104 case $cc_basename in
12105 CC*)
12106 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12107 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12108 ;;
12109 *)
12110 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12111 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12112 ;;
12113 esac
12114 ;;
12115 sysv5* | sco3.2v5* | sco5v6*)
12116 # Note: We can NOT use -z defs as we might desire, because we do not
12117 # link with -lc, and that would cause any symbols used from libc to
12118 # always be unresolved, which means just about no library would
12119 # ever link correctly. If we're not using GNU ld we use -z text
12120 # though, which does catch some bad symbols but isn't as heavy-handed
12121 # as -z defs.
12122 # For security reasons, it is highly recommended that you always
12123 # use absolute paths for naming shared libraries, and exclude the
12124 # DT_RUNPATH tag from executables and libraries. But doing so
12125 # requires that you compile everything twice, which is a pain.
12126 # So that behaviour is only enabled if SCOABSPATH is set to a
12127 # non-empty value in the environment. Most likely only useful for
12128 # creating official distributions of packages.
12129 # This is a hack until libtool officially supports absolute path
12130 # names for shared libraries.
12131 no_undefined_flag_CXX='${wl}-z,text'
12132 allow_undefined_flag_CXX='${wl}-z,nodefs'
12133 archive_cmds_need_lc_CXX=no
12134 hardcode_shlibpath_var_CXX=no
12135 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12136 hardcode_libdir_separator_CXX=':'
12137 link_all_deplibs_CXX=yes
12138 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12139 runpath_var='LD_RUN_PATH'
12140
12141 case $cc_basename in
12142 CC*)
12143 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12144 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12145 ;;
12146 *)
12147 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12148 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12149 ;;
12150 esac
brynercb91a2f2006-08-25 21:14:45 +000012151 ;;
12152 tandem*)
12153 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012154 NCC*)
brynercb91a2f2006-08-25 21:14:45 +000012155 # NonStop-UX NCC 3.20
12156 # FIXME: insert proper C++ library support
12157 ld_shlibs_CXX=no
12158 ;;
12159 *)
12160 # FIXME: insert proper C++ library support
12161 ld_shlibs_CXX=no
12162 ;;
12163 esac
12164 ;;
12165 vxworks*)
12166 # FIXME: insert proper C++ library support
12167 ld_shlibs_CXX=no
12168 ;;
12169 *)
12170 # FIXME: insert proper C++ library support
12171 ld_shlibs_CXX=no
12172 ;;
12173esac
mmentovai8c2a4de2006-09-20 16:20:15 +000012174{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12175echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012176test "$ld_shlibs_CXX" = no && can_build_shared=no
12177
12178GCC_CXX="$GXX"
12179LD_CXX="$LD"
12180
12181
12182cat > conftest.$ac_ext <<EOF
12183class Foo
12184{
12185public:
12186 Foo (void) { a = 0; }
12187private:
12188 int a;
12189};
12190EOF
12191
12192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12193 (eval $ac_compile) 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; then
12197 # Parse the compiler output and extract the necessary
12198 # objects, libraries and library flags.
12199
12200 # Sentinel used to keep track of whether or not we are before
12201 # the conftest object file.
12202 pre_test_object_deps_done=no
12203
12204 # The `*' in the case matches for architectures that use `case' in
12205 # $output_verbose_cmd can trigger glob expansion during the loop
12206 # eval without this substitution.
mmentovai8c2a4de2006-09-20 16:20:15 +000012207 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
brynercb91a2f2006-08-25 21:14:45 +000012208
12209 for p in `eval $output_verbose_link_cmd`; do
12210 case $p in
12211
12212 -L* | -R* | -l*)
12213 # Some compilers place space between "-{L,R}" and the path.
12214 # Remove the space.
12215 if test $p = "-L" \
12216 || test $p = "-R"; then
12217 prev=$p
12218 continue
12219 else
12220 prev=
12221 fi
12222
12223 if test "$pre_test_object_deps_done" = no; then
12224 case $p in
12225 -L* | -R*)
12226 # Internal compiler library paths should come after those
12227 # provided the user. The postdeps already come after the
12228 # user supplied libs so there is no need to process them.
12229 if test -z "$compiler_lib_search_path_CXX"; then
12230 compiler_lib_search_path_CXX="${prev}${p}"
12231 else
12232 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12233 fi
12234 ;;
12235 # The "-l" case would never come before the object being
12236 # linked, so don't bother handling this case.
12237 esac
12238 else
12239 if test -z "$postdeps_CXX"; then
12240 postdeps_CXX="${prev}${p}"
12241 else
12242 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12243 fi
12244 fi
12245 ;;
12246
12247 *.$objext)
12248 # This assumes that the test object file only shows up
12249 # once in the compiler output.
12250 if test "$p" = "conftest.$objext"; then
12251 pre_test_object_deps_done=yes
12252 continue
12253 fi
12254
12255 if test "$pre_test_object_deps_done" = no; then
12256 if test -z "$predep_objects_CXX"; then
12257 predep_objects_CXX="$p"
12258 else
12259 predep_objects_CXX="$predep_objects_CXX $p"
12260 fi
12261 else
12262 if test -z "$postdep_objects_CXX"; then
12263 postdep_objects_CXX="$p"
12264 else
12265 postdep_objects_CXX="$postdep_objects_CXX $p"
12266 fi
12267 fi
12268 ;;
12269
12270 *) ;; # Ignore the rest.
12271
12272 esac
12273 done
12274
12275 # Clean up.
12276 rm -f a.out a.exe
12277else
12278 echo "libtool.m4: error: problem compiling CXX test program"
12279fi
12280
12281$rm -f confest.$objext
12282
mmentovai8c2a4de2006-09-20 16:20:15 +000012283# PORTME: override above test on systems where it is broken
12284case $host_os in
12285interix3*)
12286 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12287 # hack all around it, let's just trust "g++" to DTRT.
12288 predep_objects_CXX=
12289 postdep_objects_CXX=
12290 postdeps_CXX=
12291 ;;
12292
12293solaris*)
12294 case $cc_basename in
12295 CC*)
12296 # Adding this requires a known-good setup of shared libraries for
12297 # Sun compiler versions before 5.6, else PIC objects from an old
12298 # archive will be linked into the output, leading to subtle bugs.
12299 postdeps_CXX='-lCstd -lCrun'
12300 ;;
12301 esac
12302 ;;
12303esac
12304
12305
brynercb91a2f2006-08-25 21:14:45 +000012306case " $postdeps_CXX " in
12307*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12308esac
12309
12310lt_prog_compiler_wl_CXX=
12311lt_prog_compiler_pic_CXX=
12312lt_prog_compiler_static_CXX=
12313
mmentovai8c2a4de2006-09-20 16:20:15 +000012314{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12315echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012316
12317 # C++ specific cases for pic, static, wl, etc.
12318 if test "$GXX" = yes; then
12319 lt_prog_compiler_wl_CXX='-Wl,'
12320 lt_prog_compiler_static_CXX='-static'
12321
12322 case $host_os in
12323 aix*)
12324 # All AIX code is PIC.
12325 if test "$host_cpu" = ia64; then
12326 # AIX 5 now supports IA64 processor
12327 lt_prog_compiler_static_CXX='-Bstatic'
12328 fi
12329 ;;
12330 amigaos*)
12331 # FIXME: we need at least 68020 code to build shared libraries, but
12332 # adding the `-m68020' flag to GCC prevents building anything better,
12333 # like `-m68040'.
12334 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12335 ;;
12336 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12337 # PIC is the default for these OSes.
12338 ;;
12339 mingw* | os2* | pw32*)
12340 # This hack is so that the source file can tell whether it is being
12341 # built for inclusion in a dll (and should export symbols for example).
12342 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12343 ;;
12344 darwin* | rhapsody*)
12345 # PIC is the default on this platform
12346 # Common symbols not allowed in MH_DYLIB files
12347 lt_prog_compiler_pic_CXX='-fno-common'
12348 ;;
12349 *djgpp*)
12350 # DJGPP does not support shared libraries at all
12351 lt_prog_compiler_pic_CXX=
12352 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012353 interix3*)
12354 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12355 # Instead, we relocate shared libraries at runtime.
12356 ;;
brynercb91a2f2006-08-25 21:14:45 +000012357 sysv4*MP*)
12358 if test -d /usr/nec; then
12359 lt_prog_compiler_pic_CXX=-Kconform_pic
12360 fi
12361 ;;
12362 hpux*)
12363 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12364 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000012365 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000012366 hppa*64*|ia64*)
12367 ;;
12368 *)
12369 lt_prog_compiler_pic_CXX='-fPIC'
12370 ;;
12371 esac
12372 ;;
12373 *)
12374 lt_prog_compiler_pic_CXX='-fPIC'
12375 ;;
12376 esac
12377 else
12378 case $host_os in
12379 aix4* | aix5*)
12380 # All AIX code is PIC.
12381 if test "$host_cpu" = ia64; then
12382 # AIX 5 now supports IA64 processor
12383 lt_prog_compiler_static_CXX='-Bstatic'
12384 else
12385 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12386 fi
12387 ;;
12388 chorus*)
12389 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012390 cxch68*)
brynercb91a2f2006-08-25 21:14:45 +000012391 # Green Hills C++ Compiler
12392 # _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"
12393 ;;
12394 esac
12395 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012396 darwin*)
12397 # PIC is the default on this platform
12398 # Common symbols not allowed in MH_DYLIB files
12399 case $cc_basename in
12400 xlc*)
12401 lt_prog_compiler_pic_CXX='-qnocommon'
12402 lt_prog_compiler_wl_CXX='-Wl,'
12403 ;;
12404 esac
12405 ;;
brynercb91a2f2006-08-25 21:14:45 +000012406 dgux*)
12407 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012408 ec++*)
brynercb91a2f2006-08-25 21:14:45 +000012409 lt_prog_compiler_pic_CXX='-KPIC'
12410 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012411 ghcx*)
brynercb91a2f2006-08-25 21:14:45 +000012412 # Green Hills C++ Compiler
12413 lt_prog_compiler_pic_CXX='-pic'
12414 ;;
12415 *)
12416 ;;
12417 esac
12418 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012419 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000012420 # FreeBSD uses GNU C++
12421 ;;
12422 hpux9* | hpux10* | hpux11*)
12423 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012424 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012425 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000012426 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
brynercb91a2f2006-08-25 21:14:45 +000012427 if test "$host_cpu" != ia64; then
12428 lt_prog_compiler_pic_CXX='+Z'
12429 fi
12430 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012431 aCC*)
brynercb91a2f2006-08-25 21:14:45 +000012432 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000012433 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12434 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000012435 hppa*64*|ia64*)
12436 # +Z the default
12437 ;;
12438 *)
12439 lt_prog_compiler_pic_CXX='+Z'
12440 ;;
12441 esac
12442 ;;
12443 *)
12444 ;;
12445 esac
12446 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012447 interix*)
12448 # This is c89, which is MS Visual C++ (no shared libs)
12449 # Anyone wants to do a port?
12450 ;;
brynercb91a2f2006-08-25 21:14:45 +000012451 irix5* | irix6* | nonstopux*)
12452 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012453 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012454 lt_prog_compiler_wl_CXX='-Wl,'
12455 lt_prog_compiler_static_CXX='-non_shared'
12456 # CC pic flag -KPIC is the default.
12457 ;;
12458 *)
12459 ;;
12460 esac
12461 ;;
12462 linux*)
12463 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012464 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000012465 # KAI C++ Compiler
12466 lt_prog_compiler_wl_CXX='--backend -Wl,'
12467 lt_prog_compiler_pic_CXX='-fPIC'
12468 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012469 icpc* | ecpc*)
brynercb91a2f2006-08-25 21:14:45 +000012470 # Intel C++
12471 lt_prog_compiler_wl_CXX='-Wl,'
12472 lt_prog_compiler_pic_CXX='-KPIC'
12473 lt_prog_compiler_static_CXX='-static'
12474 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012475 pgCC*)
12476 # Portland Group C++ compiler.
12477 lt_prog_compiler_wl_CXX='-Wl,'
12478 lt_prog_compiler_pic_CXX='-fpic'
12479 lt_prog_compiler_static_CXX='-Bstatic'
12480 ;;
12481 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000012482 # Compaq C++
12483 # Make sure the PIC flag is empty. It appears that all Alpha
12484 # Linux and Compaq Tru64 Unix objects are PIC.
12485 lt_prog_compiler_pic_CXX=
12486 lt_prog_compiler_static_CXX='-non_shared'
12487 ;;
12488 *)
12489 ;;
12490 esac
12491 ;;
12492 lynxos*)
12493 ;;
12494 m88k*)
12495 ;;
12496 mvs*)
12497 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012498 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000012499 lt_prog_compiler_pic_CXX='-W c,exportall'
12500 ;;
12501 *)
12502 ;;
12503 esac
12504 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012505 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000012506 ;;
12507 osf3* | osf4* | osf5*)
12508 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012509 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000012510 lt_prog_compiler_wl_CXX='--backend -Wl,'
12511 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012512 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000012513 # Rational C++ 2.4.1
12514 lt_prog_compiler_pic_CXX='-pic'
12515 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012516 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000012517 # Digital/Compaq C++
12518 lt_prog_compiler_wl_CXX='-Wl,'
12519 # Make sure the PIC flag is empty. It appears that all Alpha
12520 # Linux and Compaq Tru64 Unix objects are PIC.
12521 lt_prog_compiler_pic_CXX=
12522 lt_prog_compiler_static_CXX='-non_shared'
12523 ;;
12524 *)
12525 ;;
12526 esac
12527 ;;
12528 psos*)
12529 ;;
brynercb91a2f2006-08-25 21:14:45 +000012530 solaris*)
12531 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012532 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012533 # Sun C++ 4.2, 5.x and Centerline C++
12534 lt_prog_compiler_pic_CXX='-KPIC'
12535 lt_prog_compiler_static_CXX='-Bstatic'
12536 lt_prog_compiler_wl_CXX='-Qoption ld '
12537 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012538 gcx*)
brynercb91a2f2006-08-25 21:14:45 +000012539 # Green Hills C++ Compiler
12540 lt_prog_compiler_pic_CXX='-PIC'
12541 ;;
12542 *)
12543 ;;
12544 esac
12545 ;;
12546 sunos4*)
12547 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012548 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012549 # Sun C++ 4.x
12550 lt_prog_compiler_pic_CXX='-pic'
12551 lt_prog_compiler_static_CXX='-Bstatic'
12552 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012553 lcc*)
brynercb91a2f2006-08-25 21:14:45 +000012554 # Lucid
12555 lt_prog_compiler_pic_CXX='-pic'
12556 ;;
12557 *)
12558 ;;
12559 esac
12560 ;;
12561 tandem*)
12562 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012563 NCC*)
brynercb91a2f2006-08-25 21:14:45 +000012564 # NonStop-UX NCC 3.20
12565 lt_prog_compiler_pic_CXX='-KPIC'
12566 ;;
12567 *)
12568 ;;
12569 esac
12570 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012571 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12572 case $cc_basename in
12573 CC*)
12574 lt_prog_compiler_wl_CXX='-Wl,'
12575 lt_prog_compiler_pic_CXX='-KPIC'
12576 lt_prog_compiler_static_CXX='-Bstatic'
12577 ;;
12578 esac
brynercb91a2f2006-08-25 21:14:45 +000012579 ;;
12580 vxworks*)
12581 ;;
12582 *)
12583 lt_prog_compiler_can_build_shared_CXX=no
12584 ;;
12585 esac
12586 fi
12587
mmentovai8c2a4de2006-09-20 16:20:15 +000012588{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12589echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012590
12591#
12592# Check to make sure the PIC flag actually works.
12593#
12594if test -n "$lt_prog_compiler_pic_CXX"; then
12595
mmentovai8c2a4de2006-09-20 16:20:15 +000012596{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12597echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012598if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12599 echo $ECHO_N "(cached) $ECHO_C" >&6
12600else
12601 lt_prog_compiler_pic_works_CXX=no
12602 ac_outfile=conftest.$ac_objext
12603 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12604 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12605 # Insert the option either (1) after the last *FLAGS variable, or
12606 # (2) before a word containing "conftest.", or (3) at the end.
12607 # Note that $ac_compile itself does not contain backslashes and begins
12608 # with a dollar sign (not a hyphen), so the echo should work correctly.
12609 # The option is referenced via a variable to avoid confusing sed.
12610 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000012611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000012612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12613 -e 's:$: $lt_compiler_flag:'`
mmentovai0dbedc92006-09-25 21:16:15 +000012614 (eval echo "\"\$as_me:12614: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000012615 (eval "$lt_compile" 2>conftest.err)
12616 ac_status=$?
12617 cat conftest.err >&5
mmentovai0dbedc92006-09-25 21:16:15 +000012618 echo "$as_me:12618: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000012619 if (exit $ac_status) && test -s "$ac_outfile"; then
12620 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000012621 # So say no if there are warnings other than the usual output.
12622 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12624 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000012625 lt_prog_compiler_pic_works_CXX=yes
12626 fi
12627 fi
12628 $rm conftest*
12629
12630fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012631{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12632echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012633
12634if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12635 case $lt_prog_compiler_pic_CXX in
12636 "" | " "*) ;;
12637 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12638 esac
12639else
12640 lt_prog_compiler_pic_CXX=
12641 lt_prog_compiler_can_build_shared_CXX=no
12642fi
12643
12644fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012645case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000012646 # For platforms which do not support PIC, -DPIC is meaningless:
12647 *djgpp*)
12648 lt_prog_compiler_pic_CXX=
12649 ;;
12650 *)
12651 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12652 ;;
12653esac
12654
mmentovai8c2a4de2006-09-20 16:20:15 +000012655#
12656# Check to make sure the static flag actually works.
12657#
12658wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12659{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12660echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12661if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12663else
12664 lt_prog_compiler_static_works_CXX=no
12665 save_LDFLAGS="$LDFLAGS"
12666 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12667 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12668 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12669 # The linker can only warn and ignore the option if not recognized
12670 # So say no if there are warnings
12671 if test -s conftest.err; then
12672 # Append any errors to the config.log.
12673 cat conftest.err 1>&5
12674 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12675 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12676 if diff conftest.exp conftest.er2 >/dev/null; then
12677 lt_prog_compiler_static_works_CXX=yes
12678 fi
12679 else
12680 lt_prog_compiler_static_works_CXX=yes
12681 fi
12682 fi
12683 $rm conftest*
12684 LDFLAGS="$save_LDFLAGS"
12685
12686fi
12687{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12688echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12689
12690if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12691 :
12692else
12693 lt_prog_compiler_static_CXX=
12694fi
12695
12696
12697{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12698echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012699if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12701else
12702 lt_cv_prog_compiler_c_o_CXX=no
12703 $rm -r conftest 2>/dev/null
12704 mkdir conftest
12705 cd conftest
12706 mkdir out
12707 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12708
12709 lt_compiler_flag="-o out/conftest2.$ac_objext"
12710 # Insert the option either (1) after the last *FLAGS variable, or
12711 # (2) before a word containing "conftest.", or (3) at the end.
12712 # Note that $ac_compile itself does not contain backslashes and begins
12713 # with a dollar sign (not a hyphen), so the echo should work correctly.
12714 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000012715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000012716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12717 -e 's:$: $lt_compiler_flag:'`
mmentovai0dbedc92006-09-25 21:16:15 +000012718 (eval echo "\"\$as_me:12718: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000012719 (eval "$lt_compile" 2>out/conftest.err)
12720 ac_status=$?
12721 cat out/conftest.err >&5
mmentovai0dbedc92006-09-25 21:16:15 +000012722 echo "$as_me:12722: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000012723 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12724 then
12725 # The compiler can only warn and ignore the option if not recognized
12726 # So say no if there are warnings
mmentovai8c2a4de2006-09-20 16:20:15 +000012727 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12728 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12729 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000012730 lt_cv_prog_compiler_c_o_CXX=yes
12731 fi
12732 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012733 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +000012734 $rm conftest*
12735 # SGI C++ compiler will create directory out/ii_files/ for
12736 # template instantiation
12737 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12738 $rm out/* && rmdir out
12739 cd ..
12740 rmdir conftest
12741 $rm conftest*
12742
12743fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012744{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12745echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012746
12747
12748hard_links="nottested"
12749if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12750 # do not overwrite the value of need_locks provided by the user
mmentovai8c2a4de2006-09-20 16:20:15 +000012751 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12752echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012753 hard_links=yes
12754 $rm conftest*
12755 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12756 touch conftest.a
12757 ln conftest.a conftest.b 2>&5 || hard_links=no
12758 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mmentovai8c2a4de2006-09-20 16:20:15 +000012759 { echo "$as_me:$LINENO: result: $hard_links" >&5
12760echo "${ECHO_T}$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012761 if test "$hard_links" = no; then
12762 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12763echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12764 need_locks=warn
12765 fi
12766else
12767 need_locks=no
12768fi
12769
mmentovai8c2a4de2006-09-20 16:20:15 +000012770{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12771echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012772
12773 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12774 case $host_os in
12775 aix4* | aix5*)
12776 # If we're using GNU nm, then we don't want the "-C" option.
12777 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12778 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12779 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'
12780 else
12781 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'
12782 fi
12783 ;;
12784 pw32*)
12785 export_symbols_cmds_CXX="$ltdll_cmds"
12786 ;;
12787 cygwin* | mingw*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012788 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'
brynercb91a2f2006-08-25 21:14:45 +000012789 ;;
12790 *)
12791 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12792 ;;
12793 esac
12794
mmentovai8c2a4de2006-09-20 16:20:15 +000012795{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12796echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012797test "$ld_shlibs_CXX" = no && can_build_shared=no
12798
brynercb91a2f2006-08-25 21:14:45 +000012799#
12800# Do we need to explicitly link libc?
12801#
12802case "x$archive_cmds_need_lc_CXX" in
12803x|xyes)
12804 # Assume -lc should be added
12805 archive_cmds_need_lc_CXX=yes
12806
12807 if test "$enable_shared" = yes && test "$GCC" = yes; then
12808 case $archive_cmds_CXX in
12809 *'~'*)
12810 # FIXME: we may have to deal with multi-command sequences.
12811 ;;
12812 '$CC '*)
12813 # Test whether the compiler implicitly links with -lc since on some
12814 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12815 # to ld, don't add -lc before -lgcc.
mmentovai8c2a4de2006-09-20 16:20:15 +000012816 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12817echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012818 $rm conftest*
12819 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12820
12821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12822 (eval $ac_compile) 2>&5
12823 ac_status=$?
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } 2>conftest.err; then
12826 soname=conftest
12827 lib=conftest
12828 libobjs=conftest.$ac_objext
12829 deplibs=
12830 wl=$lt_prog_compiler_wl_CXX
mmentovai8c2a4de2006-09-20 16:20:15 +000012831 pic_flag=$lt_prog_compiler_pic_CXX
brynercb91a2f2006-08-25 21:14:45 +000012832 compiler_flags=-v
12833 linker_flags=-v
12834 verstring=
12835 output_objdir=.
12836 libname=conftest
12837 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12838 allow_undefined_flag_CXX=
12839 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12840 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }
12844 then
12845 archive_cmds_need_lc_CXX=no
12846 else
12847 archive_cmds_need_lc_CXX=yes
12848 fi
12849 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12850 else
12851 cat conftest.err 1>&5
12852 fi
12853 $rm conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000012854 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12855echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012856 ;;
12857 esac
12858 fi
12859 ;;
12860esac
12861
mmentovai8c2a4de2006-09-20 16:20:15 +000012862{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12863echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012864library_names_spec=
12865libname_spec='lib$name'
12866soname_spec=
12867shrext_cmds=".so"
12868postinstall_cmds=
12869postuninstall_cmds=
12870finish_cmds=
12871finish_eval=
12872shlibpath_var=
12873shlibpath_overrides_runpath=unknown
12874version_type=none
12875dynamic_linker="$host_os ld.so"
12876sys_lib_dlsearch_path_spec="/lib /usr/lib"
12877if test "$GCC" = yes; then
12878 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12879 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12880 # if the path contains ";" then we assume it to be the separator
12881 # otherwise default to the standard path separator (i.e. ":") - it is
12882 # assumed that no part of a normal pathname contains ";" but that should
12883 # okay in the real world where ";" in dirpaths is itself problematic.
12884 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12885 else
12886 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12887 fi
12888else
12889 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12890fi
12891need_lib_prefix=unknown
12892hardcode_into_libs=no
12893
12894# when you set need_version to no, make sure it does not cause -set_version
12895# flags to be left without arguments
12896need_version=unknown
12897
12898case $host_os in
12899aix3*)
12900 version_type=linux
12901 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12902 shlibpath_var=LIBPATH
12903
12904 # AIX 3 has no versioning support, so we append a major version to the name.
12905 soname_spec='${libname}${release}${shared_ext}$major'
12906 ;;
12907
12908aix4* | aix5*)
12909 version_type=linux
12910 need_lib_prefix=no
12911 need_version=no
12912 hardcode_into_libs=yes
12913 if test "$host_cpu" = ia64; then
12914 # AIX 5 supports IA64
12915 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12916 shlibpath_var=LD_LIBRARY_PATH
12917 else
12918 # With GCC up to 2.95.x, collect2 would create an import file
12919 # for dependence libraries. The import file would start with
12920 # the line `#! .'. This would cause the generated library to
12921 # depend on `.', always an invalid library. This was fixed in
12922 # development snapshots of GCC prior to 3.0.
12923 case $host_os in
12924 aix4 | aix4.[01] | aix4.[01].*)
12925 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12926 echo ' yes '
12927 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12928 :
12929 else
12930 can_build_shared=no
12931 fi
12932 ;;
12933 esac
12934 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12935 # soname into executable. Probably we can add versioning support to
12936 # collect2, so additional links can be useful in future.
12937 if test "$aix_use_runtimelinking" = yes; then
12938 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12939 # instead of lib<name>.a to let people know that these are not
12940 # typical AIX shared libraries.
12941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12942 else
12943 # We preserve .a as extension for shared libraries through AIX4.2
12944 # and later when we are not doing run time linking.
12945 library_names_spec='${libname}${release}.a $libname.a'
12946 soname_spec='${libname}${release}${shared_ext}$major'
12947 fi
12948 shlibpath_var=LIBPATH
12949 fi
12950 ;;
12951
12952amigaos*)
12953 library_names_spec='$libname.ixlibrary $libname.a'
12954 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12955 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'
12956 ;;
12957
12958beos*)
12959 library_names_spec='${libname}${shared_ext}'
12960 dynamic_linker="$host_os ld.so"
12961 shlibpath_var=LIBRARY_PATH
12962 ;;
12963
mmentovai8c2a4de2006-09-20 16:20:15 +000012964bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000012965 version_type=linux
12966 need_version=no
12967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12968 soname_spec='${libname}${release}${shared_ext}$major'
12969 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12970 shlibpath_var=LD_LIBRARY_PATH
12971 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12972 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12973 # the default ld.so.conf also contains /usr/contrib/lib and
12974 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12975 # libtool to hard-code these into programs
12976 ;;
12977
12978cygwin* | mingw* | pw32*)
12979 version_type=windows
12980 shrext_cmds=".dll"
12981 need_version=no
12982 need_lib_prefix=no
12983
12984 case $GCC,$host_os in
12985 yes,cygwin* | yes,mingw* | yes,pw32*)
12986 library_names_spec='$libname.dll.a'
12987 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12988 postinstall_cmds='base_file=`basename \${file}`~
12989 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12990 dldir=$destdir/`dirname \$dlpath`~
12991 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000012992 $install_prog $dir/$dlname \$dldir/$dlname~
12993 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000012994 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12995 dlpath=$dir/\$dldll~
12996 $rm \$dlpath'
12997 shlibpath_overrides_runpath=yes
12998
12999 case $host_os in
13000 cygwin*)
13001 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13002 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13003 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13004 ;;
13005 mingw*)
13006 # MinGW DLLs use traditional 'lib' prefix
13007 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13008 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13009 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13010 # It is most probably a Windows format PATH printed by
13011 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13012 # path with ; separators, and with drive letters. We can handle the
13013 # drive letters (cygwin fileutils understands them), so leave them,
13014 # especially as we might pass files found there to a mingw objdump,
13015 # which wouldn't understand a cygwinified path. Ahh.
13016 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13017 else
13018 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13019 fi
13020 ;;
13021 pw32*)
13022 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000013023 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
brynercb91a2f2006-08-25 21:14:45 +000013024 ;;
13025 esac
13026 ;;
13027
13028 *)
13029 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13030 ;;
13031 esac
13032 dynamic_linker='Win32 ld.exe'
13033 # FIXME: first we should search . and the directory the executable is in
13034 shlibpath_var=PATH
13035 ;;
13036
13037darwin* | rhapsody*)
13038 dynamic_linker="$host_os dyld"
13039 version_type=darwin
13040 need_lib_prefix=no
13041 need_version=no
13042 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13043 soname_spec='${libname}${release}${major}$shared_ext'
13044 shlibpath_overrides_runpath=yes
13045 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000013046 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
brynercb91a2f2006-08-25 21:14:45 +000013047 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13048 if test "$GCC" = yes; then
13049 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"`
13050 else
13051 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13052 fi
13053 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13054 ;;
13055
13056dgux*)
13057 version_type=linux
13058 need_lib_prefix=no
13059 need_version=no
13060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13061 soname_spec='${libname}${release}${shared_ext}$major'
13062 shlibpath_var=LD_LIBRARY_PATH
13063 ;;
13064
13065freebsd1*)
13066 dynamic_linker=no
13067 ;;
13068
13069kfreebsd*-gnu)
13070 version_type=linux
13071 need_lib_prefix=no
13072 need_version=no
13073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13074 soname_spec='${libname}${release}${shared_ext}$major'
13075 shlibpath_var=LD_LIBRARY_PATH
13076 shlibpath_overrides_runpath=no
13077 hardcode_into_libs=yes
13078 dynamic_linker='GNU ld.so'
13079 ;;
13080
mmentovai8c2a4de2006-09-20 16:20:15 +000013081freebsd* | dragonfly*)
13082 # DragonFly does not have aout. When/if they implement a new
13083 # versioning mechanism, adjust this.
13084 if test -x /usr/bin/objformat; then
13085 objformat=`/usr/bin/objformat`
13086 else
13087 case $host_os in
13088 freebsd[123]*) objformat=aout ;;
13089 *) objformat=elf ;;
13090 esac
13091 fi
brynercb91a2f2006-08-25 21:14:45 +000013092 version_type=freebsd-$objformat
13093 case $version_type in
13094 freebsd-elf*)
13095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13096 need_version=no
13097 need_lib_prefix=no
13098 ;;
13099 freebsd-*)
13100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13101 need_version=yes
13102 ;;
13103 esac
13104 shlibpath_var=LD_LIBRARY_PATH
13105 case $host_os in
13106 freebsd2*)
13107 shlibpath_overrides_runpath=yes
13108 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013109 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000013110 shlibpath_overrides_runpath=yes
13111 hardcode_into_libs=yes
13112 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013113 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13114 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000013115 shlibpath_overrides_runpath=no
13116 hardcode_into_libs=yes
13117 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013118 freebsd*) # from 4.6 on
13119 shlibpath_overrides_runpath=yes
13120 hardcode_into_libs=yes
13121 ;;
brynercb91a2f2006-08-25 21:14:45 +000013122 esac
13123 ;;
13124
13125gnu*)
13126 version_type=linux
13127 need_lib_prefix=no
13128 need_version=no
13129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13130 soname_spec='${libname}${release}${shared_ext}$major'
13131 shlibpath_var=LD_LIBRARY_PATH
13132 hardcode_into_libs=yes
13133 ;;
13134
13135hpux9* | hpux10* | hpux11*)
13136 # Give a soname corresponding to the major version so that dld.sl refuses to
13137 # link against other versions.
13138 version_type=sunos
13139 need_lib_prefix=no
13140 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013141 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000013142 ia64*)
13143 shrext_cmds='.so'
13144 hardcode_into_libs=yes
13145 dynamic_linker="$host_os dld.so"
13146 shlibpath_var=LD_LIBRARY_PATH
13147 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13149 soname_spec='${libname}${release}${shared_ext}$major'
13150 if test "X$HPUX_IA64_MODE" = X32; then
13151 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13152 else
13153 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13154 fi
13155 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13156 ;;
13157 hppa*64*)
13158 shrext_cmds='.sl'
13159 hardcode_into_libs=yes
13160 dynamic_linker="$host_os dld.sl"
13161 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13162 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13164 soname_spec='${libname}${release}${shared_ext}$major'
13165 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13166 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13167 ;;
13168 *)
13169 shrext_cmds='.sl'
13170 dynamic_linker="$host_os dld.sl"
13171 shlibpath_var=SHLIB_PATH
13172 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13174 soname_spec='${libname}${release}${shared_ext}$major'
13175 ;;
13176 esac
13177 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13178 postinstall_cmds='chmod 555 $lib'
13179 ;;
13180
mmentovai8c2a4de2006-09-20 16:20:15 +000013181interix3*)
13182 version_type=linux
13183 need_lib_prefix=no
13184 need_version=no
13185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13186 soname_spec='${libname}${release}${shared_ext}$major'
13187 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13188 shlibpath_var=LD_LIBRARY_PATH
13189 shlibpath_overrides_runpath=no
13190 hardcode_into_libs=yes
13191 ;;
13192
brynercb91a2f2006-08-25 21:14:45 +000013193irix5* | irix6* | nonstopux*)
13194 case $host_os in
13195 nonstopux*) version_type=nonstopux ;;
13196 *)
13197 if test "$lt_cv_prog_gnu_ld" = yes; then
13198 version_type=linux
13199 else
13200 version_type=irix
13201 fi ;;
13202 esac
13203 need_lib_prefix=no
13204 need_version=no
13205 soname_spec='${libname}${release}${shared_ext}$major'
13206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13207 case $host_os in
13208 irix5* | nonstopux*)
13209 libsuff= shlibsuff=
13210 ;;
13211 *)
13212 case $LD in # libtool.m4 will add one of these switches to LD
13213 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13214 libsuff= shlibsuff= libmagic=32-bit;;
13215 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13216 libsuff=32 shlibsuff=N32 libmagic=N32;;
13217 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13218 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13219 *) libsuff= shlibsuff= libmagic=never-match;;
13220 esac
13221 ;;
13222 esac
13223 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13224 shlibpath_overrides_runpath=no
13225 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13226 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13227 hardcode_into_libs=yes
13228 ;;
13229
13230# No shared lib support for Linux oldld, aout, or coff.
13231linux*oldld* | linux*aout* | linux*coff*)
13232 dynamic_linker=no
13233 ;;
13234
13235# This must be Linux ELF.
13236linux*)
13237 version_type=linux
13238 need_lib_prefix=no
13239 need_version=no
13240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13241 soname_spec='${libname}${release}${shared_ext}$major'
13242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13243 shlibpath_var=LD_LIBRARY_PATH
13244 shlibpath_overrides_runpath=no
13245 # This implies no fast_install, which is unacceptable.
13246 # Some rework will be needed to allow for fast_install
13247 # before this can be enabled.
13248 hardcode_into_libs=yes
13249
13250 # Append ld.so.conf contents to the search path
13251 if test -f /etc/ld.so.conf; then
mmentovai8c2a4de2006-09-20 16:20:15 +000013252 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' ' '`
brynercb91a2f2006-08-25 21:14:45 +000013253 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13254 fi
13255
13256 # We used to test for /lib/ld.so.1 and disable shared libraries on
13257 # powerpc, because MkLinux only supported shared libraries with the
13258 # GNU dynamic linker. Since this was broken with cross compilers,
13259 # most powerpc-linux boxes support dynamic linking these days and
13260 # people can always --disable-shared, the test was removed, and we
13261 # assume the GNU/Linux dynamic linker is in use.
13262 dynamic_linker='GNU/Linux ld.so'
13263 ;;
13264
brynercb91a2f2006-08-25 21:14:45 +000013265knetbsd*-gnu)
13266 version_type=linux
13267 need_lib_prefix=no
13268 need_version=no
13269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13270 soname_spec='${libname}${release}${shared_ext}$major'
13271 shlibpath_var=LD_LIBRARY_PATH
13272 shlibpath_overrides_runpath=no
13273 hardcode_into_libs=yes
13274 dynamic_linker='GNU ld.so'
13275 ;;
13276
13277netbsd*)
13278 version_type=sunos
13279 need_lib_prefix=no
13280 need_version=no
13281 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13284 dynamic_linker='NetBSD (a.out) ld.so'
13285 else
13286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13287 soname_spec='${libname}${release}${shared_ext}$major'
13288 dynamic_linker='NetBSD ld.elf_so'
13289 fi
13290 shlibpath_var=LD_LIBRARY_PATH
13291 shlibpath_overrides_runpath=yes
13292 hardcode_into_libs=yes
13293 ;;
13294
13295newsos6)
13296 version_type=linux
13297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13298 shlibpath_var=LD_LIBRARY_PATH
13299 shlibpath_overrides_runpath=yes
13300 ;;
13301
13302nto-qnx*)
13303 version_type=linux
13304 need_lib_prefix=no
13305 need_version=no
13306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13307 soname_spec='${libname}${release}${shared_ext}$major'
13308 shlibpath_var=LD_LIBRARY_PATH
13309 shlibpath_overrides_runpath=yes
13310 ;;
13311
13312openbsd*)
13313 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000013314 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000013315 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013316 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13317 case $host_os in
13318 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13319 *) need_version=no ;;
13320 esac
brynercb91a2f2006-08-25 21:14:45 +000013321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13323 shlibpath_var=LD_LIBRARY_PATH
13324 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13325 case $host_os in
13326 openbsd2.[89] | openbsd2.[89].*)
13327 shlibpath_overrides_runpath=no
13328 ;;
13329 *)
13330 shlibpath_overrides_runpath=yes
13331 ;;
13332 esac
13333 else
13334 shlibpath_overrides_runpath=yes
13335 fi
13336 ;;
13337
13338os2*)
13339 libname_spec='$name'
13340 shrext_cmds=".dll"
13341 need_lib_prefix=no
13342 library_names_spec='$libname${shared_ext} $libname.a'
13343 dynamic_linker='OS/2 ld.exe'
13344 shlibpath_var=LIBPATH
13345 ;;
13346
13347osf3* | osf4* | osf5*)
13348 version_type=osf
13349 need_lib_prefix=no
13350 need_version=no
13351 soname_spec='${libname}${release}${shared_ext}$major'
13352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13353 shlibpath_var=LD_LIBRARY_PATH
13354 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13355 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13356 ;;
13357
brynercb91a2f2006-08-25 21:14:45 +000013358solaris*)
13359 version_type=linux
13360 need_lib_prefix=no
13361 need_version=no
13362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13363 soname_spec='${libname}${release}${shared_ext}$major'
13364 shlibpath_var=LD_LIBRARY_PATH
13365 shlibpath_overrides_runpath=yes
13366 hardcode_into_libs=yes
13367 # ldd complains unless libraries are executable
13368 postinstall_cmds='chmod +x $lib'
13369 ;;
13370
13371sunos4*)
13372 version_type=sunos
13373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13374 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13375 shlibpath_var=LD_LIBRARY_PATH
13376 shlibpath_overrides_runpath=yes
13377 if test "$with_gnu_ld" = yes; then
13378 need_lib_prefix=no
13379 fi
13380 need_version=yes
13381 ;;
13382
mmentovai8c2a4de2006-09-20 16:20:15 +000013383sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000013384 version_type=linux
13385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13386 soname_spec='${libname}${release}${shared_ext}$major'
13387 shlibpath_var=LD_LIBRARY_PATH
13388 case $host_vendor in
13389 sni)
13390 shlibpath_overrides_runpath=no
13391 need_lib_prefix=no
13392 export_dynamic_flag_spec='${wl}-Blargedynsym'
13393 runpath_var=LD_RUN_PATH
13394 ;;
13395 siemens)
13396 need_lib_prefix=no
13397 ;;
13398 motorola)
13399 need_lib_prefix=no
13400 need_version=no
13401 shlibpath_overrides_runpath=no
13402 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13403 ;;
13404 esac
13405 ;;
13406
13407sysv4*MP*)
13408 if test -d /usr/nec ;then
13409 version_type=linux
13410 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13411 soname_spec='$libname${shared_ext}.$major'
13412 shlibpath_var=LD_LIBRARY_PATH
13413 fi
13414 ;;
13415
mmentovai8c2a4de2006-09-20 16:20:15 +000013416sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13417 version_type=freebsd-elf
13418 need_lib_prefix=no
13419 need_version=no
13420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13421 soname_spec='${libname}${release}${shared_ext}$major'
13422 shlibpath_var=LD_LIBRARY_PATH
13423 hardcode_into_libs=yes
13424 if test "$with_gnu_ld" = yes; then
13425 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13426 shlibpath_overrides_runpath=no
13427 else
13428 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13429 shlibpath_overrides_runpath=yes
13430 case $host_os in
13431 sco3.2v5*)
13432 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13433 ;;
13434 esac
13435 fi
13436 sys_lib_dlsearch_path_spec='/usr/lib'
13437 ;;
13438
brynercb91a2f2006-08-25 21:14:45 +000013439uts4*)
13440 version_type=linux
13441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13442 soname_spec='${libname}${release}${shared_ext}$major'
13443 shlibpath_var=LD_LIBRARY_PATH
13444 ;;
13445
13446*)
13447 dynamic_linker=no
13448 ;;
13449esac
mmentovai8c2a4de2006-09-20 16:20:15 +000013450{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13451echo "${ECHO_T}$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013452test "$dynamic_linker" = no && can_build_shared=no
13453
mmentovai8c2a4de2006-09-20 16:20:15 +000013454variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13455if test "$GCC" = yes; then
13456 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13457fi
13458
13459{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13460echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013461hardcode_action_CXX=
13462if test -n "$hardcode_libdir_flag_spec_CXX" || \
mmentovai8c2a4de2006-09-20 16:20:15 +000013463 test -n "$runpath_var_CXX" || \
13464 test "X$hardcode_automatic_CXX" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000013465
13466 # We can hardcode non-existant directories.
13467 if test "$hardcode_direct_CXX" != no &&
13468 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13469 # have to relink, otherwise we might link with an installed library
13470 # when we should be linking with a yet-to-be-installed one
13471 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13472 test "$hardcode_minus_L_CXX" != no; then
13473 # Linking always hardcodes the temporary library directory.
13474 hardcode_action_CXX=relink
13475 else
13476 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13477 hardcode_action_CXX=immediate
13478 fi
13479else
13480 # We cannot hardcode anything, or else we can only hardcode existing
13481 # directories.
13482 hardcode_action_CXX=unsupported
13483fi
mmentovai8c2a4de2006-09-20 16:20:15 +000013484{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13485echo "${ECHO_T}$hardcode_action_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013486
13487if test "$hardcode_action_CXX" = relink; then
13488 # Fast installation is not supported
13489 enable_fast_install=no
13490elif test "$shlibpath_overrides_runpath" = yes ||
13491 test "$enable_shared" = no; then
13492 # Fast installation is not necessary
13493 enable_fast_install=needless
13494fi
13495
brynercb91a2f2006-08-25 21:14:45 +000013496
13497# The else clause should only fire when bootstrapping the
13498# libtool distribution, otherwise you forgot to ship ltmain.sh
13499# with your package, and you will get complaints that there are
13500# no rules to generate ltmain.sh.
13501if test -f "$ltmain"; then
13502 # See if we are running on zsh, and set the options which allow our commands through
13503 # without removal of \ escapes.
13504 if test -n "${ZSH_VERSION+set}" ; then
13505 setopt NO_GLOB_SUBST
13506 fi
13507 # Now quote all the things that may contain metacharacters while being
13508 # careful not to overquote the AC_SUBSTed values. We take copies of the
13509 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000013510 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000013511 SED SHELL STRIP \
13512 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13513 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13514 deplibs_check_method reload_flag reload_cmds need_locks \
13515 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13516 lt_cv_sys_global_symbol_to_c_name_address \
13517 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13518 old_postinstall_cmds old_postuninstall_cmds \
13519 compiler_CXX \
13520 CC_CXX \
13521 LD_CXX \
13522 lt_prog_compiler_wl_CXX \
13523 lt_prog_compiler_pic_CXX \
13524 lt_prog_compiler_static_CXX \
13525 lt_prog_compiler_no_builtin_flag_CXX \
13526 export_dynamic_flag_spec_CXX \
13527 thread_safe_flag_spec_CXX \
13528 whole_archive_flag_spec_CXX \
13529 enable_shared_with_static_runtimes_CXX \
13530 old_archive_cmds_CXX \
13531 old_archive_from_new_cmds_CXX \
13532 predep_objects_CXX \
13533 postdep_objects_CXX \
13534 predeps_CXX \
13535 postdeps_CXX \
13536 compiler_lib_search_path_CXX \
13537 archive_cmds_CXX \
13538 archive_expsym_cmds_CXX \
13539 postinstall_cmds_CXX \
13540 postuninstall_cmds_CXX \
13541 old_archive_from_expsyms_cmds_CXX \
13542 allow_undefined_flag_CXX \
13543 no_undefined_flag_CXX \
13544 export_symbols_cmds_CXX \
13545 hardcode_libdir_flag_spec_CXX \
13546 hardcode_libdir_flag_spec_ld_CXX \
13547 hardcode_libdir_separator_CXX \
13548 hardcode_automatic_CXX \
13549 module_cmds_CXX \
13550 module_expsym_cmds_CXX \
13551 lt_cv_prog_compiler_c_o_CXX \
13552 exclude_expsyms_CXX \
13553 include_expsyms_CXX; do
13554
13555 case $var in
13556 old_archive_cmds_CXX | \
13557 old_archive_from_new_cmds_CXX | \
13558 archive_cmds_CXX | \
13559 archive_expsym_cmds_CXX | \
13560 module_cmds_CXX | \
13561 module_expsym_cmds_CXX | \
13562 old_archive_from_expsyms_cmds_CXX | \
13563 export_symbols_cmds_CXX | \
13564 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13565 postinstall_cmds | postuninstall_cmds | \
13566 old_postinstall_cmds | old_postuninstall_cmds | \
13567 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13568 # Double-quote double-evaled strings.
13569 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13570 ;;
13571 *)
13572 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13573 ;;
13574 esac
13575 done
13576
13577 case $lt_echo in
13578 *'\$0 --fallback-echo"')
13579 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13580 ;;
13581 esac
13582
13583cfgfile="$ofile"
13584
13585 cat <<__EOF__ >> "$cfgfile"
13586# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13587
13588# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13589
13590# Shell to use when invoking shell scripts.
13591SHELL=$lt_SHELL
13592
13593# Whether or not to build shared libraries.
13594build_libtool_libs=$enable_shared
13595
13596# Whether or not to build static libraries.
13597build_old_libs=$enable_static
13598
13599# Whether or not to add -lc for building shared libraries.
13600build_libtool_need_lc=$archive_cmds_need_lc_CXX
13601
13602# Whether or not to disallow shared libs when runtime libs are static
13603allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13604
13605# Whether or not to optimize for fast installation.
13606fast_install=$enable_fast_install
13607
13608# The host system.
13609host_alias=$host_alias
13610host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000013611host_os=$host_os
13612
13613# The build system.
13614build_alias=$build_alias
13615build=$build
13616build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000013617
13618# An echo program that does not interpret backslashes.
13619echo=$lt_echo
13620
13621# The archiver.
13622AR=$lt_AR
13623AR_FLAGS=$lt_AR_FLAGS
13624
13625# A C compiler.
13626LTCC=$lt_LTCC
13627
mmentovai8c2a4de2006-09-20 16:20:15 +000013628# LTCC compiler flags.
13629LTCFLAGS=$lt_LTCFLAGS
13630
brynercb91a2f2006-08-25 21:14:45 +000013631# A language-specific compiler.
13632CC=$lt_compiler_CXX
13633
13634# Is the compiler the GNU C compiler?
13635with_gcc=$GCC_CXX
13636
13637# An ERE matcher.
13638EGREP=$lt_EGREP
13639
13640# The linker used to build libraries.
13641LD=$lt_LD_CXX
13642
13643# Whether we need hard or soft links.
13644LN_S=$lt_LN_S
13645
13646# A BSD-compatible nm program.
13647NM=$lt_NM
13648
13649# A symbol stripping program
13650STRIP=$lt_STRIP
13651
13652# Used to examine libraries when file_magic_cmd begins "file"
13653MAGIC_CMD=$MAGIC_CMD
13654
13655# Used on cygwin: DLL creation program.
13656DLLTOOL="$DLLTOOL"
13657
13658# Used on cygwin: object dumper.
13659OBJDUMP="$OBJDUMP"
13660
13661# Used on cygwin: assembler.
13662AS="$AS"
13663
13664# The name of the directory that contains temporary libtool files.
13665objdir=$objdir
13666
13667# How to create reloadable object files.
13668reload_flag=$lt_reload_flag
13669reload_cmds=$lt_reload_cmds
13670
13671# How to pass a linker flag through the compiler.
13672wl=$lt_lt_prog_compiler_wl_CXX
13673
13674# Object file suffix (normally "o").
13675objext="$ac_objext"
13676
13677# Old archive suffix (normally "a").
13678libext="$libext"
13679
13680# Shared library suffix (normally ".so").
13681shrext_cmds='$shrext_cmds'
13682
13683# Executable file suffix (normally "").
13684exeext="$exeext"
13685
13686# Additional compiler flags for building library objects.
13687pic_flag=$lt_lt_prog_compiler_pic_CXX
13688pic_mode=$pic_mode
13689
13690# What is the maximum length of a command?
13691max_cmd_len=$lt_cv_sys_max_cmd_len
13692
13693# Does compiler simultaneously support -c and -o options?
13694compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13695
mmentovai8c2a4de2006-09-20 16:20:15 +000013696# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000013697need_locks=$lt_need_locks
13698
13699# Do we need the lib prefix for modules?
13700need_lib_prefix=$need_lib_prefix
13701
13702# Do we need a version for libraries?
13703need_version=$need_version
13704
13705# Whether dlopen is supported.
13706dlopen_support=$enable_dlopen
13707
13708# Whether dlopen of programs is supported.
13709dlopen_self=$enable_dlopen_self
13710
13711# Whether dlopen of statically linked programs is supported.
13712dlopen_self_static=$enable_dlopen_self_static
13713
13714# Compiler flag to prevent dynamic linking.
13715link_static_flag=$lt_lt_prog_compiler_static_CXX
13716
13717# Compiler flag to turn off builtin functions.
13718no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13719
13720# Compiler flag to allow reflexive dlopens.
13721export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13722
13723# Compiler flag to generate shared objects directly from archives.
13724whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13725
13726# Compiler flag to generate thread-safe objects.
13727thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13728
13729# Library versioning type.
13730version_type=$version_type
13731
13732# Format of library name prefix.
13733libname_spec=$lt_libname_spec
13734
13735# List of archive names. First name is the real one, the rest are links.
13736# The last name is the one that the linker finds with -lNAME.
13737library_names_spec=$lt_library_names_spec
13738
13739# The coded name of the library, if different from the real name.
13740soname_spec=$lt_soname_spec
13741
13742# Commands used to build and install an old-style archive.
13743RANLIB=$lt_RANLIB
13744old_archive_cmds=$lt_old_archive_cmds_CXX
13745old_postinstall_cmds=$lt_old_postinstall_cmds
13746old_postuninstall_cmds=$lt_old_postuninstall_cmds
13747
13748# Create an old-style archive from a shared archive.
13749old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13750
13751# Create a temporary old-style archive to link instead of a shared archive.
13752old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13753
13754# Commands used to build and install a shared archive.
13755archive_cmds=$lt_archive_cmds_CXX
13756archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13757postinstall_cmds=$lt_postinstall_cmds
13758postuninstall_cmds=$lt_postuninstall_cmds
13759
13760# Commands used to build a loadable module (assumed same as above if empty)
13761module_cmds=$lt_module_cmds_CXX
13762module_expsym_cmds=$lt_module_expsym_cmds_CXX
13763
13764# Commands to strip libraries.
13765old_striplib=$lt_old_striplib
13766striplib=$lt_striplib
13767
13768# Dependencies to place before the objects being linked to create a
13769# shared library.
13770predep_objects=$lt_predep_objects_CXX
13771
13772# Dependencies to place after the objects being linked to create a
13773# shared library.
13774postdep_objects=$lt_postdep_objects_CXX
13775
13776# Dependencies to place before the objects being linked to create a
13777# shared library.
13778predeps=$lt_predeps_CXX
13779
13780# Dependencies to place after the objects being linked to create a
13781# shared library.
13782postdeps=$lt_postdeps_CXX
13783
13784# The library search path used internally by the compiler when linking
13785# a shared library.
13786compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13787
13788# Method to check whether dependent libraries are shared objects.
13789deplibs_check_method=$lt_deplibs_check_method
13790
13791# Command to use when deplibs_check_method == file_magic.
13792file_magic_cmd=$lt_file_magic_cmd
13793
13794# Flag that allows shared libraries with undefined symbols to be built.
13795allow_undefined_flag=$lt_allow_undefined_flag_CXX
13796
13797# Flag that forces no undefined symbols.
13798no_undefined_flag=$lt_no_undefined_flag_CXX
13799
13800# Commands used to finish a libtool library installation in a directory.
13801finish_cmds=$lt_finish_cmds
13802
13803# Same as above, but a single script fragment to be evaled but not shown.
13804finish_eval=$lt_finish_eval
13805
13806# Take the output of nm and produce a listing of raw symbols and C names.
13807global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13808
13809# Transform the output of nm in a proper C declaration
13810global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13811
13812# Transform the output of nm in a C name address pair
13813global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13814
13815# This is the shared library runtime path variable.
13816runpath_var=$runpath_var
13817
13818# This is the shared library path variable.
13819shlibpath_var=$shlibpath_var
13820
13821# Is shlibpath searched before the hard-coded library search path?
13822shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13823
13824# How to hardcode a shared library path into an executable.
13825hardcode_action=$hardcode_action_CXX
13826
13827# Whether we should hardcode library paths into libraries.
13828hardcode_into_libs=$hardcode_into_libs
13829
13830# Flag to hardcode \$libdir into a binary during linking.
13831# This must work even if \$libdir does not exist.
13832hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13833
13834# If ld is used when linking, flag to hardcode \$libdir into
13835# a binary during linking. This must work even if \$libdir does
13836# not exist.
13837hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13838
13839# Whether we need a single -rpath flag with a separated argument.
13840hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13841
13842# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13843# resulting binary.
13844hardcode_direct=$hardcode_direct_CXX
13845
13846# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13847# resulting binary.
13848hardcode_minus_L=$hardcode_minus_L_CXX
13849
13850# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13851# the resulting binary.
13852hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13853
13854# Set to yes if building a shared library automatically hardcodes DIR into the library
13855# and all subsequent libraries and executables linked against it.
13856hardcode_automatic=$hardcode_automatic_CXX
13857
13858# Variables whose values should be saved in libtool wrapper scripts and
13859# restored at relink time.
13860variables_saved_for_relink="$variables_saved_for_relink"
13861
13862# Whether libtool must link a program against all its dependency libraries.
13863link_all_deplibs=$link_all_deplibs_CXX
13864
13865# Compile-time system search path for libraries
13866sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13867
13868# Run-time system search path for libraries
13869sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13870
13871# Fix the shell variable \$srcfile for the compiler.
13872fix_srcfile_path="$fix_srcfile_path_CXX"
13873
13874# Set to yes if exported symbols are required.
13875always_export_symbols=$always_export_symbols_CXX
13876
13877# The commands to list exported symbols.
13878export_symbols_cmds=$lt_export_symbols_cmds_CXX
13879
13880# The commands to extract the exported symbol list from a shared archive.
13881extract_expsyms_cmds=$lt_extract_expsyms_cmds
13882
13883# Symbols that should not be listed in the preloaded symbols.
13884exclude_expsyms=$lt_exclude_expsyms_CXX
13885
13886# Symbols that must always be exported.
13887include_expsyms=$lt_include_expsyms_CXX
13888
13889# ### END LIBTOOL TAG CONFIG: $tagname
13890
13891__EOF__
13892
13893
13894else
13895 # If there is no Makefile yet, we rely on a make rule to execute
13896 # `config.status --recheck' to rerun these tests and create the
13897 # libtool script then.
13898 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13899 if test -f "$ltmain_in"; then
13900 test -f Makefile && make "$ltmain"
13901 fi
13902fi
13903
13904
13905ac_ext=c
13906ac_cpp='$CPP $CPPFLAGS'
13907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13909ac_compiler_gnu=$ac_cv_c_compiler_gnu
13910
13911CC=$lt_save_CC
13912LDCXX=$LD
13913LD=$lt_save_LD
13914GCC=$lt_save_GCC
13915with_gnu_ldcxx=$with_gnu_ld
13916with_gnu_ld=$lt_save_with_gnu_ld
13917lt_cv_path_LDCXX=$lt_cv_path_LD
13918lt_cv_path_LD=$lt_save_path_LD
13919lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13920lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13921
13922 else
13923 tagname=""
13924 fi
13925 ;;
13926
13927 F77)
13928 if test -n "$F77" && test "X$F77" != "Xno"; then
13929
13930ac_ext=f
13931ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13932ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13933ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13934
13935
13936archive_cmds_need_lc_F77=no
13937allow_undefined_flag_F77=
13938always_export_symbols_F77=no
13939archive_expsym_cmds_F77=
13940export_dynamic_flag_spec_F77=
13941hardcode_direct_F77=no
13942hardcode_libdir_flag_spec_F77=
13943hardcode_libdir_flag_spec_ld_F77=
13944hardcode_libdir_separator_F77=
13945hardcode_minus_L_F77=no
13946hardcode_automatic_F77=no
13947module_cmds_F77=
13948module_expsym_cmds_F77=
13949link_all_deplibs_F77=unknown
13950old_archive_cmds_F77=$old_archive_cmds
13951no_undefined_flag_F77=
13952whole_archive_flag_spec_F77=
13953enable_shared_with_static_runtimes_F77=no
13954
13955# Source file extension for f77 test sources.
13956ac_ext=f
13957
13958# Object file extension for compiled f77 test sources.
13959objext=o
13960objext_F77=$objext
13961
13962# Code to be used in simple compile tests
13963lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13964
13965# Code to be used in simple link tests
13966lt_simple_link_test_code=" program t\n end\n"
13967
13968# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13969
13970# If no C compiler was specified, use CC.
13971LTCC=${LTCC-"$CC"}
13972
mmentovai8c2a4de2006-09-20 16:20:15 +000013973# If no C compiler flags were specified, use CFLAGS.
13974LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13975
brynercb91a2f2006-08-25 21:14:45 +000013976# Allow CC to be a program name with arguments.
13977compiler=$CC
13978
13979
mmentovai8c2a4de2006-09-20 16:20:15 +000013980# save warnings/boilerplate of simple test code
13981ac_outfile=conftest.$ac_objext
13982printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13983eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13984_lt_compiler_boilerplate=`cat conftest.err`
13985$rm conftest*
13986
13987ac_outfile=conftest.$ac_objext
13988printf "$lt_simple_link_test_code" >conftest.$ac_ext
13989eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13990_lt_linker_boilerplate=`cat conftest.err`
13991$rm conftest*
13992
13993
brynercb91a2f2006-08-25 21:14:45 +000013994# Allow CC to be a program name with arguments.
13995lt_save_CC="$CC"
13996CC=${F77-"f77"}
13997compiler=$CC
13998compiler_F77=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +000013999for cc_temp in $compiler""; do
14000 case $cc_temp in
14001 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14002 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14003 \-*) ;;
14004 *) break;;
14005 esac
14006done
14007cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +000014008
brynercb91a2f2006-08-25 21:14:45 +000014009
mmentovai8c2a4de2006-09-20 16:20:15 +000014010{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14011echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14012{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14013echo "${ECHO_T}$can_build_shared" >&6; }
14014
14015{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14016echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014017test "$can_build_shared" = "no" && enable_shared=no
14018
14019# On AIX, shared libraries and static libraries use the same namespace, and
14020# are all built from PIC.
mmentovai8c2a4de2006-09-20 16:20:15 +000014021case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000014022aix3*)
14023 test "$enable_shared" = yes && enable_static=no
14024 if test -n "$RANLIB"; then
14025 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14026 postinstall_cmds='$RANLIB $lib'
14027 fi
14028 ;;
14029aix4* | aix5*)
mmentovai8c2a4de2006-09-20 16:20:15 +000014030 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14031 test "$enable_shared" = yes && enable_static=no
14032 fi
brynercb91a2f2006-08-25 21:14:45 +000014033 ;;
14034esac
mmentovai8c2a4de2006-09-20 16:20:15 +000014035{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14036echo "${ECHO_T}$enable_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014037
mmentovai8c2a4de2006-09-20 16:20:15 +000014038{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14039echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014040# Make sure either enable_shared or enable_static is yes.
14041test "$enable_shared" = yes || enable_static=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014042{ echo "$as_me:$LINENO: result: $enable_static" >&5
14043echo "${ECHO_T}$enable_static" >&6; }
brynerd5e66382006-09-08 02:35:53 +000014044
brynercb91a2f2006-08-25 21:14:45 +000014045GCC_F77="$G77"
14046LD_F77="$LD"
14047
14048lt_prog_compiler_wl_F77=
14049lt_prog_compiler_pic_F77=
14050lt_prog_compiler_static_F77=
14051
mmentovai8c2a4de2006-09-20 16:20:15 +000014052{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14053echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014054
14055 if test "$GCC" = yes; then
14056 lt_prog_compiler_wl_F77='-Wl,'
14057 lt_prog_compiler_static_F77='-static'
14058
14059 case $host_os in
14060 aix*)
14061 # All AIX code is PIC.
14062 if test "$host_cpu" = ia64; then
14063 # AIX 5 now supports IA64 processor
14064 lt_prog_compiler_static_F77='-Bstatic'
14065 fi
14066 ;;
14067
14068 amigaos*)
14069 # FIXME: we need at least 68020 code to build shared libraries, but
14070 # adding the `-m68020' flag to GCC prevents building anything better,
14071 # like `-m68040'.
14072 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14073 ;;
14074
14075 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14076 # PIC is the default for these OSes.
14077 ;;
14078
14079 mingw* | pw32* | os2*)
14080 # This hack is so that the source file can tell whether it is being
14081 # built for inclusion in a dll (and should export symbols for example).
14082 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14083 ;;
14084
14085 darwin* | rhapsody*)
14086 # PIC is the default on this platform
14087 # Common symbols not allowed in MH_DYLIB files
14088 lt_prog_compiler_pic_F77='-fno-common'
14089 ;;
14090
mmentovai8c2a4de2006-09-20 16:20:15 +000014091 interix3*)
14092 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14093 # Instead, we relocate shared libraries at runtime.
14094 ;;
14095
brynercb91a2f2006-08-25 21:14:45 +000014096 msdosdjgpp*)
14097 # Just because we use GCC doesn't mean we suddenly get shared libraries
14098 # on systems that don't support them.
14099 lt_prog_compiler_can_build_shared_F77=no
14100 enable_shared=no
14101 ;;
14102
14103 sysv4*MP*)
14104 if test -d /usr/nec; then
14105 lt_prog_compiler_pic_F77=-Kconform_pic
14106 fi
14107 ;;
14108
14109 hpux*)
14110 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14111 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000014112 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000014113 hppa*64*|ia64*)
14114 # +Z the default
14115 ;;
14116 *)
14117 lt_prog_compiler_pic_F77='-fPIC'
14118 ;;
14119 esac
14120 ;;
14121
14122 *)
14123 lt_prog_compiler_pic_F77='-fPIC'
14124 ;;
14125 esac
14126 else
14127 # PORTME Check for flag to pass linker flags through the system compiler.
14128 case $host_os in
14129 aix*)
14130 lt_prog_compiler_wl_F77='-Wl,'
14131 if test "$host_cpu" = ia64; then
14132 # AIX 5 now supports IA64 processor
14133 lt_prog_compiler_static_F77='-Bstatic'
14134 else
14135 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14136 fi
14137 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014138 darwin*)
14139 # PIC is the default on this platform
14140 # Common symbols not allowed in MH_DYLIB files
14141 case $cc_basename in
14142 xlc*)
14143 lt_prog_compiler_pic_F77='-qnocommon'
14144 lt_prog_compiler_wl_F77='-Wl,'
14145 ;;
14146 esac
14147 ;;
brynercb91a2f2006-08-25 21:14:45 +000014148
14149 mingw* | pw32* | os2*)
14150 # This hack is so that the source file can tell whether it is being
14151 # built for inclusion in a dll (and should export symbols for example).
14152 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14153 ;;
14154
14155 hpux9* | hpux10* | hpux11*)
14156 lt_prog_compiler_wl_F77='-Wl,'
14157 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14158 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000014159 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000014160 hppa*64*|ia64*)
14161 # +Z the default
14162 ;;
14163 *)
14164 lt_prog_compiler_pic_F77='+Z'
14165 ;;
14166 esac
14167 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14168 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14169 ;;
14170
14171 irix5* | irix6* | nonstopux*)
14172 lt_prog_compiler_wl_F77='-Wl,'
14173 # PIC (with -KPIC) is the default.
14174 lt_prog_compiler_static_F77='-non_shared'
14175 ;;
14176
14177 newsos6)
14178 lt_prog_compiler_pic_F77='-KPIC'
14179 lt_prog_compiler_static_F77='-Bstatic'
14180 ;;
14181
14182 linux*)
mmentovai8c2a4de2006-09-20 16:20:15 +000014183 case $cc_basename in
brynercb91a2f2006-08-25 21:14:45 +000014184 icc* | ecc*)
14185 lt_prog_compiler_wl_F77='-Wl,'
14186 lt_prog_compiler_pic_F77='-KPIC'
14187 lt_prog_compiler_static_F77='-static'
14188 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014189 pgcc* | pgf77* | pgf90* | pgf95*)
14190 # Portland Group compilers (*not* the Pentium gcc compiler,
14191 # which looks to be a dead project)
14192 lt_prog_compiler_wl_F77='-Wl,'
14193 lt_prog_compiler_pic_F77='-fpic'
14194 lt_prog_compiler_static_F77='-Bstatic'
14195 ;;
brynercb91a2f2006-08-25 21:14:45 +000014196 ccc*)
14197 lt_prog_compiler_wl_F77='-Wl,'
14198 # All Alpha code is PIC.
14199 lt_prog_compiler_static_F77='-non_shared'
14200 ;;
14201 esac
14202 ;;
14203
14204 osf3* | osf4* | osf5*)
14205 lt_prog_compiler_wl_F77='-Wl,'
14206 # All OSF/1 code is PIC.
14207 lt_prog_compiler_static_F77='-non_shared'
14208 ;;
14209
brynercb91a2f2006-08-25 21:14:45 +000014210 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000014211 lt_prog_compiler_pic_F77='-KPIC'
14212 lt_prog_compiler_static_F77='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +000014213 case $cc_basename in
14214 f77* | f90* | f95*)
14215 lt_prog_compiler_wl_F77='-Qoption ld ';;
14216 *)
14217 lt_prog_compiler_wl_F77='-Wl,';;
14218 esac
brynercb91a2f2006-08-25 21:14:45 +000014219 ;;
14220
14221 sunos4*)
14222 lt_prog_compiler_wl_F77='-Qoption ld '
14223 lt_prog_compiler_pic_F77='-PIC'
14224 lt_prog_compiler_static_F77='-Bstatic'
14225 ;;
14226
mmentovai8c2a4de2006-09-20 16:20:15 +000014227 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000014228 lt_prog_compiler_wl_F77='-Wl,'
14229 lt_prog_compiler_pic_F77='-KPIC'
14230 lt_prog_compiler_static_F77='-Bstatic'
14231 ;;
14232
14233 sysv4*MP*)
14234 if test -d /usr/nec ;then
14235 lt_prog_compiler_pic_F77='-Kconform_pic'
14236 lt_prog_compiler_static_F77='-Bstatic'
14237 fi
14238 ;;
14239
mmentovai8c2a4de2006-09-20 16:20:15 +000014240 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14241 lt_prog_compiler_wl_F77='-Wl,'
14242 lt_prog_compiler_pic_F77='-KPIC'
14243 lt_prog_compiler_static_F77='-Bstatic'
14244 ;;
14245
14246 unicos*)
14247 lt_prog_compiler_wl_F77='-Wl,'
14248 lt_prog_compiler_can_build_shared_F77=no
14249 ;;
14250
brynercb91a2f2006-08-25 21:14:45 +000014251 uts4*)
14252 lt_prog_compiler_pic_F77='-pic'
14253 lt_prog_compiler_static_F77='-Bstatic'
14254 ;;
14255
14256 *)
14257 lt_prog_compiler_can_build_shared_F77=no
14258 ;;
14259 esac
14260 fi
14261
mmentovai8c2a4de2006-09-20 16:20:15 +000014262{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14263echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014264
14265#
14266# Check to make sure the PIC flag actually works.
14267#
14268if test -n "$lt_prog_compiler_pic_F77"; then
14269
mmentovai8c2a4de2006-09-20 16:20:15 +000014270{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14271echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014272if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14274else
14275 lt_prog_compiler_pic_works_F77=no
14276 ac_outfile=conftest.$ac_objext
14277 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14278 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14279 # Insert the option either (1) after the last *FLAGS variable, or
14280 # (2) before a word containing "conftest.", or (3) at the end.
14281 # Note that $ac_compile itself does not contain backslashes and begins
14282 # with a dollar sign (not a hyphen), so the echo should work correctly.
14283 # The option is referenced via a variable to avoid confusing sed.
14284 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000014285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000014286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14287 -e 's:$: $lt_compiler_flag:'`
mmentovai0dbedc92006-09-25 21:16:15 +000014288 (eval echo "\"\$as_me:14288: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000014289 (eval "$lt_compile" 2>conftest.err)
14290 ac_status=$?
14291 cat conftest.err >&5
mmentovai0dbedc92006-09-25 21:16:15 +000014292 echo "$as_me:14292: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000014293 if (exit $ac_status) && test -s "$ac_outfile"; then
14294 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000014295 # So say no if there are warnings other than the usual output.
14296 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14297 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14298 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000014299 lt_prog_compiler_pic_works_F77=yes
14300 fi
14301 fi
14302 $rm conftest*
14303
14304fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014305{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14306echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014307
14308if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14309 case $lt_prog_compiler_pic_F77 in
14310 "" | " "*) ;;
14311 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14312 esac
14313else
14314 lt_prog_compiler_pic_F77=
14315 lt_prog_compiler_can_build_shared_F77=no
14316fi
14317
14318fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014319case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000014320 # For platforms which do not support PIC, -DPIC is meaningless:
14321 *djgpp*)
14322 lt_prog_compiler_pic_F77=
14323 ;;
14324 *)
14325 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14326 ;;
14327esac
14328
mmentovai8c2a4de2006-09-20 16:20:15 +000014329#
14330# Check to make sure the static flag actually works.
14331#
14332wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14333{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14334echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14335if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14337else
14338 lt_prog_compiler_static_works_F77=no
14339 save_LDFLAGS="$LDFLAGS"
14340 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14341 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14342 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14343 # The linker can only warn and ignore the option if not recognized
14344 # So say no if there are warnings
14345 if test -s conftest.err; then
14346 # Append any errors to the config.log.
14347 cat conftest.err 1>&5
14348 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14350 if diff conftest.exp conftest.er2 >/dev/null; then
14351 lt_prog_compiler_static_works_F77=yes
14352 fi
14353 else
14354 lt_prog_compiler_static_works_F77=yes
14355 fi
14356 fi
14357 $rm conftest*
14358 LDFLAGS="$save_LDFLAGS"
14359
14360fi
14361{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14362echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14363
14364if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14365 :
14366else
14367 lt_prog_compiler_static_F77=
14368fi
14369
14370
14371{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14372echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014373if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14374 echo $ECHO_N "(cached) $ECHO_C" >&6
14375else
14376 lt_cv_prog_compiler_c_o_F77=no
14377 $rm -r conftest 2>/dev/null
14378 mkdir conftest
14379 cd conftest
14380 mkdir out
14381 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14382
14383 lt_compiler_flag="-o out/conftest2.$ac_objext"
14384 # Insert the option either (1) after the last *FLAGS variable, or
14385 # (2) before a word containing "conftest.", or (3) at the end.
14386 # Note that $ac_compile itself does not contain backslashes and begins
14387 # with a dollar sign (not a hyphen), so the echo should work correctly.
14388 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000014389 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000014390 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14391 -e 's:$: $lt_compiler_flag:'`
mmentovai0dbedc92006-09-25 21:16:15 +000014392 (eval echo "\"\$as_me:14392: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000014393 (eval "$lt_compile" 2>out/conftest.err)
14394 ac_status=$?
14395 cat out/conftest.err >&5
mmentovai0dbedc92006-09-25 21:16:15 +000014396 echo "$as_me:14396: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000014397 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14398 then
14399 # The compiler can only warn and ignore the option if not recognized
14400 # So say no if there are warnings
mmentovai8c2a4de2006-09-20 16:20:15 +000014401 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14402 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14403 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000014404 lt_cv_prog_compiler_c_o_F77=yes
14405 fi
14406 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014407 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +000014408 $rm conftest*
14409 # SGI C++ compiler will create directory out/ii_files/ for
14410 # template instantiation
14411 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14412 $rm out/* && rmdir out
14413 cd ..
14414 rmdir conftest
14415 $rm conftest*
14416
14417fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014418{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14419echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014420
14421
14422hard_links="nottested"
14423if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14424 # do not overwrite the value of need_locks provided by the user
mmentovai8c2a4de2006-09-20 16:20:15 +000014425 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14426echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014427 hard_links=yes
14428 $rm conftest*
14429 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14430 touch conftest.a
14431 ln conftest.a conftest.b 2>&5 || hard_links=no
14432 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mmentovai8c2a4de2006-09-20 16:20:15 +000014433 { echo "$as_me:$LINENO: result: $hard_links" >&5
14434echo "${ECHO_T}$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014435 if test "$hard_links" = no; then
14436 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14437echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14438 need_locks=warn
14439 fi
14440else
14441 need_locks=no
14442fi
14443
mmentovai8c2a4de2006-09-20 16:20:15 +000014444{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14445echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014446
14447 runpath_var=
14448 allow_undefined_flag_F77=
14449 enable_shared_with_static_runtimes_F77=no
14450 archive_cmds_F77=
14451 archive_expsym_cmds_F77=
14452 old_archive_From_new_cmds_F77=
14453 old_archive_from_expsyms_cmds_F77=
14454 export_dynamic_flag_spec_F77=
14455 whole_archive_flag_spec_F77=
14456 thread_safe_flag_spec_F77=
14457 hardcode_libdir_flag_spec_F77=
14458 hardcode_libdir_flag_spec_ld_F77=
14459 hardcode_libdir_separator_F77=
14460 hardcode_direct_F77=no
14461 hardcode_minus_L_F77=no
14462 hardcode_shlibpath_var_F77=unsupported
14463 link_all_deplibs_F77=unknown
14464 hardcode_automatic_F77=no
14465 module_cmds_F77=
14466 module_expsym_cmds_F77=
14467 always_export_symbols_F77=no
14468 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14469 # include_expsyms should be a list of space-separated symbols to be *always*
14470 # included in the symbol list
14471 include_expsyms_F77=
14472 # exclude_expsyms can be an extended regexp of symbols to exclude
14473 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14474 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14475 # as well as any symbol that contains `d'.
14476 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14477 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14478 # platforms (ab)use it in PIC code, but their linkers get confused if
14479 # the symbol is explicitly referenced. Since portable code cannot
14480 # rely on this symbol name, it's probably fine to never include it in
14481 # preloaded symbol tables.
14482 extract_expsyms_cmds=
mmentovai8c2a4de2006-09-20 16:20:15 +000014483 # Just being paranoid about ensuring that cc_basename is set.
14484 for cc_temp in $compiler""; do
14485 case $cc_temp in
14486 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14487 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14488 \-*) ;;
14489 *) break;;
14490 esac
14491done
14492cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +000014493
14494 case $host_os in
14495 cygwin* | mingw* | pw32*)
14496 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14497 # When not using gcc, we currently assume that we are using
14498 # Microsoft Visual C++.
14499 if test "$GCC" != yes; then
14500 with_gnu_ld=no
14501 fi
14502 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014503 interix*)
14504 # we just hope/assume this is gcc and not c89 (= MSVC++)
14505 with_gnu_ld=yes
14506 ;;
brynercb91a2f2006-08-25 21:14:45 +000014507 openbsd*)
14508 with_gnu_ld=no
14509 ;;
14510 esac
14511
14512 ld_shlibs_F77=yes
14513 if test "$with_gnu_ld" = yes; then
14514 # If archive_cmds runs LD, not CC, wlarc should be empty
14515 wlarc='${wl}'
14516
mmentovai8c2a4de2006-09-20 16:20:15 +000014517 # Set some defaults for GNU ld with shared library support. These
14518 # are reset later if shared libraries are not supported. Putting them
14519 # here allows them to be overridden if necessary.
14520 runpath_var=LD_RUN_PATH
14521 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14522 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14523 # ancient GNU ld didn't support --whole-archive et. al.
14524 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14525 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14526 else
14527 whole_archive_flag_spec_F77=
14528 fi
14529 supports_anon_versioning=no
14530 case `$LD -v 2>/dev/null` in
14531 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14532 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14533 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14534 *\ 2.11.*) ;; # other 2.11 versions
14535 *) supports_anon_versioning=yes ;;
14536 esac
14537
brynercb91a2f2006-08-25 21:14:45 +000014538 # See if GNU ld supports shared libraries.
14539 case $host_os in
14540 aix3* | aix4* | aix5*)
14541 # On AIX/PPC, the GNU linker is very broken
14542 if test "$host_cpu" != ia64; then
14543 ld_shlibs_F77=no
14544 cat <<EOF 1>&2
14545
14546*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14547*** to be unable to reliably create shared libraries on AIX.
14548*** Therefore, libtool is disabling shared libraries support. If you
14549*** really care for shared libraries, you may want to modify your PATH
14550*** so that a non-GNU linker is found, and then restart.
14551
14552EOF
14553 fi
14554 ;;
14555
14556 amigaos*)
14557 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)'
14558 hardcode_libdir_flag_spec_F77='-L$libdir'
14559 hardcode_minus_L_F77=yes
14560
14561 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14562 # that the semantics of dynamic libraries on AmigaOS, at least up
14563 # to version 4, is to share data among multiple programs linked
14564 # with the same dynamic library. Since this doesn't match the
14565 # behavior of shared libraries on other platforms, we can't use
14566 # them.
14567 ld_shlibs_F77=no
14568 ;;
14569
14570 beos*)
14571 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14572 allow_undefined_flag_F77=unsupported
14573 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14574 # support --undefined. This deserves some investigation. FIXME
14575 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14576 else
14577 ld_shlibs_F77=no
14578 fi
14579 ;;
14580
14581 cygwin* | mingw* | pw32*)
14582 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14583 # as there is no search path for DLLs.
14584 hardcode_libdir_flag_spec_F77='-L$libdir'
14585 allow_undefined_flag_F77=unsupported
14586 always_export_symbols_F77=no
14587 enable_shared_with_static_runtimes_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014588 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000014589
14590 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000014591 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +000014592 # If the export-symbols file already is a .def file (1st line
14593 # is EXPORTS), use it as is; otherwise, prepend...
14594 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14595 cp $export_symbols $output_objdir/$soname.def;
14596 else
14597 echo EXPORTS > $output_objdir/$soname.def;
14598 cat $export_symbols >> $output_objdir/$soname.def;
14599 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +000014600 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +000014601 else
mmentovai8c2a4de2006-09-20 16:20:15 +000014602 ld_shlibs_F77=no
brynercb91a2f2006-08-25 21:14:45 +000014603 fi
14604 ;;
14605
mmentovai8c2a4de2006-09-20 16:20:15 +000014606 interix3*)
14607 hardcode_direct_F77=no
14608 hardcode_shlibpath_var_F77=no
14609 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14610 export_dynamic_flag_spec_F77='${wl}-E'
14611 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14612 # Instead, shared libraries are loaded at an image base (0x10000000 by
14613 # default) and relocated if they conflict, which is a slow very memory
14614 # consuming and fragmenting process. To avoid this, we pick a random,
14615 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14616 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14617 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'
14618 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'
14619 ;;
14620
14621 linux*)
14622 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14623 tmp_addflag=
14624 case $cc_basename,$host_cpu in
14625 pgcc*) # Portland Group C compiler
14626 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'
14627 tmp_addflag=' $pic_flag'
14628 ;;
14629 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14630 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'
14631 tmp_addflag=' $pic_flag -Mnomain' ;;
14632 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14633 tmp_addflag=' -i_dynamic' ;;
14634 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14635 tmp_addflag=' -i_dynamic -nofor_main' ;;
14636 ifc* | ifort*) # Intel Fortran compiler
14637 tmp_addflag=' -nofor_main' ;;
14638 esac
14639 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14640
14641 if test $supports_anon_versioning = yes; then
14642 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14643 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14644 $echo "local: *; };" >> $output_objdir/$libname.ver~
14645 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14646 fi
14647 else
14648 ld_shlibs_F77=no
14649 fi
14650 ;;
14651
14652 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000014653 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14654 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14655 wlarc=
14656 else
14657 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14658 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14659 fi
14660 ;;
14661
mmentovai8c2a4de2006-09-20 16:20:15 +000014662 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000014663 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14664 ld_shlibs_F77=no
14665 cat <<EOF 1>&2
14666
14667*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14668*** create shared libraries on Solaris systems. Therefore, libtool
14669*** is disabling shared libraries support. We urge you to upgrade GNU
14670*** binutils to release 2.9.1 or newer. Another option is to modify
14671*** your PATH or compiler configuration so that the native linker is
14672*** used, and then restart.
14673
14674EOF
14675 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14676 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14677 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14678 else
14679 ld_shlibs_F77=no
14680 fi
14681 ;;
14682
mmentovai8c2a4de2006-09-20 16:20:15 +000014683 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14684 case `$LD -v 2>&1` in
14685 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14686 ld_shlibs_F77=no
14687 cat <<_LT_EOF 1>&2
14688
14689*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14690*** reliably create shared libraries on SCO systems. Therefore, libtool
14691*** is disabling shared libraries support. We urge you to upgrade GNU
14692*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14693*** your PATH or compiler configuration so that the native linker is
14694*** used, and then restart.
14695
14696_LT_EOF
14697 ;;
14698 *)
14699 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14700 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14701 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14702 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14703 else
14704 ld_shlibs_F77=no
14705 fi
14706 ;;
14707 esac
14708 ;;
14709
brynercb91a2f2006-08-25 21:14:45 +000014710 sunos4*)
14711 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14712 wlarc=
14713 hardcode_direct_F77=yes
14714 hardcode_shlibpath_var_F77=no
14715 ;;
14716
brynercb91a2f2006-08-25 21:14:45 +000014717 *)
14718 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14719 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14720 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14721 else
14722 ld_shlibs_F77=no
14723 fi
14724 ;;
14725 esac
14726
mmentovai8c2a4de2006-09-20 16:20:15 +000014727 if test "$ld_shlibs_F77" = no; then
14728 runpath_var=
14729 hardcode_libdir_flag_spec_F77=
14730 export_dynamic_flag_spec_F77=
14731 whole_archive_flag_spec_F77=
brynercb91a2f2006-08-25 21:14:45 +000014732 fi
14733 else
14734 # PORTME fill in a description of your system's linker (not GNU ld)
14735 case $host_os in
14736 aix3*)
14737 allow_undefined_flag_F77=unsupported
14738 always_export_symbols_F77=yes
14739 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'
14740 # Note: this linker hardcodes the directories in LIBPATH if there
14741 # are no directories specified by -L.
14742 hardcode_minus_L_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014743 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +000014744 # Neither direct hardcoding nor static linking is supported with a
14745 # broken collect2.
14746 hardcode_direct_F77=unsupported
14747 fi
14748 ;;
14749
14750 aix4* | aix5*)
14751 if test "$host_cpu" = ia64; then
14752 # On IA64, the linker does run time linking by default, so we don't
14753 # have to do anything special.
14754 aix_use_runtimelinking=no
14755 exp_sym_flag='-Bexport'
14756 no_entry_flag=""
14757 else
14758 # If we're using GNU nm, then we don't want the "-C" option.
14759 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14760 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14761 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'
14762 else
14763 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'
14764 fi
14765 aix_use_runtimelinking=no
14766
14767 # Test if we are trying to use run time linking or normal
14768 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14769 # need to do runtime linking.
14770 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14771 for ld_flag in $LDFLAGS; do
14772 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14773 aix_use_runtimelinking=yes
14774 break
14775 fi
14776 done
mmentovai8c2a4de2006-09-20 16:20:15 +000014777 ;;
brynercb91a2f2006-08-25 21:14:45 +000014778 esac
14779
14780 exp_sym_flag='-bexport'
14781 no_entry_flag='-bnoentry'
14782 fi
14783
14784 # When large executables or shared objects are built, AIX ld can
14785 # have problems creating the table of contents. If linking a library
14786 # or program results in "error TOC overflow" add -mminimal-toc to
14787 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14788 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14789
14790 archive_cmds_F77=''
14791 hardcode_direct_F77=yes
14792 hardcode_libdir_separator_F77=':'
14793 link_all_deplibs_F77=yes
14794
14795 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000014796 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +000014797 # We only want to do this on AIX 4.2 and lower, the check
14798 # below for broken collect2 doesn't work under 4.3+
14799 collect2name=`${CC} -print-prog-name=collect2`
14800 if test -f "$collect2name" && \
14801 strings "$collect2name" | grep resolve_lib_name >/dev/null
14802 then
14803 # We have reworked collect2
14804 hardcode_direct_F77=yes
14805 else
14806 # We have old collect2
14807 hardcode_direct_F77=unsupported
14808 # It fails to find uninstalled libraries when the uninstalled
14809 # path is not listed in the libpath. Setting hardcode_minus_L
14810 # to unsupported forces relinking
14811 hardcode_minus_L_F77=yes
14812 hardcode_libdir_flag_spec_F77='-L$libdir'
14813 hardcode_libdir_separator_F77=
14814 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014815 ;;
brynercb91a2f2006-08-25 21:14:45 +000014816 esac
14817 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +000014818 if test "$aix_use_runtimelinking" = yes; then
14819 shared_flag="$shared_flag "'${wl}-G'
14820 fi
brynercb91a2f2006-08-25 21:14:45 +000014821 else
14822 # not using gcc
14823 if test "$host_cpu" = ia64; then
14824 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14825 # chokes on -Wl,-G. The following line is correct:
14826 shared_flag='-G'
14827 else
mmentovai8c2a4de2006-09-20 16:20:15 +000014828 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000014829 shared_flag='${wl}-G'
14830 else
14831 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +000014832 fi
brynercb91a2f2006-08-25 21:14:45 +000014833 fi
14834 fi
14835
14836 # It seems that -bexpall does not export symbols beginning with
14837 # underscore (_), so it is better to generate a list of symbols to export.
14838 always_export_symbols_F77=yes
14839 if test "$aix_use_runtimelinking" = yes; then
14840 # Warning - without using the other runtime loading flags (-brtl),
14841 # -berok will link without error, but may produce a broken library.
14842 allow_undefined_flag_F77='-berok'
14843 # Determine the default libpath from the value encoded in an empty executable.
14844 cat >conftest.$ac_ext <<_ACEOF
14845 program main
14846
14847 end
14848_ACEOF
14849rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000014850if { (ac_try="$ac_link"
14851case "(($ac_try" in
14852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14853 *) ac_try_echo=$ac_try;;
14854esac
14855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14856 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000014857 ac_status=$?
14858 grep -v '^ *+' conftest.er1 >conftest.err
14859 rm -f conftest.er1
14860 cat conftest.err >&5
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000014863 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14864 { (case "(($ac_try" in
14865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866 *) ac_try_echo=$ac_try;;
14867esac
14868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000014870 ac_status=$?
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; } &&
14873 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000014874 { (case "(($ac_try" in
14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876 *) ac_try_echo=$ac_try;;
14877esac
14878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000014880 ac_status=$?
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; }; then
14883
14884aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14885}'`
14886# Check for a 64-bit object if we didn't find anything.
14887if 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; }
14888}'`; fi
14889else
14890 echo "$as_me: failed program was:" >&5
14891sed 's/^/| /' conftest.$ac_ext >&5
14892
mmentovai8c2a4de2006-09-20 16:20:15 +000014893
brynercb91a2f2006-08-25 21:14:45 +000014894fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014895
14896rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000014897 conftest$ac_exeext conftest.$ac_ext
14898if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14899
14900 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
mmentovai8c2a4de2006-09-20 16:20:15 +000014901 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"
brynercb91a2f2006-08-25 21:14:45 +000014902 else
14903 if test "$host_cpu" = ia64; then
14904 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14905 allow_undefined_flag_F77="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +000014906 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"
brynercb91a2f2006-08-25 21:14:45 +000014907 else
14908 # Determine the default libpath from the value encoded in an empty executable.
14909 cat >conftest.$ac_ext <<_ACEOF
14910 program main
14911
14912 end
14913_ACEOF
14914rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000014915if { (ac_try="$ac_link"
14916case "(($ac_try" in
14917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14918 *) ac_try_echo=$ac_try;;
14919esac
14920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14921 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000014922 ac_status=$?
14923 grep -v '^ *+' conftest.er1 >conftest.err
14924 rm -f conftest.er1
14925 cat conftest.err >&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000014928 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14929 { (case "(($ac_try" in
14930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931 *) ac_try_echo=$ac_try;;
14932esac
14933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14934 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000014935 ac_status=$?
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; } &&
14938 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000014939 { (case "(($ac_try" in
14940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14941 *) ac_try_echo=$ac_try;;
14942esac
14943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14944 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000014945 ac_status=$?
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); }; }; then
14948
14949aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14950}'`
14951# Check for a 64-bit object if we didn't find anything.
14952if 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; }
14953}'`; fi
14954else
14955 echo "$as_me: failed program was:" >&5
14956sed 's/^/| /' conftest.$ac_ext >&5
14957
mmentovai8c2a4de2006-09-20 16:20:15 +000014958
brynercb91a2f2006-08-25 21:14:45 +000014959fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014960
14961rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000014962 conftest$ac_exeext conftest.$ac_ext
14963if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14964
14965 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14966 # Warning - without using the other run time loading flags,
14967 # -berok will link without error, but may produce a broken library.
14968 no_undefined_flag_F77=' ${wl}-bernotok'
14969 allow_undefined_flag_F77=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +000014970 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +000014971 whole_archive_flag_spec_F77='$convenience'
brynercb91a2f2006-08-25 21:14:45 +000014972 archive_cmds_need_lc_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014973 # This is similar to how AIX traditionally builds its shared libraries.
14974 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'
brynercb91a2f2006-08-25 21:14:45 +000014975 fi
14976 fi
14977 ;;
14978
14979 amigaos*)
14980 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)'
14981 hardcode_libdir_flag_spec_F77='-L$libdir'
14982 hardcode_minus_L_F77=yes
14983 # see comment about different semantics on the GNU ld section
14984 ld_shlibs_F77=no
14985 ;;
14986
mmentovai8c2a4de2006-09-20 16:20:15 +000014987 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000014988 export_dynamic_flag_spec_F77=-rdynamic
14989 ;;
14990
14991 cygwin* | mingw* | pw32*)
14992 # When not using gcc, we currently assume that we are using
14993 # Microsoft Visual C++.
14994 # hardcode_libdir_flag_spec is actually meaningless, as there is
14995 # no search path for DLLs.
14996 hardcode_libdir_flag_spec_F77=' '
14997 allow_undefined_flag_F77=unsupported
14998 # Tell ltmain to make .lib files, not .a files.
14999 libext=lib
15000 # Tell ltmain to make .dll files, not .so files.
15001 shrext_cmds=".dll"
15002 # FIXME: Setting linknames here is a bad hack.
15003 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15004 # The linker will automatically build a .lib file if we build a DLL.
15005 old_archive_From_new_cmds_F77='true'
15006 # FIXME: Should let the user specify the lib program.
15007 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
mmentovai8c2a4de2006-09-20 16:20:15 +000015008 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
brynercb91a2f2006-08-25 21:14:45 +000015009 enable_shared_with_static_runtimes_F77=yes
15010 ;;
15011
15012 darwin* | rhapsody*)
mmentovai8c2a4de2006-09-20 16:20:15 +000015013 case $host_os in
15014 rhapsody* | darwin1.[012])
15015 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15016 ;;
15017 *) # Darwin 1.3 on
15018 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15019 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15020 else
15021 case ${MACOSX_DEPLOYMENT_TARGET} in
15022 10.[012])
15023 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15024 ;;
15025 10.*)
15026 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15027 ;;
15028 esac
15029 fi
15030 ;;
brynerd5e66382006-09-08 02:35:53 +000015031 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000015032 archive_cmds_need_lc_F77=no
brynercb91a2f2006-08-25 21:14:45 +000015033 hardcode_direct_F77=no
15034 hardcode_automatic_F77=yes
15035 hardcode_shlibpath_var_F77=unsupported
mmentovai8c2a4de2006-09-20 16:20:15 +000015036 whole_archive_flag_spec_F77=''
brynercb91a2f2006-08-25 21:14:45 +000015037 link_all_deplibs_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000015038 if test "$GCC" = yes ; then
15039 output_verbose_link_cmd='echo'
15040 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15041 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15042 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15043 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}'
15044 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}'
brynercb91a2f2006-08-25 21:14:45 +000015045 else
mmentovai8c2a4de2006-09-20 16:20:15 +000015046 case $cc_basename in
15047 xlc*)
15048 output_verbose_link_cmd='echo'
15049 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15050 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15051 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15052 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}'
15053 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}'
15054 ;;
15055 *)
15056 ld_shlibs_F77=no
15057 ;;
15058 esac
brynercb91a2f2006-08-25 21:14:45 +000015059 fi
15060 ;;
15061
15062 dgux*)
15063 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15064 hardcode_libdir_flag_spec_F77='-L$libdir'
15065 hardcode_shlibpath_var_F77=no
15066 ;;
15067
15068 freebsd1*)
15069 ld_shlibs_F77=no
15070 ;;
15071
15072 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15073 # support. Future versions do this automatically, but an explicit c++rt0.o
15074 # does not break anything, and helps significantly (at the cost of a little
15075 # extra space).
15076 freebsd2.2*)
15077 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15078 hardcode_libdir_flag_spec_F77='-R$libdir'
15079 hardcode_direct_F77=yes
15080 hardcode_shlibpath_var_F77=no
15081 ;;
15082
15083 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15084 freebsd2*)
15085 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15086 hardcode_direct_F77=yes
15087 hardcode_minus_L_F77=yes
15088 hardcode_shlibpath_var_F77=no
15089 ;;
15090
15091 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mmentovai8c2a4de2006-09-20 16:20:15 +000015092 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000015093 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15094 hardcode_libdir_flag_spec_F77='-R$libdir'
15095 hardcode_direct_F77=yes
15096 hardcode_shlibpath_var_F77=no
15097 ;;
15098
15099 hpux9*)
15100 if test "$GCC" = yes; then
15101 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'
15102 else
15103 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'
15104 fi
15105 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15106 hardcode_libdir_separator_F77=:
15107 hardcode_direct_F77=yes
15108
15109 # hardcode_minus_L: Not really in the search PATH,
15110 # but as the default location of the library.
15111 hardcode_minus_L_F77=yes
15112 export_dynamic_flag_spec_F77='${wl}-E'
15113 ;;
15114
mmentovai8c2a4de2006-09-20 16:20:15 +000015115 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +000015116 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015117 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15118 else
15119 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15120 fi
15121 if test "$with_gnu_ld" = no; then
15122 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15123 hardcode_libdir_separator_F77=:
15124
15125 hardcode_direct_F77=yes
15126 export_dynamic_flag_spec_F77='${wl}-E'
15127
15128 # hardcode_minus_L: Not really in the search PATH,
15129 # but as the default location of the library.
15130 hardcode_minus_L_F77=yes
15131 fi
15132 ;;
15133
15134 hpux11*)
15135 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15136 case $host_cpu in
15137 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +000015138 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15139 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015140 ia64*)
15141 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15142 ;;
brynercb91a2f2006-08-25 21:14:45 +000015143 *)
15144 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15145 ;;
15146 esac
15147 else
mmentovai8c2a4de2006-09-20 16:20:15 +000015148 case $host_cpu in
15149 hppa*64*)
15150 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15151 ;;
15152 ia64*)
15153 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000015154 ;;
15155 *)
mmentovai8c2a4de2006-09-20 16:20:15 +000015156 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000015157 ;;
15158 esac
15159 fi
15160 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015161 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15162 hardcode_libdir_separator_F77=:
brynerd5e66382006-09-08 02:35:53 +000015163
mmentovai8c2a4de2006-09-20 16:20:15 +000015164 case $host_cpu in
15165 hppa*64*|ia64*)
15166 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15167 hardcode_direct_F77=no
15168 hardcode_shlibpath_var_F77=no
brynerd5e66382006-09-08 02:35:53 +000015169 ;;
brynercb91a2f2006-08-25 21:14:45 +000015170 *)
brynercb91a2f2006-08-25 21:14:45 +000015171 hardcode_direct_F77=yes
15172 export_dynamic_flag_spec_F77='${wl}-E'
15173
15174 # hardcode_minus_L: Not really in the search PATH,
15175 # but as the default location of the library.
15176 hardcode_minus_L_F77=yes
15177 ;;
15178 esac
15179 fi
15180 ;;
15181
15182 irix5* | irix6* | nonstopux*)
15183 if test "$GCC" = yes; then
15184 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'
15185 else
15186 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'
15187 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15188 fi
15189 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15190 hardcode_libdir_separator_F77=:
15191 link_all_deplibs_F77=yes
15192 ;;
15193
mmentovai8c2a4de2006-09-20 16:20:15 +000015194 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000015195 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15196 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15197 else
15198 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15199 fi
15200 hardcode_libdir_flag_spec_F77='-R$libdir'
15201 hardcode_direct_F77=yes
15202 hardcode_shlibpath_var_F77=no
15203 ;;
15204
15205 newsos6)
15206 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15207 hardcode_direct_F77=yes
15208 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15209 hardcode_libdir_separator_F77=:
15210 hardcode_shlibpath_var_F77=no
15211 ;;
15212
15213 openbsd*)
15214 hardcode_direct_F77=yes
15215 hardcode_shlibpath_var_F77=no
15216 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15217 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +000015218 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000015219 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15220 export_dynamic_flag_spec_F77='${wl}-E'
15221 else
15222 case $host_os in
15223 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15224 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15225 hardcode_libdir_flag_spec_F77='-R$libdir'
15226 ;;
15227 *)
15228 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15229 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15230 ;;
15231 esac
15232 fi
15233 ;;
15234
15235 os2*)
15236 hardcode_libdir_flag_spec_F77='-L$libdir'
15237 hardcode_minus_L_F77=yes
15238 allow_undefined_flag_F77=unsupported
15239 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'
15240 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15241 ;;
15242
15243 osf3*)
15244 if test "$GCC" = yes; then
15245 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15246 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'
15247 else
15248 allow_undefined_flag_F77=' -expect_unresolved \*'
15249 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'
15250 fi
15251 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15252 hardcode_libdir_separator_F77=:
15253 ;;
15254
15255 osf4* | osf5*) # as osf3* with the addition of -msym flag
15256 if test "$GCC" = yes; then
15257 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15258 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'
15259 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15260 else
15261 allow_undefined_flag_F77=' -expect_unresolved \*'
15262 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'
15263 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~
mmentovai8c2a4de2006-09-20 16:20:15 +000015264 $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'
brynercb91a2f2006-08-25 21:14:45 +000015265
15266 # Both c and cxx compiler support -rpath directly
15267 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15268 fi
15269 hardcode_libdir_separator_F77=:
15270 ;;
15271
brynercb91a2f2006-08-25 21:14:45 +000015272 solaris*)
15273 no_undefined_flag_F77=' -z text'
15274 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015275 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +000015276 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15277 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15278 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15279 else
mmentovai8c2a4de2006-09-20 16:20:15 +000015280 wlarc=''
brynercb91a2f2006-08-25 21:14:45 +000015281 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15282 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15283 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15284 fi
15285 hardcode_libdir_flag_spec_F77='-R$libdir'
15286 hardcode_shlibpath_var_F77=no
15287 case $host_os in
15288 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015289 *)
15290 # The compiler driver will combine linker options so we
15291 # cannot just pass the convience library names through
15292 # without $wl, iff we do not link with $LD.
15293 # Luckily, gcc supports the same syntax we need for Sun Studio.
15294 # Supported since Solaris 2.6 (maybe 2.5.1?)
15295 case $wlarc in
15296 '')
15297 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15298 *)
15299 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' ;;
15300 esac ;;
brynercb91a2f2006-08-25 21:14:45 +000015301 esac
15302 link_all_deplibs_F77=yes
15303 ;;
15304
15305 sunos4*)
15306 if test "x$host_vendor" = xsequent; then
15307 # Use $CC to link under sequent, because it throws in some extra .o
15308 # files that make .init and .fini sections work.
15309 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15310 else
15311 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15312 fi
15313 hardcode_libdir_flag_spec_F77='-L$libdir'
15314 hardcode_direct_F77=yes
15315 hardcode_minus_L_F77=yes
15316 hardcode_shlibpath_var_F77=no
15317 ;;
15318
15319 sysv4)
15320 case $host_vendor in
15321 sni)
15322 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15323 hardcode_direct_F77=yes # is this really true???
15324 ;;
15325 siemens)
15326 ## LD is ld it makes a PLAMLIB
15327 ## CC just makes a GrossModule.
15328 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15329 reload_cmds_F77='$CC -r -o $output$reload_objs'
15330 hardcode_direct_F77=no
15331 ;;
15332 motorola)
15333 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15334 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15335 ;;
15336 esac
15337 runpath_var='LD_RUN_PATH'
15338 hardcode_shlibpath_var_F77=no
15339 ;;
15340
15341 sysv4.3*)
15342 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15343 hardcode_shlibpath_var_F77=no
15344 export_dynamic_flag_spec_F77='-Bexport'
15345 ;;
15346
15347 sysv4*MP*)
15348 if test -d /usr/nec; then
15349 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15350 hardcode_shlibpath_var_F77=no
15351 runpath_var=LD_RUN_PATH
15352 hardcode_runpath_var=yes
15353 ld_shlibs_F77=yes
15354 fi
15355 ;;
15356
mmentovai8c2a4de2006-09-20 16:20:15 +000015357 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15358 no_undefined_flag_F77='${wl}-z,text'
15359 archive_cmds_need_lc_F77=no
brynercb91a2f2006-08-25 21:14:45 +000015360 hardcode_shlibpath_var_F77=no
mmentovai8c2a4de2006-09-20 16:20:15 +000015361 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +000015362
mmentovai3261e8b2006-09-06 02:56:44 +000015363 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015364 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15365 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +000015366 else
mmentovai8c2a4de2006-09-20 16:20:15 +000015367 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15368 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +000015369 fi
brynerd5e66382006-09-08 02:35:53 +000015370 ;;
15371
mmentovai8c2a4de2006-09-20 16:20:15 +000015372 sysv5* | sco3.2v5* | sco5v6*)
15373 # Note: We can NOT use -z defs as we might desire, because we do not
15374 # link with -lc, and that would cause any symbols used from libc to
15375 # always be unresolved, which means just about no library would
15376 # ever link correctly. If we're not using GNU ld we use -z text
15377 # though, which does catch some bad symbols but isn't as heavy-handed
15378 # as -z defs.
15379 no_undefined_flag_F77='${wl}-z,text'
15380 allow_undefined_flag_F77='${wl}-z,nodefs'
15381 archive_cmds_need_lc_F77=no
brynerd5e66382006-09-08 02:35:53 +000015382 hardcode_shlibpath_var_F77=no
mmentovai8c2a4de2006-09-20 16:20:15 +000015383 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15384 hardcode_libdir_separator_F77=':'
15385 link_all_deplibs_F77=yes
15386 export_dynamic_flag_spec_F77='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +000015387 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +000015388
15389 if test "$GCC" = yes; then
15390 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15391 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15392 else
15393 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15394 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15395 fi
brynercb91a2f2006-08-25 21:14:45 +000015396 ;;
15397
15398 uts4*)
15399 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15400 hardcode_libdir_flag_spec_F77='-L$libdir'
15401 hardcode_shlibpath_var_F77=no
15402 ;;
15403
15404 *)
15405 ld_shlibs_F77=no
15406 ;;
15407 esac
15408 fi
15409
mmentovai8c2a4de2006-09-20 16:20:15 +000015410{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15411echo "${ECHO_T}$ld_shlibs_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015412test "$ld_shlibs_F77" = no && can_build_shared=no
15413
brynercb91a2f2006-08-25 21:14:45 +000015414#
15415# Do we need to explicitly link libc?
15416#
15417case "x$archive_cmds_need_lc_F77" in
15418x|xyes)
15419 # Assume -lc should be added
15420 archive_cmds_need_lc_F77=yes
15421
15422 if test "$enable_shared" = yes && test "$GCC" = yes; then
15423 case $archive_cmds_F77 in
15424 *'~'*)
15425 # FIXME: we may have to deal with multi-command sequences.
15426 ;;
15427 '$CC '*)
15428 # Test whether the compiler implicitly links with -lc since on some
15429 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15430 # to ld, don't add -lc before -lgcc.
mmentovai8c2a4de2006-09-20 16:20:15 +000015431 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15432echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015433 $rm conftest*
15434 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15435
15436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15437 (eval $ac_compile) 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } 2>conftest.err; then
15441 soname=conftest
15442 lib=conftest
15443 libobjs=conftest.$ac_objext
15444 deplibs=
15445 wl=$lt_prog_compiler_wl_F77
mmentovai8c2a4de2006-09-20 16:20:15 +000015446 pic_flag=$lt_prog_compiler_pic_F77
brynercb91a2f2006-08-25 21:14:45 +000015447 compiler_flags=-v
15448 linker_flags=-v
15449 verstring=
15450 output_objdir=.
15451 libname=conftest
15452 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15453 allow_undefined_flag_F77=
15454 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15455 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15456 ac_status=$?
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }
15459 then
15460 archive_cmds_need_lc_F77=no
15461 else
15462 archive_cmds_need_lc_F77=yes
15463 fi
15464 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15465 else
15466 cat conftest.err 1>&5
15467 fi
15468 $rm conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000015469 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15470echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015471 ;;
15472 esac
15473 fi
15474 ;;
15475esac
15476
mmentovai8c2a4de2006-09-20 16:20:15 +000015477{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15478echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015479library_names_spec=
15480libname_spec='lib$name'
15481soname_spec=
15482shrext_cmds=".so"
15483postinstall_cmds=
15484postuninstall_cmds=
15485finish_cmds=
15486finish_eval=
15487shlibpath_var=
15488shlibpath_overrides_runpath=unknown
15489version_type=none
15490dynamic_linker="$host_os ld.so"
15491sys_lib_dlsearch_path_spec="/lib /usr/lib"
15492if test "$GCC" = yes; then
15493 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15494 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15495 # if the path contains ";" then we assume it to be the separator
15496 # otherwise default to the standard path separator (i.e. ":") - it is
15497 # assumed that no part of a normal pathname contains ";" but that should
15498 # okay in the real world where ";" in dirpaths is itself problematic.
15499 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15500 else
15501 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15502 fi
15503else
15504 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15505fi
15506need_lib_prefix=unknown
15507hardcode_into_libs=no
15508
15509# when you set need_version to no, make sure it does not cause -set_version
15510# flags to be left without arguments
15511need_version=unknown
15512
15513case $host_os in
15514aix3*)
15515 version_type=linux
15516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15517 shlibpath_var=LIBPATH
15518
15519 # AIX 3 has no versioning support, so we append a major version to the name.
15520 soname_spec='${libname}${release}${shared_ext}$major'
15521 ;;
15522
15523aix4* | aix5*)
15524 version_type=linux
15525 need_lib_prefix=no
15526 need_version=no
15527 hardcode_into_libs=yes
15528 if test "$host_cpu" = ia64; then
15529 # AIX 5 supports IA64
15530 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15531 shlibpath_var=LD_LIBRARY_PATH
15532 else
15533 # With GCC up to 2.95.x, collect2 would create an import file
15534 # for dependence libraries. The import file would start with
15535 # the line `#! .'. This would cause the generated library to
15536 # depend on `.', always an invalid library. This was fixed in
15537 # development snapshots of GCC prior to 3.0.
15538 case $host_os in
15539 aix4 | aix4.[01] | aix4.[01].*)
15540 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15541 echo ' yes '
15542 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15543 :
15544 else
15545 can_build_shared=no
15546 fi
15547 ;;
15548 esac
15549 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15550 # soname into executable. Probably we can add versioning support to
15551 # collect2, so additional links can be useful in future.
15552 if test "$aix_use_runtimelinking" = yes; then
15553 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15554 # instead of lib<name>.a to let people know that these are not
15555 # typical AIX shared libraries.
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557 else
15558 # We preserve .a as extension for shared libraries through AIX4.2
15559 # and later when we are not doing run time linking.
15560 library_names_spec='${libname}${release}.a $libname.a'
15561 soname_spec='${libname}${release}${shared_ext}$major'
15562 fi
15563 shlibpath_var=LIBPATH
15564 fi
15565 ;;
15566
15567amigaos*)
15568 library_names_spec='$libname.ixlibrary $libname.a'
15569 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15570 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'
15571 ;;
15572
15573beos*)
15574 library_names_spec='${libname}${shared_ext}'
15575 dynamic_linker="$host_os ld.so"
15576 shlibpath_var=LIBRARY_PATH
15577 ;;
15578
mmentovai8c2a4de2006-09-20 16:20:15 +000015579bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000015580 version_type=linux
15581 need_version=no
15582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15583 soname_spec='${libname}${release}${shared_ext}$major'
15584 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15585 shlibpath_var=LD_LIBRARY_PATH
15586 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15587 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15588 # the default ld.so.conf also contains /usr/contrib/lib and
15589 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15590 # libtool to hard-code these into programs
15591 ;;
15592
15593cygwin* | mingw* | pw32*)
15594 version_type=windows
15595 shrext_cmds=".dll"
15596 need_version=no
15597 need_lib_prefix=no
15598
15599 case $GCC,$host_os in
15600 yes,cygwin* | yes,mingw* | yes,pw32*)
15601 library_names_spec='$libname.dll.a'
15602 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15603 postinstall_cmds='base_file=`basename \${file}`~
15604 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15605 dldir=$destdir/`dirname \$dlpath`~
15606 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000015607 $install_prog $dir/$dlname \$dldir/$dlname~
15608 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000015609 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15610 dlpath=$dir/\$dldll~
15611 $rm \$dlpath'
15612 shlibpath_overrides_runpath=yes
15613
15614 case $host_os in
15615 cygwin*)
15616 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15617 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15618 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15619 ;;
15620 mingw*)
15621 # MinGW DLLs use traditional 'lib' prefix
15622 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15623 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15624 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15625 # It is most probably a Windows format PATH printed by
15626 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15627 # path with ; separators, and with drive letters. We can handle the
15628 # drive letters (cygwin fileutils understands them), so leave them,
15629 # especially as we might pass files found there to a mingw objdump,
15630 # which wouldn't understand a cygwinified path. Ahh.
15631 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15632 else
15633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15634 fi
15635 ;;
15636 pw32*)
15637 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000015638 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
brynercb91a2f2006-08-25 21:14:45 +000015639 ;;
15640 esac
15641 ;;
15642
15643 *)
15644 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15645 ;;
15646 esac
15647 dynamic_linker='Win32 ld.exe'
15648 # FIXME: first we should search . and the directory the executable is in
15649 shlibpath_var=PATH
15650 ;;
15651
15652darwin* | rhapsody*)
15653 dynamic_linker="$host_os dyld"
15654 version_type=darwin
15655 need_lib_prefix=no
15656 need_version=no
15657 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15658 soname_spec='${libname}${release}${major}$shared_ext'
15659 shlibpath_overrides_runpath=yes
15660 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000015661 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
brynercb91a2f2006-08-25 21:14:45 +000015662 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15663 if test "$GCC" = yes; then
15664 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"`
15665 else
15666 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15667 fi
15668 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15669 ;;
15670
15671dgux*)
15672 version_type=linux
15673 need_lib_prefix=no
15674 need_version=no
15675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15676 soname_spec='${libname}${release}${shared_ext}$major'
15677 shlibpath_var=LD_LIBRARY_PATH
15678 ;;
15679
15680freebsd1*)
15681 dynamic_linker=no
15682 ;;
15683
15684kfreebsd*-gnu)
15685 version_type=linux
15686 need_lib_prefix=no
15687 need_version=no
15688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15689 soname_spec='${libname}${release}${shared_ext}$major'
15690 shlibpath_var=LD_LIBRARY_PATH
15691 shlibpath_overrides_runpath=no
15692 hardcode_into_libs=yes
15693 dynamic_linker='GNU ld.so'
15694 ;;
15695
mmentovai8c2a4de2006-09-20 16:20:15 +000015696freebsd* | dragonfly*)
15697 # DragonFly does not have aout. When/if they implement a new
15698 # versioning mechanism, adjust this.
15699 if test -x /usr/bin/objformat; then
15700 objformat=`/usr/bin/objformat`
15701 else
15702 case $host_os in
15703 freebsd[123]*) objformat=aout ;;
15704 *) objformat=elf ;;
15705 esac
15706 fi
brynercb91a2f2006-08-25 21:14:45 +000015707 version_type=freebsd-$objformat
15708 case $version_type in
15709 freebsd-elf*)
15710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15711 need_version=no
15712 need_lib_prefix=no
15713 ;;
15714 freebsd-*)
15715 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15716 need_version=yes
15717 ;;
15718 esac
15719 shlibpath_var=LD_LIBRARY_PATH
15720 case $host_os in
15721 freebsd2*)
15722 shlibpath_overrides_runpath=yes
15723 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015724 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000015725 shlibpath_overrides_runpath=yes
15726 hardcode_into_libs=yes
15727 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015728 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15729 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000015730 shlibpath_overrides_runpath=no
15731 hardcode_into_libs=yes
15732 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015733 freebsd*) # from 4.6 on
15734 shlibpath_overrides_runpath=yes
15735 hardcode_into_libs=yes
15736 ;;
brynercb91a2f2006-08-25 21:14:45 +000015737 esac
15738 ;;
15739
15740gnu*)
15741 version_type=linux
15742 need_lib_prefix=no
15743 need_version=no
15744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15745 soname_spec='${libname}${release}${shared_ext}$major'
15746 shlibpath_var=LD_LIBRARY_PATH
15747 hardcode_into_libs=yes
15748 ;;
15749
15750hpux9* | hpux10* | hpux11*)
15751 # Give a soname corresponding to the major version so that dld.sl refuses to
15752 # link against other versions.
15753 version_type=sunos
15754 need_lib_prefix=no
15755 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000015756 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000015757 ia64*)
15758 shrext_cmds='.so'
15759 hardcode_into_libs=yes
15760 dynamic_linker="$host_os dld.so"
15761 shlibpath_var=LD_LIBRARY_PATH
15762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15764 soname_spec='${libname}${release}${shared_ext}$major'
15765 if test "X$HPUX_IA64_MODE" = X32; then
15766 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15767 else
15768 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15769 fi
15770 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15771 ;;
15772 hppa*64*)
15773 shrext_cmds='.sl'
15774 hardcode_into_libs=yes
15775 dynamic_linker="$host_os dld.sl"
15776 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15777 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15779 soname_spec='${libname}${release}${shared_ext}$major'
15780 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15782 ;;
15783 *)
15784 shrext_cmds='.sl'
15785 dynamic_linker="$host_os dld.sl"
15786 shlibpath_var=SHLIB_PATH
15787 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15789 soname_spec='${libname}${release}${shared_ext}$major'
15790 ;;
15791 esac
15792 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15793 postinstall_cmds='chmod 555 $lib'
15794 ;;
15795
mmentovai8c2a4de2006-09-20 16:20:15 +000015796interix3*)
15797 version_type=linux
15798 need_lib_prefix=no
15799 need_version=no
15800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15801 soname_spec='${libname}${release}${shared_ext}$major'
15802 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15803 shlibpath_var=LD_LIBRARY_PATH
15804 shlibpath_overrides_runpath=no
15805 hardcode_into_libs=yes
15806 ;;
15807
brynercb91a2f2006-08-25 21:14:45 +000015808irix5* | irix6* | nonstopux*)
15809 case $host_os in
15810 nonstopux*) version_type=nonstopux ;;
15811 *)
15812 if test "$lt_cv_prog_gnu_ld" = yes; then
15813 version_type=linux
15814 else
15815 version_type=irix
15816 fi ;;
15817 esac
15818 need_lib_prefix=no
15819 need_version=no
15820 soname_spec='${libname}${release}${shared_ext}$major'
15821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15822 case $host_os in
15823 irix5* | nonstopux*)
15824 libsuff= shlibsuff=
15825 ;;
15826 *)
15827 case $LD in # libtool.m4 will add one of these switches to LD
15828 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15829 libsuff= shlibsuff= libmagic=32-bit;;
15830 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15831 libsuff=32 shlibsuff=N32 libmagic=N32;;
15832 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15833 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15834 *) libsuff= shlibsuff= libmagic=never-match;;
15835 esac
15836 ;;
15837 esac
15838 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15839 shlibpath_overrides_runpath=no
15840 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15841 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15842 hardcode_into_libs=yes
15843 ;;
15844
15845# No shared lib support for Linux oldld, aout, or coff.
15846linux*oldld* | linux*aout* | linux*coff*)
15847 dynamic_linker=no
15848 ;;
15849
15850# This must be Linux ELF.
15851linux*)
15852 version_type=linux
15853 need_lib_prefix=no
15854 need_version=no
15855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15856 soname_spec='${libname}${release}${shared_ext}$major'
15857 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15858 shlibpath_var=LD_LIBRARY_PATH
15859 shlibpath_overrides_runpath=no
15860 # This implies no fast_install, which is unacceptable.
15861 # Some rework will be needed to allow for fast_install
15862 # before this can be enabled.
15863 hardcode_into_libs=yes
15864
15865 # Append ld.so.conf contents to the search path
15866 if test -f /etc/ld.so.conf; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015867 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' ' '`
brynercb91a2f2006-08-25 21:14:45 +000015868 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15869 fi
15870
15871 # We used to test for /lib/ld.so.1 and disable shared libraries on
15872 # powerpc, because MkLinux only supported shared libraries with the
15873 # GNU dynamic linker. Since this was broken with cross compilers,
15874 # most powerpc-linux boxes support dynamic linking these days and
15875 # people can always --disable-shared, the test was removed, and we
15876 # assume the GNU/Linux dynamic linker is in use.
15877 dynamic_linker='GNU/Linux ld.so'
15878 ;;
15879
brynercb91a2f2006-08-25 21:14:45 +000015880knetbsd*-gnu)
15881 version_type=linux
15882 need_lib_prefix=no
15883 need_version=no
15884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15885 soname_spec='${libname}${release}${shared_ext}$major'
15886 shlibpath_var=LD_LIBRARY_PATH
15887 shlibpath_overrides_runpath=no
15888 hardcode_into_libs=yes
15889 dynamic_linker='GNU ld.so'
15890 ;;
15891
15892netbsd*)
15893 version_type=sunos
15894 need_lib_prefix=no
15895 need_version=no
15896 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15899 dynamic_linker='NetBSD (a.out) ld.so'
15900 else
15901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15902 soname_spec='${libname}${release}${shared_ext}$major'
15903 dynamic_linker='NetBSD ld.elf_so'
15904 fi
15905 shlibpath_var=LD_LIBRARY_PATH
15906 shlibpath_overrides_runpath=yes
15907 hardcode_into_libs=yes
15908 ;;
15909
15910newsos6)
15911 version_type=linux
15912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913 shlibpath_var=LD_LIBRARY_PATH
15914 shlibpath_overrides_runpath=yes
15915 ;;
15916
15917nto-qnx*)
15918 version_type=linux
15919 need_lib_prefix=no
15920 need_version=no
15921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15922 soname_spec='${libname}${release}${shared_ext}$major'
15923 shlibpath_var=LD_LIBRARY_PATH
15924 shlibpath_overrides_runpath=yes
15925 ;;
15926
15927openbsd*)
15928 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000015929 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000015930 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000015931 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15932 case $host_os in
15933 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15934 *) need_version=no ;;
15935 esac
brynercb91a2f2006-08-25 21:14:45 +000015936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15938 shlibpath_var=LD_LIBRARY_PATH
15939 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15940 case $host_os in
15941 openbsd2.[89] | openbsd2.[89].*)
15942 shlibpath_overrides_runpath=no
15943 ;;
15944 *)
15945 shlibpath_overrides_runpath=yes
15946 ;;
15947 esac
15948 else
15949 shlibpath_overrides_runpath=yes
15950 fi
15951 ;;
15952
15953os2*)
15954 libname_spec='$name'
15955 shrext_cmds=".dll"
15956 need_lib_prefix=no
15957 library_names_spec='$libname${shared_ext} $libname.a'
15958 dynamic_linker='OS/2 ld.exe'
15959 shlibpath_var=LIBPATH
15960 ;;
15961
15962osf3* | osf4* | osf5*)
15963 version_type=osf
15964 need_lib_prefix=no
15965 need_version=no
15966 soname_spec='${libname}${release}${shared_ext}$major'
15967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15968 shlibpath_var=LD_LIBRARY_PATH
15969 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15970 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15971 ;;
15972
brynercb91a2f2006-08-25 21:14:45 +000015973solaris*)
15974 version_type=linux
15975 need_lib_prefix=no
15976 need_version=no
15977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15978 soname_spec='${libname}${release}${shared_ext}$major'
15979 shlibpath_var=LD_LIBRARY_PATH
15980 shlibpath_overrides_runpath=yes
15981 hardcode_into_libs=yes
15982 # ldd complains unless libraries are executable
15983 postinstall_cmds='chmod +x $lib'
15984 ;;
15985
15986sunos4*)
15987 version_type=sunos
15988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15989 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15990 shlibpath_var=LD_LIBRARY_PATH
15991 shlibpath_overrides_runpath=yes
15992 if test "$with_gnu_ld" = yes; then
15993 need_lib_prefix=no
15994 fi
15995 need_version=yes
15996 ;;
15997
mmentovai8c2a4de2006-09-20 16:20:15 +000015998sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000015999 version_type=linux
16000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16001 soname_spec='${libname}${release}${shared_ext}$major'
16002 shlibpath_var=LD_LIBRARY_PATH
16003 case $host_vendor in
16004 sni)
16005 shlibpath_overrides_runpath=no
16006 need_lib_prefix=no
16007 export_dynamic_flag_spec='${wl}-Blargedynsym'
16008 runpath_var=LD_RUN_PATH
16009 ;;
16010 siemens)
16011 need_lib_prefix=no
16012 ;;
16013 motorola)
16014 need_lib_prefix=no
16015 need_version=no
16016 shlibpath_overrides_runpath=no
16017 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16018 ;;
16019 esac
16020 ;;
16021
16022sysv4*MP*)
16023 if test -d /usr/nec ;then
16024 version_type=linux
16025 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16026 soname_spec='$libname${shared_ext}.$major'
16027 shlibpath_var=LD_LIBRARY_PATH
16028 fi
16029 ;;
16030
mmentovai8c2a4de2006-09-20 16:20:15 +000016031sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16032 version_type=freebsd-elf
16033 need_lib_prefix=no
16034 need_version=no
16035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16036 soname_spec='${libname}${release}${shared_ext}$major'
16037 shlibpath_var=LD_LIBRARY_PATH
16038 hardcode_into_libs=yes
16039 if test "$with_gnu_ld" = yes; then
16040 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16041 shlibpath_overrides_runpath=no
16042 else
16043 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16044 shlibpath_overrides_runpath=yes
16045 case $host_os in
16046 sco3.2v5*)
16047 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16048 ;;
16049 esac
16050 fi
16051 sys_lib_dlsearch_path_spec='/usr/lib'
16052 ;;
16053
brynercb91a2f2006-08-25 21:14:45 +000016054uts4*)
16055 version_type=linux
16056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16057 soname_spec='${libname}${release}${shared_ext}$major'
16058 shlibpath_var=LD_LIBRARY_PATH
16059 ;;
16060
16061*)
16062 dynamic_linker=no
16063 ;;
16064esac
mmentovai8c2a4de2006-09-20 16:20:15 +000016065{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16066echo "${ECHO_T}$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016067test "$dynamic_linker" = no && can_build_shared=no
16068
mmentovai8c2a4de2006-09-20 16:20:15 +000016069variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16070if test "$GCC" = yes; then
16071 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16072fi
16073
16074{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16075echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016076hardcode_action_F77=
16077if test -n "$hardcode_libdir_flag_spec_F77" || \
mmentovai8c2a4de2006-09-20 16:20:15 +000016078 test -n "$runpath_var_F77" || \
16079 test "X$hardcode_automatic_F77" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000016080
16081 # We can hardcode non-existant directories.
16082 if test "$hardcode_direct_F77" != no &&
16083 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16084 # have to relink, otherwise we might link with an installed library
16085 # when we should be linking with a yet-to-be-installed one
16086 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16087 test "$hardcode_minus_L_F77" != no; then
16088 # Linking always hardcodes the temporary library directory.
16089 hardcode_action_F77=relink
16090 else
16091 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16092 hardcode_action_F77=immediate
16093 fi
16094else
16095 # We cannot hardcode anything, or else we can only hardcode existing
16096 # directories.
16097 hardcode_action_F77=unsupported
16098fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016099{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16100echo "${ECHO_T}$hardcode_action_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016101
16102if test "$hardcode_action_F77" = relink; then
16103 # Fast installation is not supported
16104 enable_fast_install=no
16105elif test "$shlibpath_overrides_runpath" = yes ||
16106 test "$enable_shared" = no; then
16107 # Fast installation is not necessary
16108 enable_fast_install=needless
16109fi
16110
brynercb91a2f2006-08-25 21:14:45 +000016111
16112# The else clause should only fire when bootstrapping the
16113# libtool distribution, otherwise you forgot to ship ltmain.sh
16114# with your package, and you will get complaints that there are
16115# no rules to generate ltmain.sh.
16116if test -f "$ltmain"; then
16117 # See if we are running on zsh, and set the options which allow our commands through
16118 # without removal of \ escapes.
16119 if test -n "${ZSH_VERSION+set}" ; then
16120 setopt NO_GLOB_SUBST
16121 fi
16122 # Now quote all the things that may contain metacharacters while being
16123 # careful not to overquote the AC_SUBSTed values. We take copies of the
16124 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000016125 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000016126 SED SHELL STRIP \
16127 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16128 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16129 deplibs_check_method reload_flag reload_cmds need_locks \
16130 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16131 lt_cv_sys_global_symbol_to_c_name_address \
16132 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16133 old_postinstall_cmds old_postuninstall_cmds \
16134 compiler_F77 \
16135 CC_F77 \
16136 LD_F77 \
16137 lt_prog_compiler_wl_F77 \
16138 lt_prog_compiler_pic_F77 \
16139 lt_prog_compiler_static_F77 \
16140 lt_prog_compiler_no_builtin_flag_F77 \
16141 export_dynamic_flag_spec_F77 \
16142 thread_safe_flag_spec_F77 \
16143 whole_archive_flag_spec_F77 \
16144 enable_shared_with_static_runtimes_F77 \
16145 old_archive_cmds_F77 \
16146 old_archive_from_new_cmds_F77 \
16147 predep_objects_F77 \
16148 postdep_objects_F77 \
16149 predeps_F77 \
16150 postdeps_F77 \
16151 compiler_lib_search_path_F77 \
16152 archive_cmds_F77 \
16153 archive_expsym_cmds_F77 \
16154 postinstall_cmds_F77 \
16155 postuninstall_cmds_F77 \
16156 old_archive_from_expsyms_cmds_F77 \
16157 allow_undefined_flag_F77 \
16158 no_undefined_flag_F77 \
16159 export_symbols_cmds_F77 \
16160 hardcode_libdir_flag_spec_F77 \
16161 hardcode_libdir_flag_spec_ld_F77 \
16162 hardcode_libdir_separator_F77 \
16163 hardcode_automatic_F77 \
16164 module_cmds_F77 \
16165 module_expsym_cmds_F77 \
16166 lt_cv_prog_compiler_c_o_F77 \
16167 exclude_expsyms_F77 \
16168 include_expsyms_F77; do
16169
16170 case $var in
16171 old_archive_cmds_F77 | \
16172 old_archive_from_new_cmds_F77 | \
16173 archive_cmds_F77 | \
16174 archive_expsym_cmds_F77 | \
16175 module_cmds_F77 | \
16176 module_expsym_cmds_F77 | \
16177 old_archive_from_expsyms_cmds_F77 | \
16178 export_symbols_cmds_F77 | \
16179 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16180 postinstall_cmds | postuninstall_cmds | \
16181 old_postinstall_cmds | old_postuninstall_cmds | \
16182 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16183 # Double-quote double-evaled strings.
16184 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16185 ;;
16186 *)
16187 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16188 ;;
16189 esac
16190 done
16191
16192 case $lt_echo in
16193 *'\$0 --fallback-echo"')
16194 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16195 ;;
16196 esac
16197
16198cfgfile="$ofile"
16199
16200 cat <<__EOF__ >> "$cfgfile"
16201# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16202
16203# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16204
16205# Shell to use when invoking shell scripts.
16206SHELL=$lt_SHELL
16207
16208# Whether or not to build shared libraries.
16209build_libtool_libs=$enable_shared
16210
16211# Whether or not to build static libraries.
16212build_old_libs=$enable_static
16213
16214# Whether or not to add -lc for building shared libraries.
16215build_libtool_need_lc=$archive_cmds_need_lc_F77
16216
16217# Whether or not to disallow shared libs when runtime libs are static
16218allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16219
16220# Whether or not to optimize for fast installation.
16221fast_install=$enable_fast_install
16222
16223# The host system.
16224host_alias=$host_alias
16225host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000016226host_os=$host_os
16227
16228# The build system.
16229build_alias=$build_alias
16230build=$build
16231build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000016232
16233# An echo program that does not interpret backslashes.
16234echo=$lt_echo
16235
16236# The archiver.
16237AR=$lt_AR
16238AR_FLAGS=$lt_AR_FLAGS
16239
16240# A C compiler.
16241LTCC=$lt_LTCC
16242
mmentovai8c2a4de2006-09-20 16:20:15 +000016243# LTCC compiler flags.
16244LTCFLAGS=$lt_LTCFLAGS
16245
brynercb91a2f2006-08-25 21:14:45 +000016246# A language-specific compiler.
16247CC=$lt_compiler_F77
16248
16249# Is the compiler the GNU C compiler?
16250with_gcc=$GCC_F77
16251
16252# An ERE matcher.
16253EGREP=$lt_EGREP
16254
16255# The linker used to build libraries.
16256LD=$lt_LD_F77
16257
16258# Whether we need hard or soft links.
16259LN_S=$lt_LN_S
16260
16261# A BSD-compatible nm program.
16262NM=$lt_NM
16263
16264# A symbol stripping program
16265STRIP=$lt_STRIP
16266
16267# Used to examine libraries when file_magic_cmd begins "file"
16268MAGIC_CMD=$MAGIC_CMD
16269
16270# Used on cygwin: DLL creation program.
16271DLLTOOL="$DLLTOOL"
16272
16273# Used on cygwin: object dumper.
16274OBJDUMP="$OBJDUMP"
16275
16276# Used on cygwin: assembler.
16277AS="$AS"
16278
16279# The name of the directory that contains temporary libtool files.
16280objdir=$objdir
16281
16282# How to create reloadable object files.
16283reload_flag=$lt_reload_flag
16284reload_cmds=$lt_reload_cmds
16285
16286# How to pass a linker flag through the compiler.
16287wl=$lt_lt_prog_compiler_wl_F77
16288
16289# Object file suffix (normally "o").
16290objext="$ac_objext"
16291
16292# Old archive suffix (normally "a").
16293libext="$libext"
16294
16295# Shared library suffix (normally ".so").
16296shrext_cmds='$shrext_cmds'
16297
16298# Executable file suffix (normally "").
16299exeext="$exeext"
16300
16301# Additional compiler flags for building library objects.
16302pic_flag=$lt_lt_prog_compiler_pic_F77
16303pic_mode=$pic_mode
16304
16305# What is the maximum length of a command?
16306max_cmd_len=$lt_cv_sys_max_cmd_len
16307
16308# Does compiler simultaneously support -c and -o options?
16309compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16310
mmentovai8c2a4de2006-09-20 16:20:15 +000016311# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000016312need_locks=$lt_need_locks
16313
16314# Do we need the lib prefix for modules?
16315need_lib_prefix=$need_lib_prefix
16316
16317# Do we need a version for libraries?
16318need_version=$need_version
16319
16320# Whether dlopen is supported.
16321dlopen_support=$enable_dlopen
16322
16323# Whether dlopen of programs is supported.
16324dlopen_self=$enable_dlopen_self
16325
16326# Whether dlopen of statically linked programs is supported.
16327dlopen_self_static=$enable_dlopen_self_static
16328
16329# Compiler flag to prevent dynamic linking.
16330link_static_flag=$lt_lt_prog_compiler_static_F77
16331
16332# Compiler flag to turn off builtin functions.
16333no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16334
16335# Compiler flag to allow reflexive dlopens.
16336export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16337
16338# Compiler flag to generate shared objects directly from archives.
16339whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16340
16341# Compiler flag to generate thread-safe objects.
16342thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16343
16344# Library versioning type.
16345version_type=$version_type
16346
16347# Format of library name prefix.
16348libname_spec=$lt_libname_spec
16349
16350# List of archive names. First name is the real one, the rest are links.
16351# The last name is the one that the linker finds with -lNAME.
16352library_names_spec=$lt_library_names_spec
16353
16354# The coded name of the library, if different from the real name.
16355soname_spec=$lt_soname_spec
16356
16357# Commands used to build and install an old-style archive.
16358RANLIB=$lt_RANLIB
16359old_archive_cmds=$lt_old_archive_cmds_F77
16360old_postinstall_cmds=$lt_old_postinstall_cmds
16361old_postuninstall_cmds=$lt_old_postuninstall_cmds
16362
16363# Create an old-style archive from a shared archive.
16364old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16365
16366# Create a temporary old-style archive to link instead of a shared archive.
16367old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16368
16369# Commands used to build and install a shared archive.
16370archive_cmds=$lt_archive_cmds_F77
16371archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16372postinstall_cmds=$lt_postinstall_cmds
16373postuninstall_cmds=$lt_postuninstall_cmds
16374
16375# Commands used to build a loadable module (assumed same as above if empty)
16376module_cmds=$lt_module_cmds_F77
16377module_expsym_cmds=$lt_module_expsym_cmds_F77
16378
16379# Commands to strip libraries.
16380old_striplib=$lt_old_striplib
16381striplib=$lt_striplib
16382
16383# Dependencies to place before the objects being linked to create a
16384# shared library.
16385predep_objects=$lt_predep_objects_F77
16386
16387# Dependencies to place after the objects being linked to create a
16388# shared library.
16389postdep_objects=$lt_postdep_objects_F77
16390
16391# Dependencies to place before the objects being linked to create a
16392# shared library.
16393predeps=$lt_predeps_F77
16394
16395# Dependencies to place after the objects being linked to create a
16396# shared library.
16397postdeps=$lt_postdeps_F77
16398
16399# The library search path used internally by the compiler when linking
16400# a shared library.
16401compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16402
16403# Method to check whether dependent libraries are shared objects.
16404deplibs_check_method=$lt_deplibs_check_method
16405
16406# Command to use when deplibs_check_method == file_magic.
16407file_magic_cmd=$lt_file_magic_cmd
16408
16409# Flag that allows shared libraries with undefined symbols to be built.
16410allow_undefined_flag=$lt_allow_undefined_flag_F77
16411
16412# Flag that forces no undefined symbols.
16413no_undefined_flag=$lt_no_undefined_flag_F77
16414
16415# Commands used to finish a libtool library installation in a directory.
16416finish_cmds=$lt_finish_cmds
16417
16418# Same as above, but a single script fragment to be evaled but not shown.
16419finish_eval=$lt_finish_eval
16420
16421# Take the output of nm and produce a listing of raw symbols and C names.
16422global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16423
16424# Transform the output of nm in a proper C declaration
16425global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16426
16427# Transform the output of nm in a C name address pair
16428global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16429
16430# This is the shared library runtime path variable.
16431runpath_var=$runpath_var
16432
16433# This is the shared library path variable.
16434shlibpath_var=$shlibpath_var
16435
16436# Is shlibpath searched before the hard-coded library search path?
16437shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16438
16439# How to hardcode a shared library path into an executable.
16440hardcode_action=$hardcode_action_F77
16441
16442# Whether we should hardcode library paths into libraries.
16443hardcode_into_libs=$hardcode_into_libs
16444
16445# Flag to hardcode \$libdir into a binary during linking.
16446# This must work even if \$libdir does not exist.
16447hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16448
16449# If ld is used when linking, flag to hardcode \$libdir into
16450# a binary during linking. This must work even if \$libdir does
16451# not exist.
16452hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16453
16454# Whether we need a single -rpath flag with a separated argument.
16455hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16456
16457# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16458# resulting binary.
16459hardcode_direct=$hardcode_direct_F77
16460
16461# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16462# resulting binary.
16463hardcode_minus_L=$hardcode_minus_L_F77
16464
16465# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16466# the resulting binary.
16467hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16468
16469# Set to yes if building a shared library automatically hardcodes DIR into the library
16470# and all subsequent libraries and executables linked against it.
16471hardcode_automatic=$hardcode_automatic_F77
16472
16473# Variables whose values should be saved in libtool wrapper scripts and
16474# restored at relink time.
16475variables_saved_for_relink="$variables_saved_for_relink"
16476
16477# Whether libtool must link a program against all its dependency libraries.
16478link_all_deplibs=$link_all_deplibs_F77
16479
16480# Compile-time system search path for libraries
16481sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16482
16483# Run-time system search path for libraries
16484sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16485
16486# Fix the shell variable \$srcfile for the compiler.
16487fix_srcfile_path="$fix_srcfile_path_F77"
16488
16489# Set to yes if exported symbols are required.
16490always_export_symbols=$always_export_symbols_F77
16491
16492# The commands to list exported symbols.
16493export_symbols_cmds=$lt_export_symbols_cmds_F77
16494
16495# The commands to extract the exported symbol list from a shared archive.
16496extract_expsyms_cmds=$lt_extract_expsyms_cmds
16497
16498# Symbols that should not be listed in the preloaded symbols.
16499exclude_expsyms=$lt_exclude_expsyms_F77
16500
16501# Symbols that must always be exported.
16502include_expsyms=$lt_include_expsyms_F77
16503
16504# ### END LIBTOOL TAG CONFIG: $tagname
16505
16506__EOF__
16507
16508
16509else
16510 # If there is no Makefile yet, we rely on a make rule to execute
16511 # `config.status --recheck' to rerun these tests and create the
16512 # libtool script then.
16513 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16514 if test -f "$ltmain_in"; then
16515 test -f Makefile && make "$ltmain"
16516 fi
16517fi
16518
16519
16520ac_ext=c
16521ac_cpp='$CPP $CPPFLAGS'
16522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16524ac_compiler_gnu=$ac_cv_c_compiler_gnu
16525
16526CC="$lt_save_CC"
16527
16528 else
16529 tagname=""
16530 fi
16531 ;;
16532
16533 GCJ)
16534 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16535
16536
brynercb91a2f2006-08-25 21:14:45 +000016537# Source file extension for Java test sources.
16538ac_ext=java
16539
16540# Object file extension for compiled Java test sources.
16541objext=o
16542objext_GCJ=$objext
16543
16544# Code to be used in simple compile tests
16545lt_simple_compile_test_code="class foo {}\n"
16546
16547# Code to be used in simple link tests
mmentovai8c2a4de2006-09-20 16:20:15 +000016548lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
brynercb91a2f2006-08-25 21:14:45 +000016549
16550# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16551
16552# If no C compiler was specified, use CC.
16553LTCC=${LTCC-"$CC"}
16554
mmentovai8c2a4de2006-09-20 16:20:15 +000016555# If no C compiler flags were specified, use CFLAGS.
16556LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16557
brynercb91a2f2006-08-25 21:14:45 +000016558# Allow CC to be a program name with arguments.
16559compiler=$CC
16560
16561
mmentovai8c2a4de2006-09-20 16:20:15 +000016562# save warnings/boilerplate of simple test code
16563ac_outfile=conftest.$ac_objext
16564printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16565eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16566_lt_compiler_boilerplate=`cat conftest.err`
16567$rm conftest*
16568
16569ac_outfile=conftest.$ac_objext
16570printf "$lt_simple_link_test_code" >conftest.$ac_ext
16571eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16572_lt_linker_boilerplate=`cat conftest.err`
16573$rm conftest*
16574
16575
brynercb91a2f2006-08-25 21:14:45 +000016576# Allow CC to be a program name with arguments.
16577lt_save_CC="$CC"
16578CC=${GCJ-"gcj"}
16579compiler=$CC
16580compiler_GCJ=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +000016581for cc_temp in $compiler""; do
16582 case $cc_temp in
16583 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16584 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16585 \-*) ;;
16586 *) break;;
16587 esac
16588done
16589cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16590
brynercb91a2f2006-08-25 21:14:45 +000016591
16592# GCJ did not exist at the time GCC didn't implicitly link libc in.
16593archive_cmds_need_lc_GCJ=no
16594
mmentovai8c2a4de2006-09-20 16:20:15 +000016595old_archive_cmds_GCJ=$old_archive_cmds
16596
brynercb91a2f2006-08-25 21:14:45 +000016597
16598lt_prog_compiler_no_builtin_flag_GCJ=
16599
16600if test "$GCC" = yes; then
16601 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16602
16603
mmentovai8c2a4de2006-09-20 16:20:15 +000016604{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16605echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016606if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16607 echo $ECHO_N "(cached) $ECHO_C" >&6
16608else
16609 lt_cv_prog_compiler_rtti_exceptions=no
16610 ac_outfile=conftest.$ac_objext
16611 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16612 lt_compiler_flag="-fno-rtti -fno-exceptions"
16613 # Insert the option either (1) after the last *FLAGS variable, or
16614 # (2) before a word containing "conftest.", or (3) at the end.
16615 # Note that $ac_compile itself does not contain backslashes and begins
16616 # with a dollar sign (not a hyphen), so the echo should work correctly.
16617 # The option is referenced via a variable to avoid confusing sed.
16618 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000016619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000016620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16621 -e 's:$: $lt_compiler_flag:'`
mmentovai0dbedc92006-09-25 21:16:15 +000016622 (eval echo "\"\$as_me:16622: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000016623 (eval "$lt_compile" 2>conftest.err)
16624 ac_status=$?
16625 cat conftest.err >&5
mmentovai0dbedc92006-09-25 21:16:15 +000016626 echo "$as_me:16626: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000016627 if (exit $ac_status) && test -s "$ac_outfile"; then
16628 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000016629 # So say no if there are warnings other than the usual output.
16630 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16631 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16632 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000016633 lt_cv_prog_compiler_rtti_exceptions=yes
16634 fi
16635 fi
16636 $rm conftest*
16637
16638fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016639{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16640echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016641
16642if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16643 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16644else
16645 :
16646fi
16647
16648fi
16649
16650lt_prog_compiler_wl_GCJ=
16651lt_prog_compiler_pic_GCJ=
16652lt_prog_compiler_static_GCJ=
16653
mmentovai8c2a4de2006-09-20 16:20:15 +000016654{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16655echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016656
16657 if test "$GCC" = yes; then
16658 lt_prog_compiler_wl_GCJ='-Wl,'
16659 lt_prog_compiler_static_GCJ='-static'
16660
16661 case $host_os in
16662 aix*)
16663 # All AIX code is PIC.
16664 if test "$host_cpu" = ia64; then
16665 # AIX 5 now supports IA64 processor
16666 lt_prog_compiler_static_GCJ='-Bstatic'
16667 fi
16668 ;;
16669
16670 amigaos*)
16671 # FIXME: we need at least 68020 code to build shared libraries, but
16672 # adding the `-m68020' flag to GCC prevents building anything better,
16673 # like `-m68040'.
16674 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16675 ;;
16676
16677 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16678 # PIC is the default for these OSes.
16679 ;;
16680
16681 mingw* | pw32* | os2*)
16682 # This hack is so that the source file can tell whether it is being
16683 # built for inclusion in a dll (and should export symbols for example).
16684 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16685 ;;
16686
16687 darwin* | rhapsody*)
16688 # PIC is the default on this platform
16689 # Common symbols not allowed in MH_DYLIB files
16690 lt_prog_compiler_pic_GCJ='-fno-common'
16691 ;;
16692
mmentovai8c2a4de2006-09-20 16:20:15 +000016693 interix3*)
16694 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16695 # Instead, we relocate shared libraries at runtime.
16696 ;;
16697
brynercb91a2f2006-08-25 21:14:45 +000016698 msdosdjgpp*)
16699 # Just because we use GCC doesn't mean we suddenly get shared libraries
16700 # on systems that don't support them.
16701 lt_prog_compiler_can_build_shared_GCJ=no
16702 enable_shared=no
16703 ;;
16704
16705 sysv4*MP*)
16706 if test -d /usr/nec; then
16707 lt_prog_compiler_pic_GCJ=-Kconform_pic
16708 fi
16709 ;;
16710
16711 hpux*)
16712 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16713 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000016714 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000016715 hppa*64*|ia64*)
16716 # +Z the default
16717 ;;
16718 *)
16719 lt_prog_compiler_pic_GCJ='-fPIC'
16720 ;;
16721 esac
16722 ;;
16723
16724 *)
16725 lt_prog_compiler_pic_GCJ='-fPIC'
16726 ;;
16727 esac
16728 else
16729 # PORTME Check for flag to pass linker flags through the system compiler.
16730 case $host_os in
16731 aix*)
16732 lt_prog_compiler_wl_GCJ='-Wl,'
16733 if test "$host_cpu" = ia64; then
16734 # AIX 5 now supports IA64 processor
16735 lt_prog_compiler_static_GCJ='-Bstatic'
16736 else
16737 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16738 fi
16739 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016740 darwin*)
16741 # PIC is the default on this platform
16742 # Common symbols not allowed in MH_DYLIB files
16743 case $cc_basename in
16744 xlc*)
16745 lt_prog_compiler_pic_GCJ='-qnocommon'
16746 lt_prog_compiler_wl_GCJ='-Wl,'
16747 ;;
16748 esac
16749 ;;
brynercb91a2f2006-08-25 21:14:45 +000016750
16751 mingw* | pw32* | os2*)
16752 # This hack is so that the source file can tell whether it is being
16753 # built for inclusion in a dll (and should export symbols for example).
16754 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16755 ;;
16756
16757 hpux9* | hpux10* | hpux11*)
16758 lt_prog_compiler_wl_GCJ='-Wl,'
16759 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16760 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000016761 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000016762 hppa*64*|ia64*)
16763 # +Z the default
16764 ;;
16765 *)
16766 lt_prog_compiler_pic_GCJ='+Z'
16767 ;;
16768 esac
16769 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16770 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16771 ;;
16772
16773 irix5* | irix6* | nonstopux*)
16774 lt_prog_compiler_wl_GCJ='-Wl,'
16775 # PIC (with -KPIC) is the default.
16776 lt_prog_compiler_static_GCJ='-non_shared'
16777 ;;
16778
16779 newsos6)
16780 lt_prog_compiler_pic_GCJ='-KPIC'
16781 lt_prog_compiler_static_GCJ='-Bstatic'
16782 ;;
16783
16784 linux*)
mmentovai8c2a4de2006-09-20 16:20:15 +000016785 case $cc_basename in
brynercb91a2f2006-08-25 21:14:45 +000016786 icc* | ecc*)
16787 lt_prog_compiler_wl_GCJ='-Wl,'
16788 lt_prog_compiler_pic_GCJ='-KPIC'
16789 lt_prog_compiler_static_GCJ='-static'
16790 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016791 pgcc* | pgf77* | pgf90* | pgf95*)
16792 # Portland Group compilers (*not* the Pentium gcc compiler,
16793 # which looks to be a dead project)
16794 lt_prog_compiler_wl_GCJ='-Wl,'
16795 lt_prog_compiler_pic_GCJ='-fpic'
16796 lt_prog_compiler_static_GCJ='-Bstatic'
16797 ;;
brynercb91a2f2006-08-25 21:14:45 +000016798 ccc*)
16799 lt_prog_compiler_wl_GCJ='-Wl,'
16800 # All Alpha code is PIC.
16801 lt_prog_compiler_static_GCJ='-non_shared'
16802 ;;
16803 esac
16804 ;;
16805
16806 osf3* | osf4* | osf5*)
16807 lt_prog_compiler_wl_GCJ='-Wl,'
16808 # All OSF/1 code is PIC.
16809 lt_prog_compiler_static_GCJ='-non_shared'
16810 ;;
16811
brynercb91a2f2006-08-25 21:14:45 +000016812 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000016813 lt_prog_compiler_pic_GCJ='-KPIC'
16814 lt_prog_compiler_static_GCJ='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +000016815 case $cc_basename in
16816 f77* | f90* | f95*)
16817 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16818 *)
16819 lt_prog_compiler_wl_GCJ='-Wl,';;
16820 esac
brynercb91a2f2006-08-25 21:14:45 +000016821 ;;
16822
16823 sunos4*)
16824 lt_prog_compiler_wl_GCJ='-Qoption ld '
16825 lt_prog_compiler_pic_GCJ='-PIC'
16826 lt_prog_compiler_static_GCJ='-Bstatic'
16827 ;;
16828
mmentovai8c2a4de2006-09-20 16:20:15 +000016829 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000016830 lt_prog_compiler_wl_GCJ='-Wl,'
16831 lt_prog_compiler_pic_GCJ='-KPIC'
16832 lt_prog_compiler_static_GCJ='-Bstatic'
16833 ;;
16834
16835 sysv4*MP*)
16836 if test -d /usr/nec ;then
16837 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16838 lt_prog_compiler_static_GCJ='-Bstatic'
16839 fi
16840 ;;
16841
mmentovai8c2a4de2006-09-20 16:20:15 +000016842 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16843 lt_prog_compiler_wl_GCJ='-Wl,'
16844 lt_prog_compiler_pic_GCJ='-KPIC'
16845 lt_prog_compiler_static_GCJ='-Bstatic'
16846 ;;
16847
16848 unicos*)
16849 lt_prog_compiler_wl_GCJ='-Wl,'
16850 lt_prog_compiler_can_build_shared_GCJ=no
16851 ;;
16852
brynercb91a2f2006-08-25 21:14:45 +000016853 uts4*)
16854 lt_prog_compiler_pic_GCJ='-pic'
16855 lt_prog_compiler_static_GCJ='-Bstatic'
16856 ;;
16857
16858 *)
16859 lt_prog_compiler_can_build_shared_GCJ=no
16860 ;;
16861 esac
16862 fi
16863
mmentovai8c2a4de2006-09-20 16:20:15 +000016864{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16865echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016866
16867#
16868# Check to make sure the PIC flag actually works.
16869#
16870if test -n "$lt_prog_compiler_pic_GCJ"; then
16871
mmentovai8c2a4de2006-09-20 16:20:15 +000016872{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16873echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016874if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16875 echo $ECHO_N "(cached) $ECHO_C" >&6
16876else
16877 lt_prog_compiler_pic_works_GCJ=no
16878 ac_outfile=conftest.$ac_objext
16879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16880 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16881 # Insert the option either (1) after the last *FLAGS variable, or
16882 # (2) before a word containing "conftest.", or (3) at the end.
16883 # Note that $ac_compile itself does not contain backslashes and begins
16884 # with a dollar sign (not a hyphen), so the echo should work correctly.
16885 # The option is referenced via a variable to avoid confusing sed.
16886 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000016887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000016888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16889 -e 's:$: $lt_compiler_flag:'`
mmentovai0dbedc92006-09-25 21:16:15 +000016890 (eval echo "\"\$as_me:16890: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000016891 (eval "$lt_compile" 2>conftest.err)
16892 ac_status=$?
16893 cat conftest.err >&5
mmentovai0dbedc92006-09-25 21:16:15 +000016894 echo "$as_me:16894: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000016895 if (exit $ac_status) && test -s "$ac_outfile"; then
16896 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000016897 # So say no if there are warnings other than the usual output.
16898 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16899 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16900 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000016901 lt_prog_compiler_pic_works_GCJ=yes
16902 fi
16903 fi
16904 $rm conftest*
16905
16906fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016907{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16908echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016909
16910if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16911 case $lt_prog_compiler_pic_GCJ in
16912 "" | " "*) ;;
16913 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16914 esac
16915else
16916 lt_prog_compiler_pic_GCJ=
16917 lt_prog_compiler_can_build_shared_GCJ=no
16918fi
16919
16920fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016921case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000016922 # For platforms which do not support PIC, -DPIC is meaningless:
16923 *djgpp*)
16924 lt_prog_compiler_pic_GCJ=
16925 ;;
16926 *)
16927 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16928 ;;
16929esac
16930
mmentovai8c2a4de2006-09-20 16:20:15 +000016931#
16932# Check to make sure the static flag actually works.
16933#
16934wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16935{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16936echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16937if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16938 echo $ECHO_N "(cached) $ECHO_C" >&6
16939else
16940 lt_prog_compiler_static_works_GCJ=no
16941 save_LDFLAGS="$LDFLAGS"
16942 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16943 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16944 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16945 # The linker can only warn and ignore the option if not recognized
16946 # So say no if there are warnings
16947 if test -s conftest.err; then
16948 # Append any errors to the config.log.
16949 cat conftest.err 1>&5
16950 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16952 if diff conftest.exp conftest.er2 >/dev/null; then
16953 lt_prog_compiler_static_works_GCJ=yes
16954 fi
16955 else
16956 lt_prog_compiler_static_works_GCJ=yes
16957 fi
16958 fi
16959 $rm conftest*
16960 LDFLAGS="$save_LDFLAGS"
16961
16962fi
16963{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16964echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16965
16966if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16967 :
16968else
16969 lt_prog_compiler_static_GCJ=
16970fi
16971
16972
16973{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16974echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016975if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16976 echo $ECHO_N "(cached) $ECHO_C" >&6
16977else
16978 lt_cv_prog_compiler_c_o_GCJ=no
16979 $rm -r conftest 2>/dev/null
16980 mkdir conftest
16981 cd conftest
16982 mkdir out
16983 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16984
16985 lt_compiler_flag="-o out/conftest2.$ac_objext"
16986 # Insert the option either (1) after the last *FLAGS variable, or
16987 # (2) before a word containing "conftest.", or (3) at the end.
16988 # Note that $ac_compile itself does not contain backslashes and begins
16989 # with a dollar sign (not a hyphen), so the echo should work correctly.
16990 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000016991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000016992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16993 -e 's:$: $lt_compiler_flag:'`
mmentovai0dbedc92006-09-25 21:16:15 +000016994 (eval echo "\"\$as_me:16994: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000016995 (eval "$lt_compile" 2>out/conftest.err)
16996 ac_status=$?
16997 cat out/conftest.err >&5
mmentovai0dbedc92006-09-25 21:16:15 +000016998 echo "$as_me:16998: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000016999 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17000 then
17001 # The compiler can only warn and ignore the option if not recognized
17002 # So say no if there are warnings
mmentovai8c2a4de2006-09-20 16:20:15 +000017003 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17004 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17005 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000017006 lt_cv_prog_compiler_c_o_GCJ=yes
17007 fi
17008 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017009 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +000017010 $rm conftest*
17011 # SGI C++ compiler will create directory out/ii_files/ for
17012 # template instantiation
17013 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17014 $rm out/* && rmdir out
17015 cd ..
17016 rmdir conftest
17017 $rm conftest*
17018
17019fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017020{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17021echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017022
17023
17024hard_links="nottested"
17025if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17026 # do not overwrite the value of need_locks provided by the user
mmentovai8c2a4de2006-09-20 16:20:15 +000017027 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17028echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017029 hard_links=yes
17030 $rm conftest*
17031 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17032 touch conftest.a
17033 ln conftest.a conftest.b 2>&5 || hard_links=no
17034 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mmentovai8c2a4de2006-09-20 16:20:15 +000017035 { echo "$as_me:$LINENO: result: $hard_links" >&5
17036echo "${ECHO_T}$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017037 if test "$hard_links" = no; then
17038 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17039echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17040 need_locks=warn
17041 fi
17042else
17043 need_locks=no
17044fi
17045
mmentovai8c2a4de2006-09-20 16:20:15 +000017046{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17047echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017048
17049 runpath_var=
17050 allow_undefined_flag_GCJ=
17051 enable_shared_with_static_runtimes_GCJ=no
17052 archive_cmds_GCJ=
17053 archive_expsym_cmds_GCJ=
17054 old_archive_From_new_cmds_GCJ=
17055 old_archive_from_expsyms_cmds_GCJ=
17056 export_dynamic_flag_spec_GCJ=
17057 whole_archive_flag_spec_GCJ=
17058 thread_safe_flag_spec_GCJ=
17059 hardcode_libdir_flag_spec_GCJ=
17060 hardcode_libdir_flag_spec_ld_GCJ=
17061 hardcode_libdir_separator_GCJ=
17062 hardcode_direct_GCJ=no
17063 hardcode_minus_L_GCJ=no
17064 hardcode_shlibpath_var_GCJ=unsupported
17065 link_all_deplibs_GCJ=unknown
17066 hardcode_automatic_GCJ=no
17067 module_cmds_GCJ=
17068 module_expsym_cmds_GCJ=
17069 always_export_symbols_GCJ=no
17070 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17071 # include_expsyms should be a list of space-separated symbols to be *always*
17072 # included in the symbol list
17073 include_expsyms_GCJ=
17074 # exclude_expsyms can be an extended regexp of symbols to exclude
17075 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17076 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17077 # as well as any symbol that contains `d'.
17078 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17079 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17080 # platforms (ab)use it in PIC code, but their linkers get confused if
17081 # the symbol is explicitly referenced. Since portable code cannot
17082 # rely on this symbol name, it's probably fine to never include it in
17083 # preloaded symbol tables.
17084 extract_expsyms_cmds=
mmentovai8c2a4de2006-09-20 16:20:15 +000017085 # Just being paranoid about ensuring that cc_basename is set.
17086 for cc_temp in $compiler""; do
17087 case $cc_temp in
17088 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17089 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17090 \-*) ;;
17091 *) break;;
17092 esac
17093done
17094cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +000017095
17096 case $host_os in
17097 cygwin* | mingw* | pw32*)
17098 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17099 # When not using gcc, we currently assume that we are using
17100 # Microsoft Visual C++.
17101 if test "$GCC" != yes; then
17102 with_gnu_ld=no
17103 fi
17104 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000017105 interix*)
17106 # we just hope/assume this is gcc and not c89 (= MSVC++)
17107 with_gnu_ld=yes
17108 ;;
brynercb91a2f2006-08-25 21:14:45 +000017109 openbsd*)
17110 with_gnu_ld=no
17111 ;;
17112 esac
17113
17114 ld_shlibs_GCJ=yes
17115 if test "$with_gnu_ld" = yes; then
17116 # If archive_cmds runs LD, not CC, wlarc should be empty
17117 wlarc='${wl}'
17118
mmentovai8c2a4de2006-09-20 16:20:15 +000017119 # Set some defaults for GNU ld with shared library support. These
17120 # are reset later if shared libraries are not supported. Putting them
17121 # here allows them to be overridden if necessary.
17122 runpath_var=LD_RUN_PATH
17123 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17124 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17125 # ancient GNU ld didn't support --whole-archive et. al.
17126 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17127 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17128 else
17129 whole_archive_flag_spec_GCJ=
17130 fi
17131 supports_anon_versioning=no
17132 case `$LD -v 2>/dev/null` in
17133 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17134 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17135 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17136 *\ 2.11.*) ;; # other 2.11 versions
17137 *) supports_anon_versioning=yes ;;
17138 esac
17139
brynercb91a2f2006-08-25 21:14:45 +000017140 # See if GNU ld supports shared libraries.
17141 case $host_os in
17142 aix3* | aix4* | aix5*)
17143 # On AIX/PPC, the GNU linker is very broken
17144 if test "$host_cpu" != ia64; then
17145 ld_shlibs_GCJ=no
17146 cat <<EOF 1>&2
17147
17148*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17149*** to be unable to reliably create shared libraries on AIX.
17150*** Therefore, libtool is disabling shared libraries support. If you
17151*** really care for shared libraries, you may want to modify your PATH
17152*** so that a non-GNU linker is found, and then restart.
17153
17154EOF
17155 fi
17156 ;;
17157
17158 amigaos*)
17159 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)'
17160 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17161 hardcode_minus_L_GCJ=yes
17162
17163 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17164 # that the semantics of dynamic libraries on AmigaOS, at least up
17165 # to version 4, is to share data among multiple programs linked
17166 # with the same dynamic library. Since this doesn't match the
17167 # behavior of shared libraries on other platforms, we can't use
17168 # them.
17169 ld_shlibs_GCJ=no
17170 ;;
17171
17172 beos*)
17173 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17174 allow_undefined_flag_GCJ=unsupported
17175 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17176 # support --undefined. This deserves some investigation. FIXME
17177 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17178 else
17179 ld_shlibs_GCJ=no
17180 fi
17181 ;;
17182
17183 cygwin* | mingw* | pw32*)
17184 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17185 # as there is no search path for DLLs.
17186 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17187 allow_undefined_flag_GCJ=unsupported
17188 always_export_symbols_GCJ=no
17189 enable_shared_with_static_runtimes_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000017190 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000017191
17192 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017193 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +000017194 # If the export-symbols file already is a .def file (1st line
17195 # is EXPORTS), use it as is; otherwise, prepend...
17196 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17197 cp $export_symbols $output_objdir/$soname.def;
17198 else
17199 echo EXPORTS > $output_objdir/$soname.def;
17200 cat $export_symbols >> $output_objdir/$soname.def;
17201 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +000017202 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +000017203 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017204 ld_shlibs_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000017205 fi
17206 ;;
17207
mmentovai8c2a4de2006-09-20 16:20:15 +000017208 interix3*)
17209 hardcode_direct_GCJ=no
17210 hardcode_shlibpath_var_GCJ=no
17211 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17212 export_dynamic_flag_spec_GCJ='${wl}-E'
17213 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17214 # Instead, shared libraries are loaded at an image base (0x10000000 by
17215 # default) and relocated if they conflict, which is a slow very memory
17216 # consuming and fragmenting process. To avoid this, we pick a random,
17217 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17218 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17219 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'
17220 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'
17221 ;;
17222
17223 linux*)
17224 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17225 tmp_addflag=
17226 case $cc_basename,$host_cpu in
17227 pgcc*) # Portland Group C compiler
17228 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'
17229 tmp_addflag=' $pic_flag'
17230 ;;
17231 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17232 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'
17233 tmp_addflag=' $pic_flag -Mnomain' ;;
17234 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17235 tmp_addflag=' -i_dynamic' ;;
17236 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17237 tmp_addflag=' -i_dynamic -nofor_main' ;;
17238 ifc* | ifort*) # Intel Fortran compiler
17239 tmp_addflag=' -nofor_main' ;;
17240 esac
17241 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17242
17243 if test $supports_anon_versioning = yes; then
17244 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17245 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17246 $echo "local: *; };" >> $output_objdir/$libname.ver~
17247 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17248 fi
17249 else
17250 ld_shlibs_GCJ=no
17251 fi
17252 ;;
17253
17254 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000017255 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17256 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17257 wlarc=
17258 else
17259 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17260 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17261 fi
17262 ;;
17263
mmentovai8c2a4de2006-09-20 16:20:15 +000017264 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000017265 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17266 ld_shlibs_GCJ=no
17267 cat <<EOF 1>&2
17268
17269*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17270*** create shared libraries on Solaris systems. Therefore, libtool
17271*** is disabling shared libraries support. We urge you to upgrade GNU
17272*** binutils to release 2.9.1 or newer. Another option is to modify
17273*** your PATH or compiler configuration so that the native linker is
17274*** used, and then restart.
17275
17276EOF
17277 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17278 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17279 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17280 else
17281 ld_shlibs_GCJ=no
17282 fi
17283 ;;
17284
mmentovai8c2a4de2006-09-20 16:20:15 +000017285 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17286 case `$LD -v 2>&1` in
17287 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17288 ld_shlibs_GCJ=no
17289 cat <<_LT_EOF 1>&2
17290
17291*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17292*** reliably create shared libraries on SCO systems. Therefore, libtool
17293*** is disabling shared libraries support. We urge you to upgrade GNU
17294*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17295*** your PATH or compiler configuration so that the native linker is
17296*** used, and then restart.
17297
17298_LT_EOF
17299 ;;
17300 *)
17301 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17302 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17303 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17304 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17305 else
17306 ld_shlibs_GCJ=no
17307 fi
17308 ;;
17309 esac
17310 ;;
17311
brynercb91a2f2006-08-25 21:14:45 +000017312 sunos4*)
17313 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17314 wlarc=
17315 hardcode_direct_GCJ=yes
17316 hardcode_shlibpath_var_GCJ=no
17317 ;;
17318
brynercb91a2f2006-08-25 21:14:45 +000017319 *)
17320 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17321 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17322 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17323 else
17324 ld_shlibs_GCJ=no
17325 fi
17326 ;;
17327 esac
17328
mmentovai8c2a4de2006-09-20 16:20:15 +000017329 if test "$ld_shlibs_GCJ" = no; then
17330 runpath_var=
17331 hardcode_libdir_flag_spec_GCJ=
17332 export_dynamic_flag_spec_GCJ=
17333 whole_archive_flag_spec_GCJ=
brynercb91a2f2006-08-25 21:14:45 +000017334 fi
17335 else
17336 # PORTME fill in a description of your system's linker (not GNU ld)
17337 case $host_os in
17338 aix3*)
17339 allow_undefined_flag_GCJ=unsupported
17340 always_export_symbols_GCJ=yes
17341 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'
17342 # Note: this linker hardcodes the directories in LIBPATH if there
17343 # are no directories specified by -L.
17344 hardcode_minus_L_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000017345 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +000017346 # Neither direct hardcoding nor static linking is supported with a
17347 # broken collect2.
17348 hardcode_direct_GCJ=unsupported
17349 fi
17350 ;;
17351
17352 aix4* | aix5*)
17353 if test "$host_cpu" = ia64; then
17354 # On IA64, the linker does run time linking by default, so we don't
17355 # have to do anything special.
17356 aix_use_runtimelinking=no
17357 exp_sym_flag='-Bexport'
17358 no_entry_flag=""
17359 else
17360 # If we're using GNU nm, then we don't want the "-C" option.
17361 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17362 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17363 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'
17364 else
17365 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'
17366 fi
17367 aix_use_runtimelinking=no
17368
17369 # Test if we are trying to use run time linking or normal
17370 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17371 # need to do runtime linking.
17372 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17373 for ld_flag in $LDFLAGS; do
17374 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17375 aix_use_runtimelinking=yes
17376 break
17377 fi
17378 done
mmentovai8c2a4de2006-09-20 16:20:15 +000017379 ;;
brynercb91a2f2006-08-25 21:14:45 +000017380 esac
17381
17382 exp_sym_flag='-bexport'
17383 no_entry_flag='-bnoentry'
17384 fi
17385
17386 # When large executables or shared objects are built, AIX ld can
17387 # have problems creating the table of contents. If linking a library
17388 # or program results in "error TOC overflow" add -mminimal-toc to
17389 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17390 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17391
17392 archive_cmds_GCJ=''
17393 hardcode_direct_GCJ=yes
17394 hardcode_libdir_separator_GCJ=':'
17395 link_all_deplibs_GCJ=yes
17396
17397 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017398 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +000017399 # We only want to do this on AIX 4.2 and lower, the check
17400 # below for broken collect2 doesn't work under 4.3+
17401 collect2name=`${CC} -print-prog-name=collect2`
17402 if test -f "$collect2name" && \
17403 strings "$collect2name" | grep resolve_lib_name >/dev/null
17404 then
17405 # We have reworked collect2
17406 hardcode_direct_GCJ=yes
17407 else
17408 # We have old collect2
17409 hardcode_direct_GCJ=unsupported
17410 # It fails to find uninstalled libraries when the uninstalled
17411 # path is not listed in the libpath. Setting hardcode_minus_L
17412 # to unsupported forces relinking
17413 hardcode_minus_L_GCJ=yes
17414 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17415 hardcode_libdir_separator_GCJ=
17416 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017417 ;;
brynercb91a2f2006-08-25 21:14:45 +000017418 esac
17419 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +000017420 if test "$aix_use_runtimelinking" = yes; then
17421 shared_flag="$shared_flag "'${wl}-G'
17422 fi
brynercb91a2f2006-08-25 21:14:45 +000017423 else
17424 # not using gcc
17425 if test "$host_cpu" = ia64; then
17426 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17427 # chokes on -Wl,-G. The following line is correct:
17428 shared_flag='-G'
17429 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017430 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000017431 shared_flag='${wl}-G'
17432 else
17433 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +000017434 fi
brynercb91a2f2006-08-25 21:14:45 +000017435 fi
17436 fi
17437
17438 # It seems that -bexpall does not export symbols beginning with
17439 # underscore (_), so it is better to generate a list of symbols to export.
17440 always_export_symbols_GCJ=yes
17441 if test "$aix_use_runtimelinking" = yes; then
17442 # Warning - without using the other runtime loading flags (-brtl),
17443 # -berok will link without error, but may produce a broken library.
17444 allow_undefined_flag_GCJ='-berok'
17445 # Determine the default libpath from the value encoded in an empty executable.
17446 cat >conftest.$ac_ext <<_ACEOF
17447/* confdefs.h. */
17448_ACEOF
17449cat confdefs.h >>conftest.$ac_ext
17450cat >>conftest.$ac_ext <<_ACEOF
17451/* end confdefs.h. */
17452
17453int
17454main ()
17455{
17456
17457 ;
17458 return 0;
17459}
17460_ACEOF
17461rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000017462if { (ac_try="$ac_link"
17463case "(($ac_try" in
17464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465 *) ac_try_echo=$ac_try;;
17466esac
17467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000017469 ac_status=$?
17470 grep -v '^ *+' conftest.er1 >conftest.err
17471 rm -f conftest.er1
17472 cat conftest.err >&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000017475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17476 { (case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17479esac
17480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000017482 ac_status=$?
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; } &&
17485 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000017486 { (case "(($ac_try" in
17487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17489esac
17490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17491 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000017492 ac_status=$?
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; }; then
17495
17496aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17497}'`
17498# Check for a 64-bit object if we didn't find anything.
17499if 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; }
17500}'`; fi
17501else
17502 echo "$as_me: failed program was:" >&5
17503sed 's/^/| /' conftest.$ac_ext >&5
17504
mmentovai8c2a4de2006-09-20 16:20:15 +000017505
brynercb91a2f2006-08-25 21:14:45 +000017506fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017507
17508rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000017509 conftest$ac_exeext conftest.$ac_ext
17510if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17511
17512 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
mmentovai8c2a4de2006-09-20 16:20:15 +000017513 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"
brynercb91a2f2006-08-25 21:14:45 +000017514 else
17515 if test "$host_cpu" = ia64; then
17516 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17517 allow_undefined_flag_GCJ="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +000017518 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"
brynercb91a2f2006-08-25 21:14:45 +000017519 else
17520 # Determine the default libpath from the value encoded in an empty executable.
17521 cat >conftest.$ac_ext <<_ACEOF
17522/* confdefs.h. */
17523_ACEOF
17524cat confdefs.h >>conftest.$ac_ext
17525cat >>conftest.$ac_ext <<_ACEOF
17526/* end confdefs.h. */
17527
17528int
17529main ()
17530{
17531
17532 ;
17533 return 0;
17534}
17535_ACEOF
17536rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000017537if { (ac_try="$ac_link"
17538case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17541esac
17542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000017544 ac_status=$?
17545 grep -v '^ *+' conftest.er1 >conftest.err
17546 rm -f conftest.er1
17547 cat conftest.err >&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000017550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17551 { (case "(($ac_try" in
17552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553 *) ac_try_echo=$ac_try;;
17554esac
17555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000017557 ac_status=$?
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); }; } &&
17560 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000017561 { (case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17564esac
17565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000017567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; }; then
17570
17571aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17572}'`
17573# Check for a 64-bit object if we didn't find anything.
17574if 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; }
17575}'`; fi
17576else
17577 echo "$as_me: failed program was:" >&5
17578sed 's/^/| /' conftest.$ac_ext >&5
17579
mmentovai8c2a4de2006-09-20 16:20:15 +000017580
brynercb91a2f2006-08-25 21:14:45 +000017581fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017582
17583rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000017584 conftest$ac_exeext conftest.$ac_ext
17585if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17586
17587 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17588 # Warning - without using the other run time loading flags,
17589 # -berok will link without error, but may produce a broken library.
17590 no_undefined_flag_GCJ=' ${wl}-bernotok'
17591 allow_undefined_flag_GCJ=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +000017592 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +000017593 whole_archive_flag_spec_GCJ='$convenience'
brynercb91a2f2006-08-25 21:14:45 +000017594 archive_cmds_need_lc_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000017595 # This is similar to how AIX traditionally builds its shared libraries.
17596 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'
brynercb91a2f2006-08-25 21:14:45 +000017597 fi
17598 fi
17599 ;;
17600
17601 amigaos*)
17602 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)'
17603 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17604 hardcode_minus_L_GCJ=yes
17605 # see comment about different semantics on the GNU ld section
17606 ld_shlibs_GCJ=no
17607 ;;
17608
mmentovai8c2a4de2006-09-20 16:20:15 +000017609 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000017610 export_dynamic_flag_spec_GCJ=-rdynamic
17611 ;;
17612
17613 cygwin* | mingw* | pw32*)
17614 # When not using gcc, we currently assume that we are using
17615 # Microsoft Visual C++.
17616 # hardcode_libdir_flag_spec is actually meaningless, as there is
17617 # no search path for DLLs.
17618 hardcode_libdir_flag_spec_GCJ=' '
17619 allow_undefined_flag_GCJ=unsupported
17620 # Tell ltmain to make .lib files, not .a files.
17621 libext=lib
17622 # Tell ltmain to make .dll files, not .so files.
17623 shrext_cmds=".dll"
17624 # FIXME: Setting linknames here is a bad hack.
17625 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17626 # The linker will automatically build a .lib file if we build a DLL.
17627 old_archive_From_new_cmds_GCJ='true'
17628 # FIXME: Should let the user specify the lib program.
17629 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
mmentovai8c2a4de2006-09-20 16:20:15 +000017630 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
brynercb91a2f2006-08-25 21:14:45 +000017631 enable_shared_with_static_runtimes_GCJ=yes
17632 ;;
17633
17634 darwin* | rhapsody*)
mmentovai8c2a4de2006-09-20 16:20:15 +000017635 case $host_os in
17636 rhapsody* | darwin1.[012])
17637 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17638 ;;
17639 *) # Darwin 1.3 on
17640 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17641 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17642 else
17643 case ${MACOSX_DEPLOYMENT_TARGET} in
17644 10.[012])
17645 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17646 ;;
17647 10.*)
17648 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17649 ;;
17650 esac
17651 fi
17652 ;;
brynerd5e66382006-09-08 02:35:53 +000017653 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000017654 archive_cmds_need_lc_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000017655 hardcode_direct_GCJ=no
17656 hardcode_automatic_GCJ=yes
17657 hardcode_shlibpath_var_GCJ=unsupported
mmentovai8c2a4de2006-09-20 16:20:15 +000017658 whole_archive_flag_spec_GCJ=''
brynercb91a2f2006-08-25 21:14:45 +000017659 link_all_deplibs_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000017660 if test "$GCC" = yes ; then
17661 output_verbose_link_cmd='echo'
17662 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17663 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17664 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17665 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}'
17666 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}'
brynercb91a2f2006-08-25 21:14:45 +000017667 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017668 case $cc_basename in
17669 xlc*)
17670 output_verbose_link_cmd='echo'
17671 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17672 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17673 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17674 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}'
17675 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}'
17676 ;;
17677 *)
17678 ld_shlibs_GCJ=no
17679 ;;
17680 esac
brynercb91a2f2006-08-25 21:14:45 +000017681 fi
17682 ;;
17683
17684 dgux*)
17685 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17686 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17687 hardcode_shlibpath_var_GCJ=no
17688 ;;
17689
17690 freebsd1*)
17691 ld_shlibs_GCJ=no
17692 ;;
17693
17694 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17695 # support. Future versions do this automatically, but an explicit c++rt0.o
17696 # does not break anything, and helps significantly (at the cost of a little
17697 # extra space).
17698 freebsd2.2*)
17699 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17700 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17701 hardcode_direct_GCJ=yes
17702 hardcode_shlibpath_var_GCJ=no
17703 ;;
17704
17705 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17706 freebsd2*)
17707 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17708 hardcode_direct_GCJ=yes
17709 hardcode_minus_L_GCJ=yes
17710 hardcode_shlibpath_var_GCJ=no
17711 ;;
17712
17713 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mmentovai8c2a4de2006-09-20 16:20:15 +000017714 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000017715 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17716 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17717 hardcode_direct_GCJ=yes
17718 hardcode_shlibpath_var_GCJ=no
17719 ;;
17720
17721 hpux9*)
17722 if test "$GCC" = yes; then
17723 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'
17724 else
17725 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'
17726 fi
17727 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17728 hardcode_libdir_separator_GCJ=:
17729 hardcode_direct_GCJ=yes
17730
17731 # hardcode_minus_L: Not really in the search PATH,
17732 # but as the default location of the library.
17733 hardcode_minus_L_GCJ=yes
17734 export_dynamic_flag_spec_GCJ='${wl}-E'
17735 ;;
17736
mmentovai8c2a4de2006-09-20 16:20:15 +000017737 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +000017738 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017739 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17740 else
17741 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17742 fi
17743 if test "$with_gnu_ld" = no; then
17744 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17745 hardcode_libdir_separator_GCJ=:
17746
17747 hardcode_direct_GCJ=yes
17748 export_dynamic_flag_spec_GCJ='${wl}-E'
17749
17750 # hardcode_minus_L: Not really in the search PATH,
17751 # but as the default location of the library.
17752 hardcode_minus_L_GCJ=yes
17753 fi
17754 ;;
17755
17756 hpux11*)
17757 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17758 case $host_cpu in
17759 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +000017760 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17761 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000017762 ia64*)
17763 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17764 ;;
brynercb91a2f2006-08-25 21:14:45 +000017765 *)
17766 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17767 ;;
17768 esac
17769 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017770 case $host_cpu in
17771 hppa*64*)
17772 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17773 ;;
17774 ia64*)
17775 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000017776 ;;
17777 *)
mmentovai8c2a4de2006-09-20 16:20:15 +000017778 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000017779 ;;
17780 esac
17781 fi
17782 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017783 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17784 hardcode_libdir_separator_GCJ=:
brynerd5e66382006-09-08 02:35:53 +000017785
mmentovai8c2a4de2006-09-20 16:20:15 +000017786 case $host_cpu in
17787 hppa*64*|ia64*)
17788 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17789 hardcode_direct_GCJ=no
17790 hardcode_shlibpath_var_GCJ=no
brynerd5e66382006-09-08 02:35:53 +000017791 ;;
brynercb91a2f2006-08-25 21:14:45 +000017792 *)
brynercb91a2f2006-08-25 21:14:45 +000017793 hardcode_direct_GCJ=yes
17794 export_dynamic_flag_spec_GCJ='${wl}-E'
17795
17796 # hardcode_minus_L: Not really in the search PATH,
17797 # but as the default location of the library.
17798 hardcode_minus_L_GCJ=yes
17799 ;;
17800 esac
17801 fi
17802 ;;
17803
17804 irix5* | irix6* | nonstopux*)
17805 if test "$GCC" = yes; then
17806 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'
17807 else
17808 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'
17809 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17810 fi
17811 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17812 hardcode_libdir_separator_GCJ=:
17813 link_all_deplibs_GCJ=yes
17814 ;;
17815
mmentovai8c2a4de2006-09-20 16:20:15 +000017816 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000017817 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17818 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17819 else
17820 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17821 fi
17822 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17823 hardcode_direct_GCJ=yes
17824 hardcode_shlibpath_var_GCJ=no
17825 ;;
17826
17827 newsos6)
17828 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17829 hardcode_direct_GCJ=yes
17830 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17831 hardcode_libdir_separator_GCJ=:
17832 hardcode_shlibpath_var_GCJ=no
17833 ;;
17834
17835 openbsd*)
17836 hardcode_direct_GCJ=yes
17837 hardcode_shlibpath_var_GCJ=no
17838 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17839 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +000017840 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000017841 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17842 export_dynamic_flag_spec_GCJ='${wl}-E'
17843 else
17844 case $host_os in
17845 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17846 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17847 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17848 ;;
17849 *)
17850 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17851 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17852 ;;
17853 esac
17854 fi
17855 ;;
17856
17857 os2*)
17858 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17859 hardcode_minus_L_GCJ=yes
17860 allow_undefined_flag_GCJ=unsupported
17861 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'
17862 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17863 ;;
17864
17865 osf3*)
17866 if test "$GCC" = yes; then
17867 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17868 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'
17869 else
17870 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17871 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'
17872 fi
17873 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17874 hardcode_libdir_separator_GCJ=:
17875 ;;
17876
17877 osf4* | osf5*) # as osf3* with the addition of -msym flag
17878 if test "$GCC" = yes; then
17879 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17880 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'
17881 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17882 else
17883 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17884 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'
17885 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~
mmentovai8c2a4de2006-09-20 16:20:15 +000017886 $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'
brynercb91a2f2006-08-25 21:14:45 +000017887
17888 # Both c and cxx compiler support -rpath directly
17889 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17890 fi
17891 hardcode_libdir_separator_GCJ=:
17892 ;;
17893
brynercb91a2f2006-08-25 21:14:45 +000017894 solaris*)
17895 no_undefined_flag_GCJ=' -z text'
17896 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017897 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +000017898 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17899 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17900 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17901 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017902 wlarc=''
brynercb91a2f2006-08-25 21:14:45 +000017903 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17904 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17905 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17906 fi
17907 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17908 hardcode_shlibpath_var_GCJ=no
17909 case $host_os in
17910 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000017911 *)
17912 # The compiler driver will combine linker options so we
17913 # cannot just pass the convience library names through
17914 # without $wl, iff we do not link with $LD.
17915 # Luckily, gcc supports the same syntax we need for Sun Studio.
17916 # Supported since Solaris 2.6 (maybe 2.5.1?)
17917 case $wlarc in
17918 '')
17919 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17920 *)
17921 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' ;;
17922 esac ;;
brynercb91a2f2006-08-25 21:14:45 +000017923 esac
17924 link_all_deplibs_GCJ=yes
17925 ;;
17926
17927 sunos4*)
17928 if test "x$host_vendor" = xsequent; then
17929 # Use $CC to link under sequent, because it throws in some extra .o
17930 # files that make .init and .fini sections work.
17931 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17932 else
17933 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17934 fi
17935 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17936 hardcode_direct_GCJ=yes
17937 hardcode_minus_L_GCJ=yes
17938 hardcode_shlibpath_var_GCJ=no
17939 ;;
17940
17941 sysv4)
17942 case $host_vendor in
17943 sni)
17944 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17945 hardcode_direct_GCJ=yes # is this really true???
17946 ;;
17947 siemens)
17948 ## LD is ld it makes a PLAMLIB
17949 ## CC just makes a GrossModule.
17950 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17951 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17952 hardcode_direct_GCJ=no
17953 ;;
17954 motorola)
17955 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17956 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17957 ;;
17958 esac
17959 runpath_var='LD_RUN_PATH'
17960 hardcode_shlibpath_var_GCJ=no
17961 ;;
17962
17963 sysv4.3*)
17964 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17965 hardcode_shlibpath_var_GCJ=no
17966 export_dynamic_flag_spec_GCJ='-Bexport'
17967 ;;
17968
17969 sysv4*MP*)
17970 if test -d /usr/nec; then
17971 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17972 hardcode_shlibpath_var_GCJ=no
17973 runpath_var=LD_RUN_PATH
17974 hardcode_runpath_var=yes
17975 ld_shlibs_GCJ=yes
17976 fi
17977 ;;
17978
mmentovai8c2a4de2006-09-20 16:20:15 +000017979 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17980 no_undefined_flag_GCJ='${wl}-z,text'
17981 archive_cmds_need_lc_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000017982 hardcode_shlibpath_var_GCJ=no
mmentovai8c2a4de2006-09-20 16:20:15 +000017983 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +000017984
mmentovai3261e8b2006-09-06 02:56:44 +000017985 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017986 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17987 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +000017988 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017989 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17990 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +000017991 fi
brynerd5e66382006-09-08 02:35:53 +000017992 ;;
17993
mmentovai8c2a4de2006-09-20 16:20:15 +000017994 sysv5* | sco3.2v5* | sco5v6*)
17995 # Note: We can NOT use -z defs as we might desire, because we do not
17996 # link with -lc, and that would cause any symbols used from libc to
17997 # always be unresolved, which means just about no library would
17998 # ever link correctly. If we're not using GNU ld we use -z text
17999 # though, which does catch some bad symbols but isn't as heavy-handed
18000 # as -z defs.
18001 no_undefined_flag_GCJ='${wl}-z,text'
18002 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18003 archive_cmds_need_lc_GCJ=no
brynerd5e66382006-09-08 02:35:53 +000018004 hardcode_shlibpath_var_GCJ=no
mmentovai8c2a4de2006-09-20 16:20:15 +000018005 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18006 hardcode_libdir_separator_GCJ=':'
18007 link_all_deplibs_GCJ=yes
18008 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +000018009 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +000018010
18011 if test "$GCC" = yes; then
18012 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18013 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18014 else
18015 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18016 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18017 fi
brynercb91a2f2006-08-25 21:14:45 +000018018 ;;
18019
18020 uts4*)
18021 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18022 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18023 hardcode_shlibpath_var_GCJ=no
18024 ;;
18025
18026 *)
18027 ld_shlibs_GCJ=no
18028 ;;
18029 esac
18030 fi
18031
mmentovai8c2a4de2006-09-20 16:20:15 +000018032{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18033echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018034test "$ld_shlibs_GCJ" = no && can_build_shared=no
18035
brynercb91a2f2006-08-25 21:14:45 +000018036#
18037# Do we need to explicitly link libc?
18038#
18039case "x$archive_cmds_need_lc_GCJ" in
18040x|xyes)
18041 # Assume -lc should be added
18042 archive_cmds_need_lc_GCJ=yes
18043
18044 if test "$enable_shared" = yes && test "$GCC" = yes; then
18045 case $archive_cmds_GCJ in
18046 *'~'*)
18047 # FIXME: we may have to deal with multi-command sequences.
18048 ;;
18049 '$CC '*)
18050 # Test whether the compiler implicitly links with -lc since on some
18051 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18052 # to ld, don't add -lc before -lgcc.
mmentovai8c2a4de2006-09-20 16:20:15 +000018053 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18054echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018055 $rm conftest*
18056 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18057
18058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18059 (eval $ac_compile) 2>&5
18060 ac_status=$?
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } 2>conftest.err; then
18063 soname=conftest
18064 lib=conftest
18065 libobjs=conftest.$ac_objext
18066 deplibs=
18067 wl=$lt_prog_compiler_wl_GCJ
mmentovai8c2a4de2006-09-20 16:20:15 +000018068 pic_flag=$lt_prog_compiler_pic_GCJ
brynercb91a2f2006-08-25 21:14:45 +000018069 compiler_flags=-v
18070 linker_flags=-v
18071 verstring=
18072 output_objdir=.
18073 libname=conftest
18074 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18075 allow_undefined_flag_GCJ=
18076 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18077 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18078 ac_status=$?
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }
18081 then
18082 archive_cmds_need_lc_GCJ=no
18083 else
18084 archive_cmds_need_lc_GCJ=yes
18085 fi
18086 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18087 else
18088 cat conftest.err 1>&5
18089 fi
18090 $rm conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000018091 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18092echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018093 ;;
18094 esac
18095 fi
18096 ;;
18097esac
18098
mmentovai8c2a4de2006-09-20 16:20:15 +000018099{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18100echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018101library_names_spec=
18102libname_spec='lib$name'
18103soname_spec=
18104shrext_cmds=".so"
18105postinstall_cmds=
18106postuninstall_cmds=
18107finish_cmds=
18108finish_eval=
18109shlibpath_var=
18110shlibpath_overrides_runpath=unknown
18111version_type=none
18112dynamic_linker="$host_os ld.so"
18113sys_lib_dlsearch_path_spec="/lib /usr/lib"
18114if test "$GCC" = yes; then
18115 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18116 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18117 # if the path contains ";" then we assume it to be the separator
18118 # otherwise default to the standard path separator (i.e. ":") - it is
18119 # assumed that no part of a normal pathname contains ";" but that should
18120 # okay in the real world where ";" in dirpaths is itself problematic.
18121 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18122 else
18123 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18124 fi
18125else
18126 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18127fi
18128need_lib_prefix=unknown
18129hardcode_into_libs=no
18130
18131# when you set need_version to no, make sure it does not cause -set_version
18132# flags to be left without arguments
18133need_version=unknown
18134
18135case $host_os in
18136aix3*)
18137 version_type=linux
18138 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18139 shlibpath_var=LIBPATH
18140
18141 # AIX 3 has no versioning support, so we append a major version to the name.
18142 soname_spec='${libname}${release}${shared_ext}$major'
18143 ;;
18144
18145aix4* | aix5*)
18146 version_type=linux
18147 need_lib_prefix=no
18148 need_version=no
18149 hardcode_into_libs=yes
18150 if test "$host_cpu" = ia64; then
18151 # AIX 5 supports IA64
18152 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18153 shlibpath_var=LD_LIBRARY_PATH
18154 else
18155 # With GCC up to 2.95.x, collect2 would create an import file
18156 # for dependence libraries. The import file would start with
18157 # the line `#! .'. This would cause the generated library to
18158 # depend on `.', always an invalid library. This was fixed in
18159 # development snapshots of GCC prior to 3.0.
18160 case $host_os in
18161 aix4 | aix4.[01] | aix4.[01].*)
18162 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18163 echo ' yes '
18164 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18165 :
18166 else
18167 can_build_shared=no
18168 fi
18169 ;;
18170 esac
18171 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18172 # soname into executable. Probably we can add versioning support to
18173 # collect2, so additional links can be useful in future.
18174 if test "$aix_use_runtimelinking" = yes; then
18175 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18176 # instead of lib<name>.a to let people know that these are not
18177 # typical AIX shared libraries.
18178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18179 else
18180 # We preserve .a as extension for shared libraries through AIX4.2
18181 # and later when we are not doing run time linking.
18182 library_names_spec='${libname}${release}.a $libname.a'
18183 soname_spec='${libname}${release}${shared_ext}$major'
18184 fi
18185 shlibpath_var=LIBPATH
18186 fi
18187 ;;
18188
18189amigaos*)
18190 library_names_spec='$libname.ixlibrary $libname.a'
18191 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18192 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'
18193 ;;
18194
18195beos*)
18196 library_names_spec='${libname}${shared_ext}'
18197 dynamic_linker="$host_os ld.so"
18198 shlibpath_var=LIBRARY_PATH
18199 ;;
18200
mmentovai8c2a4de2006-09-20 16:20:15 +000018201bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000018202 version_type=linux
18203 need_version=no
18204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18205 soname_spec='${libname}${release}${shared_ext}$major'
18206 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18207 shlibpath_var=LD_LIBRARY_PATH
18208 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18209 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18210 # the default ld.so.conf also contains /usr/contrib/lib and
18211 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18212 # libtool to hard-code these into programs
18213 ;;
18214
18215cygwin* | mingw* | pw32*)
18216 version_type=windows
18217 shrext_cmds=".dll"
18218 need_version=no
18219 need_lib_prefix=no
18220
18221 case $GCC,$host_os in
18222 yes,cygwin* | yes,mingw* | yes,pw32*)
18223 library_names_spec='$libname.dll.a'
18224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18225 postinstall_cmds='base_file=`basename \${file}`~
18226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18227 dldir=$destdir/`dirname \$dlpath`~
18228 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000018229 $install_prog $dir/$dlname \$dldir/$dlname~
18230 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000018231 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18232 dlpath=$dir/\$dldll~
18233 $rm \$dlpath'
18234 shlibpath_overrides_runpath=yes
18235
18236 case $host_os in
18237 cygwin*)
18238 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18239 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18240 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18241 ;;
18242 mingw*)
18243 # MinGW DLLs use traditional 'lib' prefix
18244 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18245 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18246 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18247 # It is most probably a Windows format PATH printed by
18248 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18249 # path with ; separators, and with drive letters. We can handle the
18250 # drive letters (cygwin fileutils understands them), so leave them,
18251 # especially as we might pass files found there to a mingw objdump,
18252 # which wouldn't understand a cygwinified path. Ahh.
18253 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18254 else
18255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18256 fi
18257 ;;
18258 pw32*)
18259 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000018260 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
brynercb91a2f2006-08-25 21:14:45 +000018261 ;;
18262 esac
18263 ;;
18264
18265 *)
18266 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18267 ;;
18268 esac
18269 dynamic_linker='Win32 ld.exe'
18270 # FIXME: first we should search . and the directory the executable is in
18271 shlibpath_var=PATH
18272 ;;
18273
18274darwin* | rhapsody*)
18275 dynamic_linker="$host_os dyld"
18276 version_type=darwin
18277 need_lib_prefix=no
18278 need_version=no
18279 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18280 soname_spec='${libname}${release}${major}$shared_ext'
18281 shlibpath_overrides_runpath=yes
18282 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000018283 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
brynercb91a2f2006-08-25 21:14:45 +000018284 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18285 if test "$GCC" = yes; then
18286 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"`
18287 else
18288 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18289 fi
18290 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18291 ;;
18292
18293dgux*)
18294 version_type=linux
18295 need_lib_prefix=no
18296 need_version=no
18297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18298 soname_spec='${libname}${release}${shared_ext}$major'
18299 shlibpath_var=LD_LIBRARY_PATH
18300 ;;
18301
18302freebsd1*)
18303 dynamic_linker=no
18304 ;;
18305
18306kfreebsd*-gnu)
18307 version_type=linux
18308 need_lib_prefix=no
18309 need_version=no
18310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18311 soname_spec='${libname}${release}${shared_ext}$major'
18312 shlibpath_var=LD_LIBRARY_PATH
18313 shlibpath_overrides_runpath=no
18314 hardcode_into_libs=yes
18315 dynamic_linker='GNU ld.so'
18316 ;;
18317
mmentovai8c2a4de2006-09-20 16:20:15 +000018318freebsd* | dragonfly*)
18319 # DragonFly does not have aout. When/if they implement a new
18320 # versioning mechanism, adjust this.
18321 if test -x /usr/bin/objformat; then
18322 objformat=`/usr/bin/objformat`
18323 else
18324 case $host_os in
18325 freebsd[123]*) objformat=aout ;;
18326 *) objformat=elf ;;
18327 esac
18328 fi
brynercb91a2f2006-08-25 21:14:45 +000018329 version_type=freebsd-$objformat
18330 case $version_type in
18331 freebsd-elf*)
18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18333 need_version=no
18334 need_lib_prefix=no
18335 ;;
18336 freebsd-*)
18337 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18338 need_version=yes
18339 ;;
18340 esac
18341 shlibpath_var=LD_LIBRARY_PATH
18342 case $host_os in
18343 freebsd2*)
18344 shlibpath_overrides_runpath=yes
18345 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000018346 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000018347 shlibpath_overrides_runpath=yes
18348 hardcode_into_libs=yes
18349 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000018350 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18351 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000018352 shlibpath_overrides_runpath=no
18353 hardcode_into_libs=yes
18354 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000018355 freebsd*) # from 4.6 on
18356 shlibpath_overrides_runpath=yes
18357 hardcode_into_libs=yes
18358 ;;
brynercb91a2f2006-08-25 21:14:45 +000018359 esac
18360 ;;
18361
18362gnu*)
18363 version_type=linux
18364 need_lib_prefix=no
18365 need_version=no
18366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18367 soname_spec='${libname}${release}${shared_ext}$major'
18368 shlibpath_var=LD_LIBRARY_PATH
18369 hardcode_into_libs=yes
18370 ;;
18371
18372hpux9* | hpux10* | hpux11*)
18373 # Give a soname corresponding to the major version so that dld.sl refuses to
18374 # link against other versions.
18375 version_type=sunos
18376 need_lib_prefix=no
18377 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000018378 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000018379 ia64*)
18380 shrext_cmds='.so'
18381 hardcode_into_libs=yes
18382 dynamic_linker="$host_os dld.so"
18383 shlibpath_var=LD_LIBRARY_PATH
18384 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18386 soname_spec='${libname}${release}${shared_ext}$major'
18387 if test "X$HPUX_IA64_MODE" = X32; then
18388 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18389 else
18390 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18391 fi
18392 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18393 ;;
18394 hppa*64*)
18395 shrext_cmds='.sl'
18396 hardcode_into_libs=yes
18397 dynamic_linker="$host_os dld.sl"
18398 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18399 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18401 soname_spec='${libname}${release}${shared_ext}$major'
18402 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18403 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18404 ;;
18405 *)
18406 shrext_cmds='.sl'
18407 dynamic_linker="$host_os dld.sl"
18408 shlibpath_var=SHLIB_PATH
18409 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18411 soname_spec='${libname}${release}${shared_ext}$major'
18412 ;;
18413 esac
18414 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18415 postinstall_cmds='chmod 555 $lib'
18416 ;;
18417
mmentovai8c2a4de2006-09-20 16:20:15 +000018418interix3*)
18419 version_type=linux
18420 need_lib_prefix=no
18421 need_version=no
18422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18423 soname_spec='${libname}${release}${shared_ext}$major'
18424 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18425 shlibpath_var=LD_LIBRARY_PATH
18426 shlibpath_overrides_runpath=no
18427 hardcode_into_libs=yes
18428 ;;
18429
brynercb91a2f2006-08-25 21:14:45 +000018430irix5* | irix6* | nonstopux*)
18431 case $host_os in
18432 nonstopux*) version_type=nonstopux ;;
18433 *)
18434 if test "$lt_cv_prog_gnu_ld" = yes; then
18435 version_type=linux
18436 else
18437 version_type=irix
18438 fi ;;
18439 esac
18440 need_lib_prefix=no
18441 need_version=no
18442 soname_spec='${libname}${release}${shared_ext}$major'
18443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18444 case $host_os in
18445 irix5* | nonstopux*)
18446 libsuff= shlibsuff=
18447 ;;
18448 *)
18449 case $LD in # libtool.m4 will add one of these switches to LD
18450 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18451 libsuff= shlibsuff= libmagic=32-bit;;
18452 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18453 libsuff=32 shlibsuff=N32 libmagic=N32;;
18454 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18455 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18456 *) libsuff= shlibsuff= libmagic=never-match;;
18457 esac
18458 ;;
18459 esac
18460 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18461 shlibpath_overrides_runpath=no
18462 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18463 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18464 hardcode_into_libs=yes
18465 ;;
18466
18467# No shared lib support for Linux oldld, aout, or coff.
18468linux*oldld* | linux*aout* | linux*coff*)
18469 dynamic_linker=no
18470 ;;
18471
18472# This must be Linux ELF.
18473linux*)
18474 version_type=linux
18475 need_lib_prefix=no
18476 need_version=no
18477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18478 soname_spec='${libname}${release}${shared_ext}$major'
18479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18480 shlibpath_var=LD_LIBRARY_PATH
18481 shlibpath_overrides_runpath=no
18482 # This implies no fast_install, which is unacceptable.
18483 # Some rework will be needed to allow for fast_install
18484 # before this can be enabled.
18485 hardcode_into_libs=yes
18486
18487 # Append ld.so.conf contents to the search path
18488 if test -f /etc/ld.so.conf; then
mmentovai8c2a4de2006-09-20 16:20:15 +000018489 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' ' '`
brynercb91a2f2006-08-25 21:14:45 +000018490 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18491 fi
18492
18493 # We used to test for /lib/ld.so.1 and disable shared libraries on
18494 # powerpc, because MkLinux only supported shared libraries with the
18495 # GNU dynamic linker. Since this was broken with cross compilers,
18496 # most powerpc-linux boxes support dynamic linking these days and
18497 # people can always --disable-shared, the test was removed, and we
18498 # assume the GNU/Linux dynamic linker is in use.
18499 dynamic_linker='GNU/Linux ld.so'
18500 ;;
18501
brynercb91a2f2006-08-25 21:14:45 +000018502knetbsd*-gnu)
18503 version_type=linux
18504 need_lib_prefix=no
18505 need_version=no
18506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18507 soname_spec='${libname}${release}${shared_ext}$major'
18508 shlibpath_var=LD_LIBRARY_PATH
18509 shlibpath_overrides_runpath=no
18510 hardcode_into_libs=yes
18511 dynamic_linker='GNU ld.so'
18512 ;;
18513
18514netbsd*)
18515 version_type=sunos
18516 need_lib_prefix=no
18517 need_version=no
18518 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18521 dynamic_linker='NetBSD (a.out) ld.so'
18522 else
18523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18524 soname_spec='${libname}${release}${shared_ext}$major'
18525 dynamic_linker='NetBSD ld.elf_so'
18526 fi
18527 shlibpath_var=LD_LIBRARY_PATH
18528 shlibpath_overrides_runpath=yes
18529 hardcode_into_libs=yes
18530 ;;
18531
18532newsos6)
18533 version_type=linux
18534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18535 shlibpath_var=LD_LIBRARY_PATH
18536 shlibpath_overrides_runpath=yes
18537 ;;
18538
18539nto-qnx*)
18540 version_type=linux
18541 need_lib_prefix=no
18542 need_version=no
18543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18544 soname_spec='${libname}${release}${shared_ext}$major'
18545 shlibpath_var=LD_LIBRARY_PATH
18546 shlibpath_overrides_runpath=yes
18547 ;;
18548
18549openbsd*)
18550 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000018551 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000018552 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000018553 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18554 case $host_os in
18555 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18556 *) need_version=no ;;
18557 esac
brynercb91a2f2006-08-25 21:14:45 +000018558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18560 shlibpath_var=LD_LIBRARY_PATH
18561 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18562 case $host_os in
18563 openbsd2.[89] | openbsd2.[89].*)
18564 shlibpath_overrides_runpath=no
18565 ;;
18566 *)
18567 shlibpath_overrides_runpath=yes
18568 ;;
18569 esac
18570 else
18571 shlibpath_overrides_runpath=yes
18572 fi
18573 ;;
18574
18575os2*)
18576 libname_spec='$name'
18577 shrext_cmds=".dll"
18578 need_lib_prefix=no
18579 library_names_spec='$libname${shared_ext} $libname.a'
18580 dynamic_linker='OS/2 ld.exe'
18581 shlibpath_var=LIBPATH
18582 ;;
18583
18584osf3* | osf4* | osf5*)
18585 version_type=osf
18586 need_lib_prefix=no
18587 need_version=no
18588 soname_spec='${libname}${release}${shared_ext}$major'
18589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18590 shlibpath_var=LD_LIBRARY_PATH
18591 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18592 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18593 ;;
18594
brynercb91a2f2006-08-25 21:14:45 +000018595solaris*)
18596 version_type=linux
18597 need_lib_prefix=no
18598 need_version=no
18599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18600 soname_spec='${libname}${release}${shared_ext}$major'
18601 shlibpath_var=LD_LIBRARY_PATH
18602 shlibpath_overrides_runpath=yes
18603 hardcode_into_libs=yes
18604 # ldd complains unless libraries are executable
18605 postinstall_cmds='chmod +x $lib'
18606 ;;
18607
18608sunos4*)
18609 version_type=sunos
18610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18611 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18612 shlibpath_var=LD_LIBRARY_PATH
18613 shlibpath_overrides_runpath=yes
18614 if test "$with_gnu_ld" = yes; then
18615 need_lib_prefix=no
18616 fi
18617 need_version=yes
18618 ;;
18619
mmentovai8c2a4de2006-09-20 16:20:15 +000018620sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000018621 version_type=linux
18622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18623 soname_spec='${libname}${release}${shared_ext}$major'
18624 shlibpath_var=LD_LIBRARY_PATH
18625 case $host_vendor in
18626 sni)
18627 shlibpath_overrides_runpath=no
18628 need_lib_prefix=no
18629 export_dynamic_flag_spec='${wl}-Blargedynsym'
18630 runpath_var=LD_RUN_PATH
18631 ;;
18632 siemens)
18633 need_lib_prefix=no
18634 ;;
18635 motorola)
18636 need_lib_prefix=no
18637 need_version=no
18638 shlibpath_overrides_runpath=no
18639 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18640 ;;
18641 esac
18642 ;;
18643
18644sysv4*MP*)
18645 if test -d /usr/nec ;then
18646 version_type=linux
18647 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18648 soname_spec='$libname${shared_ext}.$major'
18649 shlibpath_var=LD_LIBRARY_PATH
18650 fi
18651 ;;
18652
mmentovai8c2a4de2006-09-20 16:20:15 +000018653sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18654 version_type=freebsd-elf
18655 need_lib_prefix=no
18656 need_version=no
18657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18658 soname_spec='${libname}${release}${shared_ext}$major'
18659 shlibpath_var=LD_LIBRARY_PATH
18660 hardcode_into_libs=yes
18661 if test "$with_gnu_ld" = yes; then
18662 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18663 shlibpath_overrides_runpath=no
18664 else
18665 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18666 shlibpath_overrides_runpath=yes
18667 case $host_os in
18668 sco3.2v5*)
18669 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18670 ;;
18671 esac
18672 fi
18673 sys_lib_dlsearch_path_spec='/usr/lib'
18674 ;;
18675
brynercb91a2f2006-08-25 21:14:45 +000018676uts4*)
18677 version_type=linux
18678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18679 soname_spec='${libname}${release}${shared_ext}$major'
18680 shlibpath_var=LD_LIBRARY_PATH
18681 ;;
18682
18683*)
18684 dynamic_linker=no
18685 ;;
18686esac
mmentovai8c2a4de2006-09-20 16:20:15 +000018687{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18688echo "${ECHO_T}$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018689test "$dynamic_linker" = no && can_build_shared=no
18690
mmentovai8c2a4de2006-09-20 16:20:15 +000018691variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18692if test "$GCC" = yes; then
18693 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18694fi
18695
18696{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18697echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018698hardcode_action_GCJ=
18699if test -n "$hardcode_libdir_flag_spec_GCJ" || \
mmentovai8c2a4de2006-09-20 16:20:15 +000018700 test -n "$runpath_var_GCJ" || \
18701 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000018702
18703 # We can hardcode non-existant directories.
18704 if test "$hardcode_direct_GCJ" != no &&
18705 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18706 # have to relink, otherwise we might link with an installed library
18707 # when we should be linking with a yet-to-be-installed one
18708 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18709 test "$hardcode_minus_L_GCJ" != no; then
18710 # Linking always hardcodes the temporary library directory.
18711 hardcode_action_GCJ=relink
18712 else
18713 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18714 hardcode_action_GCJ=immediate
18715 fi
18716else
18717 # We cannot hardcode anything, or else we can only hardcode existing
18718 # directories.
18719 hardcode_action_GCJ=unsupported
18720fi
mmentovai8c2a4de2006-09-20 16:20:15 +000018721{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18722echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018723
18724if test "$hardcode_action_GCJ" = relink; then
18725 # Fast installation is not supported
18726 enable_fast_install=no
18727elif test "$shlibpath_overrides_runpath" = yes ||
18728 test "$enable_shared" = no; then
18729 # Fast installation is not necessary
18730 enable_fast_install=needless
18731fi
18732
brynercb91a2f2006-08-25 21:14:45 +000018733
18734# The else clause should only fire when bootstrapping the
18735# libtool distribution, otherwise you forgot to ship ltmain.sh
18736# with your package, and you will get complaints that there are
18737# no rules to generate ltmain.sh.
18738if test -f "$ltmain"; then
18739 # See if we are running on zsh, and set the options which allow our commands through
18740 # without removal of \ escapes.
18741 if test -n "${ZSH_VERSION+set}" ; then
18742 setopt NO_GLOB_SUBST
18743 fi
18744 # Now quote all the things that may contain metacharacters while being
18745 # careful not to overquote the AC_SUBSTed values. We take copies of the
18746 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000018747 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000018748 SED SHELL STRIP \
18749 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18750 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18751 deplibs_check_method reload_flag reload_cmds need_locks \
18752 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18753 lt_cv_sys_global_symbol_to_c_name_address \
18754 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18755 old_postinstall_cmds old_postuninstall_cmds \
18756 compiler_GCJ \
18757 CC_GCJ \
18758 LD_GCJ \
18759 lt_prog_compiler_wl_GCJ \
18760 lt_prog_compiler_pic_GCJ \
18761 lt_prog_compiler_static_GCJ \
18762 lt_prog_compiler_no_builtin_flag_GCJ \
18763 export_dynamic_flag_spec_GCJ \
18764 thread_safe_flag_spec_GCJ \
18765 whole_archive_flag_spec_GCJ \
18766 enable_shared_with_static_runtimes_GCJ \
18767 old_archive_cmds_GCJ \
18768 old_archive_from_new_cmds_GCJ \
18769 predep_objects_GCJ \
18770 postdep_objects_GCJ \
18771 predeps_GCJ \
18772 postdeps_GCJ \
18773 compiler_lib_search_path_GCJ \
18774 archive_cmds_GCJ \
18775 archive_expsym_cmds_GCJ \
18776 postinstall_cmds_GCJ \
18777 postuninstall_cmds_GCJ \
18778 old_archive_from_expsyms_cmds_GCJ \
18779 allow_undefined_flag_GCJ \
18780 no_undefined_flag_GCJ \
18781 export_symbols_cmds_GCJ \
18782 hardcode_libdir_flag_spec_GCJ \
18783 hardcode_libdir_flag_spec_ld_GCJ \
18784 hardcode_libdir_separator_GCJ \
18785 hardcode_automatic_GCJ \
18786 module_cmds_GCJ \
18787 module_expsym_cmds_GCJ \
18788 lt_cv_prog_compiler_c_o_GCJ \
18789 exclude_expsyms_GCJ \
18790 include_expsyms_GCJ; do
18791
18792 case $var in
18793 old_archive_cmds_GCJ | \
18794 old_archive_from_new_cmds_GCJ | \
18795 archive_cmds_GCJ | \
18796 archive_expsym_cmds_GCJ | \
18797 module_cmds_GCJ | \
18798 module_expsym_cmds_GCJ | \
18799 old_archive_from_expsyms_cmds_GCJ | \
18800 export_symbols_cmds_GCJ | \
18801 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18802 postinstall_cmds | postuninstall_cmds | \
18803 old_postinstall_cmds | old_postuninstall_cmds | \
18804 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18805 # Double-quote double-evaled strings.
18806 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18807 ;;
18808 *)
18809 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18810 ;;
18811 esac
18812 done
18813
18814 case $lt_echo in
18815 *'\$0 --fallback-echo"')
18816 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18817 ;;
18818 esac
18819
18820cfgfile="$ofile"
18821
18822 cat <<__EOF__ >> "$cfgfile"
18823# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18824
18825# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18826
18827# Shell to use when invoking shell scripts.
18828SHELL=$lt_SHELL
18829
18830# Whether or not to build shared libraries.
18831build_libtool_libs=$enable_shared
18832
18833# Whether or not to build static libraries.
18834build_old_libs=$enable_static
18835
18836# Whether or not to add -lc for building shared libraries.
18837build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18838
18839# Whether or not to disallow shared libs when runtime libs are static
18840allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18841
18842# Whether or not to optimize for fast installation.
18843fast_install=$enable_fast_install
18844
18845# The host system.
18846host_alias=$host_alias
18847host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000018848host_os=$host_os
18849
18850# The build system.
18851build_alias=$build_alias
18852build=$build
18853build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000018854
18855# An echo program that does not interpret backslashes.
18856echo=$lt_echo
18857
18858# The archiver.
18859AR=$lt_AR
18860AR_FLAGS=$lt_AR_FLAGS
18861
18862# A C compiler.
18863LTCC=$lt_LTCC
18864
mmentovai8c2a4de2006-09-20 16:20:15 +000018865# LTCC compiler flags.
18866LTCFLAGS=$lt_LTCFLAGS
18867
brynercb91a2f2006-08-25 21:14:45 +000018868# A language-specific compiler.
18869CC=$lt_compiler_GCJ
18870
18871# Is the compiler the GNU C compiler?
18872with_gcc=$GCC_GCJ
18873
18874# An ERE matcher.
18875EGREP=$lt_EGREP
18876
18877# The linker used to build libraries.
18878LD=$lt_LD_GCJ
18879
18880# Whether we need hard or soft links.
18881LN_S=$lt_LN_S
18882
18883# A BSD-compatible nm program.
18884NM=$lt_NM
18885
18886# A symbol stripping program
18887STRIP=$lt_STRIP
18888
18889# Used to examine libraries when file_magic_cmd begins "file"
18890MAGIC_CMD=$MAGIC_CMD
18891
18892# Used on cygwin: DLL creation program.
18893DLLTOOL="$DLLTOOL"
18894
18895# Used on cygwin: object dumper.
18896OBJDUMP="$OBJDUMP"
18897
18898# Used on cygwin: assembler.
18899AS="$AS"
18900
18901# The name of the directory that contains temporary libtool files.
18902objdir=$objdir
18903
18904# How to create reloadable object files.
18905reload_flag=$lt_reload_flag
18906reload_cmds=$lt_reload_cmds
18907
18908# How to pass a linker flag through the compiler.
18909wl=$lt_lt_prog_compiler_wl_GCJ
18910
18911# Object file suffix (normally "o").
18912objext="$ac_objext"
18913
18914# Old archive suffix (normally "a").
18915libext="$libext"
18916
18917# Shared library suffix (normally ".so").
18918shrext_cmds='$shrext_cmds'
18919
18920# Executable file suffix (normally "").
18921exeext="$exeext"
18922
18923# Additional compiler flags for building library objects.
18924pic_flag=$lt_lt_prog_compiler_pic_GCJ
18925pic_mode=$pic_mode
18926
18927# What is the maximum length of a command?
18928max_cmd_len=$lt_cv_sys_max_cmd_len
18929
18930# Does compiler simultaneously support -c and -o options?
18931compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18932
mmentovai8c2a4de2006-09-20 16:20:15 +000018933# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000018934need_locks=$lt_need_locks
18935
18936# Do we need the lib prefix for modules?
18937need_lib_prefix=$need_lib_prefix
18938
18939# Do we need a version for libraries?
18940need_version=$need_version
18941
18942# Whether dlopen is supported.
18943dlopen_support=$enable_dlopen
18944
18945# Whether dlopen of programs is supported.
18946dlopen_self=$enable_dlopen_self
18947
18948# Whether dlopen of statically linked programs is supported.
18949dlopen_self_static=$enable_dlopen_self_static
18950
18951# Compiler flag to prevent dynamic linking.
18952link_static_flag=$lt_lt_prog_compiler_static_GCJ
18953
18954# Compiler flag to turn off builtin functions.
18955no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18956
18957# Compiler flag to allow reflexive dlopens.
18958export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18959
18960# Compiler flag to generate shared objects directly from archives.
18961whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18962
18963# Compiler flag to generate thread-safe objects.
18964thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18965
18966# Library versioning type.
18967version_type=$version_type
18968
18969# Format of library name prefix.
18970libname_spec=$lt_libname_spec
18971
18972# List of archive names. First name is the real one, the rest are links.
18973# The last name is the one that the linker finds with -lNAME.
18974library_names_spec=$lt_library_names_spec
18975
18976# The coded name of the library, if different from the real name.
18977soname_spec=$lt_soname_spec
18978
18979# Commands used to build and install an old-style archive.
18980RANLIB=$lt_RANLIB
18981old_archive_cmds=$lt_old_archive_cmds_GCJ
18982old_postinstall_cmds=$lt_old_postinstall_cmds
18983old_postuninstall_cmds=$lt_old_postuninstall_cmds
18984
18985# Create an old-style archive from a shared archive.
18986old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18987
18988# Create a temporary old-style archive to link instead of a shared archive.
18989old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18990
18991# Commands used to build and install a shared archive.
18992archive_cmds=$lt_archive_cmds_GCJ
18993archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18994postinstall_cmds=$lt_postinstall_cmds
18995postuninstall_cmds=$lt_postuninstall_cmds
18996
18997# Commands used to build a loadable module (assumed same as above if empty)
18998module_cmds=$lt_module_cmds_GCJ
18999module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19000
19001# Commands to strip libraries.
19002old_striplib=$lt_old_striplib
19003striplib=$lt_striplib
19004
19005# Dependencies to place before the objects being linked to create a
19006# shared library.
19007predep_objects=$lt_predep_objects_GCJ
19008
19009# Dependencies to place after the objects being linked to create a
19010# shared library.
19011postdep_objects=$lt_postdep_objects_GCJ
19012
19013# Dependencies to place before the objects being linked to create a
19014# shared library.
19015predeps=$lt_predeps_GCJ
19016
19017# Dependencies to place after the objects being linked to create a
19018# shared library.
19019postdeps=$lt_postdeps_GCJ
19020
19021# The library search path used internally by the compiler when linking
19022# a shared library.
19023compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19024
19025# Method to check whether dependent libraries are shared objects.
19026deplibs_check_method=$lt_deplibs_check_method
19027
19028# Command to use when deplibs_check_method == file_magic.
19029file_magic_cmd=$lt_file_magic_cmd
19030
19031# Flag that allows shared libraries with undefined symbols to be built.
19032allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19033
19034# Flag that forces no undefined symbols.
19035no_undefined_flag=$lt_no_undefined_flag_GCJ
19036
19037# Commands used to finish a libtool library installation in a directory.
19038finish_cmds=$lt_finish_cmds
19039
19040# Same as above, but a single script fragment to be evaled but not shown.
19041finish_eval=$lt_finish_eval
19042
19043# Take the output of nm and produce a listing of raw symbols and C names.
19044global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19045
19046# Transform the output of nm in a proper C declaration
19047global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19048
19049# Transform the output of nm in a C name address pair
19050global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19051
19052# This is the shared library runtime path variable.
19053runpath_var=$runpath_var
19054
19055# This is the shared library path variable.
19056shlibpath_var=$shlibpath_var
19057
19058# Is shlibpath searched before the hard-coded library search path?
19059shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19060
19061# How to hardcode a shared library path into an executable.
19062hardcode_action=$hardcode_action_GCJ
19063
19064# Whether we should hardcode library paths into libraries.
19065hardcode_into_libs=$hardcode_into_libs
19066
19067# Flag to hardcode \$libdir into a binary during linking.
19068# This must work even if \$libdir does not exist.
19069hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19070
19071# If ld is used when linking, flag to hardcode \$libdir into
19072# a binary during linking. This must work even if \$libdir does
19073# not exist.
19074hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19075
19076# Whether we need a single -rpath flag with a separated argument.
19077hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19078
19079# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19080# resulting binary.
19081hardcode_direct=$hardcode_direct_GCJ
19082
19083# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19084# resulting binary.
19085hardcode_minus_L=$hardcode_minus_L_GCJ
19086
19087# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19088# the resulting binary.
19089hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19090
19091# Set to yes if building a shared library automatically hardcodes DIR into the library
19092# and all subsequent libraries and executables linked against it.
19093hardcode_automatic=$hardcode_automatic_GCJ
19094
19095# Variables whose values should be saved in libtool wrapper scripts and
19096# restored at relink time.
19097variables_saved_for_relink="$variables_saved_for_relink"
19098
19099# Whether libtool must link a program against all its dependency libraries.
19100link_all_deplibs=$link_all_deplibs_GCJ
19101
19102# Compile-time system search path for libraries
19103sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19104
19105# Run-time system search path for libraries
19106sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19107
19108# Fix the shell variable \$srcfile for the compiler.
19109fix_srcfile_path="$fix_srcfile_path_GCJ"
19110
19111# Set to yes if exported symbols are required.
19112always_export_symbols=$always_export_symbols_GCJ
19113
19114# The commands to list exported symbols.
19115export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19116
19117# The commands to extract the exported symbol list from a shared archive.
19118extract_expsyms_cmds=$lt_extract_expsyms_cmds
19119
19120# Symbols that should not be listed in the preloaded symbols.
19121exclude_expsyms=$lt_exclude_expsyms_GCJ
19122
19123# Symbols that must always be exported.
19124include_expsyms=$lt_include_expsyms_GCJ
19125
19126# ### END LIBTOOL TAG CONFIG: $tagname
19127
19128__EOF__
19129
19130
19131else
19132 # If there is no Makefile yet, we rely on a make rule to execute
19133 # `config.status --recheck' to rerun these tests and create the
19134 # libtool script then.
19135 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19136 if test -f "$ltmain_in"; then
19137 test -f Makefile && make "$ltmain"
19138 fi
19139fi
19140
19141
19142ac_ext=c
19143ac_cpp='$CPP $CPPFLAGS'
19144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19146ac_compiler_gnu=$ac_cv_c_compiler_gnu
19147
19148CC="$lt_save_CC"
19149
19150 else
19151 tagname=""
19152 fi
19153 ;;
19154
19155 RC)
19156
19157
brynercb91a2f2006-08-25 21:14:45 +000019158# Source file extension for RC test sources.
19159ac_ext=rc
19160
19161# Object file extension for compiled RC test sources.
19162objext=o
19163objext_RC=$objext
19164
19165# Code to be used in simple compile tests
19166lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19167
19168# Code to be used in simple link tests
19169lt_simple_link_test_code="$lt_simple_compile_test_code"
19170
19171# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19172
19173# If no C compiler was specified, use CC.
19174LTCC=${LTCC-"$CC"}
19175
mmentovai8c2a4de2006-09-20 16:20:15 +000019176# If no C compiler flags were specified, use CFLAGS.
19177LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19178
brynercb91a2f2006-08-25 21:14:45 +000019179# Allow CC to be a program name with arguments.
19180compiler=$CC
19181
19182
mmentovai8c2a4de2006-09-20 16:20:15 +000019183# save warnings/boilerplate of simple test code
19184ac_outfile=conftest.$ac_objext
19185printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19186eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19187_lt_compiler_boilerplate=`cat conftest.err`
19188$rm conftest*
19189
19190ac_outfile=conftest.$ac_objext
19191printf "$lt_simple_link_test_code" >conftest.$ac_ext
19192eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19193_lt_linker_boilerplate=`cat conftest.err`
19194$rm conftest*
19195
19196
brynercb91a2f2006-08-25 21:14:45 +000019197# Allow CC to be a program name with arguments.
19198lt_save_CC="$CC"
19199CC=${RC-"windres"}
19200compiler=$CC
19201compiler_RC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +000019202for cc_temp in $compiler""; do
19203 case $cc_temp in
19204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19206 \-*) ;;
19207 *) break;;
19208 esac
19209done
19210cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19211
brynercb91a2f2006-08-25 21:14:45 +000019212lt_cv_prog_compiler_c_o_RC=yes
19213
19214# The else clause should only fire when bootstrapping the
19215# libtool distribution, otherwise you forgot to ship ltmain.sh
19216# with your package, and you will get complaints that there are
19217# no rules to generate ltmain.sh.
19218if test -f "$ltmain"; then
19219 # See if we are running on zsh, and set the options which allow our commands through
19220 # without removal of \ escapes.
19221 if test -n "${ZSH_VERSION+set}" ; then
19222 setopt NO_GLOB_SUBST
19223 fi
19224 # Now quote all the things that may contain metacharacters while being
19225 # careful not to overquote the AC_SUBSTed values. We take copies of the
19226 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000019227 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000019228 SED SHELL STRIP \
19229 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19230 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19231 deplibs_check_method reload_flag reload_cmds need_locks \
19232 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19233 lt_cv_sys_global_symbol_to_c_name_address \
19234 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19235 old_postinstall_cmds old_postuninstall_cmds \
19236 compiler_RC \
19237 CC_RC \
19238 LD_RC \
19239 lt_prog_compiler_wl_RC \
19240 lt_prog_compiler_pic_RC \
19241 lt_prog_compiler_static_RC \
19242 lt_prog_compiler_no_builtin_flag_RC \
19243 export_dynamic_flag_spec_RC \
19244 thread_safe_flag_spec_RC \
19245 whole_archive_flag_spec_RC \
19246 enable_shared_with_static_runtimes_RC \
19247 old_archive_cmds_RC \
19248 old_archive_from_new_cmds_RC \
19249 predep_objects_RC \
19250 postdep_objects_RC \
19251 predeps_RC \
19252 postdeps_RC \
19253 compiler_lib_search_path_RC \
19254 archive_cmds_RC \
19255 archive_expsym_cmds_RC \
19256 postinstall_cmds_RC \
19257 postuninstall_cmds_RC \
19258 old_archive_from_expsyms_cmds_RC \
19259 allow_undefined_flag_RC \
19260 no_undefined_flag_RC \
19261 export_symbols_cmds_RC \
19262 hardcode_libdir_flag_spec_RC \
19263 hardcode_libdir_flag_spec_ld_RC \
19264 hardcode_libdir_separator_RC \
19265 hardcode_automatic_RC \
19266 module_cmds_RC \
19267 module_expsym_cmds_RC \
19268 lt_cv_prog_compiler_c_o_RC \
19269 exclude_expsyms_RC \
19270 include_expsyms_RC; do
19271
19272 case $var in
19273 old_archive_cmds_RC | \
19274 old_archive_from_new_cmds_RC | \
19275 archive_cmds_RC | \
19276 archive_expsym_cmds_RC | \
19277 module_cmds_RC | \
19278 module_expsym_cmds_RC | \
19279 old_archive_from_expsyms_cmds_RC | \
19280 export_symbols_cmds_RC | \
19281 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19282 postinstall_cmds | postuninstall_cmds | \
19283 old_postinstall_cmds | old_postuninstall_cmds | \
19284 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19285 # Double-quote double-evaled strings.
19286 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19287 ;;
19288 *)
19289 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19290 ;;
19291 esac
19292 done
19293
19294 case $lt_echo in
19295 *'\$0 --fallback-echo"')
19296 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19297 ;;
19298 esac
19299
19300cfgfile="$ofile"
19301
19302 cat <<__EOF__ >> "$cfgfile"
19303# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19304
19305# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19306
19307# Shell to use when invoking shell scripts.
19308SHELL=$lt_SHELL
19309
19310# Whether or not to build shared libraries.
19311build_libtool_libs=$enable_shared
19312
19313# Whether or not to build static libraries.
19314build_old_libs=$enable_static
19315
19316# Whether or not to add -lc for building shared libraries.
19317build_libtool_need_lc=$archive_cmds_need_lc_RC
19318
19319# Whether or not to disallow shared libs when runtime libs are static
19320allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19321
19322# Whether or not to optimize for fast installation.
19323fast_install=$enable_fast_install
19324
19325# The host system.
19326host_alias=$host_alias
19327host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000019328host_os=$host_os
19329
19330# The build system.
19331build_alias=$build_alias
19332build=$build
19333build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000019334
19335# An echo program that does not interpret backslashes.
19336echo=$lt_echo
19337
19338# The archiver.
19339AR=$lt_AR
19340AR_FLAGS=$lt_AR_FLAGS
19341
19342# A C compiler.
19343LTCC=$lt_LTCC
19344
mmentovai8c2a4de2006-09-20 16:20:15 +000019345# LTCC compiler flags.
19346LTCFLAGS=$lt_LTCFLAGS
19347
brynercb91a2f2006-08-25 21:14:45 +000019348# A language-specific compiler.
19349CC=$lt_compiler_RC
19350
19351# Is the compiler the GNU C compiler?
19352with_gcc=$GCC_RC
19353
19354# An ERE matcher.
19355EGREP=$lt_EGREP
19356
19357# The linker used to build libraries.
19358LD=$lt_LD_RC
19359
19360# Whether we need hard or soft links.
19361LN_S=$lt_LN_S
19362
19363# A BSD-compatible nm program.
19364NM=$lt_NM
19365
19366# A symbol stripping program
19367STRIP=$lt_STRIP
19368
19369# Used to examine libraries when file_magic_cmd begins "file"
19370MAGIC_CMD=$MAGIC_CMD
19371
19372# Used on cygwin: DLL creation program.
19373DLLTOOL="$DLLTOOL"
19374
19375# Used on cygwin: object dumper.
19376OBJDUMP="$OBJDUMP"
19377
19378# Used on cygwin: assembler.
19379AS="$AS"
19380
19381# The name of the directory that contains temporary libtool files.
19382objdir=$objdir
19383
19384# How to create reloadable object files.
19385reload_flag=$lt_reload_flag
19386reload_cmds=$lt_reload_cmds
19387
19388# How to pass a linker flag through the compiler.
19389wl=$lt_lt_prog_compiler_wl_RC
19390
19391# Object file suffix (normally "o").
19392objext="$ac_objext"
19393
19394# Old archive suffix (normally "a").
19395libext="$libext"
19396
19397# Shared library suffix (normally ".so").
19398shrext_cmds='$shrext_cmds'
19399
19400# Executable file suffix (normally "").
19401exeext="$exeext"
19402
19403# Additional compiler flags for building library objects.
19404pic_flag=$lt_lt_prog_compiler_pic_RC
19405pic_mode=$pic_mode
19406
19407# What is the maximum length of a command?
19408max_cmd_len=$lt_cv_sys_max_cmd_len
19409
19410# Does compiler simultaneously support -c and -o options?
19411compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19412
mmentovai8c2a4de2006-09-20 16:20:15 +000019413# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000019414need_locks=$lt_need_locks
19415
19416# Do we need the lib prefix for modules?
19417need_lib_prefix=$need_lib_prefix
19418
19419# Do we need a version for libraries?
19420need_version=$need_version
19421
19422# Whether dlopen is supported.
19423dlopen_support=$enable_dlopen
19424
19425# Whether dlopen of programs is supported.
19426dlopen_self=$enable_dlopen_self
19427
19428# Whether dlopen of statically linked programs is supported.
19429dlopen_self_static=$enable_dlopen_self_static
19430
19431# Compiler flag to prevent dynamic linking.
19432link_static_flag=$lt_lt_prog_compiler_static_RC
19433
19434# Compiler flag to turn off builtin functions.
19435no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19436
19437# Compiler flag to allow reflexive dlopens.
19438export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19439
19440# Compiler flag to generate shared objects directly from archives.
19441whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19442
19443# Compiler flag to generate thread-safe objects.
19444thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19445
19446# Library versioning type.
19447version_type=$version_type
19448
19449# Format of library name prefix.
19450libname_spec=$lt_libname_spec
19451
19452# List of archive names. First name is the real one, the rest are links.
19453# The last name is the one that the linker finds with -lNAME.
19454library_names_spec=$lt_library_names_spec
19455
19456# The coded name of the library, if different from the real name.
19457soname_spec=$lt_soname_spec
19458
19459# Commands used to build and install an old-style archive.
19460RANLIB=$lt_RANLIB
19461old_archive_cmds=$lt_old_archive_cmds_RC
19462old_postinstall_cmds=$lt_old_postinstall_cmds
19463old_postuninstall_cmds=$lt_old_postuninstall_cmds
19464
19465# Create an old-style archive from a shared archive.
19466old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19467
19468# Create a temporary old-style archive to link instead of a shared archive.
19469old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19470
19471# Commands used to build and install a shared archive.
19472archive_cmds=$lt_archive_cmds_RC
19473archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19474postinstall_cmds=$lt_postinstall_cmds
19475postuninstall_cmds=$lt_postuninstall_cmds
19476
19477# Commands used to build a loadable module (assumed same as above if empty)
19478module_cmds=$lt_module_cmds_RC
19479module_expsym_cmds=$lt_module_expsym_cmds_RC
19480
19481# Commands to strip libraries.
19482old_striplib=$lt_old_striplib
19483striplib=$lt_striplib
19484
19485# Dependencies to place before the objects being linked to create a
19486# shared library.
19487predep_objects=$lt_predep_objects_RC
19488
19489# Dependencies to place after the objects being linked to create a
19490# shared library.
19491postdep_objects=$lt_postdep_objects_RC
19492
19493# Dependencies to place before the objects being linked to create a
19494# shared library.
19495predeps=$lt_predeps_RC
19496
19497# Dependencies to place after the objects being linked to create a
19498# shared library.
19499postdeps=$lt_postdeps_RC
19500
19501# The library search path used internally by the compiler when linking
19502# a shared library.
19503compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19504
19505# Method to check whether dependent libraries are shared objects.
19506deplibs_check_method=$lt_deplibs_check_method
19507
19508# Command to use when deplibs_check_method == file_magic.
19509file_magic_cmd=$lt_file_magic_cmd
19510
19511# Flag that allows shared libraries with undefined symbols to be built.
19512allow_undefined_flag=$lt_allow_undefined_flag_RC
19513
19514# Flag that forces no undefined symbols.
19515no_undefined_flag=$lt_no_undefined_flag_RC
19516
19517# Commands used to finish a libtool library installation in a directory.
19518finish_cmds=$lt_finish_cmds
19519
19520# Same as above, but a single script fragment to be evaled but not shown.
19521finish_eval=$lt_finish_eval
19522
19523# Take the output of nm and produce a listing of raw symbols and C names.
19524global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19525
19526# Transform the output of nm in a proper C declaration
19527global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19528
19529# Transform the output of nm in a C name address pair
19530global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19531
19532# This is the shared library runtime path variable.
19533runpath_var=$runpath_var
19534
19535# This is the shared library path variable.
19536shlibpath_var=$shlibpath_var
19537
19538# Is shlibpath searched before the hard-coded library search path?
19539shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19540
19541# How to hardcode a shared library path into an executable.
19542hardcode_action=$hardcode_action_RC
19543
19544# Whether we should hardcode library paths into libraries.
19545hardcode_into_libs=$hardcode_into_libs
19546
19547# Flag to hardcode \$libdir into a binary during linking.
19548# This must work even if \$libdir does not exist.
19549hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19550
19551# If ld is used when linking, flag to hardcode \$libdir into
19552# a binary during linking. This must work even if \$libdir does
19553# not exist.
19554hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19555
19556# Whether we need a single -rpath flag with a separated argument.
19557hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19558
19559# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19560# resulting binary.
19561hardcode_direct=$hardcode_direct_RC
19562
19563# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19564# resulting binary.
19565hardcode_minus_L=$hardcode_minus_L_RC
19566
19567# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19568# the resulting binary.
19569hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19570
19571# Set to yes if building a shared library automatically hardcodes DIR into the library
19572# and all subsequent libraries and executables linked against it.
19573hardcode_automatic=$hardcode_automatic_RC
19574
19575# Variables whose values should be saved in libtool wrapper scripts and
19576# restored at relink time.
19577variables_saved_for_relink="$variables_saved_for_relink"
19578
19579# Whether libtool must link a program against all its dependency libraries.
19580link_all_deplibs=$link_all_deplibs_RC
19581
19582# Compile-time system search path for libraries
19583sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19584
19585# Run-time system search path for libraries
19586sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19587
19588# Fix the shell variable \$srcfile for the compiler.
19589fix_srcfile_path="$fix_srcfile_path_RC"
19590
19591# Set to yes if exported symbols are required.
19592always_export_symbols=$always_export_symbols_RC
19593
19594# The commands to list exported symbols.
19595export_symbols_cmds=$lt_export_symbols_cmds_RC
19596
19597# The commands to extract the exported symbol list from a shared archive.
19598extract_expsyms_cmds=$lt_extract_expsyms_cmds
19599
19600# Symbols that should not be listed in the preloaded symbols.
19601exclude_expsyms=$lt_exclude_expsyms_RC
19602
19603# Symbols that must always be exported.
19604include_expsyms=$lt_include_expsyms_RC
19605
19606# ### END LIBTOOL TAG CONFIG: $tagname
19607
19608__EOF__
19609
19610
19611else
19612 # If there is no Makefile yet, we rely on a make rule to execute
19613 # `config.status --recheck' to rerun these tests and create the
19614 # libtool script then.
19615 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19616 if test -f "$ltmain_in"; then
19617 test -f Makefile && make "$ltmain"
19618 fi
19619fi
19620
19621
19622ac_ext=c
19623ac_cpp='$CPP $CPPFLAGS'
19624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19626ac_compiler_gnu=$ac_cv_c_compiler_gnu
19627
19628CC="$lt_save_CC"
19629
19630 ;;
19631
19632 *)
19633 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19634echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19635 { (exit 1); exit 1; }; }
19636 ;;
19637 esac
19638
19639 # Append the new tag name to the list of available tags.
19640 if test -n "$tagname" ; then
19641 available_tags="$available_tags $tagname"
19642 fi
19643 fi
19644 done
19645 IFS="$lt_save_ifs"
19646
19647 # Now substitute the updated list of available tags.
19648 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19649 mv "${ofile}T" "$ofile"
19650 chmod +x "$ofile"
19651 else
19652 rm -f "${ofile}T"
19653 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19654echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19655 { (exit 1); exit 1; }; }
19656 fi
19657fi
19658
19659
19660
19661# This can be used to rebuild libtool when needed
19662LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19663
19664# Always use our own libtool.
19665LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19666
19667# Prevent multiple expansion
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
mmentovai8c2a4de2006-09-20 16:20:15 +000019690{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19691echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000019692if test "${ac_cv_header_stdc+set}" = set; then
19693 echo $ECHO_N "(cached) $ECHO_C" >&6
19694else
19695 cat >conftest.$ac_ext <<_ACEOF
19696/* confdefs.h. */
19697_ACEOF
19698cat confdefs.h >>conftest.$ac_ext
19699cat >>conftest.$ac_ext <<_ACEOF
19700/* end confdefs.h. */
19701#include <stdlib.h>
19702#include <stdarg.h>
19703#include <string.h>
19704#include <float.h>
19705
19706int
19707main ()
19708{
19709
19710 ;
19711 return 0;
19712}
19713_ACEOF
19714rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +000019715if { (ac_try="$ac_compile"
19716case "(($ac_try" in
19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718 *) ac_try_echo=$ac_try;;
19719esac
19720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000019722 ac_status=$?
19723 grep -v '^ *+' conftest.er1 >conftest.err
19724 rm -f conftest.er1
19725 cat conftest.err >&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000019728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19729 { (case "(($ac_try" in
19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731 *) ac_try_echo=$ac_try;;
19732esac
19733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000019735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; } &&
19738 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +000019739 { (case "(($ac_try" in
19740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741 *) ac_try_echo=$ac_try;;
19742esac
19743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19744 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000019745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; }; then
19748 ac_cv_header_stdc=yes
19749else
19750 echo "$as_me: failed program was:" >&5
19751sed 's/^/| /' conftest.$ac_ext >&5
19752
mmentovai8c2a4de2006-09-20 16:20:15 +000019753 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +000019754fi
mmentovai8c2a4de2006-09-20 16:20:15 +000019755
19756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000019757
19758if test $ac_cv_header_stdc = yes; then
19759 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19760 cat >conftest.$ac_ext <<_ACEOF
19761/* confdefs.h. */
19762_ACEOF
19763cat confdefs.h >>conftest.$ac_ext
19764cat >>conftest.$ac_ext <<_ACEOF
19765/* end confdefs.h. */
19766#include <string.h>
19767
19768_ACEOF
19769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19770 $EGREP "memchr" >/dev/null 2>&1; then
19771 :
19772else
19773 ac_cv_header_stdc=no
19774fi
19775rm -f conftest*
19776
19777fi
19778
19779if test $ac_cv_header_stdc = yes; then
19780 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19781 cat >conftest.$ac_ext <<_ACEOF
19782/* confdefs.h. */
19783_ACEOF
19784cat confdefs.h >>conftest.$ac_ext
19785cat >>conftest.$ac_ext <<_ACEOF
19786/* end confdefs.h. */
19787#include <stdlib.h>
19788
19789_ACEOF
19790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19791 $EGREP "free" >/dev/null 2>&1; then
19792 :
19793else
19794 ac_cv_header_stdc=no
19795fi
19796rm -f conftest*
19797
19798fi
19799
19800if test $ac_cv_header_stdc = yes; then
19801 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19802 if test "$cross_compiling" = yes; then
19803 :
19804else
19805 cat >conftest.$ac_ext <<_ACEOF
19806/* confdefs.h. */
19807_ACEOF
19808cat confdefs.h >>conftest.$ac_ext
19809cat >>conftest.$ac_ext <<_ACEOF
19810/* end confdefs.h. */
19811#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +000019812#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +000019813#if ((' ' & 0x0FF) == 0x020)
19814# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19815# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19816#else
19817# define ISLOWER(c) \
19818 (('a' <= (c) && (c) <= 'i') \
19819 || ('j' <= (c) && (c) <= 'r') \
19820 || ('s' <= (c) && (c) <= 'z'))
19821# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19822#endif
19823
19824#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19825int
19826main ()
19827{
19828 int i;
19829 for (i = 0; i < 256; i++)
19830 if (XOR (islower (i), ISLOWER (i))
19831 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +000019832 return 2;
19833 return 0;
brynercb91a2f2006-08-25 21:14:45 +000019834}
19835_ACEOF
19836rm -f conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000019837if { (ac_try="$ac_link"
19838case "(($ac_try" in
19839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19840 *) ac_try_echo=$ac_try;;
19841esac
19842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19843 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000019844 ac_status=$?
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000019847 { (case "(($ac_try" in
19848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849 *) ac_try_echo=$ac_try;;
19850esac
19851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000019853 ac_status=$?
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; }; then
19856 :
19857else
19858 echo "$as_me: program exited with status $ac_status" >&5
19859echo "$as_me: failed program was:" >&5
19860sed 's/^/| /' conftest.$ac_ext >&5
19861
19862( exit $ac_status )
19863ac_cv_header_stdc=no
19864fi
mmentovai8c2a4de2006-09-20 16:20:15 +000019865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19866fi
19867
19868
brynercb91a2f2006-08-25 21:14:45 +000019869fi
19870fi
mmentovai8c2a4de2006-09-20 16:20:15 +000019871{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19872echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000019873if test $ac_cv_header_stdc = yes; then
19874
19875cat >>confdefs.h <<\_ACEOF
19876#define STDC_HEADERS 1
19877_ACEOF
19878
19879fi
19880
19881
mmentovai0dbedc92006-09-25 21:16:15 +000019882# Check whether --enable-selftest was given.
19883if test "${enable_selftest+set}" = set; then
19884 enableval=$enable_selftest; case "${enableval}" in
19885 yes)
19886 selftest=true
19887 ;;
19888 no)
19889 selftest=false
19890 ;;
19891 *)
19892 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-selftest" >&5
19893echo "$as_me: error: bad value ${enableval} for --enable-selftest" >&2;}
19894 { (exit 1); exit 1; }; }
19895 ;;
19896 esac
19897else
19898 selftest=false
19899fi
19900
19901
19902
19903if test x$selftest = xtrue; then
19904 SELFTEST_TRUE=
19905 SELFTEST_FALSE='#'
19906else
19907 SELFTEST_TRUE='#'
19908 SELFTEST_FALSE=
19909fi
19910
19911
mmentovai8c2a4de2006-09-20 16:20:15 +000019912ac_config_files="$ac_config_files Makefile"
brynercb91a2f2006-08-25 21:14:45 +000019913
19914cat >confcache <<\_ACEOF
19915# This file is a shell script that caches the results of configure
19916# tests run on this system so they can be shared between configure
19917# scripts and configure runs, see configure's option --config-cache.
19918# It is not useful on other systems. If it contains results you don't
19919# want to keep, you may remove or edit it.
19920#
19921# config.status only pays attention to the cache file if you give it
19922# the --recheck option to rerun configure.
19923#
19924# `ac_cv_env_foo' variables (set or unset) will be overridden when
19925# loading this file, other *unset* `ac_cv_foo' will be assigned the
19926# following values.
19927
19928_ACEOF
19929
19930# The following way of writing the cache mishandles newlines in values,
19931# but we know of no workaround that is simple, portable, and efficient.
mmentovai8c2a4de2006-09-20 16:20:15 +000019932# So, we kill variables containing newlines.
brynercb91a2f2006-08-25 21:14:45 +000019933# Ultrix sh set writes to stderr and can't be redirected directly,
19934# and sets the high bit in the cache file unless we assign to the vars.
mmentovai8c2a4de2006-09-20 16:20:15 +000019935(
19936 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19937 eval ac_val=\$$ac_var
19938 case $ac_val in #(
19939 *${as_nl}*)
19940 case $ac_var in #(
19941 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19942echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19943 esac
19944 case $ac_var in #(
19945 _ | IFS | as_nl) ;; #(
19946 *) $as_unset $ac_var ;;
19947 esac ;;
19948 esac
19949 done
19950
brynercb91a2f2006-08-25 21:14:45 +000019951 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +000019952 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19953 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +000019954 # `set' does not quote correctly, so add quotes (double-quote
19955 # substitution turns \\\\ into \\, and sed turns \\ into \).
19956 sed -n \
19957 "s/'/'\\\\''/g;
19958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mmentovai8c2a4de2006-09-20 16:20:15 +000019959 ;; #(
brynercb91a2f2006-08-25 21:14:45 +000019960 *)
19961 # `set' quotes correctly as required by POSIX, so do not add quotes.
mmentovai8c2a4de2006-09-20 16:20:15 +000019962 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +000019963 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000019964 esac |
19965 sort
19966) |
brynercb91a2f2006-08-25 21:14:45 +000019967 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +000019968 /^ac_cv_env_/b end
brynercb91a2f2006-08-25 21:14:45 +000019969 t clear
mmentovai8c2a4de2006-09-20 16:20:15 +000019970 :clear
brynercb91a2f2006-08-25 21:14:45 +000019971 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19972 t end
mmentovai8c2a4de2006-09-20 16:20:15 +000019973 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19974 :end' >>confcache
19975if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19976 if test -w "$cache_file"; then
19977 test "x$cache_file" != "x/dev/null" &&
19978 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19979echo "$as_me: updating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000019980 cat confcache >$cache_file
19981 else
mmentovai8c2a4de2006-09-20 16:20:15 +000019982 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19983echo "$as_me: not updating unwritable cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000019984 fi
19985fi
19986rm -f confcache
19987
19988test "x$prefix" = xNONE && prefix=$ac_default_prefix
19989# Let make expand exec_prefix.
19990test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19991
brynercb91a2f2006-08-25 21:14:45 +000019992DEFS=-DHAVE_CONFIG_H
19993
19994ac_libobjs=
19995ac_ltlibobjs=
19996for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19997 # 1. Remove the extension, and $U if already installed.
mmentovai8c2a4de2006-09-20 16:20:15 +000019998 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19999 ac_i=`echo "$ac_i" | sed "$ac_script"`
20000 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20001 # will be set to the directory where LIBOBJS objects are built.
20002 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20003 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
brynercb91a2f2006-08-25 21:14:45 +000020004done
20005LIBOBJS=$ac_libobjs
20006
20007LTLIBOBJS=$ac_ltlibobjs
20008
20009
20010if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20011 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20012Usually this means the macro was only invoked conditionally." >&5
20013echo "$as_me: error: conditional \"AMDEP\" was never defined.
20014Usually this means the macro was only invoked conditionally." >&2;}
20015 { (exit 1); exit 1; }; }
20016fi
20017if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20018 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20019Usually this means the macro was only invoked conditionally." >&5
20020echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20021Usually this means the macro was only invoked conditionally." >&2;}
20022 { (exit 1); exit 1; }; }
20023fi
20024if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20025 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20026Usually this means the macro was only invoked conditionally." >&5
20027echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20028Usually this means the macro was only invoked conditionally." >&2;}
20029 { (exit 1); exit 1; }; }
20030fi
mmentovai0dbedc92006-09-25 21:16:15 +000020031if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
20032 { { echo "$as_me:$LINENO: error: conditional \"SELFTEST\" was never defined.
20033Usually this means the macro was only invoked conditionally." >&5
20034echo "$as_me: error: conditional \"SELFTEST\" was never defined.
20035Usually this means the macro was only invoked conditionally." >&2;}
20036 { (exit 1); exit 1; }; }
20037fi
brynercb91a2f2006-08-25 21:14:45 +000020038
20039: ${CONFIG_STATUS=./config.status}
20040ac_clean_files_save=$ac_clean_files
20041ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20042{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20043echo "$as_me: creating $CONFIG_STATUS" >&6;}
20044cat >$CONFIG_STATUS <<_ACEOF
20045#! $SHELL
20046# Generated by $as_me.
20047# Run this file to recreate the current configuration.
20048# Compiler output produced by configure, useful for debugging
20049# configure, is in config.log if it exists.
20050
20051debug=false
20052ac_cs_recheck=false
20053ac_cs_silent=false
20054SHELL=\${CONFIG_SHELL-$SHELL}
20055_ACEOF
20056
20057cat >>$CONFIG_STATUS <<\_ACEOF
20058## --------------------- ##
20059## M4sh Initialization. ##
20060## --------------------- ##
20061
20062# Be Bourne compatible
20063if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20064 emulate sh
20065 NULLCMD=:
20066 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20067 # is contrary to our usage. Disable this feature.
20068 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000020069 setopt NO_GLOB_SUBST
20070else
20071 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
brynercb91a2f2006-08-25 21:14:45 +000020072fi
mmentovai8c2a4de2006-09-20 16:20:15 +000020073BIN_SH=xpg4; export BIN_SH # for Tru64
brynercb91a2f2006-08-25 21:14:45 +000020074DUALCASE=1; export DUALCASE # for MKS sh
20075
brynercb91a2f2006-08-25 21:14:45 +000020076
mmentovai8c2a4de2006-09-20 16:20:15 +000020077# PATH needs CR
brynercb91a2f2006-08-25 21:14:45 +000020078# Avoid depending upon Character Ranges.
20079as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20080as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20081as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20082as_cr_digits='0123456789'
20083as_cr_alnum=$as_cr_Letters$as_cr_digits
20084
20085# The user is always right.
20086if test "${PATH_SEPARATOR+set}" != set; then
20087 echo "#! /bin/sh" >conf$$.sh
20088 echo "exit 0" >>conf$$.sh
20089 chmod +x conf$$.sh
20090 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20091 PATH_SEPARATOR=';'
20092 else
20093 PATH_SEPARATOR=:
20094 fi
20095 rm -f conf$$.sh
20096fi
20097
mmentovai8c2a4de2006-09-20 16:20:15 +000020098# Support unset when possible.
20099if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20100 as_unset=unset
20101else
20102 as_unset=false
20103fi
brynercb91a2f2006-08-25 21:14:45 +000020104
mmentovai8c2a4de2006-09-20 16:20:15 +000020105
20106# IFS
20107# We need space, tab and new line, in precisely that order. Quoting is
20108# there to prevent editors from complaining about space-tab.
20109# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20110# splitting by setting IFS to empty value.)
20111as_nl='
20112'
20113IFS=" "" $as_nl"
20114
20115# Find who we are. Look in the path if we contain no directory separator.
20116case $0 in
20117 *[\\/]* ) as_myself=$0 ;;
20118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000020119for as_dir in $PATH
20120do
20121 IFS=$as_save_IFS
20122 test -z "$as_dir" && as_dir=.
20123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20124done
mmentovai8c2a4de2006-09-20 16:20:15 +000020125IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +000020126
mmentovai8c2a4de2006-09-20 16:20:15 +000020127 ;;
20128esac
20129# We did not find ourselves, most probably we were run as `sh COMMAND'
20130# in which case we are not to be found in the path.
20131if test "x$as_myself" = x; then
20132 as_myself=$0
20133fi
20134if test ! -f "$as_myself"; then
20135 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20136 { (exit 1); exit 1; }
20137fi
20138
20139# Work around bugs in pre-3.0 UWIN ksh.
20140for as_var in ENV MAIL MAILPATH
20141do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20142done
20143PS1='$ '
20144PS2='> '
20145PS4='+ '
20146
20147# NLS nuisances.
20148for as_var in \
20149 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20150 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20151 LC_TELEPHONE LC_TIME
brynercb91a2f2006-08-25 21:14:45 +000020152do
mmentovai8c2a4de2006-09-20 16:20:15 +000020153 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20154 eval $as_var=C; export $as_var
20155 else
20156 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20157 fi
20158done
20159
20160# Required to use basename.
20161if expr a : '\(a\)' >/dev/null 2>&1 &&
20162 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20163 as_expr=expr
20164else
20165 as_expr=false
20166fi
20167
20168if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20169 as_basename=basename
20170else
20171 as_basename=false
20172fi
20173
20174
20175# Name of the executable.
20176as_me=`$as_basename -- "$0" ||
20177$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20178 X"$0" : 'X\(//\)$' \| \
20179 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20180echo X/"$0" |
20181 sed '/^.*\/\([^/][^/]*\)\/*$/{
20182 s//\1/
20183 q
20184 }
20185 /^X\/\(\/\/\)$/{
20186 s//\1/
20187 q
20188 }
20189 /^X\/\(\/\).*/{
20190 s//\1/
20191 q
20192 }
20193 s/.*/./; q'`
20194
20195# CDPATH.
20196$as_unset CDPATH
20197
20198
20199
brynercb91a2f2006-08-25 21:14:45 +000020200 as_lineno_1=$LINENO
20201 as_lineno_2=$LINENO
brynercb91a2f2006-08-25 21:14:45 +000020202 test "x$as_lineno_1" != "x$as_lineno_2" &&
mmentovai8c2a4de2006-09-20 16:20:15 +000020203 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
brynercb91a2f2006-08-25 21:14:45 +000020204
20205 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20206 # uniformly replaced by the line number. The first 'sed' inserts a
mmentovai8c2a4de2006-09-20 16:20:15 +000020207 # line-number line after each line using $LINENO; the second 'sed'
20208 # does the real work. The second script uses 'N' to pair each
20209 # line-number line with the line containing $LINENO, and appends
20210 # trailing '-' during substitution so that $LINENO is not a special
20211 # case at line end.
brynercb91a2f2006-08-25 21:14:45 +000020212 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mmentovai8c2a4de2006-09-20 16:20:15 +000020213 # scripts with optimization help from Paolo Bonzini. Blame Lee
20214 # E. McMahon (1931-1989) for sed's syntax. :-)
20215 sed -n '
20216 p
20217 /[$]LINENO/=
20218 ' <$as_myself |
brynercb91a2f2006-08-25 21:14:45 +000020219 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +000020220 s/[$]LINENO.*/&-/
20221 t lineno
20222 b
20223 :lineno
brynercb91a2f2006-08-25 21:14:45 +000020224 N
mmentovai8c2a4de2006-09-20 16:20:15 +000020225 :loop
20226 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
brynercb91a2f2006-08-25 21:14:45 +000020227 t loop
mmentovai8c2a4de2006-09-20 16:20:15 +000020228 s/-\n.*//
brynercb91a2f2006-08-25 21:14:45 +000020229 ' >$as_me.lineno &&
mmentovai8c2a4de2006-09-20 16:20:15 +000020230 chmod +x "$as_me.lineno" ||
20231 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
brynercb91a2f2006-08-25 21:14:45 +000020232 { (exit 1); exit 1; }; }
20233
20234 # Don't try to exec as it changes $[0], causing all sort of problems
20235 # (the dirname of $[0] is not the place where we might find the
mmentovai8c2a4de2006-09-20 16:20:15 +000020236 # original and so on. Autoconf is especially sensitive to this).
20237 . "./$as_me.lineno"
brynercb91a2f2006-08-25 21:14:45 +000020238 # Exit status is that of the last command.
20239 exit
20240}
20241
20242
mmentovai8c2a4de2006-09-20 16:20:15 +000020243if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20244 as_dirname=dirname
20245else
20246 as_dirname=false
20247fi
20248
20249ECHO_C= ECHO_N= ECHO_T=
20250case `echo -n x` in
20251-n*)
20252 case `echo 'x\c'` in
20253 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20254 *) ECHO_C='\c';;
20255 esac;;
20256*)
20257 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +000020258esac
20259
mmentovai8c2a4de2006-09-20 16:20:15 +000020260if expr a : '\(a\)' >/dev/null 2>&1 &&
20261 test "X`expr 00001 : '.*\(...\)'`" = X001; then
brynercb91a2f2006-08-25 21:14:45 +000020262 as_expr=expr
20263else
20264 as_expr=false
20265fi
20266
20267rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +000020268if test -d conf$$.dir; then
20269 rm -f conf$$.dir/conf$$.file
20270else
20271 rm -f conf$$.dir
20272 mkdir conf$$.dir
20273fi
brynercb91a2f2006-08-25 21:14:45 +000020274echo >conf$$.file
20275if ln -s conf$$.file conf$$ 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000020276 as_ln_s='ln -s'
20277 # ... but there are two gotchas:
20278 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20279 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20280 # In both cases, we have to default to `cp -p'.
20281 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
brynercb91a2f2006-08-25 21:14:45 +000020282 as_ln_s='cp -p'
brynercb91a2f2006-08-25 21:14:45 +000020283elif ln conf$$.file conf$$ 2>/dev/null; then
20284 as_ln_s=ln
20285else
20286 as_ln_s='cp -p'
20287fi
mmentovai8c2a4de2006-09-20 16:20:15 +000020288rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20289rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000020290
20291if mkdir -p . 2>/dev/null; then
20292 as_mkdir_p=:
20293else
20294 test -d ./-p && rmdir ./-p
20295 as_mkdir_p=false
20296fi
20297
mmentovai8c2a4de2006-09-20 16:20:15 +000020298# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20299# systems may use methods other than mode bits to determine executability.
20300cat >conf$$.file <<_ASEOF
20301#! /bin/sh
20302exit 0
20303_ASEOF
20304chmod +x conf$$.file
20305if test -x conf$$.file >/dev/null 2>&1; then
20306 as_executable_p="test -x"
20307else
20308 as_executable_p=:
20309fi
20310rm -f conf$$.file
brynercb91a2f2006-08-25 21:14:45 +000020311
20312# Sed expression to map a string onto a valid CPP name.
20313as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20314
20315# Sed expression to map a string onto a valid variable name.
20316as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20317
20318
brynercb91a2f2006-08-25 21:14:45 +000020319exec 6>&1
20320
mmentovai8c2a4de2006-09-20 16:20:15 +000020321# Save the log message, to keep $[0] and so on meaningful, and to
brynercb91a2f2006-08-25 21:14:45 +000020322# report actual input values of CONFIG_FILES etc. instead of their
mmentovai8c2a4de2006-09-20 16:20:15 +000020323# values after options handling.
20324ac_log="
brynercb91a2f2006-08-25 21:14:45 +000020325This file was extended by airbag $as_me 0.1, which was
mmentovai8c2a4de2006-09-20 16:20:15 +000020326generated by GNU Autoconf 2.60. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +000020327
20328 CONFIG_FILES = $CONFIG_FILES
20329 CONFIG_HEADERS = $CONFIG_HEADERS
20330 CONFIG_LINKS = $CONFIG_LINKS
20331 CONFIG_COMMANDS = $CONFIG_COMMANDS
20332 $ $0 $@
20333
mmentovai8c2a4de2006-09-20 16:20:15 +000020334on `(hostname || uname -n) 2>/dev/null | sed 1q`
20335"
20336
brynercb91a2f2006-08-25 21:14:45 +000020337_ACEOF
20338
mmentovai8c2a4de2006-09-20 16:20:15 +000020339cat >>$CONFIG_STATUS <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020340# Files that config.status was made for.
mmentovai8c2a4de2006-09-20 16:20:15 +000020341config_files="$ac_config_files"
20342config_headers="$ac_config_headers"
20343config_commands="$ac_config_commands"
brynercb91a2f2006-08-25 21:14:45 +000020344
mmentovai8c2a4de2006-09-20 16:20:15 +000020345_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020346
20347cat >>$CONFIG_STATUS <<\_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020348ac_cs_usage="\
20349\`$as_me' instantiates files from templates according to the
20350current configuration.
20351
20352Usage: $0 [OPTIONS] [FILE]...
20353
20354 -h, --help print this help, then exit
20355 -V, --version print version number, then exit
20356 -q, --quiet do not print progress messages
20357 -d, --debug don't remove temporary files
20358 --recheck update $as_me by reconfiguring in the same conditions
20359 --file=FILE[:TEMPLATE]
20360 instantiate the configuration file FILE
20361 --header=FILE[:TEMPLATE]
20362 instantiate the configuration header FILE
20363
20364Configuration files:
20365$config_files
20366
20367Configuration headers:
20368$config_headers
20369
20370Configuration commands:
20371$config_commands
20372
20373Report bugs to <bug-autoconf@gnu.org>."
brynercb91a2f2006-08-25 21:14:45 +000020374
mmentovai8c2a4de2006-09-20 16:20:15 +000020375_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020376cat >>$CONFIG_STATUS <<_ACEOF
20377ac_cs_version="\\
20378airbag config.status 0.1
mmentovai8c2a4de2006-09-20 16:20:15 +000020379configured by $0, generated by GNU Autoconf 2.60,
20380 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
brynercb91a2f2006-08-25 21:14:45 +000020381
mmentovai8c2a4de2006-09-20 16:20:15 +000020382Copyright (C) 2006 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +000020383This config.status script is free software; the Free Software Foundation
20384gives unlimited permission to copy, distribute and modify it."
mmentovai8c2a4de2006-09-20 16:20:15 +000020385
20386ac_pwd='$ac_pwd'
20387srcdir='$srcdir'
20388INSTALL='$INSTALL'
brynercb91a2f2006-08-25 21:14:45 +000020389_ACEOF
20390
20391cat >>$CONFIG_STATUS <<\_ACEOF
20392# If no file are specified by the user, then we need to provide default
20393# value. By we need to know if files were specified by the user.
20394ac_need_defaults=:
20395while test $# != 0
20396do
20397 case $1 in
20398 --*=*)
mmentovai8c2a4de2006-09-20 16:20:15 +000020399 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20400 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +000020401 ac_shift=:
20402 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000020403 *)
brynercb91a2f2006-08-25 21:14:45 +000020404 ac_option=$1
20405 ac_optarg=$2
20406 ac_shift=shift
20407 ;;
brynercb91a2f2006-08-25 21:14:45 +000020408 esac
20409
20410 case $ac_option in
20411 # Handling of the options.
brynercb91a2f2006-08-25 21:14:45 +000020412 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20413 ac_cs_recheck=: ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000020414 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20415 echo "$ac_cs_version"; exit ;;
20416 --debug | --debu | --deb | --de | --d | -d )
brynercb91a2f2006-08-25 21:14:45 +000020417 debug=: ;;
20418 --file | --fil | --fi | --f )
20419 $ac_shift
20420 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20421 ac_need_defaults=false;;
20422 --header | --heade | --head | --hea )
20423 $ac_shift
20424 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20425 ac_need_defaults=false;;
mmentovai8c2a4de2006-09-20 16:20:15 +000020426 --he | --h)
20427 # Conflict between --help and --header
20428 { echo "$as_me: error: ambiguous option: $1
20429Try \`$0 --help' for more information." >&2
20430 { (exit 1); exit 1; }; };;
20431 --help | --hel | -h )
20432 echo "$ac_cs_usage"; exit ;;
brynercb91a2f2006-08-25 21:14:45 +000020433 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20434 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20435 ac_cs_silent=: ;;
20436
20437 # This is an error.
mmentovai8c2a4de2006-09-20 16:20:15 +000020438 -*) { echo "$as_me: error: unrecognized option: $1
20439Try \`$0 --help' for more information." >&2
brynercb91a2f2006-08-25 21:14:45 +000020440 { (exit 1); exit 1; }; } ;;
20441
mmentovai8c2a4de2006-09-20 16:20:15 +000020442 *) ac_config_targets="$ac_config_targets $1"
20443 ac_need_defaults=false ;;
brynercb91a2f2006-08-25 21:14:45 +000020444
20445 esac
20446 shift
20447done
20448
20449ac_configure_extra_args=
20450
20451if $ac_cs_silent; then
20452 exec 6>/dev/null
20453 ac_configure_extra_args="$ac_configure_extra_args --silent"
20454fi
20455
20456_ACEOF
20457cat >>$CONFIG_STATUS <<_ACEOF
20458if \$ac_cs_recheck; then
mmentovai8c2a4de2006-09-20 16:20:15 +000020459 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20460 CONFIG_SHELL=$SHELL
20461 export CONFIG_SHELL
20462 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
brynercb91a2f2006-08-25 21:14:45 +000020463fi
20464
20465_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000020466cat >>$CONFIG_STATUS <<\_ACEOF
20467exec 5>>config.log
20468{
20469 echo
20470 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20471## Running $as_me. ##
20472_ASBOX
20473 echo "$ac_log"
20474} >&5
brynercb91a2f2006-08-25 21:14:45 +000020475
mmentovai8c2a4de2006-09-20 16:20:15 +000020476_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020477cat >>$CONFIG_STATUS <<_ACEOF
20478#
mmentovai8c2a4de2006-09-20 16:20:15 +000020479# INIT-COMMANDS
brynercb91a2f2006-08-25 21:14:45 +000020480#
brynercb91a2f2006-08-25 21:14:45 +000020481AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20482
20483_ACEOF
20484
brynercb91a2f2006-08-25 21:14:45 +000020485cat >>$CONFIG_STATUS <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000020486
20487# Handling of arguments.
brynercb91a2f2006-08-25 21:14:45 +000020488for ac_config_target in $ac_config_targets
20489do
mmentovai8c2a4de2006-09-20 16:20:15 +000020490 case $ac_config_target in
20491 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20492 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20493 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20494
brynercb91a2f2006-08-25 21:14:45 +000020495 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20496echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20497 { (exit 1); exit 1; }; };;
20498 esac
20499done
20500
mmentovai8c2a4de2006-09-20 16:20:15 +000020501
brynercb91a2f2006-08-25 21:14:45 +000020502# If the user did not use the arguments to specify the items to instantiate,
20503# then the envvar interface is used. Set only those that are not.
20504# We use the long form for the default assignment because of an extremely
20505# bizarre bug on SunOS 4.1.3.
20506if $ac_need_defaults; then
20507 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20508 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20509 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20510fi
20511
20512# Have a temporary directory for convenience. Make it in the build tree
mmentovai8c2a4de2006-09-20 16:20:15 +000020513# simply because there is no reason against having it here, and in addition,
brynercb91a2f2006-08-25 21:14:45 +000020514# creating and moving files from /tmp can sometimes cause problems.
mmentovai8c2a4de2006-09-20 16:20:15 +000020515# Hook for its removal unless debugging.
20516# Note that there is a small window in which the directory will not be cleaned:
20517# after its creation but before its name has been assigned to `$tmp'.
brynercb91a2f2006-08-25 21:14:45 +000020518$debug ||
20519{
mmentovai8c2a4de2006-09-20 16:20:15 +000020520 tmp=
20521 trap 'exit_status=$?
20522 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20523' 0
brynercb91a2f2006-08-25 21:14:45 +000020524 trap '{ (exit 1); exit 1; }' 1 2 13 15
20525}
brynercb91a2f2006-08-25 21:14:45 +000020526# Create a (secure) tmp directory for tmp files.
20527
20528{
mmentovai8c2a4de2006-09-20 16:20:15 +000020529 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
brynercb91a2f2006-08-25 21:14:45 +000020530 test -n "$tmp" && test -d "$tmp"
20531} ||
20532{
mmentovai8c2a4de2006-09-20 16:20:15 +000020533 tmp=./conf$$-$RANDOM
20534 (umask 077 && mkdir "$tmp")
brynercb91a2f2006-08-25 21:14:45 +000020535} ||
20536{
20537 echo "$me: cannot create a temporary directory in ." >&2
20538 { (exit 1); exit 1; }
20539}
20540
brynercb91a2f2006-08-25 21:14:45 +000020541#
mmentovai8c2a4de2006-09-20 16:20:15 +000020542# Set up the sed scripts for CONFIG_FILES section.
brynercb91a2f2006-08-25 21:14:45 +000020543#
20544
20545# No need to generate the scripts if there are no CONFIG_FILES.
20546# This happens for instance when ./config.status config.h
mmentovai8c2a4de2006-09-20 16:20:15 +000020547if test -n "$CONFIG_FILES"; then
brynercb91a2f2006-08-25 21:14:45 +000020548
20549_ACEOF
20550
mmentovai8c2a4de2006-09-20 16:20:15 +000020551
20552
20553ac_delim='%!_!# '
20554for ac_last_try in false false false false false :; do
20555 cat >conf$$subs.sed <<_ACEOF
20556SHELL!$SHELL$ac_delim
20557PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20558PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20559PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20560PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20561PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20562PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20563exec_prefix!$exec_prefix$ac_delim
20564prefix!$prefix$ac_delim
20565program_transform_name!$program_transform_name$ac_delim
20566bindir!$bindir$ac_delim
20567sbindir!$sbindir$ac_delim
20568libexecdir!$libexecdir$ac_delim
20569datarootdir!$datarootdir$ac_delim
20570datadir!$datadir$ac_delim
20571sysconfdir!$sysconfdir$ac_delim
20572sharedstatedir!$sharedstatedir$ac_delim
20573localstatedir!$localstatedir$ac_delim
20574includedir!$includedir$ac_delim
20575oldincludedir!$oldincludedir$ac_delim
20576docdir!$docdir$ac_delim
20577infodir!$infodir$ac_delim
20578htmldir!$htmldir$ac_delim
20579dvidir!$dvidir$ac_delim
20580pdfdir!$pdfdir$ac_delim
20581psdir!$psdir$ac_delim
20582libdir!$libdir$ac_delim
20583localedir!$localedir$ac_delim
20584mandir!$mandir$ac_delim
20585DEFS!$DEFS$ac_delim
20586ECHO_C!$ECHO_C$ac_delim
20587ECHO_N!$ECHO_N$ac_delim
20588ECHO_T!$ECHO_T$ac_delim
20589LIBS!$LIBS$ac_delim
20590build_alias!$build_alias$ac_delim
20591host_alias!$host_alias$ac_delim
20592target_alias!$target_alias$ac_delim
20593INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20594INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20595INSTALL_DATA!$INSTALL_DATA$ac_delim
20596CYGPATH_W!$CYGPATH_W$ac_delim
20597PACKAGE!$PACKAGE$ac_delim
20598VERSION!$VERSION$ac_delim
20599ACLOCAL!$ACLOCAL$ac_delim
20600AUTOCONF!$AUTOCONF$ac_delim
20601AUTOMAKE!$AUTOMAKE$ac_delim
20602AUTOHEADER!$AUTOHEADER$ac_delim
20603MAKEINFO!$MAKEINFO$ac_delim
20604install_sh!$install_sh$ac_delim
20605STRIP!$STRIP$ac_delim
20606INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20607mkdir_p!$mkdir_p$ac_delim
20608AWK!$AWK$ac_delim
20609SET_MAKE!$SET_MAKE$ac_delim
20610am__leading_dot!$am__leading_dot$ac_delim
20611AMTAR!$AMTAR$ac_delim
20612am__tar!$am__tar$ac_delim
20613am__untar!$am__untar$ac_delim
20614CC!$CC$ac_delim
20615CFLAGS!$CFLAGS$ac_delim
20616LDFLAGS!$LDFLAGS$ac_delim
20617CPPFLAGS!$CPPFLAGS$ac_delim
20618ac_ct_CC!$ac_ct_CC$ac_delim
20619EXEEXT!$EXEEXT$ac_delim
20620OBJEXT!$OBJEXT$ac_delim
20621DEPDIR!$DEPDIR$ac_delim
20622am__include!$am__include$ac_delim
20623am__quote!$am__quote$ac_delim
20624AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20625AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20626AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20627CCDEPMODE!$CCDEPMODE$ac_delim
20628am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20629am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20630CPP!$CPP$ac_delim
20631CXX!$CXX$ac_delim
20632CXXFLAGS!$CXXFLAGS$ac_delim
20633ac_ct_CXX!$ac_ct_CXX$ac_delim
20634CXXDEPMODE!$CXXDEPMODE$ac_delim
20635am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20636am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20637build!$build$ac_delim
20638build_cpu!$build_cpu$ac_delim
20639build_vendor!$build_vendor$ac_delim
20640build_os!$build_os$ac_delim
20641host!$host$ac_delim
20642host_cpu!$host_cpu$ac_delim
20643host_vendor!$host_vendor$ac_delim
20644host_os!$host_os$ac_delim
20645GREP!$GREP$ac_delim
20646EGREP!$EGREP$ac_delim
20647LN_S!$LN_S$ac_delim
20648ECHO!$ECHO$ac_delim
20649AR!$AR$ac_delim
20650RANLIB!$RANLIB$ac_delim
20651CXXCPP!$CXXCPP$ac_delim
20652F77!$F77$ac_delim
20653_ACEOF
20654
20655 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20656 break
20657 elif $ac_last_try; then
20658 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20659echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20660 { (exit 1); exit 1; }; }
20661 else
20662 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
brynercb91a2f2006-08-25 21:14:45 +000020663 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000020664done
20665
20666ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20667if test -n "$ac_eof"; then
20668 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20669 ac_eof=`expr $ac_eof + 1`
20670fi
20671
20672cat >>$CONFIG_STATUS <<_ACEOF
20673cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20674/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20675_ACEOF
20676sed '
20677s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20678s/^/s,@/; s/!/@,|#_!!_#|/
20679:n
20680t n
20681s/'"$ac_delim"'$/,g/; t
20682s/$/\\/; p
20683N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20684' >>$CONFIG_STATUS <conf$$subs.sed
20685rm -f conf$$subs.sed
20686cat >>$CONFIG_STATUS <<_ACEOF
20687CEOF$ac_eof
20688_ACEOF
20689
20690
20691ac_delim='%!_!# '
20692for ac_last_try in false false false false false :; do
20693 cat >conf$$subs.sed <<_ACEOF
20694FFLAGS!$FFLAGS$ac_delim
20695ac_ct_F77!$ac_ct_F77$ac_delim
20696LIBTOOL!$LIBTOOL$ac_delim
20697LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
mmentovai0dbedc92006-09-25 21:16:15 +000020698SELFTEST_TRUE!$SELFTEST_TRUE$ac_delim
20699SELFTEST_FALSE!$SELFTEST_FALSE$ac_delim
mmentovai8c2a4de2006-09-20 16:20:15 +000020700LIBOBJS!$LIBOBJS$ac_delim
20701LTLIBOBJS!$LTLIBOBJS$ac_delim
20702_ACEOF
20703
mmentovai0dbedc92006-09-25 21:16:15 +000020704 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
mmentovai8c2a4de2006-09-20 16:20:15 +000020705 break
20706 elif $ac_last_try; then
20707 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20708echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20709 { (exit 1); exit 1; }; }
20710 else
20711 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20712 fi
20713done
20714
20715ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20716if test -n "$ac_eof"; then
20717 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20718 ac_eof=`expr $ac_eof + 1`
20719fi
20720
20721cat >>$CONFIG_STATUS <<_ACEOF
20722cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20723/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20724_ACEOF
20725sed '
20726s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20727s/^/s,@/; s/!/@,|#_!!_#|/
20728:n
20729t n
20730s/'"$ac_delim"'$/,g/; t
20731s/$/\\/; p
20732N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20733' >>$CONFIG_STATUS <conf$$subs.sed
20734rm -f conf$$subs.sed
20735cat >>$CONFIG_STATUS <<_ACEOF
20736:end
20737s/|#_!!_#|//g
20738CEOF$ac_eof
20739_ACEOF
20740
20741
20742# VPATH may cause trouble with some makes, so we remove $(srcdir),
20743# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20744# trailing colons and then remove the whole line if VPATH becomes empty
20745# (actually we leave an empty line to preserve line numbers).
20746if test "x$srcdir" = x.; then
20747 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20748s/:*\$(srcdir):*/:/
20749s/:*\${srcdir}:*/:/
20750s/:*@srcdir@:*/:/
20751s/^\([^=]*=[ ]*\):*/\1/
20752s/:*$//
20753s/^[^=]*=[ ]*$//
20754}'
20755fi
20756
20757cat >>$CONFIG_STATUS <<\_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020758fi # test -n "$CONFIG_FILES"
20759
mmentovai8c2a4de2006-09-20 16:20:15 +000020760
20761for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20762do
20763 case $ac_tag in
20764 :[FHLC]) ac_mode=$ac_tag; continue;;
20765 esac
20766 case $ac_mode$ac_tag in
20767 :[FHL]*:*);;
20768 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20769echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20770 { (exit 1); exit 1; }; };;
20771 :[FH]-) ac_tag=-:-;;
20772 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20773 esac
20774 ac_save_IFS=$IFS
20775 IFS=:
20776 set x $ac_tag
20777 IFS=$ac_save_IFS
20778 shift
20779 ac_file=$1
20780 shift
20781
20782 case $ac_mode in
20783 :L) ac_source=$1;;
20784 :[FH])
20785 ac_file_inputs=
20786 for ac_f
20787 do
20788 case $ac_f in
20789 -) ac_f="$tmp/stdin";;
20790 *) # Look for the file first in the build tree, then in the source tree
20791 # (if the path is not absolute). The absolute path cannot be DOS-style,
20792 # because $ac_f cannot contain `:'.
20793 test -f "$ac_f" ||
20794 case $ac_f in
20795 [\\/$]*) false;;
20796 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20797 esac ||
20798 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20799echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20800 { (exit 1); exit 1; }; };;
20801 esac
20802 ac_file_inputs="$ac_file_inputs $ac_f"
20803 done
20804
20805 # Let's still pretend it is `configure' which instantiates (i.e., don't
20806 # use $as_me), people would be surprised to read:
20807 # /* config.h. Generated by config.status. */
20808 configure_input="Generated from "`IFS=:
20809 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20810 if test x"$ac_file" != x-; then
20811 configure_input="$ac_file. $configure_input"
20812 { echo "$as_me:$LINENO: creating $ac_file" >&5
20813echo "$as_me: creating $ac_file" >&6;}
20814 fi
20815
20816 case $ac_tag in
20817 *:-:* | *:-) cat >"$tmp/stdin";;
20818 esac
20819 ;;
brynercb91a2f2006-08-25 21:14:45 +000020820 esac
20821
mmentovai8c2a4de2006-09-20 16:20:15 +000020822 ac_dir=`$as_dirname -- "$ac_file" ||
brynercb91a2f2006-08-25 21:14:45 +000020823$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20824 X"$ac_file" : 'X\(//\)[^/]' \| \
20825 X"$ac_file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000020826 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000020827echo X"$ac_file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000020828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20829 s//\1/
20830 q
20831 }
20832 /^X\(\/\/\)[^/].*/{
20833 s//\1/
20834 q
20835 }
20836 /^X\(\/\/\)$/{
20837 s//\1/
20838 q
20839 }
20840 /^X\(\/\).*/{
20841 s//\1/
20842 q
20843 }
20844 s/.*/./; q'`
20845 { as_dir="$ac_dir"
20846 case $as_dir in #(
20847 -*) as_dir=./$as_dir;;
20848 esac
20849 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
brynercb91a2f2006-08-25 21:14:45 +000020850 as_dirs=
mmentovai8c2a4de2006-09-20 16:20:15 +000020851 while :; do
20852 case $as_dir in #(
20853 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20854 *) as_qdir=$as_dir;;
20855 esac
20856 as_dirs="'$as_qdir' $as_dirs"
20857 as_dir=`$as_dirname -- "$as_dir" ||
brynercb91a2f2006-08-25 21:14:45 +000020858$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20859 X"$as_dir" : 'X\(//\)[^/]' \| \
20860 X"$as_dir" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000020861 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000020862echo X"$as_dir" |
mmentovai8c2a4de2006-09-20 16:20:15 +000020863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20864 s//\1/
20865 q
20866 }
20867 /^X\(\/\/\)[^/].*/{
20868 s//\1/
20869 q
20870 }
20871 /^X\(\/\/\)$/{
20872 s//\1/
20873 q
20874 }
20875 /^X\(\/\).*/{
20876 s//\1/
20877 q
20878 }
20879 s/.*/./; q'`
20880 test -d "$as_dir" && break
brynercb91a2f2006-08-25 21:14:45 +000020881 done
mmentovai8c2a4de2006-09-20 16:20:15 +000020882 test -z "$as_dirs" || eval "mkdir $as_dirs"
20883 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20884echo "$as_me: error: cannot create directory $as_dir" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000020885 { (exit 1); exit 1; }; }; }
brynercb91a2f2006-08-25 21:14:45 +000020886 ac_builddir=.
20887
mmentovai8c2a4de2006-09-20 16:20:15 +000020888case "$ac_dir" in
20889.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20890*)
brynercb91a2f2006-08-25 21:14:45 +000020891 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
mmentovai8c2a4de2006-09-20 16:20:15 +000020892 # A ".." for each directory in $ac_dir_suffix.
20893 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20894 case $ac_top_builddir_sub in
20895 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20896 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20897 esac ;;
20898esac
20899ac_abs_top_builddir=$ac_pwd
20900ac_abs_builddir=$ac_pwd$ac_dir_suffix
20901# for backward compatibility:
20902ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +000020903
20904case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +000020905 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +000020906 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +000020907 ac_top_srcdir=$ac_top_builddir_sub
20908 ac_abs_top_srcdir=$ac_pwd ;;
20909 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +000020910 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +000020911 ac_top_srcdir=$srcdir
20912 ac_abs_top_srcdir=$srcdir ;;
20913 *) # Relative name.
20914 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20915 ac_top_srcdir=$ac_top_build_prefix$srcdir
20916 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +000020917esac
mmentovai8c2a4de2006-09-20 16:20:15 +000020918ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +000020919
brynercb91a2f2006-08-25 21:14:45 +000020920
mmentovai8c2a4de2006-09-20 16:20:15 +000020921 case $ac_mode in
20922 :F)
20923 #
20924 # CONFIG_FILE
20925 #
brynercb91a2f2006-08-25 21:14:45 +000020926
20927 case $INSTALL in
20928 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000020929 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
brynercb91a2f2006-08-25 21:14:45 +000020930 esac
brynercb91a2f2006-08-25 21:14:45 +000020931_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000020932
20933cat >>$CONFIG_STATUS <<\_ACEOF
20934# If the template does not know about datarootdir, expand it.
20935# FIXME: This hack should be removed a few years after 2.60.
20936ac_datarootdir_hack=; ac_datarootdir_seen=
20937
20938case `sed -n '/datarootdir/ {
20939 p
20940 q
20941}
20942/@datadir@/p
20943/@docdir@/p
20944/@infodir@/p
20945/@localedir@/p
20946/@mandir@/p
20947' $ac_file_inputs` in
20948*datarootdir*) ac_datarootdir_seen=yes;;
20949*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20950 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20951echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20952_ACEOF
20953cat >>$CONFIG_STATUS <<_ACEOF
20954 ac_datarootdir_hack='
20955 s&@datadir@&$datadir&g
20956 s&@docdir@&$docdir&g
20957 s&@infodir@&$infodir&g
20958 s&@localedir@&$localedir&g
20959 s&@mandir@&$mandir&g
20960 s&\\\${datarootdir}&$datarootdir&g' ;;
20961esac
20962_ACEOF
20963
20964# Neutralize VPATH when `$srcdir' = `.'.
20965# Shell code in configure.ac might set extrasub.
20966# FIXME: do we really want to maintain this feature?
brynercb91a2f2006-08-25 21:14:45 +000020967cat >>$CONFIG_STATUS <<_ACEOF
20968 sed "$ac_vpsub
20969$extrasub
20970_ACEOF
20971cat >>$CONFIG_STATUS <<\_ACEOF
20972:t
20973/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
mmentovai8c2a4de2006-09-20 16:20:15 +000020974s&@configure_input@&$configure_input&;t t
20975s&@top_builddir@&$ac_top_builddir_sub&;t t
20976s&@srcdir@&$ac_srcdir&;t t
20977s&@abs_srcdir@&$ac_abs_srcdir&;t t
20978s&@top_srcdir@&$ac_top_srcdir&;t t
20979s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20980s&@builddir@&$ac_builddir&;t t
20981s&@abs_builddir@&$ac_abs_builddir&;t t
20982s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20983s&@INSTALL@&$ac_INSTALL&;t t
20984$ac_datarootdir_hack
20985" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
brynercb91a2f2006-08-25 21:14:45 +000020986
mmentovai8c2a4de2006-09-20 16:20:15 +000020987test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20988 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20989 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20990 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20991which seems to be undefined. Please make sure it is defined." >&5
20992echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20993which seems to be undefined. Please make sure it is defined." >&2;}
brynercb91a2f2006-08-25 21:14:45 +000020994
mmentovai8c2a4de2006-09-20 16:20:15 +000020995 rm -f "$tmp/stdin"
brynercb91a2f2006-08-25 21:14:45 +000020996 case $ac_file in
mmentovai8c2a4de2006-09-20 16:20:15 +000020997 -) cat "$tmp/out"; rm -f "$tmp/out";;
20998 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
brynercb91a2f2006-08-25 21:14:45 +000020999 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000021000 ;;
21001 :H)
21002 #
21003 # CONFIG_HEADER
21004 #
brynercb91a2f2006-08-25 21:14:45 +000021005_ACEOF
21006
mmentovai8c2a4de2006-09-20 16:20:15 +000021007# Transform confdefs.h into a sed script `conftest.defines', that
21008# substitutes the proper values into config.h.in to produce config.h.
21009rm -f conftest.defines conftest.tail
21010# First, append a space to every undef/define line, to ease matching.
21011echo 's/$/ /' >conftest.defines
21012# Then, protect against being on the right side of a sed subst, or in
21013# an unquoted here document, in config.status. If some macros were
21014# called several times there might be several #defines for the same
21015# symbol, which is useless. But do not sort them, since the last
21016# AC_DEFINE must be honored.
21017ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21018# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21019# NAME is the cpp macro being defined, VALUE is the value it is being given.
21020# PARAMS is the parameter list in the macro definition--in most cases, it's
21021# just an empty string.
21022ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21023ac_dB='\\)[ (].*,\\1define\\2'
21024ac_dC=' '
21025ac_dD=' ,'
brynercb91a2f2006-08-25 21:14:45 +000021026
mmentovai8c2a4de2006-09-20 16:20:15 +000021027uniq confdefs.h |
21028 sed -n '
21029 t rset
21030 :rset
21031 s/^[ ]*#[ ]*define[ ][ ]*//
21032 t ok
21033 d
21034 :ok
21035 s/[\\&,]/\\&/g
21036 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21037 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21038 ' >>conftest.defines
21039
21040# Remove the space that was appended to ease matching.
21041# Then replace #undef with comments. This is necessary, for
brynercb91a2f2006-08-25 21:14:45 +000021042# example, in the case of _POSIX_SOURCE, which is predefined and required
21043# on some systems where configure will not decide to define it.
mmentovai8c2a4de2006-09-20 16:20:15 +000021044# (The regexp can be short, since the line contains either #define or #undef.)
21045echo 's/ $//
21046s,^[ #]*u.*,/* & */,' >>conftest.defines
brynercb91a2f2006-08-25 21:14:45 +000021047
mmentovai8c2a4de2006-09-20 16:20:15 +000021048# Break up conftest.defines:
21049ac_max_sed_lines=50
21050
21051# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21052# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21053# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21054# et cetera.
21055ac_in='$ac_file_inputs'
21056ac_out='"$tmp/out1"'
21057ac_nxt='"$tmp/out2"'
21058
21059while :
brynercb91a2f2006-08-25 21:14:45 +000021060do
mmentovai8c2a4de2006-09-20 16:20:15 +000021061 # Write a here document:
21062 cat >>$CONFIG_STATUS <<_ACEOF
21063 # First, check the format of the line:
21064 cat >"\$tmp/defines.sed" <<\\CEOF
21065/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21066/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21067b
21068:def
21069_ACEOF
21070 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
brynercb91a2f2006-08-25 21:14:45 +000021071 echo 'CEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000021072 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21073 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21074 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21075 grep . conftest.tail >/dev/null || break
brynercb91a2f2006-08-25 21:14:45 +000021076 rm -f conftest.defines
21077 mv conftest.tail conftest.defines
21078done
mmentovai8c2a4de2006-09-20 16:20:15 +000021079rm -f conftest.defines conftest.tail
brynercb91a2f2006-08-25 21:14:45 +000021080
mmentovai8c2a4de2006-09-20 16:20:15 +000021081echo "ac_result=$ac_in" >>$CONFIG_STATUS
brynercb91a2f2006-08-25 21:14:45 +000021082cat >>$CONFIG_STATUS <<\_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000021083 if test x"$ac_file" != x-; then
mmentovai8c2a4de2006-09-20 16:20:15 +000021084 echo "/* $configure_input */" >"$tmp/config.h"
21085 cat "$ac_result" >>"$tmp/config.h"
21086 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
brynercb91a2f2006-08-25 21:14:45 +000021087 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21088echo "$as_me: $ac_file is unchanged" >&6;}
21089 else
brynercb91a2f2006-08-25 21:14:45 +000021090 rm -f $ac_file
mmentovai8c2a4de2006-09-20 16:20:15 +000021091 mv "$tmp/config.h" $ac_file
brynercb91a2f2006-08-25 21:14:45 +000021092 fi
21093 else
mmentovai8c2a4de2006-09-20 16:20:15 +000021094 echo "/* $configure_input */"
21095 cat "$ac_result"
brynercb91a2f2006-08-25 21:14:45 +000021096 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000021097 rm -f "$tmp/out12"
brynercb91a2f2006-08-25 21:14:45 +000021098# Compute $ac_file's index in $config_headers.
21099_am_stamp_count=1
21100for _am_header in $config_headers :; do
21101 case $_am_header in
21102 $ac_file | $ac_file:* )
21103 break ;;
21104 * )
21105 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21106 esac
21107done
mmentovai8c2a4de2006-09-20 16:20:15 +000021108echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
brynercb91a2f2006-08-25 21:14:45 +000021109$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21110 X$ac_file : 'X\(//\)[^/]' \| \
21111 X$ac_file : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000021112 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000021113echo X$ac_file |
mmentovai8c2a4de2006-09-20 16:20:15 +000021114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21115 s//\1/
21116 q
21117 }
21118 /^X\(\/\/\)[^/].*/{
21119 s//\1/
21120 q
21121 }
21122 /^X\(\/\/\)$/{
21123 s//\1/
21124 q
21125 }
21126 /^X\(\/\).*/{
21127 s//\1/
21128 q
21129 }
21130 s/.*/./; q'`/stamp-h$_am_stamp_count
21131 ;;
brynercb91a2f2006-08-25 21:14:45 +000021132
mmentovai8c2a4de2006-09-20 16:20:15 +000021133 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21134echo "$as_me: executing $ac_file commands" >&6;}
21135 ;;
21136 esac
brynercb91a2f2006-08-25 21:14:45 +000021137
21138
mmentovai8c2a4de2006-09-20 16:20:15 +000021139 case $ac_file$ac_mode in
21140 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
brynercb91a2f2006-08-25 21:14:45 +000021141 # Strip MF so we end up with the name of the file.
21142 mf=`echo "$mf" | sed -e 's/:.*$//'`
21143 # Check whether this is an Automake generated Makefile or not.
21144 # We used to match only the files named `Makefile.in', but
21145 # some people rename them; so instead we look at the file content.
21146 # Grep'ing the first line is not enough: some people post-process
21147 # each Makefile.in and add a new line on top of each file to say so.
21148 # So let's grep whole file.
21149 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
mmentovai8c2a4de2006-09-20 16:20:15 +000021150 dirpart=`$as_dirname -- "$mf" ||
brynercb91a2f2006-08-25 21:14:45 +000021151$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21152 X"$mf" : 'X\(//\)[^/]' \| \
21153 X"$mf" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000021154 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000021155echo X"$mf" |
mmentovai8c2a4de2006-09-20 16:20:15 +000021156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21157 s//\1/
21158 q
21159 }
21160 /^X\(\/\/\)[^/].*/{
21161 s//\1/
21162 q
21163 }
21164 /^X\(\/\/\)$/{
21165 s//\1/
21166 q
21167 }
21168 /^X\(\/\).*/{
21169 s//\1/
21170 q
21171 }
21172 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +000021173 else
21174 continue
21175 fi
21176 # Extract the definition of DEPDIR, am__include, and am__quote
21177 # from the Makefile without running `make'.
21178 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21179 test -z "$DEPDIR" && continue
21180 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21181 test -z "am__include" && continue
21182 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21183 # When using ansi2knr, U may be empty or an underscore; expand it
21184 U=`sed -n 's/^U = //p' < "$mf"`
21185 # Find all dependency output files, they are included files with
21186 # $(DEPDIR) in their names. We invoke sed twice because it is the
21187 # simplest approach to changing $(DEPDIR) to its actual value in the
21188 # expansion.
21189 for file in `sed -n "
21190 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21191 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21192 # Make sure the directory exists.
21193 test -f "$dirpart/$file" && continue
mmentovai8c2a4de2006-09-20 16:20:15 +000021194 fdir=`$as_dirname -- "$file" ||
brynercb91a2f2006-08-25 21:14:45 +000021195$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21196 X"$file" : 'X\(//\)[^/]' \| \
21197 X"$file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000021198 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000021199echo X"$file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000021200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21201 s//\1/
21202 q
21203 }
21204 /^X\(\/\/\)[^/].*/{
21205 s//\1/
21206 q
21207 }
21208 /^X\(\/\/\)$/{
21209 s//\1/
21210 q
21211 }
21212 /^X\(\/\).*/{
21213 s//\1/
21214 q
21215 }
21216 s/.*/./; q'`
21217 { as_dir=$dirpart/$fdir
21218 case $as_dir in #(
21219 -*) as_dir=./$as_dir;;
21220 esac
21221 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
brynercb91a2f2006-08-25 21:14:45 +000021222 as_dirs=
mmentovai8c2a4de2006-09-20 16:20:15 +000021223 while :; do
21224 case $as_dir in #(
21225 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21226 *) as_qdir=$as_dir;;
21227 esac
21228 as_dirs="'$as_qdir' $as_dirs"
21229 as_dir=`$as_dirname -- "$as_dir" ||
brynercb91a2f2006-08-25 21:14:45 +000021230$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21231 X"$as_dir" : 'X\(//\)[^/]' \| \
21232 X"$as_dir" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000021233 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000021234echo X"$as_dir" |
mmentovai8c2a4de2006-09-20 16:20:15 +000021235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21236 s//\1/
21237 q
21238 }
21239 /^X\(\/\/\)[^/].*/{
21240 s//\1/
21241 q
21242 }
21243 /^X\(\/\/\)$/{
21244 s//\1/
21245 q
21246 }
21247 /^X\(\/\).*/{
21248 s//\1/
21249 q
21250 }
21251 s/.*/./; q'`
21252 test -d "$as_dir" && break
brynercb91a2f2006-08-25 21:14:45 +000021253 done
mmentovai8c2a4de2006-09-20 16:20:15 +000021254 test -z "$as_dirs" || eval "mkdir $as_dirs"
21255 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21256echo "$as_me: error: cannot create directory $as_dir" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000021257 { (exit 1); exit 1; }; }; }
brynercb91a2f2006-08-25 21:14:45 +000021258 # echo "creating $dirpart/$file"
21259 echo '# dummy' > "$dirpart/$file"
21260 done
21261done
21262 ;;
brynercb91a2f2006-08-25 21:14:45 +000021263
mmentovai8c2a4de2006-09-20 16:20:15 +000021264 esac
21265done # for ac_tag
21266
brynercb91a2f2006-08-25 21:14:45 +000021267
21268{ (exit 0); exit 0; }
21269_ACEOF
21270chmod +x $CONFIG_STATUS
21271ac_clean_files=$ac_clean_files_save
21272
21273
21274# configure is writing to config.log, and then calls config.status.
21275# config.status does its own redirection, appending to config.log.
21276# Unfortunately, on DOS this fails, as config.log is still kept open
21277# by configure, so config.status won't be able to write to it; its
21278# output is simply discarded. So we exec the FD to /dev/null,
21279# effectively closing config.log, so it can be properly (re)opened and
21280# appended to by config.status. When coming back to configure, we
21281# need to make the FD available again.
21282if test "$no_create" != yes; then
21283 ac_cs_success=:
21284 ac_config_status_args=
21285 test "$silent" = yes &&
21286 ac_config_status_args="$ac_config_status_args --quiet"
21287 exec 5>/dev/null
21288 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21289 exec 5>>config.log
21290 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21291 # would make configure fail if this is the last instruction.
21292 $ac_cs_success || { (exit 1); exit 1; }
21293fi
21294