blob: e2baaba50d9408388ca14ed4163b58c331aa0d6f [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
858LIBOBJS
859LTLIBOBJS'
brynercb91a2f2006-08-25 21:14:45 +0000860ac_subst_files=''
mmentovai8c2a4de2006-09-20 16:20:15 +0000861 ac_precious_vars='build_alias
862host_alias
863target_alias
864CC
865CFLAGS
866LDFLAGS
867CPPFLAGS
868CPP
869CXX
870CXXFLAGS
871CCC
872CXXCPP
873F77
874FFLAGS'
875
brynercb91a2f2006-08-25 21:14:45 +0000876
877# Initialize some variables set by options.
878ac_init_help=
879ac_init_version=false
880# The variables have the same names as the options, with
881# dashes changed to underlines.
882cache_file=/dev/null
883exec_prefix=NONE
884no_create=
885no_recursion=
886prefix=NONE
887program_prefix=NONE
888program_suffix=NONE
889program_transform_name=s,x,x,
890silent=
891site=
892srcdir=
893verbose=
894x_includes=NONE
895x_libraries=NONE
896
897# Installation directory options.
898# These are left unexpanded so users can "make install exec_prefix=/foo"
899# and all the variables that are supposed to be based on exec_prefix
900# by default will actually change.
901# Use braces instead of parens because sh, perl, etc. also accept them.
mmentovai8c2a4de2006-09-20 16:20:15 +0000902# (The list follows the same order as the GNU Coding Standards.)
brynercb91a2f2006-08-25 21:14:45 +0000903bindir='${exec_prefix}/bin'
904sbindir='${exec_prefix}/sbin'
905libexecdir='${exec_prefix}/libexec'
mmentovai8c2a4de2006-09-20 16:20:15 +0000906datarootdir='${prefix}/share'
907datadir='${datarootdir}'
brynercb91a2f2006-08-25 21:14:45 +0000908sysconfdir='${prefix}/etc'
909sharedstatedir='${prefix}/com'
910localstatedir='${prefix}/var'
brynercb91a2f2006-08-25 21:14:45 +0000911includedir='${prefix}/include'
912oldincludedir='/usr/include'
mmentovai8c2a4de2006-09-20 16:20:15 +0000913docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
914infodir='${datarootdir}/info'
915htmldir='${docdir}'
916dvidir='${docdir}'
917pdfdir='${docdir}'
918psdir='${docdir}'
919libdir='${exec_prefix}/lib'
920localedir='${datarootdir}/locale'
921mandir='${datarootdir}/man'
brynercb91a2f2006-08-25 21:14:45 +0000922
923ac_prev=
mmentovai8c2a4de2006-09-20 16:20:15 +0000924ac_dashdash=
brynercb91a2f2006-08-25 21:14:45 +0000925for ac_option
926do
927 # If the previous option needs an argument, assign it.
928 if test -n "$ac_prev"; then
mmentovai8c2a4de2006-09-20 16:20:15 +0000929 eval $ac_prev=\$ac_option
brynercb91a2f2006-08-25 21:14:45 +0000930 ac_prev=
931 continue
932 fi
933
mmentovai8c2a4de2006-09-20 16:20:15 +0000934 case $ac_option in
935 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
936 *) ac_optarg=yes ;;
937 esac
brynercb91a2f2006-08-25 21:14:45 +0000938
939 # Accept the important Cygnus configure options, so we can diagnose typos.
940
mmentovai8c2a4de2006-09-20 16:20:15 +0000941 case $ac_dashdash$ac_option in
942 --)
943 ac_dashdash=yes ;;
brynercb91a2f2006-08-25 21:14:45 +0000944
945 -bindir | --bindir | --bindi | --bind | --bin | --bi)
946 ac_prev=bindir ;;
947 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
948 bindir=$ac_optarg ;;
949
950 -build | --build | --buil | --bui | --bu)
951 ac_prev=build_alias ;;
952 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
953 build_alias=$ac_optarg ;;
954
955 -cache-file | --cache-file | --cache-fil | --cache-fi \
956 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957 ac_prev=cache_file ;;
958 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
960 cache_file=$ac_optarg ;;
961
962 --config-cache | -C)
963 cache_file=config.cache ;;
964
mmentovai8c2a4de2006-09-20 16:20:15 +0000965 -datadir | --datadir | --datadi | --datad)
brynercb91a2f2006-08-25 21:14:45 +0000966 ac_prev=datadir ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000967 -datadir=* | --datadir=* | --datadi=* | --datad=*)
brynercb91a2f2006-08-25 21:14:45 +0000968 datadir=$ac_optarg ;;
969
mmentovai8c2a4de2006-09-20 16:20:15 +0000970 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971 | --dataroo | --dataro | --datar)
972 ac_prev=datarootdir ;;
973 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975 datarootdir=$ac_optarg ;;
976
brynercb91a2f2006-08-25 21:14:45 +0000977 -disable-* | --disable-*)
978 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
981 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
982 { (exit 1); exit 1; }; }
983 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
mmentovai8c2a4de2006-09-20 16:20:15 +0000984 eval enable_$ac_feature=no ;;
985
986 -docdir | --docdir | --docdi | --doc | --do)
987 ac_prev=docdir ;;
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 docdir=$ac_optarg ;;
990
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 ac_prev=dvidir ;;
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 dvidir=$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +0000995
996 -enable-* | --enable-*)
997 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1000 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1001 { (exit 1); exit 1; }; }
1002 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001003 eval enable_$ac_feature=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001004
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1013
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1016 with_gas=yes ;;
1017
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1024
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1029
mmentovai8c2a4de2006-09-20 16:20:15 +00001030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031 ac_prev=htmldir ;;
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033 | --ht=*)
1034 htmldir=$ac_optarg ;;
1035
brynercb91a2f2006-08-25 21:14:45 +00001036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1042
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1044 ac_prev=infodir ;;
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1047
1048 -libdir | --libdir | --libdi | --libd)
1049 ac_prev=libdir ;;
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1052
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1059
mmentovai8c2a4de2006-09-20 16:20:15 +00001060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1064
brynercb91a2f2006-08-25 21:14:45 +00001065 -localstatedir | --localstatedir | --localstatedi | --localstated \
mmentovai8c2a4de2006-09-20 16:20:15 +00001066 | --localstate | --localstat | --localsta | --localst | --locals)
brynercb91a2f2006-08-25 21:14:45 +00001067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mmentovai8c2a4de2006-09-20 16:20:15 +00001069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
brynercb91a2f2006-08-25 21:14:45 +00001070 localstatedir=$ac_optarg ;;
1071
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073 ac_prev=mandir ;;
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1076
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1079 with_fp=no ;;
1080
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1083 no_create=yes ;;
1084
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 no_recursion=yes ;;
1088
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1097
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099 ac_prev=prefix ;;
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1102
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1109
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1116
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1133
mmentovai8c2a4de2006-09-20 16:20:15 +00001134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135 ac_prev=pdfdir ;;
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1138
1139 -psdir | --psdir | --psdi | --psd | --ps)
1140 ac_prev=psdir ;;
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 psdir=$ac_optarg ;;
1143
brynercb91a2f2006-08-25 21:14:45 +00001144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1146 silent=yes ;;
1147
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1153
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1164
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1169
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1174
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1181
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1186
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1189
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1192
1193 -with-* | --with-*)
1194 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1197 { echo "$as_me: error: invalid package name: $ac_package" >&2
1198 { (exit 1); exit 1; }; }
1199 ac_package=`echo $ac_package| sed 's/-/_/g'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001200 eval with_$ac_package=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001201
1202 -without-* | --without-*)
1203 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1206 { echo "$as_me: error: invalid package name: $ac_package" >&2
1207 { (exit 1); exit 1; }; }
1208 ac_package=`echo $ac_package | sed 's/-/_/g'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001209 eval with_$ac_package=no ;;
brynercb91a2f2006-08-25 21:14:45 +00001210
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1214
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220 x_includes=$ac_optarg ;;
1221
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227 x_libraries=$ac_optarg ;;
1228
1229 -*) { echo "$as_me: error: unrecognized option: $ac_option
1230Try \`$0 --help' for more information." >&2
1231 { (exit 1); exit 1; }; }
1232 ;;
1233
1234 *=*)
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1238 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1239 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00001240 eval $ac_envvar=\$ac_optarg
brynercb91a2f2006-08-25 21:14:45 +00001241 export $ac_envvar ;;
1242
1243 *)
1244 # FIXME: should be removed in autoconf 3.0.
1245 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249 ;;
1250
1251 esac
1252done
1253
1254if test -n "$ac_prev"; then
1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256 { echo "$as_me: error: missing argument to $ac_option" >&2
1257 { (exit 1); exit 1; }; }
1258fi
1259
mmentovai8c2a4de2006-09-20 16:20:15 +00001260# Be sure to have absolute directory names.
1261for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
brynercb91a2f2006-08-25 21:14:45 +00001265do
mmentovai8c2a4de2006-09-20 16:20:15 +00001266 eval ac_val=\$$ac_var
brynercb91a2f2006-08-25 21:14:45 +00001267 case $ac_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
brynercb91a2f2006-08-25 21:14:45 +00001270 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001271 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1272 { (exit 1); exit 1; }; }
brynercb91a2f2006-08-25 21:14:45 +00001273done
1274
1275# There might be people who depend on the old broken behavior: `$host'
1276# used to hold the argument of --host etc.
1277# FIXME: To remove some day.
1278build=$build_alias
1279host=$host_alias
1280target=$target_alias
1281
1282# FIXME: To remove some day.
1283if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1287 If a cross compiler is detected then cross compile mode will be used." >&2
1288 elif test "x$build_alias" != "x$host_alias"; then
1289 cross_compiling=yes
1290 fi
1291fi
1292
1293ac_tool_prefix=
1294test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295
1296test "$silent" = yes && exec 6>/dev/null
1297
1298
mmentovai8c2a4de2006-09-20 16:20:15 +00001299ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300ac_ls_di=`ls -di .` &&
1301ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302 { echo "$as_me: error: Working directory cannot be determined" >&2
1303 { (exit 1); exit 1; }; }
1304test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305 { echo "$as_me: error: pwd does not report name of working directory" >&2
1306 { (exit 1); exit 1; }; }
1307
1308
brynercb91a2f2006-08-25 21:14:45 +00001309# Find the source files, if location was not specified.
1310if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00001312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$0" ||
brynercb91a2f2006-08-25 21:14:45 +00001314$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$0" : 'X\(//\)[^/]' \| \
1316 X"$0" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +00001317 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +00001318echo X"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +00001319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\).*/{
1332 s//\1/
1333 q
1334 }
1335 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +00001336 srcdir=$ac_confdir
mmentovai8c2a4de2006-09-20 16:20:15 +00001337 if test ! -r "$srcdir/$ac_unique_file"; then
brynercb91a2f2006-08-25 21:14:45 +00001338 srcdir=..
1339 fi
1340else
1341 ac_srcdir_defaulted=no
1342fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001343if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
brynercb91a2f2006-08-25 21:14:45 +00001346 { (exit 1); exit 1; }; }
brynercb91a2f2006-08-25 21:14:45 +00001347fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001348ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
brynercb91a2f2006-08-25 21:14:45 +00001351 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00001352 pwd)`
1353# When building in place, set srcdir=.
1354if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 srcdir=.
1356fi
1357# Remove unnecessary trailing slashes from srcdir.
1358# Double slashes in file names in object file debugging info
1359# mess up M-x gdb in Emacs.
1360case $srcdir in
1361*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362esac
1363for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368done
brynercb91a2f2006-08-25 21:14:45 +00001369
1370#
1371# Report the --help message.
1372#
1373if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1376 cat <<_ACEOF
1377\`configure' configures airbag 0.1 to adapt to many kinds of systems.
1378
1379Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382VAR=VALUE. See below for descriptions of some of the useful variables.
1383
1384Defaults for the options are specified in brackets.
1385
1386Configuration:
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print \`checking...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for \`--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396
brynercb91a2f2006-08-25 21:14:45 +00001397Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
1399 [$ac_default_prefix]
1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 [PREFIX]
1402
1403By default, \`make install' will install all the files in
1404\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406for instance \`--prefix=\$HOME'.
1407
1408For better control, use the options below.
1409
1410Fine tuning of the installation directories:
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
brynercb91a2f2006-08-25 21:14:45 +00001414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
mmentovai8c2a4de2006-09-20 16:20:15 +00001420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/airbag]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
brynercb91a2f2006-08-25 21:14:45 +00001430_ACEOF
1431
1432 cat <<\_ACEOF
1433
1434Program names:
1435 --program-prefix=PREFIX prepend PREFIX to installed program names
1436 --program-suffix=SUFFIX append SUFFIX to installed program names
1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438
1439System types:
1440 --build=BUILD configure for building on BUILD [guessed]
1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442_ACEOF
1443fi
1444
1445if test -n "$ac_init_help"; then
1446 case $ac_init_help in
1447 short | recursive ) echo "Configuration of airbag 0.1:";;
1448 esac
1449 cat <<\_ACEOF
1450
1451Optional Features:
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --disable-dependency-tracking speeds up one-time build
1455 --enable-dependency-tracking do not reject slow dependency extractors
mmentovai8c2a4de2006-09-20 16:20:15 +00001456 --enable-shared[=PKGS] build shared libraries [default=yes]
1457 --enable-static[=PKGS] build static libraries [default=yes]
brynercb91a2f2006-08-25 21:14:45 +00001458 --enable-fast-install[=PKGS]
1459 optimize for fast installation [default=yes]
1460 --disable-libtool-lock avoid locking (might break parallel builds)
brynercb91a2f2006-08-25 21:14:45 +00001461
1462Optional Packages:
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1465 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1466 --with-pic try to use only PIC/non-PIC objects [default=use
1467 both]
mmentovai8c2a4de2006-09-20 16:20:15 +00001468 --with-tags[=TAGS] include additional configurations [automatic]
brynercb91a2f2006-08-25 21:14:45 +00001469
1470Some influential environment variables:
1471 CC C compiler command
1472 CFLAGS C compiler flags
1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474 nonstandard directory <lib dir>
mmentovai8c2a4de2006-09-20 16:20:15 +00001475 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1476 you have headers in a nonstandard directory <include dir>
brynercb91a2f2006-08-25 21:14:45 +00001477 CPP C preprocessor
1478 CXX C++ compiler command
1479 CXXFLAGS C++ compiler flags
1480 CXXCPP C++ preprocessor
mmentovai8c2a4de2006-09-20 16:20:15 +00001481 F77 Fortran 77 compiler command
1482 FFLAGS Fortran 77 compiler flags
brynercb91a2f2006-08-25 21:14:45 +00001483
1484Use these variables to override the choices made by `configure' or to help
1485it to find libraries and programs with nonstandard names/locations.
1486
1487Report bugs to <opensource@google.com>.
1488_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001489ac_status=$?
brynercb91a2f2006-08-25 21:14:45 +00001490fi
1491
1492if test "$ac_init_help" = "recursive"; then
1493 # If there are subdirs, report their specific --help.
brynercb91a2f2006-08-25 21:14:45 +00001494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
mmentovai8c2a4de2006-09-20 16:20:15 +00001495 test -d "$ac_dir" || continue
brynercb91a2f2006-08-25 21:14:45 +00001496 ac_builddir=.
1497
mmentovai8c2a4de2006-09-20 16:20:15 +00001498case "$ac_dir" in
1499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500*)
brynercb91a2f2006-08-25 21:14:45 +00001501 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 esac ;;
1508esac
1509ac_abs_top_builddir=$ac_pwd
1510ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511# for backward compatibility:
1512ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00001513
1514case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00001515 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00001516 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00001517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00001520 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00001521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1523 *) # Relative name.
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00001527esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00001529
mmentovai8c2a4de2006-09-20 16:20:15 +00001530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure" --help=recursive
brynercb91a2f2006-08-25 21:14:45 +00001538 else
1539 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mmentovai8c2a4de2006-09-20 16:20:15 +00001540 fi || ac_status=$?
1541 cd "$ac_pwd" || { ac_status=$?; break; }
brynercb91a2f2006-08-25 21:14:45 +00001542 done
1543fi
1544
mmentovai8c2a4de2006-09-20 16:20:15 +00001545test -n "$ac_init_help" && exit $ac_status
brynercb91a2f2006-08-25 21:14:45 +00001546if $ac_init_version; then
1547 cat <<\_ACEOF
1548airbag configure 0.1
mmentovai8c2a4de2006-09-20 16:20:15 +00001549generated by GNU Autoconf 2.60
brynercb91a2f2006-08-25 21:14:45 +00001550
mmentovai8c2a4de2006-09-20 16:20:15 +00001551Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15522002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00001553This configure script is free software; the Free Software Foundation
1554gives unlimited permission to copy, distribute and modify it.
1555_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001556 exit
brynercb91a2f2006-08-25 21:14:45 +00001557fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001558cat >config.log <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00001559This file contains any messages produced by compilers while
1560running configure, to aid debugging if configure makes a mistake.
1561
1562It was created by airbag $as_me 0.1, which was
mmentovai8c2a4de2006-09-20 16:20:15 +00001563generated by GNU Autoconf 2.60. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00001564
1565 $ $0 $@
1566
1567_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001568exec 5>>config.log
brynercb91a2f2006-08-25 21:14:45 +00001569{
1570cat <<_ASUNAME
1571## --------- ##
1572## Platform. ##
1573## --------- ##
1574
1575hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1576uname -m = `(uname -m) 2>/dev/null || echo unknown`
1577uname -r = `(uname -r) 2>/dev/null || echo unknown`
1578uname -s = `(uname -s) 2>/dev/null || echo unknown`
1579uname -v = `(uname -v) 2>/dev/null || echo unknown`
1580
1581/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1582/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1583
1584/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1585/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1586/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mmentovai8c2a4de2006-09-20 16:20:15 +00001587/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
brynercb91a2f2006-08-25 21:14:45 +00001588/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1589/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1590/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1591
1592_ASUNAME
1593
1594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595for as_dir in $PATH
1596do
1597 IFS=$as_save_IFS
1598 test -z "$as_dir" && as_dir=.
1599 echo "PATH: $as_dir"
1600done
mmentovai8c2a4de2006-09-20 16:20:15 +00001601IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00001602
1603} >&5
1604
1605cat >&5 <<_ACEOF
1606
1607
1608## ----------- ##
1609## Core tests. ##
1610## ----------- ##
1611
1612_ACEOF
1613
1614
1615# Keep a trace of the command line.
1616# Strip out --no-create and --no-recursion so they do not pile up.
1617# Strip out --silent because we don't want to record it for future runs.
1618# Also quote any args containing shell meta-characters.
1619# Make two passes to allow for proper duplicate-argument suppression.
1620ac_configure_args=
1621ac_configure_args0=
1622ac_configure_args1=
brynercb91a2f2006-08-25 21:14:45 +00001623ac_must_keep_next=false
1624for ac_pass in 1 2
1625do
1626 for ac_arg
1627 do
1628 case $ac_arg in
1629 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1630 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1631 | -silent | --silent | --silen | --sile | --sil)
1632 continue ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001633 *\'*)
brynercb91a2f2006-08-25 21:14:45 +00001634 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1635 esac
1636 case $ac_pass in
1637 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1638 2)
1639 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1640 if test $ac_must_keep_next = true; then
1641 ac_must_keep_next=false # Got value, back to normal.
1642 else
1643 case $ac_arg in
1644 *=* | --config-cache | -C | -disable-* | --disable-* \
1645 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1646 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1647 | -with-* | --with-* | -without-* | --without-* | --x)
1648 case "$ac_configure_args0 " in
1649 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1650 esac
1651 ;;
1652 -* ) ac_must_keep_next=true ;;
1653 esac
1654 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001655 ac_configure_args="$ac_configure_args '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00001656 ;;
1657 esac
1658 done
1659done
1660$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1661$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1662
1663# When interrupted or exit'd, cleanup temporary files, and complete
1664# config.log. We remove comments because anyway the quotes in there
1665# would cause problems or look ugly.
mmentovai8c2a4de2006-09-20 16:20:15 +00001666# WARNING: Use '\'' to represent an apostrophe within the trap.
1667# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
brynercb91a2f2006-08-25 21:14:45 +00001668trap 'exit_status=$?
1669 # Save into config.log some information that might help in debugging.
1670 {
1671 echo
1672
1673 cat <<\_ASBOX
1674## ---------------- ##
1675## Cache variables. ##
1676## ---------------- ##
1677_ASBOX
1678 echo
1679 # The following way of writing the cache mishandles newlines in values,
mmentovai8c2a4de2006-09-20 16:20:15 +00001680(
1681 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1682 eval ac_val=\$$ac_var
1683 case $ac_val in #(
1684 *${as_nl}*)
1685 case $ac_var in #(
1686 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1687echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1688 esac
1689 case $ac_var in #(
1690 _ | IFS | as_nl) ;; #(
1691 *) $as_unset $ac_var ;;
1692 esac ;;
1693 esac
1694 done
brynercb91a2f2006-08-25 21:14:45 +00001695 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00001696 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1697 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +00001698 sed -n \
mmentovai8c2a4de2006-09-20 16:20:15 +00001699 "s/'\''/'\''\\\\'\'''\''/g;
1700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1701 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00001702 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00001703 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00001704 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001705 esac |
1706 sort
1707)
brynercb91a2f2006-08-25 21:14:45 +00001708 echo
1709
1710 cat <<\_ASBOX
1711## ----------------- ##
1712## Output variables. ##
1713## ----------------- ##
1714_ASBOX
1715 echo
1716 for ac_var in $ac_subst_vars
1717 do
mmentovai8c2a4de2006-09-20 16:20:15 +00001718 eval ac_val=\$$ac_var
1719 case $ac_val in
1720 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1721 esac
1722 echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00001723 done | sort
1724 echo
1725
1726 if test -n "$ac_subst_files"; then
1727 cat <<\_ASBOX
mmentovai8c2a4de2006-09-20 16:20:15 +00001728## ------------------- ##
1729## File substitutions. ##
1730## ------------------- ##
brynercb91a2f2006-08-25 21:14:45 +00001731_ASBOX
1732 echo
1733 for ac_var in $ac_subst_files
1734 do
mmentovai8c2a4de2006-09-20 16:20:15 +00001735 eval ac_val=\$$ac_var
1736 case $ac_val in
1737 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738 esac
1739 echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00001740 done | sort
1741 echo
1742 fi
1743
1744 if test -s confdefs.h; then
1745 cat <<\_ASBOX
1746## ----------- ##
1747## confdefs.h. ##
1748## ----------- ##
1749_ASBOX
1750 echo
mmentovai8c2a4de2006-09-20 16:20:15 +00001751 cat confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00001752 echo
1753 fi
1754 test "$ac_signal" != 0 &&
1755 echo "$as_me: caught signal $ac_signal"
1756 echo "$as_me: exit $exit_status"
1757 } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00001758 rm -f core *.core core.conftest.* &&
1759 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
brynercb91a2f2006-08-25 21:14:45 +00001760 exit $exit_status
mmentovai8c2a4de2006-09-20 16:20:15 +00001761' 0
brynercb91a2f2006-08-25 21:14:45 +00001762for ac_signal in 1 2 13 15; do
1763 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1764done
1765ac_signal=0
1766
1767# confdefs.h avoids OS command line length limits that DEFS can exceed.
mmentovai8c2a4de2006-09-20 16:20:15 +00001768rm -f -r conftest* confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00001769
1770# Predefined preprocessor variables.
1771
1772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_NAME "$PACKAGE_NAME"
1774_ACEOF
1775
1776
1777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1779_ACEOF
1780
1781
1782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_VERSION "$PACKAGE_VERSION"
1784_ACEOF
1785
1786
1787cat >>confdefs.h <<_ACEOF
1788#define PACKAGE_STRING "$PACKAGE_STRING"
1789_ACEOF
1790
1791
1792cat >>confdefs.h <<_ACEOF
1793#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1794_ACEOF
1795
1796
1797# Let the site file select an alternate cache file if it wants to.
1798# Prefer explicitly selected file to automatically selected ones.
mmentovai8c2a4de2006-09-20 16:20:15 +00001799if test -n "$CONFIG_SITE"; then
1800 set x "$CONFIG_SITE"
1801elif test "x$prefix" != xNONE; then
1802 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1803else
1804 set x "$ac_default_prefix/share/config.site" \
1805 "$ac_default_prefix/etc/config.site"
brynercb91a2f2006-08-25 21:14:45 +00001806fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001807shift
1808for ac_site_file
1809do
brynercb91a2f2006-08-25 21:14:45 +00001810 if test -r "$ac_site_file"; then
1811 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1812echo "$as_me: loading site script $ac_site_file" >&6;}
1813 sed 's/^/| /' "$ac_site_file" >&5
1814 . "$ac_site_file"
1815 fi
1816done
1817
1818if test -r "$cache_file"; then
1819 # Some versions of bash will fail to source /dev/null (special
1820 # files actually), so we avoid doing that.
1821 if test -f "$cache_file"; then
1822 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1823echo "$as_me: loading cache $cache_file" >&6;}
1824 case $cache_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00001825 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1826 *) . "./$cache_file";;
brynercb91a2f2006-08-25 21:14:45 +00001827 esac
1828 fi
1829else
1830 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1831echo "$as_me: creating cache $cache_file" >&6;}
1832 >$cache_file
1833fi
1834
1835# Check that the precious variables saved in the cache have kept the same
1836# value.
1837ac_cache_corrupted=false
mmentovai8c2a4de2006-09-20 16:20:15 +00001838for ac_var in $ac_precious_vars; do
brynercb91a2f2006-08-25 21:14:45 +00001839 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1840 eval ac_new_set=\$ac_env_${ac_var}_set
mmentovai8c2a4de2006-09-20 16:20:15 +00001841 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1842 eval ac_new_val=\$ac_env_${ac_var}_value
brynercb91a2f2006-08-25 21:14:45 +00001843 case $ac_old_set,$ac_new_set in
1844 set,)
1845 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1846echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1847 ac_cache_corrupted=: ;;
1848 ,set)
1849 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1850echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1851 ac_cache_corrupted=: ;;
1852 ,);;
1853 *)
1854 if test "x$ac_old_val" != "x$ac_new_val"; then
1855 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1856echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1857 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1858echo "$as_me: former value: $ac_old_val" >&2;}
1859 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1860echo "$as_me: current value: $ac_new_val" >&2;}
1861 ac_cache_corrupted=:
1862 fi;;
1863 esac
1864 # Pass precious variables to config.status.
1865 if test "$ac_new_set" = set; then
1866 case $ac_new_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001867 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00001868 *) ac_arg=$ac_var=$ac_new_val ;;
1869 esac
1870 case " $ac_configure_args " in
1871 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1872 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1873 esac
1874 fi
1875done
1876if $ac_cache_corrupted; then
1877 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1878echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1879 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1880echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1881 { (exit 1); exit 1; }; }
1882fi
1883
mmentovai8c2a4de2006-09-20 16:20:15 +00001884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
brynercb91a2f2006-08-25 21:14:45 +00001908ac_ext=c
1909ac_cpp='$CPP $CPPFLAGS'
1910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1912ac_compiler_gnu=$ac_cv_c_compiler_gnu
1913
1914
1915
brynercb91a2f2006-08-25 21:14:45 +00001916ac_aux_dir=
mmentovai8c2a4de2006-09-20 16:20:15 +00001917for ac_dir in autotools "$srcdir"/autotools; do
1918 if test -f "$ac_dir/install-sh"; then
brynercb91a2f2006-08-25 21:14:45 +00001919 ac_aux_dir=$ac_dir
1920 ac_install_sh="$ac_aux_dir/install-sh -c"
1921 break
mmentovai8c2a4de2006-09-20 16:20:15 +00001922 elif 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/shtool"; then
brynercb91a2f2006-08-25 21:14:45 +00001927 ac_aux_dir=$ac_dir
1928 ac_install_sh="$ac_aux_dir/shtool install -c"
1929 break
1930 fi
1931done
1932if test -z "$ac_aux_dir"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00001933 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&5
1934echo "$as_me: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00001935 { (exit 1); exit 1; }; }
1936fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001937
1938# These three variables are undocumented and unsupported,
1939# and are intended to be withdrawn in a future Autoconf release.
1940# They can cause serious problems if a builder's source tree is in a directory
1941# whose full name contains unusual characters.
1942ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1943ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1944ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1945
brynercb91a2f2006-08-25 21:14:45 +00001946
mmentovai425d2562006-08-30 20:05:05 +00001947
1948am__api_version="1.9"
brynercb91a2f2006-08-25 21:14:45 +00001949# Find a good install program. We prefer a C program (faster),
1950# so one script is as good as another. But avoid the broken or
1951# incompatible versions:
1952# SysV /etc/install, /usr/sbin/install
1953# SunOS /usr/etc/install
1954# IRIX /sbin/install
1955# AIX /bin/install
1956# AmigaOS /C/install, which installs bootblocks on floppy discs
1957# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1958# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1959# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1960# OS/2's system install, which has a completely different semantic
1961# ./install, which can be erroneously created by make from ./install.sh.
mmentovai8c2a4de2006-09-20 16:20:15 +00001962{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1963echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00001964if test -z "$INSTALL"; then
1965if test "${ac_cv_path_install+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1967else
1968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969for as_dir in $PATH
1970do
1971 IFS=$as_save_IFS
1972 test -z "$as_dir" && as_dir=.
1973 # Account for people who put trailing slashes in PATH elements.
1974case $as_dir/ in
1975 ./ | .// | /cC/* | \
1976 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1977 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1978 /usr/ucb/* ) ;;
1979 *)
1980 # OSF1 and SCO ODT 3.0 have their own names for install.
1981 # Don't use installbsd from OSF since it installs stuff as root
1982 # by default.
1983 for ac_prog in ginstall scoinst install; do
1984 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00001985 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 +00001986 if test $ac_prog = install &&
1987 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1988 # AIX install. It has an incompatible calling convention.
1989 :
1990 elif test $ac_prog = install &&
1991 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1992 # program-specific install script used by HP pwplus--don't use.
1993 :
1994 else
1995 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1996 break 3
1997 fi
1998 fi
1999 done
2000 done
2001 ;;
2002esac
2003done
mmentovai8c2a4de2006-09-20 16:20:15 +00002004IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002005
2006
2007fi
2008 if test "${ac_cv_path_install+set}" = set; then
2009 INSTALL=$ac_cv_path_install
2010 else
mmentovai8c2a4de2006-09-20 16:20:15 +00002011 # As a last resort, use the slow shell script. Don't cache a
2012 # value for INSTALL within a source directory, because that will
brynercb91a2f2006-08-25 21:14:45 +00002013 # break other packages using the cache if that directory is
mmentovai8c2a4de2006-09-20 16:20:15 +00002014 # removed, or if the value is a relative name.
brynercb91a2f2006-08-25 21:14:45 +00002015 INSTALL=$ac_install_sh
2016 fi
2017fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002018{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2019echo "${ECHO_T}$INSTALL" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002020
2021# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2022# It thinks the first close brace ends the variable substitution.
2023test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2024
2025test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2026
2027test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2028
mmentovai8c2a4de2006-09-20 16:20:15 +00002029{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2030echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002031# Just in case
2032sleep 1
2033echo timestamp > conftest.file
2034# Do `set' in a subshell so we don't clobber the current shell's
2035# arguments. Must try -L first in case configure is actually a
2036# symlink; some systems play weird games with the mod time of symlinks
2037# (eg FreeBSD returns the mod time of the symlink's containing
2038# directory).
2039if (
2040 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2041 if test "$*" = "X"; then
2042 # -L didn't work.
2043 set X `ls -t $srcdir/configure conftest.file`
2044 fi
2045 rm -f conftest.file
2046 if test "$*" != "X $srcdir/configure conftest.file" \
2047 && test "$*" != "X conftest.file $srcdir/configure"; then
2048
2049 # If neither matched, then we have a broken ls. This can happen
2050 # if, for instance, CONFIG_SHELL is bash and it inherits a
2051 # broken ls alias from the environment. This has actually
2052 # happened. Such a system could not be considered "sane".
2053 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2054alias in your environment" >&5
2055echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2056alias in your environment" >&2;}
2057 { (exit 1); exit 1; }; }
2058 fi
2059
2060 test "$2" = conftest.file
2061 )
2062then
2063 # Ok.
2064 :
2065else
2066 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2067Check your system clock" >&5
2068echo "$as_me: error: newly created file is older than distributed files!
2069Check your system clock" >&2;}
2070 { (exit 1); exit 1; }; }
2071fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002072{ echo "$as_me:$LINENO: result: yes" >&5
2073echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002074test "$program_prefix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002075 program_transform_name="s&^&$program_prefix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002076# Use a double $ so make ignores it.
2077test "$program_suffix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002078 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002079# Double any \ or $. echo might interpret backslashes.
2080# By default was `s,x,x', remove it if useless.
2081cat <<\_ACEOF >conftest.sed
2082s/[\\$]/&&/g;s/;s,x,x,$//
2083_ACEOF
2084program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
mmentovai8c2a4de2006-09-20 16:20:15 +00002085rm -f conftest.sed
brynercb91a2f2006-08-25 21:14:45 +00002086
2087# expand $ac_aux_dir to an absolute path
2088am_aux_dir=`cd $ac_aux_dir && pwd`
2089
2090test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2091# Use eval to expand $SHELL
2092if eval "$MISSING --run true"; then
2093 am_missing_run="$MISSING --run "
2094else
2095 am_missing_run=
2096 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2097echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2098fi
2099
2100if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2101 # We used to keeping the `.' as first argument, in order to
2102 # allow $(mkdir_p) to be used without argument. As in
2103 # $(mkdir_p) $(somedir)
2104 # where $(somedir) is conditionally defined. However this is wrong
2105 # for two reasons:
2106 # 1. if the package is installed by a user who cannot write `.'
2107 # make install will fail,
2108 # 2. the above comment should most certainly read
2109 # $(mkdir_p) $(DESTDIR)$(somedir)
2110 # so it does not work when $(somedir) is undefined and
2111 # $(DESTDIR) is not.
2112 # To support the latter case, we have to write
2113 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2114 # so the `.' trick is pointless.
2115 mkdir_p='mkdir -p --'
2116else
2117 # On NextStep and OpenStep, the `mkdir' command does not
2118 # recognize any option. It will interpret all options as
2119 # directories to create, and then abort because `.' already
2120 # exists.
2121 for d in ./-p ./--version;
2122 do
2123 test -d $d && rmdir $d
2124 done
2125 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2126 if test -f "$ac_aux_dir/mkinstalldirs"; then
2127 mkdir_p='$(mkinstalldirs)'
2128 else
2129 mkdir_p='$(install_sh) -d'
2130 fi
2131fi
2132
2133for ac_prog in gawk mawk nawk awk
2134do
2135 # Extract the first word of "$ac_prog", so it can be a program name with args.
2136set dummy $ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002139if test "${ac_cv_prog_AWK+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2141else
2142 if test -n "$AWK"; then
2143 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2144else
2145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146for as_dir in $PATH
2147do
2148 IFS=$as_save_IFS
2149 test -z "$as_dir" && as_dir=.
2150 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002151 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 +00002152 ac_cv_prog_AWK="$ac_prog"
2153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154 break 2
2155 fi
2156done
2157done
mmentovai8c2a4de2006-09-20 16:20:15 +00002158IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002159
2160fi
2161fi
2162AWK=$ac_cv_prog_AWK
2163if test -n "$AWK"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002164 { echo "$as_me:$LINENO: result: $AWK" >&5
2165echo "${ECHO_T}$AWK" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002166else
mmentovai8c2a4de2006-09-20 16:20:15 +00002167 { echo "$as_me:$LINENO: result: no" >&5
2168echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002169fi
2170
mmentovai8c2a4de2006-09-20 16:20:15 +00002171
brynercb91a2f2006-08-25 21:14:45 +00002172 test -n "$AWK" && break
2173done
2174
mmentovai8c2a4de2006-09-20 16:20:15 +00002175{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2176echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2177set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2178if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180else
2181 cat >conftest.make <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002182SHELL = /bin/sh
brynercb91a2f2006-08-25 21:14:45 +00002183all:
mmentovai8c2a4de2006-09-20 16:20:15 +00002184 @echo '@@@%%%=$(MAKE)=@@@%%%'
brynercb91a2f2006-08-25 21:14:45 +00002185_ACEOF
2186# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
mmentovai8c2a4de2006-09-20 16:20:15 +00002187case `${MAKE-make} -f conftest.make 2>/dev/null` in
2188 *@@@%%%=?*=@@@%%%*)
2189 eval ac_cv_prog_make_${ac_make}_set=yes;;
2190 *)
2191 eval ac_cv_prog_make_${ac_make}_set=no;;
2192esac
brynercb91a2f2006-08-25 21:14:45 +00002193rm -f conftest.make
2194fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002195if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2196 { echo "$as_me:$LINENO: result: yes" >&5
2197echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002198 SET_MAKE=
2199else
mmentovai8c2a4de2006-09-20 16:20:15 +00002200 { echo "$as_me:$LINENO: result: no" >&5
2201echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002202 SET_MAKE="MAKE=${MAKE-make}"
2203fi
2204
2205rm -rf .tst 2>/dev/null
2206mkdir .tst 2>/dev/null
2207if test -d .tst; then
2208 am__leading_dot=.
2209else
2210 am__leading_dot=_
2211fi
2212rmdir .tst 2>/dev/null
2213
2214# test to see if srcdir already configured
2215if test "`cd $srcdir && pwd`" != "`pwd`" &&
2216 test -f $srcdir/config.status; then
2217 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2218echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2219 { (exit 1); exit 1; }; }
2220fi
2221
2222# test whether we have cygpath
2223if test -z "$CYGPATH_W"; then
2224 if (cygpath --version) >/dev/null 2>/dev/null; then
2225 CYGPATH_W='cygpath -w'
2226 else
2227 CYGPATH_W=echo
2228 fi
2229fi
2230
2231
2232# Define the identity of the package.
2233 PACKAGE='airbag'
2234 VERSION='0.1'
2235
2236
2237cat >>confdefs.h <<_ACEOF
2238#define PACKAGE "$PACKAGE"
2239_ACEOF
2240
2241
2242cat >>confdefs.h <<_ACEOF
2243#define VERSION "$VERSION"
2244_ACEOF
2245
2246# Some tools Automake needs.
2247
2248ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2249
2250
2251AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2252
2253
2254AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2255
2256
2257AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2258
2259
2260MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2261
2262install_sh=${install_sh-"$am_aux_dir/install-sh"}
2263
2264# Installed binaries are usually stripped using `strip' when the user
2265# run `make install-strip'. However `strip' might not be the right
2266# tool to use in cross-compilation environments, therefore Automake
2267# will honor the `STRIP' environment variable to overrule this program.
2268if test "$cross_compiling" != no; then
2269 if test -n "$ac_tool_prefix"; then
2270 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2271set dummy ${ac_tool_prefix}strip; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002274if test "${ac_cv_prog_STRIP+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276else
2277 if test -n "$STRIP"; then
2278 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2279else
2280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281for as_dir in $PATH
2282do
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002286 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 +00002287 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2289 break 2
2290 fi
2291done
2292done
mmentovai8c2a4de2006-09-20 16:20:15 +00002293IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002294
2295fi
2296fi
2297STRIP=$ac_cv_prog_STRIP
2298if test -n "$STRIP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002299 { echo "$as_me:$LINENO: result: $STRIP" >&5
2300echo "${ECHO_T}$STRIP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002301else
mmentovai8c2a4de2006-09-20 16:20:15 +00002302 { echo "$as_me:$LINENO: result: no" >&5
2303echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002304fi
2305
mmentovai8c2a4de2006-09-20 16:20:15 +00002306
brynercb91a2f2006-08-25 21:14:45 +00002307fi
2308if test -z "$ac_cv_prog_STRIP"; then
2309 ac_ct_STRIP=$STRIP
2310 # Extract the first word of "strip", so it can be a program name with args.
2311set dummy strip; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002314if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2316else
2317 if test -n "$ac_ct_STRIP"; then
2318 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2319else
2320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321for as_dir in $PATH
2322do
2323 IFS=$as_save_IFS
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002326 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 +00002327 ac_cv_prog_ac_ct_STRIP="strip"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 break 2
2330 fi
2331done
2332done
mmentovai8c2a4de2006-09-20 16:20:15 +00002333IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002334
brynercb91a2f2006-08-25 21:14:45 +00002335fi
2336fi
2337ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2338if test -n "$ac_ct_STRIP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002339 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2340echo "${ECHO_T}$ac_ct_STRIP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002341else
mmentovai8c2a4de2006-09-20 16:20:15 +00002342 { echo "$as_me:$LINENO: result: no" >&5
2343echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002344fi
2345
mmentovai8c2a4de2006-09-20 16:20:15 +00002346 if test "x$ac_ct_STRIP" = x; then
2347 STRIP=":"
2348 else
2349 case $cross_compiling:$ac_tool_warned in
2350yes:)
2351{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2352whose name does not start with the host triplet. If you think this
2353configuration is useful to you, please write to autoconf@gnu.org." >&5
2354echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2355whose name does not start with the host triplet. If you think this
2356configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2357ac_tool_warned=yes ;;
2358esac
2359 STRIP=$ac_ct_STRIP
2360 fi
brynercb91a2f2006-08-25 21:14:45 +00002361else
2362 STRIP="$ac_cv_prog_STRIP"
2363fi
2364
2365fi
2366INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2367
2368# We need awk for the "check" target. The system "awk" is bad on
2369# some platforms.
2370# Always define AMTAR for backward compatibility.
2371
2372AMTAR=${AMTAR-"${am_missing_run}tar"}
2373
2374am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2375
2376
2377
2378
2379
mmentovai8c2a4de2006-09-20 16:20:15 +00002380ac_config_headers="$ac_config_headers src/config.h"
brynercb91a2f2006-08-25 21:14:45 +00002381
2382
brynercb91a2f2006-08-25 21:14:45 +00002383ac_ext=c
2384ac_cpp='$CPP $CPPFLAGS'
2385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2387ac_compiler_gnu=$ac_cv_c_compiler_gnu
2388if test -n "$ac_tool_prefix"; then
2389 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2390set dummy ${ac_tool_prefix}gcc; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002393if test "${ac_cv_prog_CC+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2395else
2396 if test -n "$CC"; then
2397 ac_cv_prog_CC="$CC" # Let the user override the test.
2398else
2399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400for as_dir in $PATH
2401do
2402 IFS=$as_save_IFS
2403 test -z "$as_dir" && as_dir=.
2404 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002405 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 +00002406 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 break 2
2409 fi
2410done
2411done
mmentovai8c2a4de2006-09-20 16:20:15 +00002412IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002413
2414fi
2415fi
2416CC=$ac_cv_prog_CC
2417if test -n "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002418 { echo "$as_me:$LINENO: result: $CC" >&5
2419echo "${ECHO_T}$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002420else
mmentovai8c2a4de2006-09-20 16:20:15 +00002421 { echo "$as_me:$LINENO: result: no" >&5
2422echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002423fi
2424
mmentovai8c2a4de2006-09-20 16:20:15 +00002425
brynercb91a2f2006-08-25 21:14:45 +00002426fi
2427if test -z "$ac_cv_prog_CC"; then
2428 ac_ct_CC=$CC
2429 # Extract the first word of "gcc", so it can be a program name with args.
2430set dummy gcc; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002433if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435else
2436 if test -n "$ac_ct_CC"; then
2437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2438else
2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440for as_dir in $PATH
2441do
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002445 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 +00002446 ac_cv_prog_ac_ct_CC="gcc"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2449 fi
2450done
2451done
mmentovai8c2a4de2006-09-20 16:20:15 +00002452IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002453
2454fi
2455fi
2456ac_ct_CC=$ac_cv_prog_ac_ct_CC
2457if test -n "$ac_ct_CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002458 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2459echo "${ECHO_T}$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002460else
mmentovai8c2a4de2006-09-20 16:20:15 +00002461 { echo "$as_me:$LINENO: result: no" >&5
2462echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002463fi
2464
mmentovai8c2a4de2006-09-20 16:20:15 +00002465 if test "x$ac_ct_CC" = x; then
2466 CC=""
2467 else
2468 case $cross_compiling:$ac_tool_warned in
2469yes:)
2470{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2471whose name does not start with the host triplet. If you think this
2472configuration is useful to you, please write to autoconf@gnu.org." >&5
2473echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2474whose name does not start with the host triplet. If you think this
2475configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2476ac_tool_warned=yes ;;
2477esac
2478 CC=$ac_ct_CC
2479 fi
brynercb91a2f2006-08-25 21:14:45 +00002480else
2481 CC="$ac_cv_prog_CC"
2482fi
2483
2484if test -z "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002485 if test -n "$ac_tool_prefix"; then
2486 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
brynercb91a2f2006-08-25 21:14:45 +00002487set dummy ${ac_tool_prefix}cc; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002490if test "${ac_cv_prog_CC+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2492else
2493 if test -n "$CC"; then
2494 ac_cv_prog_CC="$CC" # Let the user override the test.
2495else
2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497for as_dir in $PATH
2498do
2499 IFS=$as_save_IFS
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002502 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 +00002503 ac_cv_prog_CC="${ac_tool_prefix}cc"
2504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 break 2
2506 fi
2507done
2508done
mmentovai8c2a4de2006-09-20 16:20:15 +00002509IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002510
2511fi
2512fi
2513CC=$ac_cv_prog_CC
2514if test -n "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002515 { echo "$as_me:$LINENO: result: $CC" >&5
2516echo "${ECHO_T}$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002517else
mmentovai8c2a4de2006-09-20 16:20:15 +00002518 { echo "$as_me:$LINENO: result: no" >&5
2519echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002520fi
2521
mmentovai8c2a4de2006-09-20 16:20:15 +00002522
brynercb91a2f2006-08-25 21:14:45 +00002523 fi
brynercb91a2f2006-08-25 21:14:45 +00002524fi
2525if test -z "$CC"; then
2526 # Extract the first word of "cc", so it can be a program name with args.
2527set dummy cc; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002530if test "${ac_cv_prog_CC+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2532else
2533 if test -n "$CC"; then
2534 ac_cv_prog_CC="$CC" # Let the user override the test.
2535else
2536 ac_prog_rejected=no
2537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538for as_dir in $PATH
2539do
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002543 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 +00002544 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2545 ac_prog_rejected=yes
2546 continue
2547 fi
2548 ac_cv_prog_CC="cc"
2549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 break 2
2551 fi
2552done
2553done
mmentovai8c2a4de2006-09-20 16:20:15 +00002554IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002555
2556if test $ac_prog_rejected = yes; then
2557 # We found a bogon in the path, so make sure we never use it.
2558 set dummy $ac_cv_prog_CC
2559 shift
2560 if test $# != 0; then
2561 # We chose a different compiler from the bogus one.
2562 # However, it has the same basename, so the bogon will be chosen
2563 # first if we set CC to just the basename; use the full file name.
2564 shift
2565 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2566 fi
2567fi
2568fi
2569fi
2570CC=$ac_cv_prog_CC
2571if test -n "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002572 { echo "$as_me:$LINENO: result: $CC" >&5
2573echo "${ECHO_T}$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002574else
mmentovai8c2a4de2006-09-20 16:20:15 +00002575 { echo "$as_me:$LINENO: result: no" >&5
2576echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002577fi
2578
mmentovai8c2a4de2006-09-20 16:20:15 +00002579
brynercb91a2f2006-08-25 21:14:45 +00002580fi
2581if test -z "$CC"; then
2582 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002583 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00002584 do
2585 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2586set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002589if test "${ac_cv_prog_CC+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591else
2592 if test -n "$CC"; then
2593 ac_cv_prog_CC="$CC" # Let the user override the test.
2594else
2595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596for as_dir in $PATH
2597do
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002601 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 +00002602 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 break 2
2605 fi
2606done
2607done
mmentovai8c2a4de2006-09-20 16:20:15 +00002608IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002609
2610fi
2611fi
2612CC=$ac_cv_prog_CC
2613if test -n "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002614 { echo "$as_me:$LINENO: result: $CC" >&5
2615echo "${ECHO_T}$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002616else
mmentovai8c2a4de2006-09-20 16:20:15 +00002617 { echo "$as_me:$LINENO: result: no" >&5
2618echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002619fi
2620
mmentovai8c2a4de2006-09-20 16:20:15 +00002621
brynercb91a2f2006-08-25 21:14:45 +00002622 test -n "$CC" && break
2623 done
2624fi
2625if test -z "$CC"; then
2626 ac_ct_CC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00002627 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00002628do
2629 # Extract the first word of "$ac_prog", so it can be a program name with args.
2630set dummy $ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002633if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2635else
2636 if test -n "$ac_ct_CC"; then
2637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2638else
2639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002645 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 +00002646 ac_cv_prog_ac_ct_CC="$ac_prog"
2647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 break 2
2649 fi
2650done
2651done
mmentovai8c2a4de2006-09-20 16:20:15 +00002652IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002653
2654fi
2655fi
2656ac_ct_CC=$ac_cv_prog_ac_ct_CC
2657if test -n "$ac_ct_CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002658 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2659echo "${ECHO_T}$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002660else
mmentovai8c2a4de2006-09-20 16:20:15 +00002661 { echo "$as_me:$LINENO: result: no" >&5
2662echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002663fi
2664
mmentovai8c2a4de2006-09-20 16:20:15 +00002665
brynercb91a2f2006-08-25 21:14:45 +00002666 test -n "$ac_ct_CC" && break
2667done
2668
mmentovai8c2a4de2006-09-20 16:20:15 +00002669 if test "x$ac_ct_CC" = x; then
2670 CC=""
2671 else
2672 case $cross_compiling:$ac_tool_warned in
2673yes:)
2674{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2675whose name does not start with the host triplet. If you think this
2676configuration is useful to you, please write to autoconf@gnu.org." >&5
2677echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2678whose name does not start with the host triplet. If you think this
2679configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2680ac_tool_warned=yes ;;
2681esac
2682 CC=$ac_ct_CC
2683 fi
brynercb91a2f2006-08-25 21:14:45 +00002684fi
2685
2686fi
2687
2688
2689test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2690See \`config.log' for more details." >&5
2691echo "$as_me: error: no acceptable C compiler found in \$PATH
2692See \`config.log' for more details." >&2;}
2693 { (exit 1); exit 1; }; }
2694
2695# Provide some information about the compiler.
mmentovai8c2a4de2006-09-20 16:20:15 +00002696echo "$as_me:$LINENO: checking for C compiler version" >&5
brynercb91a2f2006-08-25 21:14:45 +00002697ac_compiler=`set X $ac_compile; echo $2`
mmentovai8c2a4de2006-09-20 16:20:15 +00002698{ (ac_try="$ac_compiler --version >&5"
2699case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702esac
2703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_compiler --version >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }
mmentovai8c2a4de2006-09-20 16:20:15 +00002708{ (ac_try="$ac_compiler -v >&5"
2709case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2712esac
2713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_compiler -v >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }
mmentovai8c2a4de2006-09-20 16:20:15 +00002718{ (ac_try="$ac_compiler -V >&5"
2719case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722esac
2723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_compiler -V >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }
2728
2729cat >conftest.$ac_ext <<_ACEOF
2730/* confdefs.h. */
2731_ACEOF
2732cat confdefs.h >>conftest.$ac_ext
2733cat >>conftest.$ac_ext <<_ACEOF
2734/* end confdefs.h. */
2735
2736int
2737main ()
2738{
2739
2740 ;
2741 return 0;
2742}
2743_ACEOF
2744ac_clean_files_save=$ac_clean_files
2745ac_clean_files="$ac_clean_files a.out a.exe b.out"
2746# Try to create an executable without -o first, disregard a.out.
2747# It will help us diagnose broken compilers, and finding out an intuition
2748# of exeext.
mmentovai8c2a4de2006-09-20 16:20:15 +00002749{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2750echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002751ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
mmentovai8c2a4de2006-09-20 16:20:15 +00002752#
2753# List of possible output files, starting from the most likely.
2754# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2755# only as a last resort. b.out is created by i960 compilers.
2756ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2757#
2758# The IRIX 6 linker writes into existing files which may not be
2759# executable, retaining their permissions. Remove them first so a
2760# subsequent execution test works.
2761ac_rmfiles=
2762for ac_file in $ac_files
2763do
2764 case $ac_file in
2765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2766 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2767 esac
2768done
2769rm -f $ac_rmfiles
2770
2771if { (ac_try="$ac_link_default"
2772case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775esac
2776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_link_default") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002781 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2782# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2783# in a Makefile. We should not override ac_cv_exeext if it was cached,
2784# so that the user can short-circuit this test for compilers unknown to
2785# Autoconf.
2786for ac_file in $ac_files
brynercb91a2f2006-08-25 21:14:45 +00002787do
2788 test -f "$ac_file" || continue
2789 case $ac_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
brynercb91a2f2006-08-25 21:14:45 +00002791 ;;
2792 [ab].out )
2793 # We found the default executable, but exeext='' is most
2794 # certainly right.
2795 break;;
2796 *.* )
mmentovai8c2a4de2006-09-20 16:20:15 +00002797 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2798 then :; else
2799 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2800 fi
2801 # We set ac_cv_exeext here because the later test for it is not
2802 # safe: cross compilers may not add the suffix if given an `-o'
2803 # argument, so we may need to know it at that point already.
2804 # Even if this section looks crufty: it has the advantage of
2805 # actually working.
brynercb91a2f2006-08-25 21:14:45 +00002806 break;;
2807 * )
2808 break;;
2809 esac
2810done
mmentovai8c2a4de2006-09-20 16:20:15 +00002811test "$ac_cv_exeext" = no && ac_cv_exeext=
2812
brynercb91a2f2006-08-25 21:14:45 +00002813else
2814 echo "$as_me: failed program was:" >&5
2815sed 's/^/| /' conftest.$ac_ext >&5
2816
2817{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2818See \`config.log' for more details." >&5
2819echo "$as_me: error: C compiler cannot create executables
2820See \`config.log' for more details." >&2;}
2821 { (exit 77); exit 77; }; }
2822fi
2823
2824ac_exeext=$ac_cv_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00002825{ echo "$as_me:$LINENO: result: $ac_file" >&5
2826echo "${ECHO_T}$ac_file" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002827
mmentovai8c2a4de2006-09-20 16:20:15 +00002828# Check that the compiler produces executables we can run. If not, either
brynercb91a2f2006-08-25 21:14:45 +00002829# the compiler is broken, or we cross compile.
mmentovai8c2a4de2006-09-20 16:20:15 +00002830{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2831echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002832# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2833# If not cross compiling, check that we can run a simple program.
2834if test "$cross_compiling" != yes; then
2835 if { ac_try='./$ac_file'
mmentovai8c2a4de2006-09-20 16:20:15 +00002836 { (case "(($ac_try" in
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2839esac
2840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2841 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; }; then
2845 cross_compiling=no
2846 else
2847 if test "$cross_compiling" = maybe; then
2848 cross_compiling=yes
2849 else
2850 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2851If you meant to cross compile, use \`--host'.
2852See \`config.log' for more details." >&5
2853echo "$as_me: error: cannot run C compiled programs.
2854If you meant to cross compile, use \`--host'.
2855See \`config.log' for more details." >&2;}
2856 { (exit 1); exit 1; }; }
2857 fi
2858 fi
2859fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002860{ echo "$as_me:$LINENO: result: yes" >&5
2861echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002862
2863rm -f a.out a.exe conftest$ac_cv_exeext b.out
2864ac_clean_files=$ac_clean_files_save
mmentovai8c2a4de2006-09-20 16:20:15 +00002865# Check that the compiler produces executables we can run. If not, either
brynercb91a2f2006-08-25 21:14:45 +00002866# the compiler is broken, or we cross compile.
mmentovai8c2a4de2006-09-20 16:20:15 +00002867{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2868echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2869{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2870echo "${ECHO_T}$cross_compiling" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002871
mmentovai8c2a4de2006-09-20 16:20:15 +00002872{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2873echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2874if { (ac_try="$ac_link"
2875case "(($ac_try" in
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2878esac
2879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2880 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; then
2884 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2885# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2886# work properly (i.e., refer to `conftest.exe'), while it won't with
2887# `rm'.
2888for ac_file in conftest.exe conftest conftest.*; do
2889 test -f "$ac_file" || continue
2890 case $ac_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
brynercb91a2f2006-08-25 21:14:45 +00002892 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
brynercb91a2f2006-08-25 21:14:45 +00002893 break;;
2894 * ) break;;
2895 esac
2896done
2897else
2898 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2899See \`config.log' for more details." >&5
2900echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2901See \`config.log' for more details." >&2;}
2902 { (exit 1); exit 1; }; }
2903fi
2904
2905rm -f conftest$ac_cv_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00002906{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2907echo "${ECHO_T}$ac_cv_exeext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002908
2909rm -f conftest.$ac_ext
2910EXEEXT=$ac_cv_exeext
2911ac_exeext=$EXEEXT
mmentovai8c2a4de2006-09-20 16:20:15 +00002912{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2913echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002914if test "${ac_cv_objext+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916else
2917 cat >conftest.$ac_ext <<_ACEOF
2918/* confdefs.h. */
2919_ACEOF
2920cat confdefs.h >>conftest.$ac_ext
2921cat >>conftest.$ac_ext <<_ACEOF
2922/* end confdefs.h. */
2923
2924int
2925main ()
2926{
2927
2928 ;
2929 return 0;
2930}
2931_ACEOF
2932rm -f conftest.o conftest.obj
mmentovai8c2a4de2006-09-20 16:20:15 +00002933if { (ac_try="$ac_compile"
2934case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937esac
2938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939 (eval "$ac_compile") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002943 for ac_file in conftest.o conftest.obj conftest.*; do
2944 test -f "$ac_file" || continue;
brynercb91a2f2006-08-25 21:14:45 +00002945 case $ac_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
brynercb91a2f2006-08-25 21:14:45 +00002947 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2948 break;;
2949 esac
2950done
2951else
2952 echo "$as_me: failed program was:" >&5
2953sed 's/^/| /' conftest.$ac_ext >&5
2954
2955{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2956See \`config.log' for more details." >&5
2957echo "$as_me: error: cannot compute suffix of object files: cannot compile
2958See \`config.log' for more details." >&2;}
2959 { (exit 1); exit 1; }; }
2960fi
2961
2962rm -f conftest.$ac_cv_objext conftest.$ac_ext
2963fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002964{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2965echo "${ECHO_T}$ac_cv_objext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002966OBJEXT=$ac_cv_objext
2967ac_objext=$OBJEXT
mmentovai8c2a4de2006-09-20 16:20:15 +00002968{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2969echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002970if test "${ac_cv_c_compiler_gnu+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2972else
2973 cat >conftest.$ac_ext <<_ACEOF
2974/* confdefs.h. */
2975_ACEOF
2976cat confdefs.h >>conftest.$ac_ext
2977cat >>conftest.$ac_ext <<_ACEOF
2978/* end confdefs.h. */
2979
2980int
2981main ()
2982{
2983#ifndef __GNUC__
2984 choke me
2985#endif
2986
2987 ;
2988 return 0;
2989}
2990_ACEOF
2991rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00002992if { (ac_try="$ac_compile"
2993case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996esac
2997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00002999 ac_status=$?
3000 grep -v '^ *+' conftest.er1 >conftest.err
3001 rm -f conftest.er1
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00003005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006 { (case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3009esac
3010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; } &&
3015 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00003016 { (case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019esac
3020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; }; then
3025 ac_compiler_gnu=yes
3026else
3027 echo "$as_me: failed program was:" >&5
3028sed 's/^/| /' conftest.$ac_ext >&5
3029
mmentovai8c2a4de2006-09-20 16:20:15 +00003030 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00003031fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003032
3033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003034ac_cv_c_compiler_gnu=$ac_compiler_gnu
3035
3036fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003037{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3038echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003039GCC=`test $ac_compiler_gnu = yes && echo yes`
3040ac_test_CFLAGS=${CFLAGS+set}
3041ac_save_CFLAGS=$CFLAGS
mmentovai8c2a4de2006-09-20 16:20:15 +00003042{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3043echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003044if test "${ac_cv_prog_cc_g+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3046else
mmentovai8c2a4de2006-09-20 16:20:15 +00003047 ac_save_c_werror_flag=$ac_c_werror_flag
3048 ac_c_werror_flag=yes
3049 ac_cv_prog_cc_g=no
3050 CFLAGS="-g"
3051 cat >conftest.$ac_ext <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00003052/* confdefs.h. */
3053_ACEOF
3054cat confdefs.h >>conftest.$ac_ext
3055cat >>conftest.$ac_ext <<_ACEOF
3056/* end confdefs.h. */
3057
3058int
3059main ()
3060{
3061
3062 ;
3063 return 0;
3064}
3065_ACEOF
3066rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00003067if { (ac_try="$ac_compile"
3068case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071esac
3072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003074 ac_status=$?
3075 grep -v '^ *+' conftest.er1 >conftest.err
3076 rm -f conftest.er1
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00003080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3081 { (case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003087 ac_status=$?
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; } &&
3090 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00003091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; }; then
3100 ac_cv_prog_cc_g=yes
3101else
3102 echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
mmentovai8c2a4de2006-09-20 16:20:15 +00003105 CFLAGS=""
3106 cat >conftest.$ac_ext <<_ACEOF
3107/* confdefs.h. */
3108_ACEOF
3109cat confdefs.h >>conftest.$ac_ext
3110cat >>conftest.$ac_ext <<_ACEOF
3111/* end confdefs.h. */
3112
3113int
3114main ()
3115{
3116
3117 ;
3118 return 0;
3119}
3120_ACEOF
3121rm -f conftest.$ac_objext
3122if { (ac_try="$ac_compile"
3123case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126esac
3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3129 ac_status=$?
3130 grep -v '^ *+' conftest.er1 >conftest.err
3131 rm -f conftest.er1
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139esac
3140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; } &&
3145 { ac_try='test -s conftest.$ac_objext'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3155 :
3156else
3157 echo "$as_me: failed program was:" >&5
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
3160 ac_c_werror_flag=$ac_save_c_werror_flag
3161 CFLAGS="-g"
3162 cat >conftest.$ac_ext <<_ACEOF
3163/* confdefs.h. */
3164_ACEOF
3165cat confdefs.h >>conftest.$ac_ext
3166cat >>conftest.$ac_ext <<_ACEOF
3167/* end confdefs.h. */
3168
3169int
3170main ()
3171{
3172
3173 ;
3174 return 0;
3175}
3176_ACEOF
3177rm -f conftest.$ac_objext
3178if { (ac_try="$ac_compile"
3179case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182esac
3183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_compile") 2>conftest.er1
3185 ac_status=$?
3186 grep -v '^ *+' conftest.er1 >conftest.err
3187 rm -f conftest.er1
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } &&
3191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3192 { (case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195esac
3196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_try") 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; } &&
3201 { ac_try='test -s conftest.$ac_objext'
3202 { (case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205esac
3206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_try") 2>&5
3208 ac_status=$?
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; }; then
3211 ac_cv_prog_cc_g=yes
3212else
3213 echo "$as_me: failed program was:" >&5
3214sed 's/^/| /' conftest.$ac_ext >&5
3215
3216
brynercb91a2f2006-08-25 21:14:45 +00003217fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003218
3219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003220fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003221
3222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223fi
3224
3225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 ac_c_werror_flag=$ac_save_c_werror_flag
3227fi
3228{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3229echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003230if test "$ac_test_CFLAGS" = set; then
3231 CFLAGS=$ac_save_CFLAGS
3232elif test $ac_cv_prog_cc_g = yes; then
3233 if test "$GCC" = yes; then
3234 CFLAGS="-g -O2"
3235 else
3236 CFLAGS="-g"
3237 fi
3238else
3239 if test "$GCC" = yes; then
3240 CFLAGS="-O2"
3241 else
3242 CFLAGS=
3243 fi
3244fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003245{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3246echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3247if test "${ac_cv_prog_cc_c89+set}" = set; then
brynercb91a2f2006-08-25 21:14:45 +00003248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249else
mmentovai8c2a4de2006-09-20 16:20:15 +00003250 ac_cv_prog_cc_c89=no
brynercb91a2f2006-08-25 21:14:45 +00003251ac_save_CC=$CC
3252cat >conftest.$ac_ext <<_ACEOF
3253/* confdefs.h. */
3254_ACEOF
3255cat confdefs.h >>conftest.$ac_ext
3256cat >>conftest.$ac_ext <<_ACEOF
3257/* end confdefs.h. */
3258#include <stdarg.h>
3259#include <stdio.h>
3260#include <sys/types.h>
3261#include <sys/stat.h>
3262/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3263struct buf { int x; };
3264FILE * (*rcsopen) (struct buf *, struct stat *, int);
3265static char *e (p, i)
3266 char **p;
3267 int i;
3268{
3269 return p[i];
3270}
3271static char *f (char * (*g) (char **, int), char **p, ...)
3272{
3273 char *s;
3274 va_list v;
3275 va_start (v,p);
3276 s = g (p, va_arg (v,int));
3277 va_end (v);
3278 return s;
3279}
3280
3281/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3282 function prototypes and stuff, but not '\xHH' hex character constants.
3283 These don't provoke an error unfortunately, instead are silently treated
mmentovai8c2a4de2006-09-20 16:20:15 +00003284 as 'x'. The following induces an error, until -std is added to get
brynercb91a2f2006-08-25 21:14:45 +00003285 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3286 array size at least. It's necessary to write '\x00'==0 to get something
mmentovai8c2a4de2006-09-20 16:20:15 +00003287 that's true only with -std. */
brynercb91a2f2006-08-25 21:14:45 +00003288int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3289
mmentovai8c2a4de2006-09-20 16:20:15 +00003290/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3291 inside strings and character constants. */
3292#define FOO(x) 'x'
3293int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3294
brynercb91a2f2006-08-25 21:14:45 +00003295int test (int i, double x);
3296struct s1 {int (*f) (int a);};
3297struct s2 {int (*f) (double a);};
3298int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3299int argc;
3300char **argv;
3301int
3302main ()
3303{
3304return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3305 ;
3306 return 0;
3307}
3308_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003309for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3310 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
brynercb91a2f2006-08-25 21:14:45 +00003311do
3312 CC="$ac_save_CC $ac_arg"
3313 rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00003314if { (ac_try="$ac_compile"
3315case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318esac
3319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003321 ac_status=$?
3322 grep -v '^ *+' conftest.er1 >conftest.err
3323 rm -f conftest.er1
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00003327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3328 { (case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331esac
3332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3333 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003334 ac_status=$?
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; } &&
3337 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00003338 { (case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341esac
3342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; }; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003347 ac_cv_prog_cc_c89=$ac_arg
brynercb91a2f2006-08-25 21:14:45 +00003348else
3349 echo "$as_me: failed program was:" >&5
3350sed 's/^/| /' conftest.$ac_ext >&5
3351
mmentovai8c2a4de2006-09-20 16:20:15 +00003352
brynercb91a2f2006-08-25 21:14:45 +00003353fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003354
3355rm -f core conftest.err conftest.$ac_objext
3356 test "x$ac_cv_prog_cc_c89" != "xno" && break
brynercb91a2f2006-08-25 21:14:45 +00003357done
mmentovai8c2a4de2006-09-20 16:20:15 +00003358rm -f conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003359CC=$ac_save_CC
3360
3361fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003362# AC_CACHE_VAL
3363case "x$ac_cv_prog_cc_c89" in
3364 x)
3365 { echo "$as_me:$LINENO: result: none needed" >&5
3366echo "${ECHO_T}none needed" >&6; } ;;
3367 xno)
3368 { echo "$as_me:$LINENO: result: unsupported" >&5
3369echo "${ECHO_T}unsupported" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003370 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00003371 CC="$CC $ac_cv_prog_cc_c89"
3372 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3373echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003374esac
3375
brynercb91a2f2006-08-25 21:14:45 +00003376
brynercb91a2f2006-08-25 21:14:45 +00003377ac_ext=c
3378ac_cpp='$CPP $CPPFLAGS'
3379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382DEPDIR="${am__leading_dot}deps"
3383
mmentovai8c2a4de2006-09-20 16:20:15 +00003384ac_config_commands="$ac_config_commands depfiles"
brynercb91a2f2006-08-25 21:14:45 +00003385
3386
3387am_make=${MAKE-make}
3388cat > confinc << 'END'
3389am__doit:
3390 @echo done
3391.PHONY: am__doit
3392END
3393# If we don't find an include directive, just comment out the code.
mmentovai8c2a4de2006-09-20 16:20:15 +00003394{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3395echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003396am__include="#"
3397am__quote=
3398_am_result=none
3399# First try GNU make style include.
3400echo "include confinc" > confmf
3401# We grep out `Entering directory' and `Leaving directory'
3402# messages which can occur if `w' ends up in MAKEFLAGS.
3403# In particular we don't look at `^make:' because GNU make might
3404# be invoked under some other name (usually "gmake"), in which
3405# case it prints its new name instead of `make'.
3406if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3407 am__include=include
3408 am__quote=
3409 _am_result=GNU
3410fi
3411# Now try BSD make style include.
3412if test "$am__include" = "#"; then
3413 echo '.include "confinc"' > confmf
3414 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3415 am__include=.include
3416 am__quote="\""
3417 _am_result=BSD
3418 fi
3419fi
3420
3421
mmentovai8c2a4de2006-09-20 16:20:15 +00003422{ echo "$as_me:$LINENO: result: $_am_result" >&5
3423echo "${ECHO_T}$_am_result" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003424rm -f confinc confmf
3425
mmentovai8c2a4de2006-09-20 16:20:15 +00003426# Check whether --enable-dependency-tracking was given.
brynercb91a2f2006-08-25 21:14:45 +00003427if test "${enable_dependency_tracking+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003428 enableval=$enable_dependency_tracking;
3429fi
brynercb91a2f2006-08-25 21:14:45 +00003430
brynercb91a2f2006-08-25 21:14:45 +00003431if test "x$enable_dependency_tracking" != xno; then
3432 am_depcomp="$ac_aux_dir/depcomp"
3433 AMDEPBACKSLASH='\'
3434fi
3435
3436
3437if test "x$enable_dependency_tracking" != xno; then
3438 AMDEP_TRUE=
3439 AMDEP_FALSE='#'
3440else
3441 AMDEP_TRUE='#'
3442 AMDEP_FALSE=
3443fi
3444
3445
3446
3447
3448depcc="$CC" am_compiler_list=
3449
mmentovai8c2a4de2006-09-20 16:20:15 +00003450{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3451echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003452if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3454else
3455 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3456 # We make a subdir and do the tests there. Otherwise we can end up
3457 # making bogus files that we don't know about and never remove. For
3458 # instance it was reported that on HP-UX the gcc test will end up
3459 # making a dummy file named `D' -- because `-MD' means `put the output
3460 # in D'.
3461 mkdir conftest.dir
3462 # Copy depcomp to subdir because otherwise we won't find it if we're
3463 # using a relative directory.
3464 cp "$am_depcomp" conftest.dir
3465 cd conftest.dir
3466 # We will build objects and dependencies in a subdirectory because
3467 # it helps to detect inapplicable dependency modes. For instance
3468 # both Tru64's cc and ICC support -MD to output dependencies as a
3469 # side effect of compilation, but ICC will put the dependencies in
3470 # the current directory while Tru64 will put them in the object
3471 # directory.
3472 mkdir sub
3473
3474 am_cv_CC_dependencies_compiler_type=none
3475 if test "$am_compiler_list" = ""; then
3476 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3477 fi
3478 for depmode in $am_compiler_list; do
3479 # Setup a source with many dependencies, because some compilers
3480 # like to wrap large dependency lists on column 80 (with \), and
3481 # we should not choose a depcomp mode which is confused by this.
3482 #
3483 # We need to recreate these files for each test, as the compiler may
3484 # overwrite some of them when testing with obscure command lines.
3485 # This happens at least with the AIX C compiler.
3486 : > sub/conftest.c
3487 for i in 1 2 3 4 5 6; do
3488 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3489 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3490 # Solaris 8's {/usr,}/bin/sh.
3491 touch sub/conftst$i.h
3492 done
3493 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3494
3495 case $depmode in
3496 nosideeffect)
3497 # after this tag, mechanisms are not by side-effect, so they'll
3498 # only be used when explicitly requested
3499 if test "x$enable_dependency_tracking" = xyes; then
3500 continue
3501 else
3502 break
3503 fi
3504 ;;
3505 none) break ;;
3506 esac
3507 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3508 # mode. It turns out that the SunPro C++ compiler does not properly
3509 # handle `-M -o', and we need to detect this.
3510 if depmode=$depmode \
3511 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3512 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3513 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3514 >/dev/null 2>conftest.err &&
3515 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3516 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3517 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3518 # icc doesn't choke on unknown options, it will just issue warnings
3519 # or remarks (even with -Werror). So we grep stderr for any message
3520 # that says an option was ignored or not supported.
3521 # When given -MP, icc 7.0 and 7.1 complain thusly:
3522 # icc: Command line warning: ignoring option '-M'; no argument required
3523 # The diagnosis changed in icc 8.0:
3524 # icc: Command line remark: option '-MP' not supported
3525 if (grep 'ignoring option' conftest.err ||
3526 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3527 am_cv_CC_dependencies_compiler_type=$depmode
3528 break
3529 fi
3530 fi
3531 done
3532
3533 cd ..
3534 rm -rf conftest.dir
3535else
3536 am_cv_CC_dependencies_compiler_type=none
3537fi
3538
3539fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003540{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3541echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003542CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3543
3544
3545
3546if
3547 test "x$enable_dependency_tracking" != xno \
3548 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3549 am__fastdepCC_TRUE=
3550 am__fastdepCC_FALSE='#'
3551else
3552 am__fastdepCC_TRUE='#'
3553 am__fastdepCC_FALSE=
3554fi
3555
3556
3557ac_ext=c
3558ac_cpp='$CPP $CPPFLAGS'
3559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561ac_compiler_gnu=$ac_cv_c_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00003562{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3563echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003564# On Suns, sometimes $CPP names a directory.
3565if test -n "$CPP" && test -d "$CPP"; then
3566 CPP=
3567fi
3568if test -z "$CPP"; then
3569 if test "${ac_cv_prog_CPP+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3571else
3572 # Double quotes because CPP needs to be expanded
3573 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3574 do
3575 ac_preproc_ok=false
3576for ac_c_preproc_warn_flag in '' yes
3577do
3578 # Use a header file that comes with gcc, so configuring glibc
3579 # with a fresh cross-compiler works.
3580 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3581 # <limits.h> exists even on freestanding compilers.
3582 # On the NeXT, cc -E runs the code through the compiler's parser,
3583 # not just through cpp. "Syntax error" is here to catch this case.
3584 cat >conftest.$ac_ext <<_ACEOF
3585/* confdefs.h. */
3586_ACEOF
3587cat confdefs.h >>conftest.$ac_ext
3588cat >>conftest.$ac_ext <<_ACEOF
3589/* end confdefs.h. */
3590#ifdef __STDC__
3591# include <limits.h>
3592#else
3593# include <assert.h>
3594#endif
3595 Syntax error
3596_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003597if { (ac_try="$ac_cpp conftest.$ac_ext"
3598case "(($ac_try" in
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3601esac
3602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003604 ac_status=$?
3605 grep -v '^ *+' conftest.er1 >conftest.err
3606 rm -f conftest.er1
3607 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } >/dev/null; then
3610 if test -s conftest.err; then
3611 ac_cpp_err=$ac_c_preproc_warn_flag
3612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3613 else
3614 ac_cpp_err=
3615 fi
3616else
3617 ac_cpp_err=yes
3618fi
3619if test -z "$ac_cpp_err"; then
3620 :
3621else
3622 echo "$as_me: failed program was:" >&5
3623sed 's/^/| /' conftest.$ac_ext >&5
3624
3625 # Broken: fails on valid input.
3626continue
3627fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003628
brynercb91a2f2006-08-25 21:14:45 +00003629rm -f conftest.err conftest.$ac_ext
3630
mmentovai8c2a4de2006-09-20 16:20:15 +00003631 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00003632 # can be detected and how.
3633 cat >conftest.$ac_ext <<_ACEOF
3634/* confdefs.h. */
3635_ACEOF
3636cat confdefs.h >>conftest.$ac_ext
3637cat >>conftest.$ac_ext <<_ACEOF
3638/* end confdefs.h. */
3639#include <ac_nonexistent.h>
3640_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003641if { (ac_try="$ac_cpp conftest.$ac_ext"
3642case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645esac
3646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003648 ac_status=$?
3649 grep -v '^ *+' conftest.er1 >conftest.err
3650 rm -f conftest.er1
3651 cat conftest.err >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } >/dev/null; then
3654 if test -s conftest.err; then
3655 ac_cpp_err=$ac_c_preproc_warn_flag
3656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3657 else
3658 ac_cpp_err=
3659 fi
3660else
3661 ac_cpp_err=yes
3662fi
3663if test -z "$ac_cpp_err"; then
3664 # Broken: success on invalid input.
3665continue
3666else
3667 echo "$as_me: failed program was:" >&5
3668sed 's/^/| /' conftest.$ac_ext >&5
3669
3670 # Passes both tests.
3671ac_preproc_ok=:
3672break
3673fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003674
brynercb91a2f2006-08-25 21:14:45 +00003675rm -f conftest.err conftest.$ac_ext
3676
3677done
3678# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3679rm -f conftest.err conftest.$ac_ext
3680if $ac_preproc_ok; then
3681 break
3682fi
3683
3684 done
3685 ac_cv_prog_CPP=$CPP
3686
3687fi
3688 CPP=$ac_cv_prog_CPP
3689else
3690 ac_cv_prog_CPP=$CPP
3691fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003692{ echo "$as_me:$LINENO: result: $CPP" >&5
3693echo "${ECHO_T}$CPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003694ac_preproc_ok=false
3695for ac_c_preproc_warn_flag in '' yes
3696do
3697 # Use a header file that comes with gcc, so configuring glibc
3698 # with a fresh cross-compiler works.
3699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3700 # <limits.h> exists even on freestanding compilers.
3701 # On the NeXT, cc -E runs the code through the compiler's parser,
3702 # not just through cpp. "Syntax error" is here to catch this case.
3703 cat >conftest.$ac_ext <<_ACEOF
3704/* confdefs.h. */
3705_ACEOF
3706cat confdefs.h >>conftest.$ac_ext
3707cat >>conftest.$ac_ext <<_ACEOF
3708/* end confdefs.h. */
3709#ifdef __STDC__
3710# include <limits.h>
3711#else
3712# include <assert.h>
3713#endif
3714 Syntax error
3715_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003716if { (ac_try="$ac_cpp conftest.$ac_ext"
3717case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720esac
3721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003723 ac_status=$?
3724 grep -v '^ *+' conftest.er1 >conftest.err
3725 rm -f conftest.er1
3726 cat conftest.err >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } >/dev/null; then
3729 if test -s conftest.err; then
3730 ac_cpp_err=$ac_c_preproc_warn_flag
3731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3732 else
3733 ac_cpp_err=
3734 fi
3735else
3736 ac_cpp_err=yes
3737fi
3738if test -z "$ac_cpp_err"; then
3739 :
3740else
3741 echo "$as_me: failed program was:" >&5
3742sed 's/^/| /' conftest.$ac_ext >&5
3743
3744 # Broken: fails on valid input.
3745continue
3746fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003747
brynercb91a2f2006-08-25 21:14:45 +00003748rm -f conftest.err conftest.$ac_ext
3749
mmentovai8c2a4de2006-09-20 16:20:15 +00003750 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00003751 # can be detected and how.
3752 cat >conftest.$ac_ext <<_ACEOF
3753/* confdefs.h. */
3754_ACEOF
3755cat confdefs.h >>conftest.$ac_ext
3756cat >>conftest.$ac_ext <<_ACEOF
3757/* end confdefs.h. */
3758#include <ac_nonexistent.h>
3759_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003760if { (ac_try="$ac_cpp conftest.$ac_ext"
3761case "(($ac_try" in
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3764esac
3765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003767 ac_status=$?
3768 grep -v '^ *+' conftest.er1 >conftest.err
3769 rm -f conftest.er1
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } >/dev/null; then
3773 if test -s conftest.err; then
3774 ac_cpp_err=$ac_c_preproc_warn_flag
3775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3776 else
3777 ac_cpp_err=
3778 fi
3779else
3780 ac_cpp_err=yes
3781fi
3782if test -z "$ac_cpp_err"; then
3783 # Broken: success on invalid input.
3784continue
3785else
3786 echo "$as_me: failed program was:" >&5
3787sed 's/^/| /' conftest.$ac_ext >&5
3788
3789 # Passes both tests.
3790ac_preproc_ok=:
3791break
3792fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003793
brynercb91a2f2006-08-25 21:14:45 +00003794rm -f conftest.err conftest.$ac_ext
3795
3796done
3797# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3798rm -f conftest.err conftest.$ac_ext
3799if $ac_preproc_ok; then
3800 :
3801else
3802 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3803See \`config.log' for more details." >&5
3804echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3805See \`config.log' for more details." >&2;}
3806 { (exit 1); exit 1; }; }
3807fi
3808
3809ac_ext=c
3810ac_cpp='$CPP $CPPFLAGS'
3811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814
mmentovai8c2a4de2006-09-20 16:20:15 +00003815ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00003816ac_cpp='$CXXCPP $CPPFLAGS'
3817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00003820if test -z "$CXX"; then
3821 if test -n "$CCC"; then
3822 CXX=$CCC
3823 else
3824 if test -n "$ac_tool_prefix"; then
3825 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 +00003826 do
3827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3828set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00003829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003831if test "${ac_cv_prog_CXX+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833else
3834 if test -n "$CXX"; then
3835 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3836else
3837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838for as_dir in $PATH
3839do
3840 IFS=$as_save_IFS
3841 test -z "$as_dir" && as_dir=.
3842 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00003843 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 +00003844 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 break 2
3847 fi
3848done
3849done
mmentovai8c2a4de2006-09-20 16:20:15 +00003850IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003851
3852fi
3853fi
3854CXX=$ac_cv_prog_CXX
3855if test -n "$CXX"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003856 { echo "$as_me:$LINENO: result: $CXX" >&5
3857echo "${ECHO_T}$CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003858else
mmentovai8c2a4de2006-09-20 16:20:15 +00003859 { echo "$as_me:$LINENO: result: no" >&5
3860echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003861fi
3862
mmentovai8c2a4de2006-09-20 16:20:15 +00003863
brynercb91a2f2006-08-25 21:14:45 +00003864 test -n "$CXX" && break
3865 done
3866fi
3867if test -z "$CXX"; then
3868 ac_ct_CXX=$CXX
mmentovai8c2a4de2006-09-20 16:20:15 +00003869 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 +00003870do
3871 # Extract the first word of "$ac_prog", so it can be a program name with args.
3872set dummy $ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00003873{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003875if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877else
3878 if test -n "$ac_ct_CXX"; then
3879 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3880else
3881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882for as_dir in $PATH
3883do
3884 IFS=$as_save_IFS
3885 test -z "$as_dir" && as_dir=.
3886 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00003887 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 +00003888 ac_cv_prog_ac_ct_CXX="$ac_prog"
3889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3890 break 2
3891 fi
3892done
3893done
mmentovai8c2a4de2006-09-20 16:20:15 +00003894IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003895
3896fi
3897fi
3898ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3899if test -n "$ac_ct_CXX"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003900 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3901echo "${ECHO_T}$ac_ct_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003902else
mmentovai8c2a4de2006-09-20 16:20:15 +00003903 { echo "$as_me:$LINENO: result: no" >&5
3904echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003905fi
3906
mmentovai8c2a4de2006-09-20 16:20:15 +00003907
brynercb91a2f2006-08-25 21:14:45 +00003908 test -n "$ac_ct_CXX" && break
3909done
brynercb91a2f2006-08-25 21:14:45 +00003910
mmentovai8c2a4de2006-09-20 16:20:15 +00003911 if test "x$ac_ct_CXX" = x; then
3912 CXX="g++"
3913 else
3914 case $cross_compiling:$ac_tool_warned in
3915yes:)
3916{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3917whose name does not start with the host triplet. If you think this
3918configuration is useful to you, please write to autoconf@gnu.org." >&5
3919echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3920whose name does not start with the host triplet. If you think this
3921configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3922ac_tool_warned=yes ;;
3923esac
3924 CXX=$ac_ct_CXX
3925 fi
brynercb91a2f2006-08-25 21:14:45 +00003926fi
3927
mmentovai8c2a4de2006-09-20 16:20:15 +00003928 fi
3929fi
brynercb91a2f2006-08-25 21:14:45 +00003930# Provide some information about the compiler.
mmentovai8c2a4de2006-09-20 16:20:15 +00003931echo "$as_me:$LINENO: checking for C++ compiler version" >&5
brynercb91a2f2006-08-25 21:14:45 +00003932ac_compiler=`set X $ac_compile; echo $2`
mmentovai8c2a4de2006-09-20 16:20:15 +00003933{ (ac_try="$ac_compiler --version >&5"
3934case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937esac
3938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3939 (eval "$ac_compiler --version >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }
mmentovai8c2a4de2006-09-20 16:20:15 +00003943{ (ac_try="$ac_compiler -v >&5"
3944case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947esac
3948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949 (eval "$ac_compiler -v >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003950 ac_status=$?
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }
mmentovai8c2a4de2006-09-20 16:20:15 +00003953{ (ac_try="$ac_compiler -V >&5"
3954case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957esac
3958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959 (eval "$ac_compiler -V >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003960 ac_status=$?
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }
3963
mmentovai8c2a4de2006-09-20 16:20:15 +00003964{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3965echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003966if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968else
3969 cat >conftest.$ac_ext <<_ACEOF
3970/* confdefs.h. */
3971_ACEOF
3972cat confdefs.h >>conftest.$ac_ext
3973cat >>conftest.$ac_ext <<_ACEOF
3974/* end confdefs.h. */
3975
3976int
3977main ()
3978{
3979#ifndef __GNUC__
3980 choke me
3981#endif
3982
3983 ;
3984 return 0;
3985}
3986_ACEOF
3987rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00003988if { (ac_try="$ac_compile"
3989case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3992esac
3993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3994 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003995 ac_status=$?
3996 grep -v '^ *+' conftest.er1 >conftest.err
3997 rm -f conftest.er1
3998 cat conftest.err >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00004001 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4002 { (case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4005esac
4006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00004008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; } &&
4011 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00004012 { (case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4015esac
4016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4017 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00004018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
4021 ac_compiler_gnu=yes
4022else
4023 echo "$as_me: failed program was:" >&5
4024sed 's/^/| /' conftest.$ac_ext >&5
4025
mmentovai8c2a4de2006-09-20 16:20:15 +00004026 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00004027fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004028
4029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004030ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4031
4032fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004033{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4034echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004035GXX=`test $ac_compiler_gnu = yes && echo yes`
4036ac_test_CXXFLAGS=${CXXFLAGS+set}
4037ac_save_CXXFLAGS=$CXXFLAGS
mmentovai8c2a4de2006-09-20 16:20:15 +00004038{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4039echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004040if test "${ac_cv_prog_cxx_g+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042else
mmentovai8c2a4de2006-09-20 16:20:15 +00004043 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4044 ac_cxx_werror_flag=yes
4045 ac_cv_prog_cxx_g=no
4046 CXXFLAGS="-g"
4047 cat >conftest.$ac_ext <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00004048/* confdefs.h. */
4049_ACEOF
4050cat confdefs.h >>conftest.$ac_ext
4051cat >>conftest.$ac_ext <<_ACEOF
4052/* end confdefs.h. */
4053
4054int
4055main ()
4056{
4057
4058 ;
4059 return 0;
4060}
4061_ACEOF
4062rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00004063if { (ac_try="$ac_compile"
4064case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067esac
4068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00004070 ac_status=$?
4071 grep -v '^ *+' conftest.er1 >conftest.err
4072 rm -f conftest.er1
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00004076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4077 { (case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4080esac
4081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00004083 ac_status=$?
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; } &&
4086 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00004087 { (case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090esac
4091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00004093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; }; then
4096 ac_cv_prog_cxx_g=yes
4097else
4098 echo "$as_me: failed program was:" >&5
4099sed 's/^/| /' conftest.$ac_ext >&5
4100
mmentovai8c2a4de2006-09-20 16:20:15 +00004101 CXXFLAGS=""
4102 cat >conftest.$ac_ext <<_ACEOF
4103/* confdefs.h. */
4104_ACEOF
4105cat confdefs.h >>conftest.$ac_ext
4106cat >>conftest.$ac_ext <<_ACEOF
4107/* end confdefs.h. */
4108
4109int
4110main ()
4111{
4112
4113 ;
4114 return 0;
4115}
4116_ACEOF
4117rm -f conftest.$ac_objext
4118if { (ac_try="$ac_compile"
4119case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122esac
4123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_compile") 2>conftest.er1
4125 ac_status=$?
4126 grep -v '^ *+' conftest.er1 >conftest.err
4127 rm -f conftest.er1
4128 cat conftest.err >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } &&
4131 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4132 { (case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135esac
4136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_try") 2>&5
4138 ac_status=$?
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; } &&
4141 { ac_try='test -s conftest.$ac_objext'
4142 { (case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145esac
4146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_try") 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
4151 :
4152else
4153 echo "$as_me: failed program was:" >&5
4154sed 's/^/| /' conftest.$ac_ext >&5
4155
4156 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4157 CXXFLAGS="-g"
4158 cat >conftest.$ac_ext <<_ACEOF
4159/* confdefs.h. */
4160_ACEOF
4161cat confdefs.h >>conftest.$ac_ext
4162cat >>conftest.$ac_ext <<_ACEOF
4163/* end confdefs.h. */
4164
4165int
4166main ()
4167{
4168
4169 ;
4170 return 0;
4171}
4172_ACEOF
4173rm -f conftest.$ac_objext
4174if { (ac_try="$ac_compile"
4175case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178esac
4179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_compile") 2>conftest.er1
4181 ac_status=$?
4182 grep -v '^ *+' conftest.er1 >conftest.err
4183 rm -f conftest.er1
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4188 { (case "(($ac_try" in
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4191esac
4192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4193 (eval "$ac_try") 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; } &&
4197 { ac_try='test -s conftest.$ac_objext'
4198 { (case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201esac
4202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203 (eval "$ac_try") 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; }; then
4207 ac_cv_prog_cxx_g=yes
4208else
4209 echo "$as_me: failed program was:" >&5
4210sed 's/^/| /' conftest.$ac_ext >&5
4211
4212
brynercb91a2f2006-08-25 21:14:45 +00004213fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004214
4215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004216fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004217
4218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219fi
4220
4221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4223fi
4224{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4225echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004226if test "$ac_test_CXXFLAGS" = set; then
4227 CXXFLAGS=$ac_save_CXXFLAGS
4228elif test $ac_cv_prog_cxx_g = yes; then
4229 if test "$GXX" = yes; then
4230 CXXFLAGS="-g -O2"
4231 else
4232 CXXFLAGS="-g"
4233 fi
4234else
4235 if test "$GXX" = yes; then
4236 CXXFLAGS="-O2"
4237 else
4238 CXXFLAGS=
4239 fi
4240fi
brynercb91a2f2006-08-25 21:14:45 +00004241ac_ext=c
4242ac_cpp='$CPP $CPPFLAGS'
4243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245ac_compiler_gnu=$ac_cv_c_compiler_gnu
4246
4247depcc="$CXX" am_compiler_list=
4248
mmentovai8c2a4de2006-09-20 16:20:15 +00004249{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4250echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004251if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253else
4254 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4255 # We make a subdir and do the tests there. Otherwise we can end up
4256 # making bogus files that we don't know about and never remove. For
4257 # instance it was reported that on HP-UX the gcc test will end up
4258 # making a dummy file named `D' -- because `-MD' means `put the output
4259 # in D'.
4260 mkdir conftest.dir
4261 # Copy depcomp to subdir because otherwise we won't find it if we're
4262 # using a relative directory.
4263 cp "$am_depcomp" conftest.dir
4264 cd conftest.dir
4265 # We will build objects and dependencies in a subdirectory because
4266 # it helps to detect inapplicable dependency modes. For instance
4267 # both Tru64's cc and ICC support -MD to output dependencies as a
4268 # side effect of compilation, but ICC will put the dependencies in
4269 # the current directory while Tru64 will put them in the object
4270 # directory.
4271 mkdir sub
4272
4273 am_cv_CXX_dependencies_compiler_type=none
4274 if test "$am_compiler_list" = ""; then
4275 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4276 fi
4277 for depmode in $am_compiler_list; do
4278 # Setup a source with many dependencies, because some compilers
4279 # like to wrap large dependency lists on column 80 (with \), and
4280 # we should not choose a depcomp mode which is confused by this.
4281 #
4282 # We need to recreate these files for each test, as the compiler may
4283 # overwrite some of them when testing with obscure command lines.
4284 # This happens at least with the AIX C compiler.
4285 : > sub/conftest.c
4286 for i in 1 2 3 4 5 6; do
4287 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4288 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4289 # Solaris 8's {/usr,}/bin/sh.
4290 touch sub/conftst$i.h
4291 done
4292 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4293
4294 case $depmode in
4295 nosideeffect)
4296 # after this tag, mechanisms are not by side-effect, so they'll
4297 # only be used when explicitly requested
4298 if test "x$enable_dependency_tracking" = xyes; then
4299 continue
4300 else
4301 break
4302 fi
4303 ;;
4304 none) break ;;
4305 esac
4306 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4307 # mode. It turns out that the SunPro C++ compiler does not properly
4308 # handle `-M -o', and we need to detect this.
4309 if depmode=$depmode \
4310 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4311 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4312 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4313 >/dev/null 2>conftest.err &&
4314 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4315 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4316 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4317 # icc doesn't choke on unknown options, it will just issue warnings
4318 # or remarks (even with -Werror). So we grep stderr for any message
4319 # that says an option was ignored or not supported.
4320 # When given -MP, icc 7.0 and 7.1 complain thusly:
4321 # icc: Command line warning: ignoring option '-M'; no argument required
4322 # The diagnosis changed in icc 8.0:
4323 # icc: Command line remark: option '-MP' not supported
4324 if (grep 'ignoring option' conftest.err ||
4325 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4326 am_cv_CXX_dependencies_compiler_type=$depmode
4327 break
4328 fi
4329 fi
4330 done
4331
4332 cd ..
4333 rm -rf conftest.dir
4334else
4335 am_cv_CXX_dependencies_compiler_type=none
4336fi
4337
4338fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004339{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4340echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004341CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4342
4343
4344
4345if
4346 test "x$enable_dependency_tracking" != xno \
4347 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4348 am__fastdepCXX_TRUE=
4349 am__fastdepCXX_FALSE='#'
4350else
4351 am__fastdepCXX_TRUE='#'
4352 am__fastdepCXX_FALSE=
4353fi
4354
4355
4356
mmentovai8c2a4de2006-09-20 16:20:15 +00004357# Check whether --enable-shared was given.
brynercb91a2f2006-08-25 21:14:45 +00004358if test "${enable_shared+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004359 enableval=$enable_shared; p=${PACKAGE-default}
brynercb91a2f2006-08-25 21:14:45 +00004360 case $enableval in
4361 yes) enable_shared=yes ;;
4362 no) enable_shared=no ;;
4363 *)
4364 enable_shared=no
4365 # Look at the argument we got. We use all the common list separators.
4366 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4367 for pkg in $enableval; do
4368 IFS="$lt_save_ifs"
4369 if test "X$pkg" = "X$p"; then
4370 enable_shared=yes
4371 fi
4372 done
4373 IFS="$lt_save_ifs"
4374 ;;
4375 esac
4376else
4377 enable_shared=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00004378fi
brynercb91a2f2006-08-25 21:14:45 +00004379
mmentovai8c2a4de2006-09-20 16:20:15 +00004380
4381# Check whether --enable-static was given.
brynercb91a2f2006-08-25 21:14:45 +00004382if test "${enable_static+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004383 enableval=$enable_static; p=${PACKAGE-default}
brynercb91a2f2006-08-25 21:14:45 +00004384 case $enableval in
4385 yes) enable_static=yes ;;
4386 no) enable_static=no ;;
4387 *)
4388 enable_static=no
4389 # Look at the argument we got. We use all the common list separators.
4390 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4391 for pkg in $enableval; do
4392 IFS="$lt_save_ifs"
4393 if test "X$pkg" = "X$p"; then
4394 enable_static=yes
4395 fi
4396 done
4397 IFS="$lt_save_ifs"
4398 ;;
4399 esac
4400else
4401 enable_static=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00004402fi
brynercb91a2f2006-08-25 21:14:45 +00004403
mmentovai8c2a4de2006-09-20 16:20:15 +00004404
4405# Check whether --enable-fast-install was given.
brynercb91a2f2006-08-25 21:14:45 +00004406if test "${enable_fast_install+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004407 enableval=$enable_fast_install; p=${PACKAGE-default}
brynercb91a2f2006-08-25 21:14:45 +00004408 case $enableval in
4409 yes) enable_fast_install=yes ;;
4410 no) enable_fast_install=no ;;
4411 *)
4412 enable_fast_install=no
4413 # Look at the argument we got. We use all the common list separators.
4414 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4415 for pkg in $enableval; do
4416 IFS="$lt_save_ifs"
4417 if test "X$pkg" = "X$p"; then
4418 enable_fast_install=yes
4419 fi
4420 done
4421 IFS="$lt_save_ifs"
4422 ;;
4423 esac
4424else
4425 enable_fast_install=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00004426fi
4427
brynercb91a2f2006-08-25 21:14:45 +00004428
4429# Make sure we can run config.sub.
mmentovai8c2a4de2006-09-20 16:20:15 +00004430$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4431 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4432echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00004433 { (exit 1); exit 1; }; }
4434
mmentovai8c2a4de2006-09-20 16:20:15 +00004435{ echo "$as_me:$LINENO: checking build system type" >&5
4436echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004437if test "${ac_cv_build+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4439else
mmentovai8c2a4de2006-09-20 16:20:15 +00004440 ac_build_alias=$build_alias
4441test "x$ac_build_alias" = x &&
4442 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4443test "x$ac_build_alias" = x &&
brynercb91a2f2006-08-25 21:14:45 +00004444 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4445echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4446 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004447ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4448 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4449echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00004450 { (exit 1); exit 1; }; }
4451
4452fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004453{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4454echo "${ECHO_T}$ac_cv_build" >&6; }
4455case $ac_cv_build in
4456*-*-*) ;;
4457*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4458echo "$as_me: error: invalid value of canonical build" >&2;}
4459 { (exit 1); exit 1; }; };;
4460esac
brynercb91a2f2006-08-25 21:14:45 +00004461build=$ac_cv_build
mmentovai8c2a4de2006-09-20 16:20:15 +00004462ac_save_IFS=$IFS; IFS='-'
4463set x $ac_cv_build
4464shift
4465build_cpu=$1
4466build_vendor=$2
4467shift; shift
4468# Remember, the first character of IFS is used to create $*,
4469# except with old shells:
4470build_os=$*
4471IFS=$ac_save_IFS
4472case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
brynercb91a2f2006-08-25 21:14:45 +00004473
4474
mmentovai8c2a4de2006-09-20 16:20:15 +00004475{ echo "$as_me:$LINENO: checking host system type" >&5
4476echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004477if test "${ac_cv_host+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479else
mmentovai8c2a4de2006-09-20 16:20:15 +00004480 if test "x$host_alias" = x; then
4481 ac_cv_host=$ac_cv_build
4482else
4483 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4484 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4485echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00004486 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004487fi
brynercb91a2f2006-08-25 21:14:45 +00004488
4489fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004490{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4491echo "${ECHO_T}$ac_cv_host" >&6; }
4492case $ac_cv_host in
4493*-*-*) ;;
4494*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4495echo "$as_me: error: invalid value of canonical host" >&2;}
4496 { (exit 1); exit 1; }; };;
4497esac
brynercb91a2f2006-08-25 21:14:45 +00004498host=$ac_cv_host
mmentovai8c2a4de2006-09-20 16:20:15 +00004499ac_save_IFS=$IFS; IFS='-'
4500set x $ac_cv_host
4501shift
4502host_cpu=$1
4503host_vendor=$2
4504shift; shift
4505# Remember, the first character of IFS is used to create $*,
4506# except with old shells:
4507host_os=$*
4508IFS=$ac_save_IFS
4509case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
brynercb91a2f2006-08-25 21:14:45 +00004510
4511
mmentovai8c2a4de2006-09-20 16:20:15 +00004512{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4513echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004514if test "${lt_cv_path_SED+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516else
4517 # Loop through the user's path and test for sed and gsed.
4518# Then use that list of sed's as ones to test for truncation.
4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520for as_dir in $PATH
4521do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for lt_ac_prog in sed gsed; do
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4527 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4528 fi
4529 done
4530 done
4531done
4532lt_ac_max=0
4533lt_ac_count=0
4534# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4535# along with /bin/sed that truncates output.
4536for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
mmentovai8c2a4de2006-09-20 16:20:15 +00004537 test ! -f $lt_ac_sed && continue
brynercb91a2f2006-08-25 21:14:45 +00004538 cat /dev/null > conftest.in
4539 lt_ac_count=0
4540 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4541 # Check for GNU sed and select it if it is found.
4542 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4543 lt_cv_path_SED=$lt_ac_sed
4544 break
4545 fi
4546 while true; do
4547 cat conftest.in conftest.in >conftest.tmp
4548 mv conftest.tmp conftest.in
4549 cp conftest.in conftest.nl
4550 echo >>conftest.nl
4551 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4552 cmp -s conftest.out conftest.nl || break
4553 # 10000 chars as input seems more than enough
4554 test $lt_ac_count -gt 10 && break
4555 lt_ac_count=`expr $lt_ac_count + 1`
4556 if test $lt_ac_count -gt $lt_ac_max; then
4557 lt_ac_max=$lt_ac_count
4558 lt_cv_path_SED=$lt_ac_sed
4559 fi
4560 done
4561done
brynercb91a2f2006-08-25 21:14:45 +00004562
4563fi
4564
mmentovai8c2a4de2006-09-20 16:20:15 +00004565SED=$lt_cv_path_SED
4566{ echo "$as_me:$LINENO: result: $SED" >&5
4567echo "${ECHO_T}$SED" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004568
mmentovai8c2a4de2006-09-20 16:20:15 +00004569{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4570echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4571if test "${ac_cv_path_GREP+set}" = set; then
brynercb91a2f2006-08-25 21:14:45 +00004572 echo $ECHO_N "(cached) $ECHO_C" >&6
4573else
mmentovai8c2a4de2006-09-20 16:20:15 +00004574 # Extract the first word of "grep ggrep" to use in msg output
4575if test -z "$GREP"; then
4576set dummy grep ggrep; ac_prog_name=$2
4577if test "${ac_cv_path_GREP+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579else
4580 ac_path_GREP_found=false
4581# Loop through the user's path and test for each of PROGNAME-LIST
4582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4584do
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_prog in grep ggrep; do
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4590 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4591 # Check for GNU ac_path_GREP and select it if it is found.
4592 # Check for GNU $ac_path_GREP
4593case `"$ac_path_GREP" --version 2>&1` in
4594*GNU*)
4595 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4596*)
4597 ac_count=0
4598 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4599 while :
4600 do
4601 cat "conftest.in" "conftest.in" >"conftest.tmp"
4602 mv "conftest.tmp" "conftest.in"
4603 cp "conftest.in" "conftest.nl"
4604 echo 'GREP' >> "conftest.nl"
4605 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4607 ac_count=`expr $ac_count + 1`
4608 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4609 # Best one so far, save it but keep looking for a better one
4610 ac_cv_path_GREP="$ac_path_GREP"
4611 ac_path_GREP_max=$ac_count
brynercb91a2f2006-08-25 21:14:45 +00004612 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004613 # 10*(2^10) chars as input seems more than enough
4614 test $ac_count -gt 10 && break
4615 done
4616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4617esac
4618
4619
4620 $ac_path_GREP_found && break 3
4621 done
4622done
4623
4624done
4625IFS=$as_save_IFS
4626
4627
brynercb91a2f2006-08-25 21:14:45 +00004628fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004629
4630GREP="$ac_cv_path_GREP"
4631if test -z "$GREP"; then
4632 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4633echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4634 { (exit 1); exit 1; }; }
4635fi
4636
4637else
4638 ac_cv_path_GREP=$GREP
4639fi
4640
4641
4642fi
4643{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4644echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4645 GREP="$ac_cv_path_GREP"
4646
4647
4648{ echo "$as_me:$LINENO: checking for egrep" >&5
4649echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4650if test "${ac_cv_path_EGREP+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652else
4653 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4654 then ac_cv_path_EGREP="$GREP -E"
4655 else
4656 # Extract the first word of "egrep" to use in msg output
4657if test -z "$EGREP"; then
4658set dummy egrep; ac_prog_name=$2
4659if test "${ac_cv_path_EGREP+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4661else
4662 ac_path_EGREP_found=false
4663# Loop through the user's path and test for each of PROGNAME-LIST
4664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4666do
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
4669 for ac_prog in egrep; do
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4672 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4673 # Check for GNU ac_path_EGREP and select it if it is found.
4674 # Check for GNU $ac_path_EGREP
4675case `"$ac_path_EGREP" --version 2>&1` in
4676*GNU*)
4677 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4678*)
4679 ac_count=0
4680 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4681 while :
4682 do
4683 cat "conftest.in" "conftest.in" >"conftest.tmp"
4684 mv "conftest.tmp" "conftest.in"
4685 cp "conftest.in" "conftest.nl"
4686 echo 'EGREP' >> "conftest.nl"
4687 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4689 ac_count=`expr $ac_count + 1`
4690 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4691 # Best one so far, save it but keep looking for a better one
4692 ac_cv_path_EGREP="$ac_path_EGREP"
4693 ac_path_EGREP_max=$ac_count
4694 fi
4695 # 10*(2^10) chars as input seems more than enough
4696 test $ac_count -gt 10 && break
4697 done
4698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4699esac
4700
4701
4702 $ac_path_EGREP_found && break 3
4703 done
4704done
4705
4706done
4707IFS=$as_save_IFS
4708
4709
4710fi
4711
4712EGREP="$ac_cv_path_EGREP"
4713if test -z "$EGREP"; then
4714 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4715echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4716 { (exit 1); exit 1; }; }
4717fi
4718
4719else
4720 ac_cv_path_EGREP=$EGREP
4721fi
4722
4723
4724 fi
4725fi
4726{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4727echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4728 EGREP="$ac_cv_path_EGREP"
brynercb91a2f2006-08-25 21:14:45 +00004729
4730
4731
mmentovai8c2a4de2006-09-20 16:20:15 +00004732# Check whether --with-gnu-ld was given.
brynercb91a2f2006-08-25 21:14:45 +00004733if test "${with_gnu_ld+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004734 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +00004735else
4736 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +00004737fi
4738
brynercb91a2f2006-08-25 21:14:45 +00004739ac_prog=ld
4740if test "$GCC" = yes; then
4741 # Check if gcc -print-prog-name=ld gives a path.
mmentovai8c2a4de2006-09-20 16:20:15 +00004742 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4743echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004744 case $host in
4745 *-*-mingw*)
4746 # gcc leaves a trailing carriage return which upsets mingw
4747 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4748 *)
4749 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4750 esac
4751 case $ac_prog in
4752 # Accept absolute paths.
4753 [\\/]* | ?:[\\/]*)
4754 re_direlt='/[^/][^/]*/\.\./'
4755 # Canonicalize the pathname of ld
4756 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4757 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4758 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4759 done
4760 test -z "$LD" && LD="$ac_prog"
4761 ;;
4762 "")
4763 # If it fails, then pretend we aren't using GCC.
4764 ac_prog=ld
4765 ;;
4766 *)
4767 # If it is relative, then search for the first ld in PATH.
4768 with_gnu_ld=unknown
4769 ;;
4770 esac
4771elif test "$with_gnu_ld" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004772 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4773echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004774else
mmentovai8c2a4de2006-09-20 16:20:15 +00004775 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4776echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004777fi
4778if test "${lt_cv_path_LD+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780else
4781 if test -z "$LD"; then
4782 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4783 for ac_dir in $PATH; do
4784 IFS="$lt_save_ifs"
4785 test -z "$ac_dir" && ac_dir=.
4786 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4787 lt_cv_path_LD="$ac_dir/$ac_prog"
4788 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +00004789 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004790 # Break only if it was the GNU/non-GNU ld that we prefer.
4791 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4792 *GNU* | *'with BFD'*)
4793 test "$with_gnu_ld" != no && break
4794 ;;
4795 *)
4796 test "$with_gnu_ld" != yes && break
4797 ;;
4798 esac
4799 fi
4800 done
4801 IFS="$lt_save_ifs"
4802else
4803 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4804fi
4805fi
4806
4807LD="$lt_cv_path_LD"
4808if test -n "$LD"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004809 { echo "$as_me:$LINENO: result: $LD" >&5
4810echo "${ECHO_T}$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004811else
mmentovai8c2a4de2006-09-20 16:20:15 +00004812 { echo "$as_me:$LINENO: result: no" >&5
4813echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004814fi
4815test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4816echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4817 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004818{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4819echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004820if test "${lt_cv_prog_gnu_ld+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4822else
mmentovai8c2a4de2006-09-20 16:20:15 +00004823 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004824case `$LD -v 2>&1 </dev/null` in
4825*GNU* | *'with BFD'*)
4826 lt_cv_prog_gnu_ld=yes
4827 ;;
4828*)
4829 lt_cv_prog_gnu_ld=no
4830 ;;
4831esac
4832fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004833{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4834echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004835with_gnu_ld=$lt_cv_prog_gnu_ld
4836
4837
mmentovai8c2a4de2006-09-20 16:20:15 +00004838{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4839echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004840if test "${lt_cv_ld_reload_flag+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4842else
4843 lt_cv_ld_reload_flag='-r'
4844fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004845{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4846echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004847reload_flag=$lt_cv_ld_reload_flag
4848case $reload_flag in
4849"" | " "*) ;;
4850*) reload_flag=" $reload_flag" ;;
4851esac
4852reload_cmds='$LD$reload_flag -o $output$reload_objs'
mmentovai8c2a4de2006-09-20 16:20:15 +00004853case $host_os in
4854 darwin*)
4855 if test "$GCC" = yes; then
4856 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4857 else
4858 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4859 fi
4860 ;;
4861esac
brynercb91a2f2006-08-25 21:14:45 +00004862
mmentovai8c2a4de2006-09-20 16:20:15 +00004863{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4864echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004865if test "${lt_cv_path_NM+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4867else
4868 if test -n "$NM"; then
4869 # Let the user override the test.
4870 lt_cv_path_NM="$NM"
4871else
mmentovai8c2a4de2006-09-20 16:20:15 +00004872 lt_nm_to_check="${ac_tool_prefix}nm"
4873 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4874 lt_nm_to_check="$lt_nm_to_check nm"
4875 fi
4876 for lt_tmp_nm in $lt_nm_to_check; do
4877 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4878 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4879 IFS="$lt_save_ifs"
4880 test -z "$ac_dir" && ac_dir=.
4881 tmp_nm="$ac_dir/$lt_tmp_nm"
4882 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4883 # Check to see if the nm accepts a BSD-compat flag.
4884 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4885 # nm: unknown option "B" ignored
4886 # Tru64's nm complains that /dev/null is an invalid object file
4887 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4888 */dev/null* | *'Invalid file or object type'*)
4889 lt_cv_path_NM="$tmp_nm -B"
brynercb91a2f2006-08-25 21:14:45 +00004890 break
4891 ;;
4892 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00004893 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4894 */dev/null*)
4895 lt_cv_path_NM="$tmp_nm -p"
4896 break
4897 ;;
4898 *)
4899 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4900 continue # so that we can try to find one that supports BSD flags
4901 ;;
4902 esac
brynercb91a2f2006-08-25 21:14:45 +00004903 ;;
4904 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00004905 fi
4906 done
4907 IFS="$lt_save_ifs"
brynercb91a2f2006-08-25 21:14:45 +00004908 done
brynercb91a2f2006-08-25 21:14:45 +00004909 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4910fi
4911fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004912{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4913echo "${ECHO_T}$lt_cv_path_NM" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004914NM="$lt_cv_path_NM"
4915
mmentovai8c2a4de2006-09-20 16:20:15 +00004916{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4917echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004918LN_S=$as_ln_s
4919if test "$LN_S" = "ln -s"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004920 { echo "$as_me:$LINENO: result: yes" >&5
4921echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004922else
mmentovai8c2a4de2006-09-20 16:20:15 +00004923 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4924echo "${ECHO_T}no, using $LN_S" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004925fi
4926
mmentovai8c2a4de2006-09-20 16:20:15 +00004927{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4928echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004929if test "${lt_cv_deplibs_check_method+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4931else
4932 lt_cv_file_magic_cmd='$MAGIC_CMD'
4933lt_cv_file_magic_test_file=
4934lt_cv_deplibs_check_method='unknown'
4935# Need to set the preceding variable on all platforms that support
4936# interlibrary dependencies.
4937# 'none' -- dependencies not supported.
4938# `unknown' -- same as none, but documents that we really don't know.
4939# 'pass_all' -- all dependencies passed with no checks.
4940# 'test_compile' -- check by making test program.
4941# 'file_magic [[regex]]' -- check by looking for files in library path
4942# which responds to the $file_magic_cmd with a given extended regex.
4943# If you have `file' or equivalent on your system and you're not sure
4944# whether `pass_all' will *always* work, you probably want this one.
4945
4946case $host_os in
4947aix4* | aix5*)
4948 lt_cv_deplibs_check_method=pass_all
4949 ;;
4950
4951beos*)
4952 lt_cv_deplibs_check_method=pass_all
4953 ;;
4954
mmentovai8c2a4de2006-09-20 16:20:15 +00004955bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00004956 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4957 lt_cv_file_magic_cmd='/usr/bin/file -L'
4958 lt_cv_file_magic_test_file=/shlib/libc.so
4959 ;;
4960
4961cygwin*)
4962 # func_win32_libid is a shell function defined in ltmain.sh
4963 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4964 lt_cv_file_magic_cmd='func_win32_libid'
4965 ;;
4966
4967mingw* | pw32*)
4968 # Base MSYS/MinGW do not provide the 'file' command needed by
4969 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4970 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4971 lt_cv_file_magic_cmd='$OBJDUMP -f'
4972 ;;
4973
4974darwin* | rhapsody*)
4975 lt_cv_deplibs_check_method=pass_all
4976 ;;
4977
mmentovai8c2a4de2006-09-20 16:20:15 +00004978freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +00004979 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4980 case $host_cpu in
4981 i*86 )
4982 # Not sure whether the presence of OpenBSD here was a mistake.
4983 # Let's accept both of them until this is cleared up.
mmentovai8c2a4de2006-09-20 16:20:15 +00004984 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 +00004985 lt_cv_file_magic_cmd=/usr/bin/file
4986 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4987 ;;
4988 esac
4989 else
4990 lt_cv_deplibs_check_method=pass_all
4991 fi
4992 ;;
4993
4994gnu*)
4995 lt_cv_deplibs_check_method=pass_all
4996 ;;
4997
4998hpux10.20* | hpux11*)
4999 lt_cv_file_magic_cmd=/usr/bin/file
mmentovai8c2a4de2006-09-20 16:20:15 +00005000 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00005001 ia64*)
5002 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5003 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5004 ;;
5005 hppa*64*)
5006 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]'
5007 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5008 ;;
5009 *)
5010 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5011 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5012 ;;
5013 esac
5014 ;;
5015
mmentovai8c2a4de2006-09-20 16:20:15 +00005016interix3*)
5017 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5019 ;;
5020
brynercb91a2f2006-08-25 21:14:45 +00005021irix5* | irix6* | nonstopux*)
5022 case $LD in
5023 *-32|*"-32 ") libmagic=32-bit;;
5024 *-n32|*"-n32 ") libmagic=N32;;
5025 *-64|*"-64 ") libmagic=64-bit;;
5026 *) libmagic=never-match;;
5027 esac
5028 lt_cv_deplibs_check_method=pass_all
5029 ;;
5030
5031# This must be Linux ELF.
5032linux*)
5033 lt_cv_deplibs_check_method=pass_all
5034 ;;
5035
mmentovai8c2a4de2006-09-20 16:20:15 +00005036netbsd*)
brynercb91a2f2006-08-25 21:14:45 +00005037 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5039 else
5040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5041 fi
5042 ;;
5043
5044newos6*)
5045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5046 lt_cv_file_magic_cmd=/usr/bin/file
5047 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5048 ;;
5049
5050nto-qnx*)
5051 lt_cv_deplibs_check_method=unknown
5052 ;;
5053
5054openbsd*)
brynercb91a2f2006-08-25 21:14:45 +00005055 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005057 else
mmentovai8c2a4de2006-09-20 16:20:15 +00005058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005059 fi
5060 ;;
5061
5062osf3* | osf4* | osf5*)
5063 lt_cv_deplibs_check_method=pass_all
5064 ;;
5065
brynercb91a2f2006-08-25 21:14:45 +00005066solaris*)
5067 lt_cv_deplibs_check_method=pass_all
5068 ;;
5069
mmentovai8c2a4de2006-09-20 16:20:15 +00005070sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00005071 case $host_vendor in
5072 motorola)
5073 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]'
5074 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5075 ;;
5076 ncr)
5077 lt_cv_deplibs_check_method=pass_all
5078 ;;
5079 sequent)
5080 lt_cv_file_magic_cmd='/bin/file'
5081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5082 ;;
5083 sni)
5084 lt_cv_file_magic_cmd='/bin/file'
5085 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5086 lt_cv_file_magic_test_file=/lib/libc.so
5087 ;;
5088 siemens)
5089 lt_cv_deplibs_check_method=pass_all
5090 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005091 pc)
5092 lt_cv_deplibs_check_method=pass_all
5093 ;;
brynercb91a2f2006-08-25 21:14:45 +00005094 esac
5095 ;;
5096
mmentovai8c2a4de2006-09-20 16:20:15 +00005097sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
brynercb91a2f2006-08-25 21:14:45 +00005098 lt_cv_deplibs_check_method=pass_all
5099 ;;
5100esac
5101
5102fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005103{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5104echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005105file_magic_cmd=$lt_cv_file_magic_cmd
5106deplibs_check_method=$lt_cv_deplibs_check_method
5107test -z "$deplibs_check_method" && deplibs_check_method=unknown
5108
5109
5110
5111
5112# If no C compiler was specified, use CC.
5113LTCC=${LTCC-"$CC"}
5114
mmentovai8c2a4de2006-09-20 16:20:15 +00005115# If no C compiler flags were specified, use CFLAGS.
5116LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5117
brynercb91a2f2006-08-25 21:14:45 +00005118# Allow CC to be a program name with arguments.
5119compiler=$CC
5120
5121
mmentovai8c2a4de2006-09-20 16:20:15 +00005122# Check whether --enable-libtool-lock was given.
brynercb91a2f2006-08-25 21:14:45 +00005123if test "${enable_libtool_lock+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005124 enableval=$enable_libtool_lock;
5125fi
brynercb91a2f2006-08-25 21:14:45 +00005126
brynercb91a2f2006-08-25 21:14:45 +00005127test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5128
5129# Some flags need to be propagated to the compiler or linker for good
5130# libtool support.
5131case $host in
5132ia64-*-hpux*)
5133 # Find out which ABI we are using.
5134 echo 'int i;' > conftest.$ac_ext
5135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5136 (eval $ac_compile) 2>&5
5137 ac_status=$?
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; then
5140 case `/usr/bin/file conftest.$ac_objext` in
5141 *ELF-32*)
5142 HPUX_IA64_MODE="32"
5143 ;;
5144 *ELF-64*)
5145 HPUX_IA64_MODE="64"
5146 ;;
5147 esac
5148 fi
5149 rm -rf conftest*
5150 ;;
5151*-*-irix6*)
5152 # Find out which ABI we are using.
mmentovai8c2a4de2006-09-20 16:20:15 +00005153 echo '#line 5153 "configure"' > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5155 (eval $ac_compile) 2>&5
5156 ac_status=$?
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; then
5159 if test "$lt_cv_prog_gnu_ld" = yes; then
5160 case `/usr/bin/file conftest.$ac_objext` in
5161 *32-bit*)
5162 LD="${LD-ld} -melf32bsmip"
5163 ;;
5164 *N32*)
5165 LD="${LD-ld} -melf32bmipn32"
5166 ;;
5167 *64-bit*)
5168 LD="${LD-ld} -melf64bmip"
5169 ;;
5170 esac
5171 else
5172 case `/usr/bin/file conftest.$ac_objext` in
5173 *32-bit*)
5174 LD="${LD-ld} -32"
5175 ;;
5176 *N32*)
5177 LD="${LD-ld} -n32"
5178 ;;
5179 *64-bit*)
5180 LD="${LD-ld} -64"
5181 ;;
5182 esac
5183 fi
5184 fi
5185 rm -rf conftest*
5186 ;;
5187
5188x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5189 # Find out which ABI we are using.
5190 echo 'int i;' > conftest.$ac_ext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5192 (eval $ac_compile) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005196 case `/usr/bin/file conftest.o` in
brynercb91a2f2006-08-25 21:14:45 +00005197 *32-bit*)
5198 case $host in
5199 x86_64-*linux*)
5200 LD="${LD-ld} -m elf_i386"
5201 ;;
5202 ppc64-*linux*|powerpc64-*linux*)
5203 LD="${LD-ld} -m elf32ppclinux"
5204 ;;
5205 s390x-*linux*)
5206 LD="${LD-ld} -m elf_s390"
5207 ;;
5208 sparc64-*linux*)
5209 LD="${LD-ld} -m elf32_sparc"
5210 ;;
5211 esac
5212 ;;
5213 *64-bit*)
5214 case $host in
5215 x86_64-*linux*)
5216 LD="${LD-ld} -m elf_x86_64"
5217 ;;
5218 ppc*-*linux*|powerpc*-*linux*)
5219 LD="${LD-ld} -m elf64ppc"
5220 ;;
5221 s390*-*linux*)
5222 LD="${LD-ld} -m elf64_s390"
5223 ;;
5224 sparc*-*linux*)
5225 LD="${LD-ld} -m elf64_sparc"
5226 ;;
5227 esac
5228 ;;
5229 esac
5230 fi
5231 rm -rf conftest*
5232 ;;
5233
5234*-*-sco3.2v5*)
5235 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5236 SAVE_CFLAGS="$CFLAGS"
5237 CFLAGS="$CFLAGS -belf"
mmentovai8c2a4de2006-09-20 16:20:15 +00005238 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5239echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005240if test "${lt_cv_cc_needs_belf+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242else
5243 ac_ext=c
5244ac_cpp='$CPP $CPPFLAGS'
5245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247ac_compiler_gnu=$ac_cv_c_compiler_gnu
5248
5249 cat >conftest.$ac_ext <<_ACEOF
5250/* confdefs.h. */
5251_ACEOF
5252cat confdefs.h >>conftest.$ac_ext
5253cat >>conftest.$ac_ext <<_ACEOF
5254/* end confdefs.h. */
5255
5256int
5257main ()
5258{
5259
5260 ;
5261 return 0;
5262}
5263_ACEOF
5264rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00005265if { (ac_try="$ac_link"
5266case "(($ac_try" in
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5269esac
5270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005272 ac_status=$?
5273 grep -v '^ *+' conftest.er1 >conftest.err
5274 rm -f conftest.er1
5275 cat conftest.err >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00005278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5279 { (case "(($ac_try" in
5280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281 *) ac_try_echo=$ac_try;;
5282esac
5283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5284 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; } &&
5288 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00005289 { (case "(($ac_try" in
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5292esac
5293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; }; then
5298 lt_cv_cc_needs_belf=yes
5299else
5300 echo "$as_me: failed program was:" >&5
5301sed 's/^/| /' conftest.$ac_ext >&5
5302
mmentovai8c2a4de2006-09-20 16:20:15 +00005303 lt_cv_cc_needs_belf=no
brynercb91a2f2006-08-25 21:14:45 +00005304fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005305
5306rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00005307 conftest$ac_exeext conftest.$ac_ext
5308 ac_ext=c
5309ac_cpp='$CPP $CPPFLAGS'
5310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5312ac_compiler_gnu=$ac_cv_c_compiler_gnu
5313
5314fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005315{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5316echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005317 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5318 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5319 CFLAGS="$SAVE_CFLAGS"
5320 fi
5321 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005322sparc*-*solaris*)
5323 # Find out which ABI we are using.
5324 echo 'int i;' > conftest.$ac_ext
5325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5326 (eval $ac_compile) 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; then
5330 case `/usr/bin/file conftest.o` in
5331 *64-bit*)
5332 case $lt_cv_prog_gnu_ld in
5333 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5334 *) LD="${LD-ld} -64" ;;
5335 esac
5336 ;;
5337 esac
5338 fi
5339 rm -rf conftest*
5340 ;;
5341
brynercb91a2f2006-08-25 21:14:45 +00005342
5343esac
5344
5345need_locks="$enable_libtool_lock"
5346
5347
5348
mmentovai8c2a4de2006-09-20 16:20:15 +00005349{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5350echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005351if test "${ac_cv_header_stdc+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5353else
5354 cat >conftest.$ac_ext <<_ACEOF
5355/* confdefs.h. */
5356_ACEOF
5357cat confdefs.h >>conftest.$ac_ext
5358cat >>conftest.$ac_ext <<_ACEOF
5359/* end confdefs.h. */
5360#include <stdlib.h>
5361#include <stdarg.h>
5362#include <string.h>
5363#include <float.h>
5364
5365int
5366main ()
5367{
5368
5369 ;
5370 return 0;
5371}
5372_ACEOF
5373rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00005374if { (ac_try="$ac_compile"
5375case "(($ac_try" in
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5378esac
5379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005381 ac_status=$?
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00005387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5388 { (case "(($ac_try" in
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5391esac
5392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; } &&
5397 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00005398 { (case "(($ac_try" in
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5401esac
5402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005404 ac_status=$?
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; }; then
5407 ac_cv_header_stdc=yes
5408else
5409 echo "$as_me: failed program was:" >&5
5410sed 's/^/| /' conftest.$ac_ext >&5
5411
mmentovai8c2a4de2006-09-20 16:20:15 +00005412 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +00005413fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005414
5415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005416
5417if test $ac_cv_header_stdc = yes; then
5418 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5419 cat >conftest.$ac_ext <<_ACEOF
5420/* confdefs.h. */
5421_ACEOF
5422cat confdefs.h >>conftest.$ac_ext
5423cat >>conftest.$ac_ext <<_ACEOF
5424/* end confdefs.h. */
5425#include <string.h>
5426
5427_ACEOF
5428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5429 $EGREP "memchr" >/dev/null 2>&1; then
5430 :
5431else
5432 ac_cv_header_stdc=no
5433fi
5434rm -f conftest*
5435
5436fi
5437
5438if test $ac_cv_header_stdc = yes; then
5439 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5440 cat >conftest.$ac_ext <<_ACEOF
5441/* confdefs.h. */
5442_ACEOF
5443cat confdefs.h >>conftest.$ac_ext
5444cat >>conftest.$ac_ext <<_ACEOF
5445/* end confdefs.h. */
5446#include <stdlib.h>
5447
5448_ACEOF
5449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5450 $EGREP "free" >/dev/null 2>&1; then
5451 :
5452else
5453 ac_cv_header_stdc=no
5454fi
5455rm -f conftest*
5456
5457fi
5458
5459if test $ac_cv_header_stdc = yes; then
5460 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5461 if test "$cross_compiling" = yes; then
5462 :
5463else
5464 cat >conftest.$ac_ext <<_ACEOF
5465/* confdefs.h. */
5466_ACEOF
5467cat confdefs.h >>conftest.$ac_ext
5468cat >>conftest.$ac_ext <<_ACEOF
5469/* end confdefs.h. */
5470#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +00005471#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +00005472#if ((' ' & 0x0FF) == 0x020)
5473# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5474# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5475#else
5476# define ISLOWER(c) \
5477 (('a' <= (c) && (c) <= 'i') \
5478 || ('j' <= (c) && (c) <= 'r') \
5479 || ('s' <= (c) && (c) <= 'z'))
5480# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5481#endif
5482
5483#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5484int
5485main ()
5486{
5487 int i;
5488 for (i = 0; i < 256; i++)
5489 if (XOR (islower (i), ISLOWER (i))
5490 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +00005491 return 2;
5492 return 0;
brynercb91a2f2006-08-25 21:14:45 +00005493}
5494_ACEOF
5495rm -f conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00005496if { (ac_try="$ac_link"
5497case "(($ac_try" in
5498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499 *) ac_try_echo=$ac_try;;
5500esac
5501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5502 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005503 ac_status=$?
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00005506 { (case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5509esac
5510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; }; then
5515 :
5516else
5517 echo "$as_me: program exited with status $ac_status" >&5
5518echo "$as_me: failed program was:" >&5
5519sed 's/^/| /' conftest.$ac_ext >&5
5520
5521( exit $ac_status )
5522ac_cv_header_stdc=no
5523fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5525fi
5526
5527
brynercb91a2f2006-08-25 21:14:45 +00005528fi
5529fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005530{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5531echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005532if test $ac_cv_header_stdc = yes; then
5533
5534cat >>confdefs.h <<\_ACEOF
5535#define STDC_HEADERS 1
5536_ACEOF
5537
5538fi
5539
5540# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5551 inttypes.h stdint.h unistd.h
5552do
5553as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mmentovai8c2a4de2006-09-20 16:20:15 +00005554{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
brynercb91a2f2006-08-25 21:14:45 +00005557 echo $ECHO_N "(cached) $ECHO_C" >&6
5558else
5559 cat >conftest.$ac_ext <<_ACEOF
5560/* confdefs.h. */
5561_ACEOF
5562cat confdefs.h >>conftest.$ac_ext
5563cat >>conftest.$ac_ext <<_ACEOF
5564/* end confdefs.h. */
5565$ac_includes_default
5566
5567#include <$ac_header>
5568_ACEOF
5569rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00005570if { (ac_try="$ac_compile"
5571case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574esac
5575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005577 ac_status=$?
5578 grep -v '^ *+' conftest.er1 >conftest.err
5579 rm -f conftest.er1
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00005583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5584 { (case "(($ac_try" in
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5587esac
5588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; } &&
5593 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00005594 { (case "(($ac_try" in
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5597esac
5598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 eval "$as_ac_Header=yes"
5604else
5605 echo "$as_me: failed program was:" >&5
5606sed 's/^/| /' conftest.$ac_ext >&5
5607
mmentovai8c2a4de2006-09-20 16:20:15 +00005608 eval "$as_ac_Header=no"
brynercb91a2f2006-08-25 21:14:45 +00005609fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005610
5611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005612fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005613ac_res=`eval echo '${'$as_ac_Header'}'`
5614 { echo "$as_me:$LINENO: result: $ac_res" >&5
5615echo "${ECHO_T}$ac_res" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005616if test `eval echo '${'$as_ac_Header'}'` = yes; then
5617 cat >>confdefs.h <<_ACEOF
5618#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5619_ACEOF
5620
5621fi
5622
5623done
5624
5625
5626
5627for ac_header in dlfcn.h
5628do
5629as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mmentovai8c2a4de2006-09-20 16:20:15 +00005630if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5633if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
brynercb91a2f2006-08-25 21:14:45 +00005634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005636ac_res=`eval echo '${'$as_ac_Header'}'`
5637 { echo "$as_me:$LINENO: result: $ac_res" >&5
5638echo "${ECHO_T}$ac_res" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005639else
5640 # Is the header compilable?
mmentovai8c2a4de2006-09-20 16:20:15 +00005641{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5642echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005643cat >conftest.$ac_ext <<_ACEOF
5644/* confdefs.h. */
5645_ACEOF
5646cat confdefs.h >>conftest.$ac_ext
5647cat >>conftest.$ac_ext <<_ACEOF
5648/* end confdefs.h. */
5649$ac_includes_default
5650#include <$ac_header>
5651_ACEOF
5652rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00005653if { (ac_try="$ac_compile"
5654case "(($ac_try" in
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5657esac
5658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005660 ac_status=$?
5661 grep -v '^ *+' conftest.er1 >conftest.err
5662 rm -f conftest.er1
5663 cat conftest.err >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00005666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5667 { (case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670esac
5671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; } &&
5676 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00005677 { (case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680esac
5681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 ac_header_compiler=yes
5687else
5688 echo "$as_me: failed program was:" >&5
5689sed 's/^/| /' conftest.$ac_ext >&5
5690
mmentovai8c2a4de2006-09-20 16:20:15 +00005691 ac_header_compiler=no
brynercb91a2f2006-08-25 21:14:45 +00005692fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005693
5694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5696echo "${ECHO_T}$ac_header_compiler" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005697
5698# Is the header present?
mmentovai8c2a4de2006-09-20 16:20:15 +00005699{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5700echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005701cat >conftest.$ac_ext <<_ACEOF
5702/* confdefs.h. */
5703_ACEOF
5704cat confdefs.h >>conftest.$ac_ext
5705cat >>conftest.$ac_ext <<_ACEOF
5706/* end confdefs.h. */
5707#include <$ac_header>
5708_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005709if { (ac_try="$ac_cpp conftest.$ac_ext"
5710case "(($ac_try" in
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5713esac
5714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005716 ac_status=$?
5717 grep -v '^ *+' conftest.er1 >conftest.err
5718 rm -f conftest.er1
5719 cat conftest.err >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } >/dev/null; then
5722 if test -s conftest.err; then
5723 ac_cpp_err=$ac_c_preproc_warn_flag
5724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5725 else
5726 ac_cpp_err=
5727 fi
5728else
5729 ac_cpp_err=yes
5730fi
5731if test -z "$ac_cpp_err"; then
5732 ac_header_preproc=yes
5733else
5734 echo "$as_me: failed program was:" >&5
5735sed 's/^/| /' conftest.$ac_ext >&5
5736
5737 ac_header_preproc=no
5738fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005739
brynercb91a2f2006-08-25 21:14:45 +00005740rm -f conftest.err conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00005741{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5742echo "${ECHO_T}$ac_header_preproc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005743
5744# So? What about this header?
5745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5746 yes:no: )
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5748echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5750echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5751 ac_header_preproc=yes
5752 ;;
5753 no:yes:* )
5754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5755echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5757echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5759echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5761echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5763echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5765echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00005766 ( cat <<\_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00005767## ------------------------------------ ##
5768## Report this to opensource@google.com ##
5769## ------------------------------------ ##
5770_ASBOX
mmentovai8c2a4de2006-09-20 16:20:15 +00005771 ) | sed "s/^/$as_me: WARNING: /" >&2
brynercb91a2f2006-08-25 21:14:45 +00005772 ;;
5773esac
mmentovai8c2a4de2006-09-20 16:20:15 +00005774{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5775echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5776if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
brynercb91a2f2006-08-25 21:14:45 +00005777 echo $ECHO_N "(cached) $ECHO_C" >&6
5778else
5779 eval "$as_ac_Header=\$ac_header_preproc"
5780fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005781ac_res=`eval echo '${'$as_ac_Header'}'`
5782 { echo "$as_me:$LINENO: result: $ac_res" >&5
5783echo "${ECHO_T}$ac_res" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005784
5785fi
5786if test `eval echo '${'$as_ac_Header'}'` = yes; then
5787 cat >>confdefs.h <<_ACEOF
5788#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5789_ACEOF
5790
5791fi
5792
5793done
5794
mmentovai8c2a4de2006-09-20 16:20:15 +00005795
5796
5797if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5798 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5799 (test "X$CXX" != "Xg++"))) ; then
5800 ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00005801ac_cpp='$CXXCPP $CPPFLAGS'
5802ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5803ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5804ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00005805{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5806echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005807if test -z "$CXXCPP"; then
5808 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811 # Double quotes because CXXCPP needs to be expanded
5812 for CXXCPP in "$CXX -E" "/lib/cpp"
5813 do
5814 ac_preproc_ok=false
5815for ac_cxx_preproc_warn_flag in '' yes
5816do
5817 # Use a header file that comes with gcc, so configuring glibc
5818 # with a fresh cross-compiler works.
5819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5820 # <limits.h> exists even on freestanding compilers.
5821 # On the NeXT, cc -E runs the code through the compiler's parser,
5822 # not just through cpp. "Syntax error" is here to catch this case.
5823 cat >conftest.$ac_ext <<_ACEOF
5824/* confdefs.h. */
5825_ACEOF
5826cat confdefs.h >>conftest.$ac_ext
5827cat >>conftest.$ac_ext <<_ACEOF
5828/* end confdefs.h. */
5829#ifdef __STDC__
5830# include <limits.h>
5831#else
5832# include <assert.h>
5833#endif
5834 Syntax error
5835_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005836if { (ac_try="$ac_cpp conftest.$ac_ext"
5837case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5840esac
5841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } >/dev/null; then
5849 if test -s conftest.err; then
5850 ac_cpp_err=$ac_cxx_preproc_warn_flag
5851 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5852 else
5853 ac_cpp_err=
5854 fi
5855else
5856 ac_cpp_err=yes
5857fi
5858if test -z "$ac_cpp_err"; then
5859 :
5860else
5861 echo "$as_me: failed program was:" >&5
5862sed 's/^/| /' conftest.$ac_ext >&5
5863
5864 # Broken: fails on valid input.
5865continue
5866fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005867
brynercb91a2f2006-08-25 21:14:45 +00005868rm -f conftest.err conftest.$ac_ext
5869
mmentovai8c2a4de2006-09-20 16:20:15 +00005870 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00005871 # can be detected and how.
5872 cat >conftest.$ac_ext <<_ACEOF
5873/* confdefs.h. */
5874_ACEOF
5875cat confdefs.h >>conftest.$ac_ext
5876cat >>conftest.$ac_ext <<_ACEOF
5877/* end confdefs.h. */
5878#include <ac_nonexistent.h>
5879_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005880if { (ac_try="$ac_cpp conftest.$ac_ext"
5881case "(($ac_try" in
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5884esac
5885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } >/dev/null; then
5893 if test -s conftest.err; then
5894 ac_cpp_err=$ac_cxx_preproc_warn_flag
5895 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5896 else
5897 ac_cpp_err=
5898 fi
5899else
5900 ac_cpp_err=yes
5901fi
5902if test -z "$ac_cpp_err"; then
5903 # Broken: success on invalid input.
5904continue
5905else
5906 echo "$as_me: failed program was:" >&5
5907sed 's/^/| /' conftest.$ac_ext >&5
5908
5909 # Passes both tests.
5910ac_preproc_ok=:
5911break
5912fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005913
brynercb91a2f2006-08-25 21:14:45 +00005914rm -f conftest.err conftest.$ac_ext
5915
5916done
5917# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5918rm -f conftest.err conftest.$ac_ext
5919if $ac_preproc_ok; then
5920 break
5921fi
5922
5923 done
5924 ac_cv_prog_CXXCPP=$CXXCPP
5925
5926fi
5927 CXXCPP=$ac_cv_prog_CXXCPP
5928else
5929 ac_cv_prog_CXXCPP=$CXXCPP
5930fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005931{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5932echo "${ECHO_T}$CXXCPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005933ac_preproc_ok=false
5934for ac_cxx_preproc_warn_flag in '' yes
5935do
5936 # Use a header file that comes with gcc, so configuring glibc
5937 # with a fresh cross-compiler works.
5938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5939 # <limits.h> exists even on freestanding compilers.
5940 # On the NeXT, cc -E runs the code through the compiler's parser,
5941 # not just through cpp. "Syntax error" is here to catch this case.
5942 cat >conftest.$ac_ext <<_ACEOF
5943/* confdefs.h. */
5944_ACEOF
5945cat confdefs.h >>conftest.$ac_ext
5946cat >>conftest.$ac_ext <<_ACEOF
5947/* end confdefs.h. */
5948#ifdef __STDC__
5949# include <limits.h>
5950#else
5951# include <assert.h>
5952#endif
5953 Syntax error
5954_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005955if { (ac_try="$ac_cpp conftest.$ac_ext"
5956case "(($ac_try" in
5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5959esac
5960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005962 ac_status=$?
5963 grep -v '^ *+' conftest.er1 >conftest.err
5964 rm -f conftest.er1
5965 cat conftest.err >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } >/dev/null; then
5968 if test -s conftest.err; then
5969 ac_cpp_err=$ac_cxx_preproc_warn_flag
5970 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5971 else
5972 ac_cpp_err=
5973 fi
5974else
5975 ac_cpp_err=yes
5976fi
5977if test -z "$ac_cpp_err"; then
5978 :
5979else
5980 echo "$as_me: failed program was:" >&5
5981sed 's/^/| /' conftest.$ac_ext >&5
5982
5983 # Broken: fails on valid input.
5984continue
5985fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005986
brynercb91a2f2006-08-25 21:14:45 +00005987rm -f conftest.err conftest.$ac_ext
5988
mmentovai8c2a4de2006-09-20 16:20:15 +00005989 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00005990 # can be detected and how.
5991 cat >conftest.$ac_ext <<_ACEOF
5992/* confdefs.h. */
5993_ACEOF
5994cat confdefs.h >>conftest.$ac_ext
5995cat >>conftest.$ac_ext <<_ACEOF
5996/* end confdefs.h. */
5997#include <ac_nonexistent.h>
5998_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005999if { (ac_try="$ac_cpp conftest.$ac_ext"
6000case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003esac
6004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00006006 ac_status=$?
6007 grep -v '^ *+' conftest.er1 >conftest.err
6008 rm -f conftest.er1
6009 cat conftest.err >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } >/dev/null; then
6012 if test -s conftest.err; then
6013 ac_cpp_err=$ac_cxx_preproc_warn_flag
6014 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6015 else
6016 ac_cpp_err=
6017 fi
6018else
6019 ac_cpp_err=yes
6020fi
6021if test -z "$ac_cpp_err"; then
6022 # Broken: success on invalid input.
6023continue
6024else
6025 echo "$as_me: failed program was:" >&5
6026sed 's/^/| /' conftest.$ac_ext >&5
6027
6028 # Passes both tests.
6029ac_preproc_ok=:
6030break
6031fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006032
brynercb91a2f2006-08-25 21:14:45 +00006033rm -f conftest.err conftest.$ac_ext
6034
6035done
6036# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6037rm -f conftest.err conftest.$ac_ext
6038if $ac_preproc_ok; then
6039 :
6040else
6041 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6042See \`config.log' for more details." >&5
6043echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6044See \`config.log' for more details." >&2;}
6045 { (exit 1); exit 1; }; }
6046fi
6047
mmentovai8c2a4de2006-09-20 16:20:15 +00006048ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00006049ac_cpp='$CXXCPP $CPPFLAGS'
6050ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6051ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6052ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6053
mmentovai8c2a4de2006-09-20 16:20:15 +00006054fi
6055
6056
6057ac_ext=f
6058ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6059ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6060ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6061if test -n "$ac_tool_prefix"; then
6062 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
6063 do
6064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6065set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6066{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6068if test "${ac_cv_prog_F77+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070else
6071 if test -n "$F77"; then
6072 ac_cv_prog_F77="$F77" # Let the user override the test.
6073else
6074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075for as_dir in $PATH
6076do
6077 IFS=$as_save_IFS
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6081 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 break 2
6084 fi
6085done
6086done
6087IFS=$as_save_IFS
6088
6089fi
6090fi
6091F77=$ac_cv_prog_F77
6092if test -n "$F77"; then
6093 { echo "$as_me:$LINENO: result: $F77" >&5
6094echo "${ECHO_T}$F77" >&6; }
6095else
6096 { echo "$as_me:$LINENO: result: no" >&5
6097echo "${ECHO_T}no" >&6; }
6098fi
6099
6100
6101 test -n "$F77" && break
6102 done
6103fi
6104if test -z "$F77"; then
6105 ac_ct_F77=$F77
6106 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
6107do
6108 # Extract the first word of "$ac_prog", so it can be a program name with args.
6109set dummy $ac_prog; ac_word=$2
6110{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6112if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114else
6115 if test -n "$ac_ct_F77"; then
6116 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6117else
6118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119for as_dir in $PATH
6120do
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6125 ac_cv_prog_ac_ct_F77="$ac_prog"
6126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6127 break 2
6128 fi
6129done
6130done
6131IFS=$as_save_IFS
6132
6133fi
6134fi
6135ac_ct_F77=$ac_cv_prog_ac_ct_F77
6136if test -n "$ac_ct_F77"; then
6137 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6138echo "${ECHO_T}$ac_ct_F77" >&6; }
6139else
6140 { echo "$as_me:$LINENO: result: no" >&5
6141echo "${ECHO_T}no" >&6; }
6142fi
6143
6144
6145 test -n "$ac_ct_F77" && break
6146done
6147
6148 if test "x$ac_ct_F77" = x; then
6149 F77=""
6150 else
6151 case $cross_compiling:$ac_tool_warned in
6152yes:)
6153{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6154whose name does not start with the host triplet. If you think this
6155configuration is useful to you, please write to autoconf@gnu.org." >&5
6156echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6157whose name does not start with the host triplet. If you think this
6158configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6159ac_tool_warned=yes ;;
6160esac
6161 F77=$ac_ct_F77
6162 fi
6163fi
6164
6165
6166# Provide some information about the compiler.
6167echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6168ac_compiler=`set X $ac_compile; echo $2`
6169{ (ac_try="$ac_compiler --version >&5"
6170case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173esac
6174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_compiler --version >&5") 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }
6179{ (ac_try="$ac_compiler -v >&5"
6180case "(($ac_try" in
6181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182 *) ac_try_echo=$ac_try;;
6183esac
6184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6185 (eval "$ac_compiler -v >&5") 2>&5
6186 ac_status=$?
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }
6189{ (ac_try="$ac_compiler -V >&5"
6190case "(($ac_try" in
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6193esac
6194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195 (eval "$ac_compiler -V >&5") 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }
6199rm -f a.out
6200
6201# If we don't use `.F' as extension, the preprocessor is not run on the
6202# input file. (Note that this only needs to work for GNU compilers.)
6203ac_save_ext=$ac_ext
6204ac_ext=F
6205{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6206echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6207if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209else
6210 cat >conftest.$ac_ext <<_ACEOF
6211 program main
6212#ifndef __GNUC__
6213 choke me
6214#endif
6215
6216 end
6217_ACEOF
6218rm -f conftest.$ac_objext
6219if { (ac_try="$ac_compile"
6220case "(($ac_try" in
6221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6222 *) ac_try_echo=$ac_try;;
6223esac
6224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6225 (eval "$ac_compile") 2>conftest.er1
6226 ac_status=$?
6227 grep -v '^ *+' conftest.er1 >conftest.err
6228 rm -f conftest.er1
6229 cat conftest.err >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } &&
6232 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6233 { (case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6236esac
6237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238 (eval "$ac_try") 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; } &&
6242 { ac_try='test -s conftest.$ac_objext'
6243 { (case "(($ac_try" in
6244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245 *) ac_try_echo=$ac_try;;
6246esac
6247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248 (eval "$ac_try") 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 ac_compiler_gnu=yes
6253else
6254 echo "$as_me: failed program was:" >&5
6255sed 's/^/| /' conftest.$ac_ext >&5
6256
6257 ac_compiler_gnu=no
6258fi
6259
6260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6262
6263fi
6264{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6265echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6266ac_ext=$ac_save_ext
6267ac_test_FFLAGS=${FFLAGS+set}
6268ac_save_FFLAGS=$FFLAGS
6269FFLAGS=
6270{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6271echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6272if test "${ac_cv_prog_f77_g+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6274else
6275 FFLAGS=-g
6276cat >conftest.$ac_ext <<_ACEOF
6277 program main
6278
6279 end
6280_ACEOF
6281rm -f conftest.$ac_objext
6282if { (ac_try="$ac_compile"
6283case "(($ac_try" in
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6286esac
6287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288 (eval "$ac_compile") 2>conftest.er1
6289 ac_status=$?
6290 grep -v '^ *+' conftest.er1 >conftest.err
6291 rm -f conftest.er1
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
6295 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6296 { (case "(($ac_try" in
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6299esac
6300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_try") 2>&5
6302 ac_status=$?
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); }; } &&
6305 { ac_try='test -s conftest.$ac_objext'
6306 { (case "(($ac_try" in
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6309esac
6310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_try") 2>&5
6312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
6315 ac_cv_prog_f77_g=yes
6316else
6317 echo "$as_me: failed program was:" >&5
6318sed 's/^/| /' conftest.$ac_ext >&5
6319
6320 ac_cv_prog_f77_g=no
6321fi
6322
6323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324
6325fi
6326{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6327echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6328if test "$ac_test_FFLAGS" = set; then
6329 FFLAGS=$ac_save_FFLAGS
6330elif test $ac_cv_prog_f77_g = yes; then
6331 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6332 FFLAGS="-g -O2"
6333 else
6334 FFLAGS="-g"
6335 fi
6336else
6337 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6338 FFLAGS="-O2"
6339 else
6340 FFLAGS=
6341 fi
6342fi
6343
6344G77=`test $ac_compiler_gnu = yes && echo yes`
6345ac_ext=c
6346ac_cpp='$CPP $CPPFLAGS'
6347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6349ac_compiler_gnu=$ac_cv_c_compiler_gnu
brynercb91a2f2006-08-25 21:14:45 +00006350
6351
6352
6353# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6354
6355# find the maximum length of command line arguments
mmentovai8c2a4de2006-09-20 16:20:15 +00006356{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6357echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006358if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360else
6361 i=0
6362 teststring="ABCD"
6363
6364 case $build_os in
6365 msdosdjgpp*)
6366 # On DJGPP, this test can blow up pretty badly due to problems in libc
6367 # (any single argument exceeding 2000 bytes causes a buffer overrun
6368 # during glob expansion). Even if it were fixed, the result of this
6369 # check would be larger than it should be.
6370 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6371 ;;
6372
6373 gnu*)
6374 # Under GNU Hurd, this test is not required because there is
6375 # no limit to the length of command line arguments.
6376 # Libtool will interpret -1 as no limit whatsoever
6377 lt_cv_sys_max_cmd_len=-1;
6378 ;;
6379
6380 cygwin* | mingw*)
6381 # On Win9x/ME, this test blows up -- it succeeds, but takes
6382 # about 5 minutes as the teststring grows exponentially.
6383 # Worse, since 9x/ME are not pre-emptively multitasking,
6384 # you end up with a "frozen" computer, even though with patience
6385 # the test eventually succeeds (with a max line length of 256k).
6386 # Instead, let's just punt: use the minimum linelength reported by
6387 # all of the supported platforms: 8192 (on NT/2K/XP).
6388 lt_cv_sys_max_cmd_len=8192;
6389 ;;
6390
6391 amigaos*)
6392 # On AmigaOS with pdksh, this test takes hours, literally.
6393 # So we just punt and use a minimum line length of 8192.
6394 lt_cv_sys_max_cmd_len=8192;
6395 ;;
6396
mmentovai8c2a4de2006-09-20 16:20:15 +00006397 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6398 # This has been around since 386BSD, at least. Likely further.
6399 if test -x /sbin/sysctl; then
6400 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6401 elif test -x /usr/sbin/sysctl; then
6402 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6403 else
6404 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6405 fi
6406 # And add a safety zone
6407 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6408 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6409 ;;
6410
6411 interix*)
6412 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6413 lt_cv_sys_max_cmd_len=196608
6414 ;;
6415
6416 osf*)
6417 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6418 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6419 # nice to cause kernel panics so lets avoid the loop below.
6420 # First set a reasonable default.
6421 lt_cv_sys_max_cmd_len=16384
6422 #
6423 if test -x /sbin/sysconfig; then
6424 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6425 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6426 esac
6427 fi
6428 ;;
6429 sco3.2v5*)
6430 lt_cv_sys_max_cmd_len=102400
6431 ;;
6432 sysv5* | sco5v6* | sysv4.2uw2*)
6433 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6434 if test -n "$kargmax"; then
6435 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6436 else
6437 lt_cv_sys_max_cmd_len=32768
6438 fi
6439 ;;
6440 *)
brynercb91a2f2006-08-25 21:14:45 +00006441 # If test is not a shell built-in, we'll probably end up computing a
6442 # maximum length that is only half of the actual maximum length, but
6443 # we can't tell.
mmentovai8c2a4de2006-09-20 16:20:15 +00006444 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6445 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
brynercb91a2f2006-08-25 21:14:45 +00006446 = "XX$teststring") >/dev/null 2>&1 &&
6447 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6448 lt_cv_sys_max_cmd_len=$new_result &&
6449 test $i != 17 # 1/2 MB should be enough
6450 do
6451 i=`expr $i + 1`
6452 teststring=$teststring$teststring
6453 done
6454 teststring=
6455 # Add a significant safety factor because C++ compilers can tack on massive
6456 # amounts of additional arguments before passing them to the linker.
6457 # It appears as though 1/2 is a usable value.
6458 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6459 ;;
6460 esac
6461
6462fi
6463
6464if test -n $lt_cv_sys_max_cmd_len ; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006465 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6466echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006467else
mmentovai8c2a4de2006-09-20 16:20:15 +00006468 { echo "$as_me:$LINENO: result: none" >&5
6469echo "${ECHO_T}none" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006470fi
6471
6472
6473
6474
6475# Check for command to grab the raw symbol name followed by C symbol from nm.
mmentovai8c2a4de2006-09-20 16:20:15 +00006476{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6477echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006478if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6480else
6481
6482# These are sane defaults that work on at least a few old systems.
6483# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6484
6485# Character class describing NM global symbol codes.
6486symcode='[BCDEGRST]'
6487
6488# Regexp to match symbols that can be accessed directly from C.
6489sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6490
brynercb91a2f2006-08-25 21:14:45 +00006491# Transform an extracted symbol line into a proper C declaration
6492lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6493
6494# Transform an extracted symbol line into symbol name and symbol address
6495lt_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'"
6496
6497# Define system-specific variables.
6498case $host_os in
6499aix*)
6500 symcode='[BCDT]'
6501 ;;
6502cygwin* | mingw* | pw32*)
6503 symcode='[ABCDGISTW]'
6504 ;;
6505hpux*) # Its linker distinguishes data from code symbols
6506 if test "$host_cpu" = ia64; then
6507 symcode='[ABCDEGRST]'
6508 fi
6509 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6510 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'"
6511 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006512linux*)
6513 if test "$host_cpu" = ia64; then
6514 symcode='[ABCDGIRSTW]'
6515 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6516 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'"
6517 fi
6518 ;;
brynercb91a2f2006-08-25 21:14:45 +00006519irix* | nonstopux*)
6520 symcode='[BCDEGRST]'
6521 ;;
6522osf*)
6523 symcode='[BCDEGQRST]'
6524 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006525solaris*)
brynercb91a2f2006-08-25 21:14:45 +00006526 symcode='[BDRT]'
6527 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006528sco3.2v5*)
6529 symcode='[DT]'
6530 ;;
6531sysv4.2uw2*)
6532 symcode='[DT]'
6533 ;;
6534sysv5* | sco5v6* | unixware* | OpenUNIX*)
6535 symcode='[ABDT]'
6536 ;;
brynercb91a2f2006-08-25 21:14:45 +00006537sysv4)
6538 symcode='[DFNSTU]'
6539 ;;
6540esac
6541
6542# Handle CRLF in mingw tool chain
6543opt_cr=
6544case $build_os in
6545mingw*)
6546 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6547 ;;
6548esac
6549
6550# If we're using GNU nm, then use its standard symbol codes.
6551case `$NM -V 2>&1` in
6552*GNU* | *'with BFD'*)
6553 symcode='[ABCDGIRSTW]' ;;
6554esac
6555
6556# Try without a prefix undercore, then with it.
6557for ac_symprfx in "" "_"; do
6558
mmentovai8c2a4de2006-09-20 16:20:15 +00006559 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6560 symxfrm="\\1 $ac_symprfx\\2 \\2"
6561
brynercb91a2f2006-08-25 21:14:45 +00006562 # Write the raw and C identifiers.
mmentovai8c2a4de2006-09-20 16:20:15 +00006563 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 +00006564
6565 # Check to see that the pipe works correctly.
6566 pipe_works=no
6567
6568 rm -f conftest*
6569 cat > conftest.$ac_ext <<EOF
6570#ifdef __cplusplus
6571extern "C" {
6572#endif
6573char nm_test_var;
6574void nm_test_func(){}
6575#ifdef __cplusplus
6576}
6577#endif
6578int main(){nm_test_var='a';nm_test_func();return(0);}
6579EOF
6580
6581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6582 (eval $ac_compile) 2>&5
6583 ac_status=$?
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; then
6586 # Now try to grab the symbols.
6587 nlist=conftest.nm
6588 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6589 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6590 ac_status=$?
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } && test -s "$nlist"; then
6593 # Try sorting and uniquifying the output.
6594 if sort "$nlist" | uniq > "$nlist"T; then
6595 mv -f "$nlist"T "$nlist"
6596 else
6597 rm -f "$nlist"T
6598 fi
6599
6600 # Make sure that we snagged all the symbols we need.
6601 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6602 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6603 cat <<EOF > conftest.$ac_ext
6604#ifdef __cplusplus
6605extern "C" {
6606#endif
6607
6608EOF
6609 # Now generate the symbol file.
6610 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6611
6612 cat <<EOF >> conftest.$ac_ext
6613#if defined (__STDC__) && __STDC__
6614# define lt_ptr_t void *
6615#else
6616# define lt_ptr_t char *
6617# define const
6618#endif
6619
6620/* The mapping between symbol names and symbols. */
6621const struct {
6622 const char *name;
6623 lt_ptr_t address;
6624}
6625lt_preloaded_symbols[] =
6626{
6627EOF
6628 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6629 cat <<\EOF >> conftest.$ac_ext
6630 {0, (lt_ptr_t) 0}
6631};
6632
6633#ifdef __cplusplus
6634}
6635#endif
6636EOF
6637 # Now try linking the two files.
6638 mv conftest.$ac_objext conftstm.$ac_objext
6639 lt_save_LIBS="$LIBS"
6640 lt_save_CFLAGS="$CFLAGS"
6641 LIBS="conftstm.$ac_objext"
6642 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6644 (eval $ac_link) 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6648 pipe_works=yes
6649 fi
6650 LIBS="$lt_save_LIBS"
6651 CFLAGS="$lt_save_CFLAGS"
6652 else
6653 echo "cannot find nm_test_func in $nlist" >&5
6654 fi
6655 else
6656 echo "cannot find nm_test_var in $nlist" >&5
6657 fi
6658 else
6659 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6660 fi
6661 else
6662 echo "$progname: failed program was:" >&5
6663 cat conftest.$ac_ext >&5
6664 fi
6665 rm -f conftest* conftst*
6666
6667 # Do not use the global_symbol_pipe unless it works.
6668 if test "$pipe_works" = yes; then
6669 break
6670 else
6671 lt_cv_sys_global_symbol_pipe=
6672 fi
6673done
6674
6675fi
6676
6677if test -z "$lt_cv_sys_global_symbol_pipe"; then
6678 lt_cv_sys_global_symbol_to_cdecl=
6679fi
6680if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006681 { echo "$as_me:$LINENO: result: failed" >&5
6682echo "${ECHO_T}failed" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006683else
mmentovai8c2a4de2006-09-20 16:20:15 +00006684 { echo "$as_me:$LINENO: result: ok" >&5
6685echo "${ECHO_T}ok" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006686fi
6687
mmentovai8c2a4de2006-09-20 16:20:15 +00006688{ echo "$as_me:$LINENO: checking for objdir" >&5
6689echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006690if test "${lt_cv_objdir+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692else
6693 rm -f .libs 2>/dev/null
6694mkdir .libs 2>/dev/null
6695if test -d .libs; then
6696 lt_cv_objdir=.libs
6697else
6698 # MS-DOS does not allow filenames that begin with a dot.
6699 lt_cv_objdir=_libs
6700fi
6701rmdir .libs 2>/dev/null
6702fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006703{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6704echo "${ECHO_T}$lt_cv_objdir" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006705objdir=$lt_cv_objdir
6706
6707
6708
6709
6710
6711case $host_os in
6712aix3*)
6713 # AIX sometimes has problems with the GCC collect2 program. For some
6714 # reason, if we set the COLLECT_NAMES environment variable, the problems
6715 # vanish in a puff of smoke.
6716 if test "X${COLLECT_NAMES+set}" != Xset; then
6717 COLLECT_NAMES=
6718 export COLLECT_NAMES
6719 fi
6720 ;;
6721esac
6722
6723# Sed substitution that helps us do robust quoting. It backslashifies
6724# metacharacters that are still active within double-quoted strings.
mmentovai8c2a4de2006-09-20 16:20:15 +00006725Xsed='sed -e 1s/^X//'
brynercb91a2f2006-08-25 21:14:45 +00006726sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6727
6728# Same as above, but do not quote variable references.
6729double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6730
6731# Sed substitution to delay expansion of an escaped shell variable in a
6732# double_quote_subst'ed string.
6733delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6734
6735# Sed substitution to avoid accidental globbing in evaled expressions
6736no_glob_subst='s/\*/\\\*/g'
6737
6738# Constants:
6739rm="rm -f"
6740
6741# Global variables:
6742default_ofile=libtool
6743can_build_shared=yes
6744
mmentovai8c2a4de2006-09-20 16:20:15 +00006745# All known linkers require a `.a' archive for static linking (except MSVC,
brynercb91a2f2006-08-25 21:14:45 +00006746# which needs '.lib').
6747libext=a
6748ltmain="$ac_aux_dir/ltmain.sh"
6749ofile="$default_ofile"
6750with_gnu_ld="$lt_cv_prog_gnu_ld"
6751
6752if test -n "$ac_tool_prefix"; then
6753 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6754set dummy ${ac_tool_prefix}ar; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006755{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006757if test "${ac_cv_prog_AR+set}" = set; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6759else
6760 if test -n "$AR"; then
6761 ac_cv_prog_AR="$AR" # Let the user override the test.
6762else
6763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764for as_dir in $PATH
6765do
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00006769 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 +00006770 ac_cv_prog_AR="${ac_tool_prefix}ar"
6771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 break 2
6773 fi
6774done
6775done
mmentovai8c2a4de2006-09-20 16:20:15 +00006776IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006777
6778fi
6779fi
6780AR=$ac_cv_prog_AR
6781if test -n "$AR"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006782 { echo "$as_me:$LINENO: result: $AR" >&5
6783echo "${ECHO_T}$AR" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006784else
mmentovai8c2a4de2006-09-20 16:20:15 +00006785 { echo "$as_me:$LINENO: result: no" >&5
6786echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006787fi
6788
mmentovai8c2a4de2006-09-20 16:20:15 +00006789
brynercb91a2f2006-08-25 21:14:45 +00006790fi
6791if test -z "$ac_cv_prog_AR"; then
6792 ac_ct_AR=$AR
6793 # Extract the first word of "ar", so it can be a program name with args.
6794set dummy ar; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006795{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006797if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799else
6800 if test -n "$ac_ct_AR"; then
6801 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6802else
6803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804for as_dir in $PATH
6805do
6806 IFS=$as_save_IFS
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00006809 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 +00006810 ac_cv_prog_ac_ct_AR="ar"
6811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 break 2
6813 fi
6814done
6815done
mmentovai8c2a4de2006-09-20 16:20:15 +00006816IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006817
brynercb91a2f2006-08-25 21:14:45 +00006818fi
6819fi
6820ac_ct_AR=$ac_cv_prog_ac_ct_AR
6821if test -n "$ac_ct_AR"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006822 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6823echo "${ECHO_T}$ac_ct_AR" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006824else
mmentovai8c2a4de2006-09-20 16:20:15 +00006825 { echo "$as_me:$LINENO: result: no" >&5
6826echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006827fi
6828
mmentovai8c2a4de2006-09-20 16:20:15 +00006829 if test "x$ac_ct_AR" = x; then
6830 AR="false"
6831 else
6832 case $cross_compiling:$ac_tool_warned in
6833yes:)
6834{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6835whose name does not start with the host triplet. If you think this
6836configuration is useful to you, please write to autoconf@gnu.org." >&5
6837echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6838whose name does not start with the host triplet. If you think this
6839configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6840ac_tool_warned=yes ;;
6841esac
6842 AR=$ac_ct_AR
6843 fi
brynercb91a2f2006-08-25 21:14:45 +00006844else
6845 AR="$ac_cv_prog_AR"
6846fi
6847
6848if test -n "$ac_tool_prefix"; then
6849 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6850set dummy ${ac_tool_prefix}ranlib; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006851{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006853if test "${ac_cv_prog_RANLIB+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6855else
6856 if test -n "$RANLIB"; then
6857 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6858else
6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00006865 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 +00006866 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870done
6871done
mmentovai8c2a4de2006-09-20 16:20:15 +00006872IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006873
6874fi
6875fi
6876RANLIB=$ac_cv_prog_RANLIB
6877if test -n "$RANLIB"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006878 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6879echo "${ECHO_T}$RANLIB" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006880else
mmentovai8c2a4de2006-09-20 16:20:15 +00006881 { echo "$as_me:$LINENO: result: no" >&5
6882echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006883fi
6884
mmentovai8c2a4de2006-09-20 16:20:15 +00006885
brynercb91a2f2006-08-25 21:14:45 +00006886fi
6887if test -z "$ac_cv_prog_RANLIB"; then
6888 ac_ct_RANLIB=$RANLIB
6889 # Extract the first word of "ranlib", so it can be a program name with args.
6890set dummy ranlib; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006893if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6895else
6896 if test -n "$ac_ct_RANLIB"; then
6897 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6898else
6899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in $PATH
6901do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00006905 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 +00006906 ac_cv_prog_ac_ct_RANLIB="ranlib"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910done
6911done
mmentovai8c2a4de2006-09-20 16:20:15 +00006912IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006913
brynercb91a2f2006-08-25 21:14:45 +00006914fi
6915fi
6916ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6917if test -n "$ac_ct_RANLIB"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006918 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6919echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006920else
mmentovai8c2a4de2006-09-20 16:20:15 +00006921 { echo "$as_me:$LINENO: result: no" >&5
6922echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006923fi
6924
mmentovai8c2a4de2006-09-20 16:20:15 +00006925 if test "x$ac_ct_RANLIB" = x; then
6926 RANLIB=":"
6927 else
6928 case $cross_compiling:$ac_tool_warned in
6929yes:)
6930{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6931whose name does not start with the host triplet. If you think this
6932configuration is useful to you, please write to autoconf@gnu.org." >&5
6933echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6934whose name does not start with the host triplet. If you think this
6935configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6936ac_tool_warned=yes ;;
6937esac
6938 RANLIB=$ac_ct_RANLIB
6939 fi
brynercb91a2f2006-08-25 21:14:45 +00006940else
6941 RANLIB="$ac_cv_prog_RANLIB"
6942fi
6943
6944if test -n "$ac_tool_prefix"; then
6945 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6946set dummy ${ac_tool_prefix}strip; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006949if test "${ac_cv_prog_STRIP+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6951else
6952 if test -n "$STRIP"; then
6953 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6954else
6955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956for as_dir in $PATH
6957do
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00006961 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 +00006962 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 break 2
6965 fi
6966done
6967done
mmentovai8c2a4de2006-09-20 16:20:15 +00006968IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006969
6970fi
6971fi
6972STRIP=$ac_cv_prog_STRIP
6973if test -n "$STRIP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006974 { echo "$as_me:$LINENO: result: $STRIP" >&5
6975echo "${ECHO_T}$STRIP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006976else
mmentovai8c2a4de2006-09-20 16:20:15 +00006977 { echo "$as_me:$LINENO: result: no" >&5
6978echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006979fi
6980
mmentovai8c2a4de2006-09-20 16:20:15 +00006981
brynercb91a2f2006-08-25 21:14:45 +00006982fi
6983if test -z "$ac_cv_prog_STRIP"; then
6984 ac_ct_STRIP=$STRIP
6985 # Extract the first word of "strip", so it can be a program name with args.
6986set dummy strip; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006989if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6991else
6992 if test -n "$ac_ct_STRIP"; then
6993 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6994else
6995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996for as_dir in $PATH
6997do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00007001 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 +00007002 ac_cv_prog_ac_ct_STRIP="strip"
7003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 break 2
7005 fi
7006done
7007done
mmentovai8c2a4de2006-09-20 16:20:15 +00007008IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00007009
brynercb91a2f2006-08-25 21:14:45 +00007010fi
7011fi
7012ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7013if test -n "$ac_ct_STRIP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007014 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7015echo "${ECHO_T}$ac_ct_STRIP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007016else
mmentovai8c2a4de2006-09-20 16:20:15 +00007017 { echo "$as_me:$LINENO: result: no" >&5
7018echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007019fi
7020
mmentovai8c2a4de2006-09-20 16:20:15 +00007021 if test "x$ac_ct_STRIP" = x; then
7022 STRIP=":"
7023 else
7024 case $cross_compiling:$ac_tool_warned in
7025yes:)
7026{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7027whose name does not start with the host triplet. If you think this
7028configuration is useful to you, please write to autoconf@gnu.org." >&5
7029echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7030whose name does not start with the host triplet. If you think this
7031configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7032ac_tool_warned=yes ;;
7033esac
7034 STRIP=$ac_ct_STRIP
7035 fi
brynercb91a2f2006-08-25 21:14:45 +00007036else
7037 STRIP="$ac_cv_prog_STRIP"
7038fi
7039
7040
7041old_CC="$CC"
7042old_CFLAGS="$CFLAGS"
7043
7044# Set sane defaults for various variables
7045test -z "$AR" && AR=ar
7046test -z "$AR_FLAGS" && AR_FLAGS=cru
7047test -z "$AS" && AS=as
7048test -z "$CC" && CC=cc
7049test -z "$LTCC" && LTCC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00007050test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
brynercb91a2f2006-08-25 21:14:45 +00007051test -z "$DLLTOOL" && DLLTOOL=dlltool
7052test -z "$LD" && LD=ld
7053test -z "$LN_S" && LN_S="ln -s"
7054test -z "$MAGIC_CMD" && MAGIC_CMD=file
7055test -z "$NM" && NM=nm
7056test -z "$SED" && SED=sed
7057test -z "$OBJDUMP" && OBJDUMP=objdump
7058test -z "$RANLIB" && RANLIB=:
7059test -z "$STRIP" && STRIP=:
7060test -z "$ac_objext" && ac_objext=o
7061
7062# Determine commands to create old-style static archives.
7063old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7064old_postinstall_cmds='chmod 644 $oldlib'
7065old_postuninstall_cmds=
7066
7067if test -n "$RANLIB"; then
7068 case $host_os in
7069 openbsd*)
mmentovai8c2a4de2006-09-20 16:20:15 +00007070 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
brynercb91a2f2006-08-25 21:14:45 +00007071 ;;
7072 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00007073 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
brynercb91a2f2006-08-25 21:14:45 +00007074 ;;
7075 esac
7076 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7077fi
7078
mmentovai8c2a4de2006-09-20 16:20:15 +00007079for cc_temp in $compiler""; do
7080 case $cc_temp in
7081 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7082 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7083 \-*) ;;
7084 *) break;;
7085 esac
7086done
7087cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7088
7089
brynercb91a2f2006-08-25 21:14:45 +00007090# Only perform the check for file, if the check method requires it
7091case $deplibs_check_method in
7092file_magic*)
7093 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007094 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7095echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007096if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
7098else
7099 case $MAGIC_CMD in
7100[\\/*] | ?:[\\/]*)
7101 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7102 ;;
7103*)
7104 lt_save_MAGIC_CMD="$MAGIC_CMD"
7105 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7106 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7107 for ac_dir in $ac_dummy; do
7108 IFS="$lt_save_ifs"
7109 test -z "$ac_dir" && ac_dir=.
7110 if test -f $ac_dir/${ac_tool_prefix}file; then
7111 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7112 if test -n "$file_magic_test_file"; then
7113 case $deplibs_check_method in
7114 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00007115 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00007116 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7117 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7118 $EGREP "$file_magic_regex" > /dev/null; then
7119 :
7120 else
7121 cat <<EOF 1>&2
7122
7123*** Warning: the command libtool uses to detect shared libraries,
7124*** $file_magic_cmd, produces output that libtool cannot recognize.
7125*** The result is that libtool may fail to recognize shared libraries
7126*** as such. This will affect the creation of libtool libraries that
7127*** depend on shared libraries, but programs linked with such libtool
7128*** libraries will work regardless of this problem. Nevertheless, you
7129*** may want to report the problem to your system manager and/or to
7130*** bug-libtool@gnu.org
7131
7132EOF
7133 fi ;;
7134 esac
7135 fi
7136 break
7137 fi
7138 done
7139 IFS="$lt_save_ifs"
7140 MAGIC_CMD="$lt_save_MAGIC_CMD"
7141 ;;
7142esac
7143fi
7144
7145MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7146if test -n "$MAGIC_CMD"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007147 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7148echo "${ECHO_T}$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007149else
mmentovai8c2a4de2006-09-20 16:20:15 +00007150 { echo "$as_me:$LINENO: result: no" >&5
7151echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007152fi
7153
7154if test -z "$lt_cv_path_MAGIC_CMD"; then
7155 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007156 { echo "$as_me:$LINENO: checking for file" >&5
7157echo $ECHO_N "checking for file... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007158if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7160else
7161 case $MAGIC_CMD in
7162[\\/*] | ?:[\\/]*)
7163 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7164 ;;
7165*)
7166 lt_save_MAGIC_CMD="$MAGIC_CMD"
7167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7168 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7169 for ac_dir in $ac_dummy; do
7170 IFS="$lt_save_ifs"
7171 test -z "$ac_dir" && ac_dir=.
7172 if test -f $ac_dir/file; then
7173 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7174 if test -n "$file_magic_test_file"; then
7175 case $deplibs_check_method in
7176 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00007177 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00007178 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7179 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7180 $EGREP "$file_magic_regex" > /dev/null; then
7181 :
7182 else
7183 cat <<EOF 1>&2
7184
7185*** Warning: the command libtool uses to detect shared libraries,
7186*** $file_magic_cmd, produces output that libtool cannot recognize.
7187*** The result is that libtool may fail to recognize shared libraries
7188*** as such. This will affect the creation of libtool libraries that
7189*** depend on shared libraries, but programs linked with such libtool
7190*** libraries will work regardless of this problem. Nevertheless, you
7191*** may want to report the problem to your system manager and/or to
7192*** bug-libtool@gnu.org
7193
7194EOF
7195 fi ;;
7196 esac
7197 fi
7198 break
7199 fi
7200 done
7201 IFS="$lt_save_ifs"
7202 MAGIC_CMD="$lt_save_MAGIC_CMD"
7203 ;;
7204esac
7205fi
7206
7207MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7208if test -n "$MAGIC_CMD"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007209 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7210echo "${ECHO_T}$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007211else
mmentovai8c2a4de2006-09-20 16:20:15 +00007212 { echo "$as_me:$LINENO: result: no" >&5
7213echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007214fi
7215
7216 else
7217 MAGIC_CMD=:
7218 fi
7219fi
7220
7221 fi
7222 ;;
7223esac
7224
7225enable_dlopen=no
7226enable_win32_dll=no
7227
mmentovai8c2a4de2006-09-20 16:20:15 +00007228# Check whether --enable-libtool-lock was given.
brynercb91a2f2006-08-25 21:14:45 +00007229if test "${enable_libtool_lock+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007230 enableval=$enable_libtool_lock;
7231fi
brynercb91a2f2006-08-25 21:14:45 +00007232
brynercb91a2f2006-08-25 21:14:45 +00007233test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7234
7235
mmentovai8c2a4de2006-09-20 16:20:15 +00007236# Check whether --with-pic was given.
brynercb91a2f2006-08-25 21:14:45 +00007237if test "${with_pic+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007238 withval=$with_pic; pic_mode="$withval"
brynercb91a2f2006-08-25 21:14:45 +00007239else
7240 pic_mode=default
mmentovai8c2a4de2006-09-20 16:20:15 +00007241fi
7242
brynercb91a2f2006-08-25 21:14:45 +00007243test -z "$pic_mode" && pic_mode=default
7244
7245# Use C for the default configuration in the libtool script
7246tagname=
7247lt_save_CC="$CC"
7248ac_ext=c
7249ac_cpp='$CPP $CPPFLAGS'
7250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7252ac_compiler_gnu=$ac_cv_c_compiler_gnu
7253
7254
7255# Source file extension for C test sources.
7256ac_ext=c
7257
7258# Object file extension for compiled C test sources.
7259objext=o
7260objext=$objext
7261
7262# Code to be used in simple compile tests
7263lt_simple_compile_test_code="int some_variable = 0;\n"
7264
7265# Code to be used in simple link tests
7266lt_simple_link_test_code='int main(){return(0);}\n'
7267
7268
7269# If no C compiler was specified, use CC.
7270LTCC=${LTCC-"$CC"}
7271
mmentovai8c2a4de2006-09-20 16:20:15 +00007272# If no C compiler flags were specified, use CFLAGS.
7273LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7274
brynercb91a2f2006-08-25 21:14:45 +00007275# Allow CC to be a program name with arguments.
7276compiler=$CC
7277
7278
mmentovai8c2a4de2006-09-20 16:20:15 +00007279# save warnings/boilerplate of simple test code
7280ac_outfile=conftest.$ac_objext
7281printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7282eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7283_lt_compiler_boilerplate=`cat conftest.err`
7284$rm conftest*
brynercb91a2f2006-08-25 21:14:45 +00007285
mmentovai8c2a4de2006-09-20 16:20:15 +00007286ac_outfile=conftest.$ac_objext
7287printf "$lt_simple_link_test_code" >conftest.$ac_ext
7288eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7289_lt_linker_boilerplate=`cat conftest.err`
7290$rm conftest*
brynercb91a2f2006-08-25 21:14:45 +00007291
7292
7293
7294lt_prog_compiler_no_builtin_flag=
7295
7296if test "$GCC" = yes; then
7297 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7298
7299
mmentovai8c2a4de2006-09-20 16:20:15 +00007300{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7301echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007302if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304else
7305 lt_cv_prog_compiler_rtti_exceptions=no
7306 ac_outfile=conftest.$ac_objext
7307 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7308 lt_compiler_flag="-fno-rtti -fno-exceptions"
7309 # Insert the option either (1) after the last *FLAGS variable, or
7310 # (2) before a word containing "conftest.", or (3) at the end.
7311 # Note that $ac_compile itself does not contain backslashes and begins
7312 # with a dollar sign (not a hyphen), so the echo should work correctly.
7313 # The option is referenced via a variable to avoid confusing sed.
7314 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00007315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00007316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7317 -e 's:$: $lt_compiler_flag:'`
mmentovai8c2a4de2006-09-20 16:20:15 +00007318 (eval echo "\"\$as_me:7318: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00007319 (eval "$lt_compile" 2>conftest.err)
7320 ac_status=$?
7321 cat conftest.err >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00007322 echo "$as_me:7322: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00007323 if (exit $ac_status) && test -s "$ac_outfile"; then
7324 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00007325 # So say no if there are warnings other than the usual output.
7326 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7328 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00007329 lt_cv_prog_compiler_rtti_exceptions=yes
7330 fi
7331 fi
7332 $rm conftest*
7333
7334fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007335{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7336echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007337
7338if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7339 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7340else
7341 :
7342fi
7343
7344fi
7345
7346lt_prog_compiler_wl=
7347lt_prog_compiler_pic=
7348lt_prog_compiler_static=
7349
mmentovai8c2a4de2006-09-20 16:20:15 +00007350{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7351echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007352
7353 if test "$GCC" = yes; then
7354 lt_prog_compiler_wl='-Wl,'
7355 lt_prog_compiler_static='-static'
7356
7357 case $host_os in
7358 aix*)
7359 # All AIX code is PIC.
7360 if test "$host_cpu" = ia64; then
7361 # AIX 5 now supports IA64 processor
7362 lt_prog_compiler_static='-Bstatic'
7363 fi
7364 ;;
7365
7366 amigaos*)
7367 # FIXME: we need at least 68020 code to build shared libraries, but
7368 # adding the `-m68020' flag to GCC prevents building anything better,
7369 # like `-m68040'.
7370 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7371 ;;
7372
7373 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7374 # PIC is the default for these OSes.
7375 ;;
7376
7377 mingw* | pw32* | os2*)
7378 # This hack is so that the source file can tell whether it is being
7379 # built for inclusion in a dll (and should export symbols for example).
7380 lt_prog_compiler_pic='-DDLL_EXPORT'
7381 ;;
7382
7383 darwin* | rhapsody*)
7384 # PIC is the default on this platform
7385 # Common symbols not allowed in MH_DYLIB files
7386 lt_prog_compiler_pic='-fno-common'
7387 ;;
7388
mmentovai8c2a4de2006-09-20 16:20:15 +00007389 interix3*)
7390 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7391 # Instead, we relocate shared libraries at runtime.
7392 ;;
7393
brynercb91a2f2006-08-25 21:14:45 +00007394 msdosdjgpp*)
7395 # Just because we use GCC doesn't mean we suddenly get shared libraries
7396 # on systems that don't support them.
7397 lt_prog_compiler_can_build_shared=no
7398 enable_shared=no
7399 ;;
7400
7401 sysv4*MP*)
7402 if test -d /usr/nec; then
7403 lt_prog_compiler_pic=-Kconform_pic
7404 fi
7405 ;;
7406
7407 hpux*)
7408 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7409 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +00007410 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00007411 hppa*64*|ia64*)
7412 # +Z the default
7413 ;;
7414 *)
7415 lt_prog_compiler_pic='-fPIC'
7416 ;;
7417 esac
7418 ;;
7419
7420 *)
7421 lt_prog_compiler_pic='-fPIC'
7422 ;;
7423 esac
7424 else
7425 # PORTME Check for flag to pass linker flags through the system compiler.
7426 case $host_os in
7427 aix*)
7428 lt_prog_compiler_wl='-Wl,'
7429 if test "$host_cpu" = ia64; then
7430 # AIX 5 now supports IA64 processor
7431 lt_prog_compiler_static='-Bstatic'
7432 else
7433 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7434 fi
7435 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007436 darwin*)
7437 # PIC is the default on this platform
7438 # Common symbols not allowed in MH_DYLIB files
7439 case $cc_basename in
7440 xlc*)
7441 lt_prog_compiler_pic='-qnocommon'
7442 lt_prog_compiler_wl='-Wl,'
7443 ;;
7444 esac
7445 ;;
brynercb91a2f2006-08-25 21:14:45 +00007446
7447 mingw* | pw32* | os2*)
7448 # This hack is so that the source file can tell whether it is being
7449 # built for inclusion in a dll (and should export symbols for example).
7450 lt_prog_compiler_pic='-DDLL_EXPORT'
7451 ;;
7452
7453 hpux9* | hpux10* | hpux11*)
7454 lt_prog_compiler_wl='-Wl,'
7455 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7456 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +00007457 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00007458 hppa*64*|ia64*)
7459 # +Z the default
7460 ;;
7461 *)
7462 lt_prog_compiler_pic='+Z'
7463 ;;
7464 esac
7465 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7466 lt_prog_compiler_static='${wl}-a ${wl}archive'
7467 ;;
7468
7469 irix5* | irix6* | nonstopux*)
7470 lt_prog_compiler_wl='-Wl,'
7471 # PIC (with -KPIC) is the default.
7472 lt_prog_compiler_static='-non_shared'
7473 ;;
7474
7475 newsos6)
7476 lt_prog_compiler_pic='-KPIC'
7477 lt_prog_compiler_static='-Bstatic'
7478 ;;
7479
7480 linux*)
mmentovai8c2a4de2006-09-20 16:20:15 +00007481 case $cc_basename in
brynercb91a2f2006-08-25 21:14:45 +00007482 icc* | ecc*)
7483 lt_prog_compiler_wl='-Wl,'
7484 lt_prog_compiler_pic='-KPIC'
7485 lt_prog_compiler_static='-static'
7486 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007487 pgcc* | pgf77* | pgf90* | pgf95*)
7488 # Portland Group compilers (*not* the Pentium gcc compiler,
7489 # which looks to be a dead project)
7490 lt_prog_compiler_wl='-Wl,'
7491 lt_prog_compiler_pic='-fpic'
7492 lt_prog_compiler_static='-Bstatic'
7493 ;;
brynercb91a2f2006-08-25 21:14:45 +00007494 ccc*)
7495 lt_prog_compiler_wl='-Wl,'
7496 # All Alpha code is PIC.
7497 lt_prog_compiler_static='-non_shared'
7498 ;;
7499 esac
7500 ;;
7501
7502 osf3* | osf4* | osf5*)
7503 lt_prog_compiler_wl='-Wl,'
7504 # All OSF/1 code is PIC.
7505 lt_prog_compiler_static='-non_shared'
7506 ;;
7507
brynercb91a2f2006-08-25 21:14:45 +00007508 solaris*)
brynercb91a2f2006-08-25 21:14:45 +00007509 lt_prog_compiler_pic='-KPIC'
7510 lt_prog_compiler_static='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +00007511 case $cc_basename in
7512 f77* | f90* | f95*)
7513 lt_prog_compiler_wl='-Qoption ld ';;
7514 *)
7515 lt_prog_compiler_wl='-Wl,';;
7516 esac
brynercb91a2f2006-08-25 21:14:45 +00007517 ;;
7518
7519 sunos4*)
7520 lt_prog_compiler_wl='-Qoption ld '
7521 lt_prog_compiler_pic='-PIC'
7522 lt_prog_compiler_static='-Bstatic'
7523 ;;
7524
mmentovai8c2a4de2006-09-20 16:20:15 +00007525 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00007526 lt_prog_compiler_wl='-Wl,'
7527 lt_prog_compiler_pic='-KPIC'
7528 lt_prog_compiler_static='-Bstatic'
7529 ;;
7530
7531 sysv4*MP*)
7532 if test -d /usr/nec ;then
7533 lt_prog_compiler_pic='-Kconform_pic'
7534 lt_prog_compiler_static='-Bstatic'
7535 fi
7536 ;;
7537
mmentovai8c2a4de2006-09-20 16:20:15 +00007538 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7539 lt_prog_compiler_wl='-Wl,'
7540 lt_prog_compiler_pic='-KPIC'
7541 lt_prog_compiler_static='-Bstatic'
7542 ;;
7543
7544 unicos*)
7545 lt_prog_compiler_wl='-Wl,'
7546 lt_prog_compiler_can_build_shared=no
7547 ;;
7548
brynercb91a2f2006-08-25 21:14:45 +00007549 uts4*)
7550 lt_prog_compiler_pic='-pic'
7551 lt_prog_compiler_static='-Bstatic'
7552 ;;
7553
7554 *)
7555 lt_prog_compiler_can_build_shared=no
7556 ;;
7557 esac
7558 fi
7559
mmentovai8c2a4de2006-09-20 16:20:15 +00007560{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7561echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007562
7563#
7564# Check to make sure the PIC flag actually works.
7565#
7566if test -n "$lt_prog_compiler_pic"; then
7567
mmentovai8c2a4de2006-09-20 16:20:15 +00007568{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7569echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007570if test "${lt_prog_compiler_pic_works+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7572else
7573 lt_prog_compiler_pic_works=no
7574 ac_outfile=conftest.$ac_objext
7575 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7576 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7577 # Insert the option either (1) after the last *FLAGS variable, or
7578 # (2) before a word containing "conftest.", or (3) at the end.
7579 # Note that $ac_compile itself does not contain backslashes and begins
7580 # with a dollar sign (not a hyphen), so the echo should work correctly.
7581 # The option is referenced via a variable to avoid confusing sed.
7582 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00007583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00007584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7585 -e 's:$: $lt_compiler_flag:'`
mmentovai8c2a4de2006-09-20 16:20:15 +00007586 (eval echo "\"\$as_me:7586: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00007587 (eval "$lt_compile" 2>conftest.err)
7588 ac_status=$?
7589 cat conftest.err >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00007590 echo "$as_me:7590: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00007591 if (exit $ac_status) && test -s "$ac_outfile"; then
7592 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00007593 # So say no if there are warnings other than the usual output.
7594 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7595 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7596 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00007597 lt_prog_compiler_pic_works=yes
7598 fi
7599 fi
7600 $rm conftest*
7601
7602fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007603{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7604echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007605
7606if test x"$lt_prog_compiler_pic_works" = xyes; then
7607 case $lt_prog_compiler_pic in
7608 "" | " "*) ;;
7609 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7610 esac
7611else
7612 lt_prog_compiler_pic=
7613 lt_prog_compiler_can_build_shared=no
7614fi
7615
7616fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007617case $host_os in
brynercb91a2f2006-08-25 21:14:45 +00007618 # For platforms which do not support PIC, -DPIC is meaningless:
7619 *djgpp*)
7620 lt_prog_compiler_pic=
7621 ;;
7622 *)
7623 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7624 ;;
7625esac
7626
mmentovai8c2a4de2006-09-20 16:20:15 +00007627#
7628# Check to make sure the static flag actually works.
7629#
7630wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7631{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7632echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7633if test "${lt_prog_compiler_static_works+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7635else
7636 lt_prog_compiler_static_works=no
7637 save_LDFLAGS="$LDFLAGS"
7638 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7639 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7640 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7641 # The linker can only warn and ignore the option if not recognized
7642 # So say no if there are warnings
7643 if test -s conftest.err; then
7644 # Append any errors to the config.log.
7645 cat conftest.err 1>&5
7646 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7647 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7648 if diff conftest.exp conftest.er2 >/dev/null; then
7649 lt_prog_compiler_static_works=yes
7650 fi
7651 else
7652 lt_prog_compiler_static_works=yes
7653 fi
7654 fi
7655 $rm conftest*
7656 LDFLAGS="$save_LDFLAGS"
7657
7658fi
7659{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7660echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7661
7662if test x"$lt_prog_compiler_static_works" = xyes; then
7663 :
7664else
7665 lt_prog_compiler_static=
7666fi
7667
7668
7669{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7670echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007671if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7673else
7674 lt_cv_prog_compiler_c_o=no
7675 $rm -r conftest 2>/dev/null
7676 mkdir conftest
7677 cd conftest
7678 mkdir out
7679 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7680
7681 lt_compiler_flag="-o out/conftest2.$ac_objext"
7682 # Insert the option either (1) after the last *FLAGS variable, or
7683 # (2) before a word containing "conftest.", or (3) at the end.
7684 # Note that $ac_compile itself does not contain backslashes and begins
7685 # with a dollar sign (not a hyphen), so the echo should work correctly.
7686 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00007687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00007688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7689 -e 's:$: $lt_compiler_flag:'`
mmentovai8c2a4de2006-09-20 16:20:15 +00007690 (eval echo "\"\$as_me:7690: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00007691 (eval "$lt_compile" 2>out/conftest.err)
7692 ac_status=$?
7693 cat out/conftest.err >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00007694 echo "$as_me:7694: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00007695 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7696 then
7697 # The compiler can only warn and ignore the option if not recognized
7698 # So say no if there are warnings
mmentovai8c2a4de2006-09-20 16:20:15 +00007699 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7700 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7701 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00007702 lt_cv_prog_compiler_c_o=yes
7703 fi
7704 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007705 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +00007706 $rm conftest*
7707 # SGI C++ compiler will create directory out/ii_files/ for
7708 # template instantiation
7709 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7710 $rm out/* && rmdir out
7711 cd ..
7712 rmdir conftest
7713 $rm conftest*
7714
7715fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007716{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7717echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007718
7719
7720hard_links="nottested"
7721if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7722 # do not overwrite the value of need_locks provided by the user
mmentovai8c2a4de2006-09-20 16:20:15 +00007723 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7724echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007725 hard_links=yes
7726 $rm conftest*
7727 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7728 touch conftest.a
7729 ln conftest.a conftest.b 2>&5 || hard_links=no
7730 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mmentovai8c2a4de2006-09-20 16:20:15 +00007731 { echo "$as_me:$LINENO: result: $hard_links" >&5
7732echo "${ECHO_T}$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007733 if test "$hard_links" = no; then
7734 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7735echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7736 need_locks=warn
7737 fi
7738else
7739 need_locks=no
7740fi
7741
mmentovai8c2a4de2006-09-20 16:20:15 +00007742{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7743echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007744
7745 runpath_var=
7746 allow_undefined_flag=
7747 enable_shared_with_static_runtimes=no
7748 archive_cmds=
7749 archive_expsym_cmds=
7750 old_archive_From_new_cmds=
7751 old_archive_from_expsyms_cmds=
7752 export_dynamic_flag_spec=
7753 whole_archive_flag_spec=
7754 thread_safe_flag_spec=
7755 hardcode_libdir_flag_spec=
7756 hardcode_libdir_flag_spec_ld=
7757 hardcode_libdir_separator=
7758 hardcode_direct=no
7759 hardcode_minus_L=no
7760 hardcode_shlibpath_var=unsupported
7761 link_all_deplibs=unknown
7762 hardcode_automatic=no
7763 module_cmds=
7764 module_expsym_cmds=
7765 always_export_symbols=no
7766 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7767 # include_expsyms should be a list of space-separated symbols to be *always*
7768 # included in the symbol list
7769 include_expsyms=
7770 # exclude_expsyms can be an extended regexp of symbols to exclude
7771 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7772 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7773 # as well as any symbol that contains `d'.
7774 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7775 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7776 # platforms (ab)use it in PIC code, but their linkers get confused if
7777 # the symbol is explicitly referenced. Since portable code cannot
7778 # rely on this symbol name, it's probably fine to never include it in
7779 # preloaded symbol tables.
7780 extract_expsyms_cmds=
mmentovai8c2a4de2006-09-20 16:20:15 +00007781 # Just being paranoid about ensuring that cc_basename is set.
7782 for cc_temp in $compiler""; do
7783 case $cc_temp in
7784 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7785 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7786 \-*) ;;
7787 *) break;;
7788 esac
7789done
7790cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +00007791
7792 case $host_os in
7793 cygwin* | mingw* | pw32*)
7794 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7795 # When not using gcc, we currently assume that we are using
7796 # Microsoft Visual C++.
7797 if test "$GCC" != yes; then
7798 with_gnu_ld=no
7799 fi
7800 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007801 interix*)
7802 # we just hope/assume this is gcc and not c89 (= MSVC++)
7803 with_gnu_ld=yes
7804 ;;
brynercb91a2f2006-08-25 21:14:45 +00007805 openbsd*)
7806 with_gnu_ld=no
7807 ;;
7808 esac
7809
7810 ld_shlibs=yes
7811 if test "$with_gnu_ld" = yes; then
7812 # If archive_cmds runs LD, not CC, wlarc should be empty
7813 wlarc='${wl}'
7814
mmentovai8c2a4de2006-09-20 16:20:15 +00007815 # Set some defaults for GNU ld with shared library support. These
7816 # are reset later if shared libraries are not supported. Putting them
7817 # here allows them to be overridden if necessary.
7818 runpath_var=LD_RUN_PATH
7819 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7820 export_dynamic_flag_spec='${wl}--export-dynamic'
7821 # ancient GNU ld didn't support --whole-archive et. al.
7822 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7823 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7824 else
7825 whole_archive_flag_spec=
7826 fi
7827 supports_anon_versioning=no
7828 case `$LD -v 2>/dev/null` in
7829 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7830 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7831 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7832 *\ 2.11.*) ;; # other 2.11 versions
7833 *) supports_anon_versioning=yes ;;
7834 esac
7835
brynercb91a2f2006-08-25 21:14:45 +00007836 # See if GNU ld supports shared libraries.
7837 case $host_os in
7838 aix3* | aix4* | aix5*)
7839 # On AIX/PPC, the GNU linker is very broken
7840 if test "$host_cpu" != ia64; then
7841 ld_shlibs=no
7842 cat <<EOF 1>&2
7843
7844*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7845*** to be unable to reliably create shared libraries on AIX.
7846*** Therefore, libtool is disabling shared libraries support. If you
7847*** really care for shared libraries, you may want to modify your PATH
7848*** so that a non-GNU linker is found, and then restart.
7849
7850EOF
7851 fi
7852 ;;
7853
7854 amigaos*)
7855 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)'
7856 hardcode_libdir_flag_spec='-L$libdir'
7857 hardcode_minus_L=yes
7858
7859 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7860 # that the semantics of dynamic libraries on AmigaOS, at least up
7861 # to version 4, is to share data among multiple programs linked
7862 # with the same dynamic library. Since this doesn't match the
7863 # behavior of shared libraries on other platforms, we can't use
7864 # them.
7865 ld_shlibs=no
7866 ;;
7867
7868 beos*)
7869 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7870 allow_undefined_flag=unsupported
7871 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7872 # support --undefined. This deserves some investigation. FIXME
7873 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7874 else
7875 ld_shlibs=no
7876 fi
7877 ;;
7878
7879 cygwin* | mingw* | pw32*)
7880 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7881 # as there is no search path for DLLs.
7882 hardcode_libdir_flag_spec='-L$libdir'
7883 allow_undefined_flag=unsupported
7884 always_export_symbols=no
7885 enable_shared_with_static_runtimes=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00007886 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 +00007887
7888 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007889 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 +00007890 # If the export-symbols file already is a .def file (1st line
7891 # is EXPORTS), use it as is; otherwise, prepend...
7892 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7893 cp $export_symbols $output_objdir/$soname.def;
7894 else
7895 echo EXPORTS > $output_objdir/$soname.def;
7896 cat $export_symbols >> $output_objdir/$soname.def;
7897 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +00007898 $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 +00007899 else
7900 ld_shlibs=no
7901 fi
7902 ;;
7903
mmentovai8c2a4de2006-09-20 16:20:15 +00007904 interix3*)
7905 hardcode_direct=no
7906 hardcode_shlibpath_var=no
7907 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7908 export_dynamic_flag_spec='${wl}-E'
7909 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7910 # Instead, shared libraries are loaded at an image base (0x10000000 by
7911 # default) and relocated if they conflict, which is a slow very memory
7912 # consuming and fragmenting process. To avoid this, we pick a random,
7913 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7914 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7915 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7916 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'
7917 ;;
7918
7919 linux*)
7920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7921 tmp_addflag=
7922 case $cc_basename,$host_cpu in
7923 pgcc*) # Portland Group C compiler
7924 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'
7925 tmp_addflag=' $pic_flag'
7926 ;;
7927 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
7930 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7931 tmp_addflag=' -i_dynamic' ;;
7932 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7933 tmp_addflag=' -i_dynamic -nofor_main' ;;
7934 ifc* | ifort*) # Intel Fortran compiler
7935 tmp_addflag=' -nofor_main' ;;
7936 esac
7937 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7938
7939 if test $supports_anon_versioning = yes; then
7940 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7941 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7942 $echo "local: *; };" >> $output_objdir/$libname.ver~
7943 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7944 fi
7945 else
7946 ld_shlibs=no
7947 fi
7948 ;;
7949
7950 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +00007951 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7952 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7953 wlarc=
7954 else
7955 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7956 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7957 fi
7958 ;;
7959
mmentovai8c2a4de2006-09-20 16:20:15 +00007960 solaris*)
brynercb91a2f2006-08-25 21:14:45 +00007961 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7962 ld_shlibs=no
7963 cat <<EOF 1>&2
7964
7965*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7966*** create shared libraries on Solaris systems. Therefore, libtool
7967*** is disabling shared libraries support. We urge you to upgrade GNU
7968*** binutils to release 2.9.1 or newer. Another option is to modify
7969*** your PATH or compiler configuration so that the native linker is
7970*** used, and then restart.
7971
7972EOF
7973 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7974 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7975 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7976 else
7977 ld_shlibs=no
7978 fi
7979 ;;
7980
mmentovai8c2a4de2006-09-20 16:20:15 +00007981 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7982 case `$LD -v 2>&1` in
7983 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7984 ld_shlibs=no
7985 cat <<_LT_EOF 1>&2
7986
7987*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7988*** reliably create shared libraries on SCO systems. Therefore, libtool
7989*** is disabling shared libraries support. We urge you to upgrade GNU
7990*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7991*** your PATH or compiler configuration so that the native linker is
7992*** used, and then restart.
7993
7994_LT_EOF
7995 ;;
7996 *)
7997 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7998 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8000 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8001 else
8002 ld_shlibs=no
8003 fi
8004 ;;
8005 esac
8006 ;;
8007
brynercb91a2f2006-08-25 21:14:45 +00008008 sunos4*)
8009 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8010 wlarc=
8011 hardcode_direct=yes
8012 hardcode_shlibpath_var=no
8013 ;;
8014
brynercb91a2f2006-08-25 21:14:45 +00008015 *)
8016 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8018 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8019 else
8020 ld_shlibs=no
8021 fi
8022 ;;
8023 esac
8024
mmentovai8c2a4de2006-09-20 16:20:15 +00008025 if test "$ld_shlibs" = no; then
8026 runpath_var=
8027 hardcode_libdir_flag_spec=
8028 export_dynamic_flag_spec=
8029 whole_archive_flag_spec=
brynercb91a2f2006-08-25 21:14:45 +00008030 fi
8031 else
8032 # PORTME fill in a description of your system's linker (not GNU ld)
8033 case $host_os in
8034 aix3*)
8035 allow_undefined_flag=unsupported
8036 always_export_symbols=yes
8037 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'
8038 # Note: this linker hardcodes the directories in LIBPATH if there
8039 # are no directories specified by -L.
8040 hardcode_minus_L=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008041 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +00008042 # Neither direct hardcoding nor static linking is supported with a
8043 # broken collect2.
8044 hardcode_direct=unsupported
8045 fi
8046 ;;
8047
8048 aix4* | aix5*)
8049 if test "$host_cpu" = ia64; then
8050 # On IA64, the linker does run time linking by default, so we don't
8051 # have to do anything special.
8052 aix_use_runtimelinking=no
8053 exp_sym_flag='-Bexport'
8054 no_entry_flag=""
8055 else
8056 # If we're using GNU nm, then we don't want the "-C" option.
8057 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8058 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8059 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'
8060 else
8061 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'
8062 fi
8063 aix_use_runtimelinking=no
8064
8065 # Test if we are trying to use run time linking or normal
8066 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8067 # need to do runtime linking.
8068 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8069 for ld_flag in $LDFLAGS; do
8070 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8071 aix_use_runtimelinking=yes
8072 break
8073 fi
8074 done
mmentovai8c2a4de2006-09-20 16:20:15 +00008075 ;;
brynercb91a2f2006-08-25 21:14:45 +00008076 esac
8077
8078 exp_sym_flag='-bexport'
8079 no_entry_flag='-bnoentry'
8080 fi
8081
8082 # When large executables or shared objects are built, AIX ld can
8083 # have problems creating the table of contents. If linking a library
8084 # or program results in "error TOC overflow" add -mminimal-toc to
8085 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8086 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8087
8088 archive_cmds=''
8089 hardcode_direct=yes
8090 hardcode_libdir_separator=':'
8091 link_all_deplibs=yes
8092
8093 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008094 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +00008095 # We only want to do this on AIX 4.2 and lower, the check
8096 # below for broken collect2 doesn't work under 4.3+
8097 collect2name=`${CC} -print-prog-name=collect2`
8098 if test -f "$collect2name" && \
8099 strings "$collect2name" | grep resolve_lib_name >/dev/null
8100 then
8101 # We have reworked collect2
8102 hardcode_direct=yes
8103 else
8104 # We have old collect2
8105 hardcode_direct=unsupported
8106 # It fails to find uninstalled libraries when the uninstalled
8107 # path is not listed in the libpath. Setting hardcode_minus_L
8108 # to unsupported forces relinking
8109 hardcode_minus_L=yes
8110 hardcode_libdir_flag_spec='-L$libdir'
8111 hardcode_libdir_separator=
8112 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008113 ;;
brynercb91a2f2006-08-25 21:14:45 +00008114 esac
8115 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +00008116 if test "$aix_use_runtimelinking" = yes; then
8117 shared_flag="$shared_flag "'${wl}-G'
8118 fi
brynercb91a2f2006-08-25 21:14:45 +00008119 else
8120 # not using gcc
8121 if test "$host_cpu" = ia64; then
8122 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8123 # chokes on -Wl,-G. The following line is correct:
8124 shared_flag='-G'
8125 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008126 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +00008127 shared_flag='${wl}-G'
8128 else
8129 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +00008130 fi
brynercb91a2f2006-08-25 21:14:45 +00008131 fi
8132 fi
8133
8134 # It seems that -bexpall does not export symbols beginning with
8135 # underscore (_), so it is better to generate a list of symbols to export.
8136 always_export_symbols=yes
8137 if test "$aix_use_runtimelinking" = yes; then
8138 # Warning - without using the other runtime loading flags (-brtl),
8139 # -berok will link without error, but may produce a broken library.
8140 allow_undefined_flag='-berok'
8141 # Determine the default libpath from the value encoded in an empty executable.
8142 cat >conftest.$ac_ext <<_ACEOF
8143/* confdefs.h. */
8144_ACEOF
8145cat confdefs.h >>conftest.$ac_ext
8146cat >>conftest.$ac_ext <<_ACEOF
8147/* end confdefs.h. */
8148
8149int
8150main ()
8151{
8152
8153 ;
8154 return 0;
8155}
8156_ACEOF
8157rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00008158if { (ac_try="$ac_link"
8159case "(($ac_try" in
8160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8161 *) ac_try_echo=$ac_try;;
8162esac
8163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8164 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00008165 ac_status=$?
8166 grep -v '^ *+' conftest.er1 >conftest.err
8167 rm -f conftest.er1
8168 cat conftest.err >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00008171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8172 { (case "(($ac_try" in
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8175esac
8176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00008178 ac_status=$?
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; } &&
8181 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00008182 { (case "(($ac_try" in
8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8185esac
8186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00008188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; }; then
8191
8192aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8193}'`
8194# Check for a 64-bit object if we didn't find anything.
8195if 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; }
8196}'`; fi
8197else
8198 echo "$as_me: failed program was:" >&5
8199sed 's/^/| /' conftest.$ac_ext >&5
8200
mmentovai8c2a4de2006-09-20 16:20:15 +00008201
brynercb91a2f2006-08-25 21:14:45 +00008202fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008203
8204rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00008205 conftest$ac_exeext conftest.$ac_ext
8206if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8207
8208 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
mmentovai8c2a4de2006-09-20 16:20:15 +00008209 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 +00008210 else
8211 if test "$host_cpu" = ia64; then
8212 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8213 allow_undefined_flag="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +00008214 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 +00008215 else
8216 # Determine the default libpath from the value encoded in an empty executable.
8217 cat >conftest.$ac_ext <<_ACEOF
8218/* confdefs.h. */
8219_ACEOF
8220cat confdefs.h >>conftest.$ac_ext
8221cat >>conftest.$ac_ext <<_ACEOF
8222/* end confdefs.h. */
8223
8224int
8225main ()
8226{
8227
8228 ;
8229 return 0;
8230}
8231_ACEOF
8232rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00008233if { (ac_try="$ac_link"
8234case "(($ac_try" in
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8237esac
8238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00008240 ac_status=$?
8241 grep -v '^ *+' conftest.er1 >conftest.err
8242 rm -f conftest.er1
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00008246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8247 { (case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8250esac
8251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00008253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; } &&
8256 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00008257 { (case "(($ac_try" in
8258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259 *) ac_try_echo=$ac_try;;
8260esac
8261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00008263 ac_status=$?
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; }; then
8266
8267aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8268}'`
8269# Check for a 64-bit object if we didn't find anything.
8270if 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; }
8271}'`; fi
8272else
8273 echo "$as_me: failed program was:" >&5
8274sed 's/^/| /' conftest.$ac_ext >&5
8275
mmentovai8c2a4de2006-09-20 16:20:15 +00008276
brynercb91a2f2006-08-25 21:14:45 +00008277fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008278
8279rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00008280 conftest$ac_exeext conftest.$ac_ext
8281if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8282
8283 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8284 # Warning - without using the other run time loading flags,
8285 # -berok will link without error, but may produce a broken library.
8286 no_undefined_flag=' ${wl}-bernotok'
8287 allow_undefined_flag=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +00008288 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +00008289 whole_archive_flag_spec='$convenience'
brynercb91a2f2006-08-25 21:14:45 +00008290 archive_cmds_need_lc=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008291 # This is similar to how AIX traditionally builds its shared libraries.
8292 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 +00008293 fi
8294 fi
8295 ;;
8296
8297 amigaos*)
8298 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)'
8299 hardcode_libdir_flag_spec='-L$libdir'
8300 hardcode_minus_L=yes
8301 # see comment about different semantics on the GNU ld section
8302 ld_shlibs=no
8303 ;;
8304
mmentovai8c2a4de2006-09-20 16:20:15 +00008305 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00008306 export_dynamic_flag_spec=-rdynamic
8307 ;;
8308
8309 cygwin* | mingw* | pw32*)
8310 # When not using gcc, we currently assume that we are using
8311 # Microsoft Visual C++.
8312 # hardcode_libdir_flag_spec is actually meaningless, as there is
8313 # no search path for DLLs.
8314 hardcode_libdir_flag_spec=' '
8315 allow_undefined_flag=unsupported
8316 # Tell ltmain to make .lib files, not .a files.
8317 libext=lib
8318 # Tell ltmain to make .dll files, not .so files.
8319 shrext_cmds=".dll"
8320 # FIXME: Setting linknames here is a bad hack.
8321 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8322 # The linker will automatically build a .lib file if we build a DLL.
8323 old_archive_From_new_cmds='true'
8324 # FIXME: Should let the user specify the lib program.
8325 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8326 fix_srcfile_path='`cygpath -w "$srcfile"`'
8327 enable_shared_with_static_runtimes=yes
8328 ;;
8329
8330 darwin* | rhapsody*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008331 case $host_os in
8332 rhapsody* | darwin1.[012])
8333 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8334 ;;
8335 *) # Darwin 1.3 on
8336 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8337 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8338 else
8339 case ${MACOSX_DEPLOYMENT_TARGET} in
8340 10.[012])
8341 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8342 ;;
8343 10.*)
8344 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8345 ;;
8346 esac
8347 fi
8348 ;;
brynerd5e66382006-09-08 02:35:53 +00008349 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00008350 archive_cmds_need_lc=no
brynercb91a2f2006-08-25 21:14:45 +00008351 hardcode_direct=no
8352 hardcode_automatic=yes
8353 hardcode_shlibpath_var=unsupported
mmentovai8c2a4de2006-09-20 16:20:15 +00008354 whole_archive_flag_spec=''
brynercb91a2f2006-08-25 21:14:45 +00008355 link_all_deplibs=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008356 if test "$GCC" = yes ; then
8357 output_verbose_link_cmd='echo'
8358 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8359 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8360 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8361 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}'
8362 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 +00008363 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008364 case $cc_basename in
8365 xlc*)
8366 output_verbose_link_cmd='echo'
8367 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8368 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8369 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8370 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}'
8371 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}'
8372 ;;
8373 *)
8374 ld_shlibs=no
8375 ;;
8376 esac
brynercb91a2f2006-08-25 21:14:45 +00008377 fi
8378 ;;
8379
8380 dgux*)
8381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8382 hardcode_libdir_flag_spec='-L$libdir'
8383 hardcode_shlibpath_var=no
8384 ;;
8385
8386 freebsd1*)
8387 ld_shlibs=no
8388 ;;
8389
8390 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8391 # support. Future versions do this automatically, but an explicit c++rt0.o
8392 # does not break anything, and helps significantly (at the cost of a little
8393 # extra space).
8394 freebsd2.2*)
8395 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8396 hardcode_libdir_flag_spec='-R$libdir'
8397 hardcode_direct=yes
8398 hardcode_shlibpath_var=no
8399 ;;
8400
8401 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8402 freebsd2*)
8403 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8404 hardcode_direct=yes
8405 hardcode_minus_L=yes
8406 hardcode_shlibpath_var=no
8407 ;;
8408
8409 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mmentovai8c2a4de2006-09-20 16:20:15 +00008410 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +00008411 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8412 hardcode_libdir_flag_spec='-R$libdir'
8413 hardcode_direct=yes
8414 hardcode_shlibpath_var=no
8415 ;;
8416
8417 hpux9*)
8418 if test "$GCC" = yes; then
8419 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'
8420 else
8421 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'
8422 fi
8423 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8424 hardcode_libdir_separator=:
8425 hardcode_direct=yes
8426
8427 # hardcode_minus_L: Not really in the search PATH,
8428 # but as the default location of the library.
8429 hardcode_minus_L=yes
8430 export_dynamic_flag_spec='${wl}-E'
8431 ;;
8432
mmentovai8c2a4de2006-09-20 16:20:15 +00008433 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +00008434 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008435 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8436 else
8437 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8438 fi
8439 if test "$with_gnu_ld" = no; then
8440 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8441 hardcode_libdir_separator=:
8442
8443 hardcode_direct=yes
8444 export_dynamic_flag_spec='${wl}-E'
8445
8446 # hardcode_minus_L: Not really in the search PATH,
8447 # but as the default location of the library.
8448 hardcode_minus_L=yes
8449 fi
8450 ;;
8451
8452 hpux11*)
8453 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8454 case $host_cpu in
8455 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +00008456 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8457 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008458 ia64*)
8459 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8460 ;;
brynercb91a2f2006-08-25 21:14:45 +00008461 *)
8462 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8463 ;;
8464 esac
8465 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008466 case $host_cpu in
8467 hppa*64*)
8468 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8469 ;;
8470 ia64*)
8471 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +00008472 ;;
8473 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00008474 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 +00008475 ;;
8476 esac
8477 fi
8478 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008479 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8480 hardcode_libdir_separator=:
brynerd5e66382006-09-08 02:35:53 +00008481
mmentovai8c2a4de2006-09-20 16:20:15 +00008482 case $host_cpu in
8483 hppa*64*|ia64*)
8484 hardcode_libdir_flag_spec_ld='+b $libdir'
8485 hardcode_direct=no
8486 hardcode_shlibpath_var=no
brynerd5e66382006-09-08 02:35:53 +00008487 ;;
brynercb91a2f2006-08-25 21:14:45 +00008488 *)
brynercb91a2f2006-08-25 21:14:45 +00008489 hardcode_direct=yes
8490 export_dynamic_flag_spec='${wl}-E'
8491
8492 # hardcode_minus_L: Not really in the search PATH,
8493 # but as the default location of the library.
8494 hardcode_minus_L=yes
8495 ;;
8496 esac
8497 fi
8498 ;;
8499
8500 irix5* | irix6* | nonstopux*)
8501 if test "$GCC" = yes; then
8502 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'
8503 else
8504 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'
8505 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8506 fi
8507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8508 hardcode_libdir_separator=:
8509 link_all_deplibs=yes
8510 ;;
8511
mmentovai8c2a4de2006-09-20 16:20:15 +00008512 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +00008513 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8514 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8515 else
8516 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8517 fi
8518 hardcode_libdir_flag_spec='-R$libdir'
8519 hardcode_direct=yes
8520 hardcode_shlibpath_var=no
8521 ;;
8522
8523 newsos6)
8524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8525 hardcode_direct=yes
8526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8527 hardcode_libdir_separator=:
8528 hardcode_shlibpath_var=no
8529 ;;
8530
8531 openbsd*)
8532 hardcode_direct=yes
8533 hardcode_shlibpath_var=no
8534 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8535 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00008536 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 +00008537 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8538 export_dynamic_flag_spec='${wl}-E'
8539 else
8540 case $host_os in
8541 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8543 hardcode_libdir_flag_spec='-R$libdir'
8544 ;;
8545 *)
8546 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8547 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8548 ;;
8549 esac
8550 fi
8551 ;;
8552
8553 os2*)
8554 hardcode_libdir_flag_spec='-L$libdir'
8555 hardcode_minus_L=yes
8556 allow_undefined_flag=unsupported
8557 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'
8558 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8559 ;;
8560
8561 osf3*)
8562 if test "$GCC" = yes; then
8563 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8564 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'
8565 else
8566 allow_undefined_flag=' -expect_unresolved \*'
8567 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'
8568 fi
8569 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8570 hardcode_libdir_separator=:
8571 ;;
8572
8573 osf4* | osf5*) # as osf3* with the addition of -msym flag
8574 if test "$GCC" = yes; then
8575 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8576 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'
8577 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8578 else
8579 allow_undefined_flag=' -expect_unresolved \*'
8580 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'
8581 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 +00008582 $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 +00008583
8584 # Both c and cxx compiler support -rpath directly
8585 hardcode_libdir_flag_spec='-rpath $libdir'
8586 fi
8587 hardcode_libdir_separator=:
8588 ;;
8589
brynercb91a2f2006-08-25 21:14:45 +00008590 solaris*)
8591 no_undefined_flag=' -z text'
8592 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008593 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +00008594 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8595 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8596 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8597 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008598 wlarc=''
brynercb91a2f2006-08-25 21:14:45 +00008599 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8600 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8601 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8602 fi
8603 hardcode_libdir_flag_spec='-R$libdir'
8604 hardcode_shlibpath_var=no
8605 case $host_os in
8606 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008607 *)
8608 # The compiler driver will combine linker options so we
8609 # cannot just pass the convience library names through
8610 # without $wl, iff we do not link with $LD.
8611 # Luckily, gcc supports the same syntax we need for Sun Studio.
8612 # Supported since Solaris 2.6 (maybe 2.5.1?)
8613 case $wlarc in
8614 '')
8615 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8616 *)
8617 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' ;;
8618 esac ;;
brynercb91a2f2006-08-25 21:14:45 +00008619 esac
8620 link_all_deplibs=yes
8621 ;;
8622
8623 sunos4*)
8624 if test "x$host_vendor" = xsequent; then
8625 # Use $CC to link under sequent, because it throws in some extra .o
8626 # files that make .init and .fini sections work.
8627 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8628 else
8629 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8630 fi
8631 hardcode_libdir_flag_spec='-L$libdir'
8632 hardcode_direct=yes
8633 hardcode_minus_L=yes
8634 hardcode_shlibpath_var=no
8635 ;;
8636
8637 sysv4)
8638 case $host_vendor in
8639 sni)
8640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8641 hardcode_direct=yes # is this really true???
8642 ;;
8643 siemens)
8644 ## LD is ld it makes a PLAMLIB
8645 ## CC just makes a GrossModule.
8646 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8647 reload_cmds='$CC -r -o $output$reload_objs'
8648 hardcode_direct=no
8649 ;;
8650 motorola)
8651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8652 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8653 ;;
8654 esac
8655 runpath_var='LD_RUN_PATH'
8656 hardcode_shlibpath_var=no
8657 ;;
8658
8659 sysv4.3*)
8660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8661 hardcode_shlibpath_var=no
8662 export_dynamic_flag_spec='-Bexport'
8663 ;;
8664
8665 sysv4*MP*)
8666 if test -d /usr/nec; then
8667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8668 hardcode_shlibpath_var=no
8669 runpath_var=LD_RUN_PATH
8670 hardcode_runpath_var=yes
8671 ld_shlibs=yes
8672 fi
8673 ;;
8674
mmentovai8c2a4de2006-09-20 16:20:15 +00008675 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8676 no_undefined_flag='${wl}-z,text'
8677 archive_cmds_need_lc=no
brynercb91a2f2006-08-25 21:14:45 +00008678 hardcode_shlibpath_var=no
mmentovai8c2a4de2006-09-20 16:20:15 +00008679 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +00008680
mmentovai3261e8b2006-09-06 02:56:44 +00008681 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008682 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8683 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00008684 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008685 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8686 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00008687 fi
brynerd5e66382006-09-08 02:35:53 +00008688 ;;
8689
mmentovai8c2a4de2006-09-20 16:20:15 +00008690 sysv5* | sco3.2v5* | sco5v6*)
8691 # Note: We can NOT use -z defs as we might desire, because we do not
8692 # link with -lc, and that would cause any symbols used from libc to
8693 # always be unresolved, which means just about no library would
8694 # ever link correctly. If we're not using GNU ld we use -z text
8695 # though, which does catch some bad symbols but isn't as heavy-handed
8696 # as -z defs.
8697 no_undefined_flag='${wl}-z,text'
8698 allow_undefined_flag='${wl}-z,nodefs'
8699 archive_cmds_need_lc=no
brynerd5e66382006-09-08 02:35:53 +00008700 hardcode_shlibpath_var=no
mmentovai8c2a4de2006-09-20 16:20:15 +00008701 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8702 hardcode_libdir_separator=':'
8703 link_all_deplibs=yes
8704 export_dynamic_flag_spec='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +00008705 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +00008706
8707 if test "$GCC" = yes; then
8708 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8709 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8710 else
8711 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8712 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8713 fi
brynercb91a2f2006-08-25 21:14:45 +00008714 ;;
8715
8716 uts4*)
8717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8718 hardcode_libdir_flag_spec='-L$libdir'
8719 hardcode_shlibpath_var=no
8720 ;;
8721
8722 *)
8723 ld_shlibs=no
8724 ;;
8725 esac
8726 fi
8727
mmentovai8c2a4de2006-09-20 16:20:15 +00008728{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8729echo "${ECHO_T}$ld_shlibs" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008730test "$ld_shlibs" = no && can_build_shared=no
8731
brynercb91a2f2006-08-25 21:14:45 +00008732#
8733# Do we need to explicitly link libc?
8734#
8735case "x$archive_cmds_need_lc" in
8736x|xyes)
8737 # Assume -lc should be added
8738 archive_cmds_need_lc=yes
8739
8740 if test "$enable_shared" = yes && test "$GCC" = yes; then
8741 case $archive_cmds in
8742 *'~'*)
8743 # FIXME: we may have to deal with multi-command sequences.
8744 ;;
8745 '$CC '*)
8746 # Test whether the compiler implicitly links with -lc since on some
8747 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8748 # to ld, don't add -lc before -lgcc.
mmentovai8c2a4de2006-09-20 16:20:15 +00008749 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8750echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008751 $rm conftest*
8752 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8753
8754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8755 (eval $ac_compile) 2>&5
8756 ac_status=$?
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } 2>conftest.err; then
8759 soname=conftest
8760 lib=conftest
8761 libobjs=conftest.$ac_objext
8762 deplibs=
8763 wl=$lt_prog_compiler_wl
mmentovai8c2a4de2006-09-20 16:20:15 +00008764 pic_flag=$lt_prog_compiler_pic
brynercb91a2f2006-08-25 21:14:45 +00008765 compiler_flags=-v
8766 linker_flags=-v
8767 verstring=
8768 output_objdir=.
8769 libname=conftest
8770 lt_save_allow_undefined_flag=$allow_undefined_flag
8771 allow_undefined_flag=
8772 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8773 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8774 ac_status=$?
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }
8777 then
8778 archive_cmds_need_lc=no
8779 else
8780 archive_cmds_need_lc=yes
8781 fi
8782 allow_undefined_flag=$lt_save_allow_undefined_flag
8783 else
8784 cat conftest.err 1>&5
8785 fi
8786 $rm conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +00008787 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8788echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008789 ;;
8790 esac
8791 fi
8792 ;;
8793esac
8794
mmentovai8c2a4de2006-09-20 16:20:15 +00008795{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8796echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008797library_names_spec=
8798libname_spec='lib$name'
8799soname_spec=
8800shrext_cmds=".so"
8801postinstall_cmds=
8802postuninstall_cmds=
8803finish_cmds=
8804finish_eval=
8805shlibpath_var=
8806shlibpath_overrides_runpath=unknown
8807version_type=none
8808dynamic_linker="$host_os ld.so"
8809sys_lib_dlsearch_path_spec="/lib /usr/lib"
8810if test "$GCC" = yes; then
8811 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8812 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8813 # if the path contains ";" then we assume it to be the separator
8814 # otherwise default to the standard path separator (i.e. ":") - it is
8815 # assumed that no part of a normal pathname contains ";" but that should
8816 # okay in the real world where ";" in dirpaths is itself problematic.
8817 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8818 else
8819 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8820 fi
8821else
8822 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8823fi
8824need_lib_prefix=unknown
8825hardcode_into_libs=no
8826
8827# when you set need_version to no, make sure it does not cause -set_version
8828# flags to be left without arguments
8829need_version=unknown
8830
8831case $host_os in
8832aix3*)
8833 version_type=linux
8834 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8835 shlibpath_var=LIBPATH
8836
8837 # AIX 3 has no versioning support, so we append a major version to the name.
8838 soname_spec='${libname}${release}${shared_ext}$major'
8839 ;;
8840
8841aix4* | aix5*)
8842 version_type=linux
8843 need_lib_prefix=no
8844 need_version=no
8845 hardcode_into_libs=yes
8846 if test "$host_cpu" = ia64; then
8847 # AIX 5 supports IA64
8848 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8849 shlibpath_var=LD_LIBRARY_PATH
8850 else
8851 # With GCC up to 2.95.x, collect2 would create an import file
8852 # for dependence libraries. The import file would start with
8853 # the line `#! .'. This would cause the generated library to
8854 # depend on `.', always an invalid library. This was fixed in
8855 # development snapshots of GCC prior to 3.0.
8856 case $host_os in
8857 aix4 | aix4.[01] | aix4.[01].*)
8858 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8859 echo ' yes '
8860 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8861 :
8862 else
8863 can_build_shared=no
8864 fi
8865 ;;
8866 esac
8867 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8868 # soname into executable. Probably we can add versioning support to
8869 # collect2, so additional links can be useful in future.
8870 if test "$aix_use_runtimelinking" = yes; then
8871 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8872 # instead of lib<name>.a to let people know that these are not
8873 # typical AIX shared libraries.
8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875 else
8876 # We preserve .a as extension for shared libraries through AIX4.2
8877 # and later when we are not doing run time linking.
8878 library_names_spec='${libname}${release}.a $libname.a'
8879 soname_spec='${libname}${release}${shared_ext}$major'
8880 fi
8881 shlibpath_var=LIBPATH
8882 fi
8883 ;;
8884
8885amigaos*)
8886 library_names_spec='$libname.ixlibrary $libname.a'
8887 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8888 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'
8889 ;;
8890
8891beos*)
8892 library_names_spec='${libname}${shared_ext}'
8893 dynamic_linker="$host_os ld.so"
8894 shlibpath_var=LIBRARY_PATH
8895 ;;
8896
mmentovai8c2a4de2006-09-20 16:20:15 +00008897bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00008898 version_type=linux
8899 need_version=no
8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8901 soname_spec='${libname}${release}${shared_ext}$major'
8902 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8903 shlibpath_var=LD_LIBRARY_PATH
8904 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8905 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8906 # the default ld.so.conf also contains /usr/contrib/lib and
8907 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8908 # libtool to hard-code these into programs
8909 ;;
8910
8911cygwin* | mingw* | pw32*)
8912 version_type=windows
8913 shrext_cmds=".dll"
8914 need_version=no
8915 need_lib_prefix=no
8916
8917 case $GCC,$host_os in
8918 yes,cygwin* | yes,mingw* | yes,pw32*)
8919 library_names_spec='$libname.dll.a'
8920 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8921 postinstall_cmds='base_file=`basename \${file}`~
8922 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8923 dldir=$destdir/`dirname \$dlpath`~
8924 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +00008925 $install_prog $dir/$dlname \$dldir/$dlname~
8926 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +00008927 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8928 dlpath=$dir/\$dldll~
8929 $rm \$dlpath'
8930 shlibpath_overrides_runpath=yes
8931
8932 case $host_os in
8933 cygwin*)
8934 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8935 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8936 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8937 ;;
8938 mingw*)
8939 # MinGW DLLs use traditional 'lib' prefix
8940 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8941 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8942 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8943 # It is most probably a Windows format PATH printed by
8944 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8945 # path with ; separators, and with drive letters. We can handle the
8946 # drive letters (cygwin fileutils understands them), so leave them,
8947 # especially as we might pass files found there to a mingw objdump,
8948 # which wouldn't understand a cygwinified path. Ahh.
8949 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8950 else
8951 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8952 fi
8953 ;;
8954 pw32*)
8955 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +00008956 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 +00008957 ;;
8958 esac
8959 ;;
8960
8961 *)
8962 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8963 ;;
8964 esac
8965 dynamic_linker='Win32 ld.exe'
8966 # FIXME: first we should search . and the directory the executable is in
8967 shlibpath_var=PATH
8968 ;;
8969
8970darwin* | rhapsody*)
8971 dynamic_linker="$host_os dyld"
8972 version_type=darwin
8973 need_lib_prefix=no
8974 need_version=no
8975 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8976 soname_spec='${libname}${release}${major}$shared_ext'
8977 shlibpath_overrides_runpath=yes
8978 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +00008979 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
brynercb91a2f2006-08-25 21:14:45 +00008980 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8981 if test "$GCC" = yes; then
8982 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"`
8983 else
8984 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8985 fi
8986 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8987 ;;
8988
8989dgux*)
8990 version_type=linux
8991 need_lib_prefix=no
8992 need_version=no
8993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8994 soname_spec='${libname}${release}${shared_ext}$major'
8995 shlibpath_var=LD_LIBRARY_PATH
8996 ;;
8997
8998freebsd1*)
8999 dynamic_linker=no
9000 ;;
9001
9002kfreebsd*-gnu)
9003 version_type=linux
9004 need_lib_prefix=no
9005 need_version=no
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9007 soname_spec='${libname}${release}${shared_ext}$major'
9008 shlibpath_var=LD_LIBRARY_PATH
9009 shlibpath_overrides_runpath=no
9010 hardcode_into_libs=yes
9011 dynamic_linker='GNU ld.so'
9012 ;;
9013
mmentovai8c2a4de2006-09-20 16:20:15 +00009014freebsd* | dragonfly*)
9015 # DragonFly does not have aout. When/if they implement a new
9016 # versioning mechanism, adjust this.
9017 if test -x /usr/bin/objformat; then
9018 objformat=`/usr/bin/objformat`
9019 else
9020 case $host_os in
9021 freebsd[123]*) objformat=aout ;;
9022 *) objformat=elf ;;
9023 esac
9024 fi
brynercb91a2f2006-08-25 21:14:45 +00009025 version_type=freebsd-$objformat
9026 case $version_type in
9027 freebsd-elf*)
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9029 need_version=no
9030 need_lib_prefix=no
9031 ;;
9032 freebsd-*)
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9034 need_version=yes
9035 ;;
9036 esac
9037 shlibpath_var=LD_LIBRARY_PATH
9038 case $host_os in
9039 freebsd2*)
9040 shlibpath_overrides_runpath=yes
9041 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009042 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +00009043 shlibpath_overrides_runpath=yes
9044 hardcode_into_libs=yes
9045 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009046 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9047 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +00009048 shlibpath_overrides_runpath=no
9049 hardcode_into_libs=yes
9050 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009051 freebsd*) # from 4.6 on
9052 shlibpath_overrides_runpath=yes
9053 hardcode_into_libs=yes
9054 ;;
brynercb91a2f2006-08-25 21:14:45 +00009055 esac
9056 ;;
9057
9058gnu*)
9059 version_type=linux
9060 need_lib_prefix=no
9061 need_version=no
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9063 soname_spec='${libname}${release}${shared_ext}$major'
9064 shlibpath_var=LD_LIBRARY_PATH
9065 hardcode_into_libs=yes
9066 ;;
9067
9068hpux9* | hpux10* | hpux11*)
9069 # Give a soname corresponding to the major version so that dld.sl refuses to
9070 # link against other versions.
9071 version_type=sunos
9072 need_lib_prefix=no
9073 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009074 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00009075 ia64*)
9076 shrext_cmds='.so'
9077 hardcode_into_libs=yes
9078 dynamic_linker="$host_os dld.so"
9079 shlibpath_var=LD_LIBRARY_PATH
9080 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 if test "X$HPUX_IA64_MODE" = X32; then
9084 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9085 else
9086 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9087 fi
9088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9089 ;;
9090 hppa*64*)
9091 shrext_cmds='.sl'
9092 hardcode_into_libs=yes
9093 dynamic_linker="$host_os dld.sl"
9094 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9097 soname_spec='${libname}${release}${shared_ext}$major'
9098 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9100 ;;
9101 *)
9102 shrext_cmds='.sl'
9103 dynamic_linker="$host_os dld.sl"
9104 shlibpath_var=SHLIB_PATH
9105 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107 soname_spec='${libname}${release}${shared_ext}$major'
9108 ;;
9109 esac
9110 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9111 postinstall_cmds='chmod 555 $lib'
9112 ;;
9113
mmentovai8c2a4de2006-09-20 16:20:15 +00009114interix3*)
9115 version_type=linux
9116 need_lib_prefix=no
9117 need_version=no
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 shlibpath_overrides_runpath=no
9123 hardcode_into_libs=yes
9124 ;;
9125
brynercb91a2f2006-08-25 21:14:45 +00009126irix5* | irix6* | nonstopux*)
9127 case $host_os in
9128 nonstopux*) version_type=nonstopux ;;
9129 *)
9130 if test "$lt_cv_prog_gnu_ld" = yes; then
9131 version_type=linux
9132 else
9133 version_type=irix
9134 fi ;;
9135 esac
9136 need_lib_prefix=no
9137 need_version=no
9138 soname_spec='${libname}${release}${shared_ext}$major'
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9140 case $host_os in
9141 irix5* | nonstopux*)
9142 libsuff= shlibsuff=
9143 ;;
9144 *)
9145 case $LD in # libtool.m4 will add one of these switches to LD
9146 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9147 libsuff= shlibsuff= libmagic=32-bit;;
9148 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9149 libsuff=32 shlibsuff=N32 libmagic=N32;;
9150 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9151 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9152 *) libsuff= shlibsuff= libmagic=never-match;;
9153 esac
9154 ;;
9155 esac
9156 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9157 shlibpath_overrides_runpath=no
9158 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9159 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9160 hardcode_into_libs=yes
9161 ;;
9162
9163# No shared lib support for Linux oldld, aout, or coff.
9164linux*oldld* | linux*aout* | linux*coff*)
9165 dynamic_linker=no
9166 ;;
9167
9168# This must be Linux ELF.
9169linux*)
9170 version_type=linux
9171 need_lib_prefix=no
9172 need_version=no
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9174 soname_spec='${libname}${release}${shared_ext}$major'
9175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9176 shlibpath_var=LD_LIBRARY_PATH
9177 shlibpath_overrides_runpath=no
9178 # This implies no fast_install, which is unacceptable.
9179 # Some rework will be needed to allow for fast_install
9180 # before this can be enabled.
9181 hardcode_into_libs=yes
9182
9183 # Append ld.so.conf contents to the search path
9184 if test -f /etc/ld.so.conf; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009185 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 +00009186 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9187 fi
9188
9189 # We used to test for /lib/ld.so.1 and disable shared libraries on
9190 # powerpc, because MkLinux only supported shared libraries with the
9191 # GNU dynamic linker. Since this was broken with cross compilers,
9192 # most powerpc-linux boxes support dynamic linking these days and
9193 # people can always --disable-shared, the test was removed, and we
9194 # assume the GNU/Linux dynamic linker is in use.
9195 dynamic_linker='GNU/Linux ld.so'
9196 ;;
9197
brynercb91a2f2006-08-25 21:14:45 +00009198knetbsd*-gnu)
9199 version_type=linux
9200 need_lib_prefix=no
9201 need_version=no
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9203 soname_spec='${libname}${release}${shared_ext}$major'
9204 shlibpath_var=LD_LIBRARY_PATH
9205 shlibpath_overrides_runpath=no
9206 hardcode_into_libs=yes
9207 dynamic_linker='GNU ld.so'
9208 ;;
9209
9210netbsd*)
9211 version_type=sunos
9212 need_lib_prefix=no
9213 need_version=no
9214 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9217 dynamic_linker='NetBSD (a.out) ld.so'
9218 else
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9220 soname_spec='${libname}${release}${shared_ext}$major'
9221 dynamic_linker='NetBSD ld.elf_so'
9222 fi
9223 shlibpath_var=LD_LIBRARY_PATH
9224 shlibpath_overrides_runpath=yes
9225 hardcode_into_libs=yes
9226 ;;
9227
9228newsos6)
9229 version_type=linux
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231 shlibpath_var=LD_LIBRARY_PATH
9232 shlibpath_overrides_runpath=yes
9233 ;;
9234
9235nto-qnx*)
9236 version_type=linux
9237 need_lib_prefix=no
9238 need_version=no
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240 soname_spec='${libname}${release}${shared_ext}$major'
9241 shlibpath_var=LD_LIBRARY_PATH
9242 shlibpath_overrides_runpath=yes
9243 ;;
9244
9245openbsd*)
9246 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +00009247 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +00009248 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009249 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9250 case $host_os in
9251 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9252 *) need_version=no ;;
9253 esac
brynercb91a2f2006-08-25 21:14:45 +00009254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9256 shlibpath_var=LD_LIBRARY_PATH
9257 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9258 case $host_os in
9259 openbsd2.[89] | openbsd2.[89].*)
9260 shlibpath_overrides_runpath=no
9261 ;;
9262 *)
9263 shlibpath_overrides_runpath=yes
9264 ;;
9265 esac
9266 else
9267 shlibpath_overrides_runpath=yes
9268 fi
9269 ;;
9270
9271os2*)
9272 libname_spec='$name'
9273 shrext_cmds=".dll"
9274 need_lib_prefix=no
9275 library_names_spec='$libname${shared_ext} $libname.a'
9276 dynamic_linker='OS/2 ld.exe'
9277 shlibpath_var=LIBPATH
9278 ;;
9279
9280osf3* | osf4* | osf5*)
9281 version_type=osf
9282 need_lib_prefix=no
9283 need_version=no
9284 soname_spec='${libname}${release}${shared_ext}$major'
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9286 shlibpath_var=LD_LIBRARY_PATH
9287 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9288 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9289 ;;
9290
brynercb91a2f2006-08-25 21:14:45 +00009291solaris*)
9292 version_type=linux
9293 need_lib_prefix=no
9294 need_version=no
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296 soname_spec='${libname}${release}${shared_ext}$major'
9297 shlibpath_var=LD_LIBRARY_PATH
9298 shlibpath_overrides_runpath=yes
9299 hardcode_into_libs=yes
9300 # ldd complains unless libraries are executable
9301 postinstall_cmds='chmod +x $lib'
9302 ;;
9303
9304sunos4*)
9305 version_type=sunos
9306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9307 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9308 shlibpath_var=LD_LIBRARY_PATH
9309 shlibpath_overrides_runpath=yes
9310 if test "$with_gnu_ld" = yes; then
9311 need_lib_prefix=no
9312 fi
9313 need_version=yes
9314 ;;
9315
mmentovai8c2a4de2006-09-20 16:20:15 +00009316sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00009317 version_type=linux
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 soname_spec='${libname}${release}${shared_ext}$major'
9320 shlibpath_var=LD_LIBRARY_PATH
9321 case $host_vendor in
9322 sni)
9323 shlibpath_overrides_runpath=no
9324 need_lib_prefix=no
9325 export_dynamic_flag_spec='${wl}-Blargedynsym'
9326 runpath_var=LD_RUN_PATH
9327 ;;
9328 siemens)
9329 need_lib_prefix=no
9330 ;;
9331 motorola)
9332 need_lib_prefix=no
9333 need_version=no
9334 shlibpath_overrides_runpath=no
9335 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9336 ;;
9337 esac
9338 ;;
9339
9340sysv4*MP*)
9341 if test -d /usr/nec ;then
9342 version_type=linux
9343 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9344 soname_spec='$libname${shared_ext}.$major'
9345 shlibpath_var=LD_LIBRARY_PATH
9346 fi
9347 ;;
9348
mmentovai8c2a4de2006-09-20 16:20:15 +00009349sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9350 version_type=freebsd-elf
9351 need_lib_prefix=no
9352 need_version=no
9353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9354 soname_spec='${libname}${release}${shared_ext}$major'
9355 shlibpath_var=LD_LIBRARY_PATH
9356 hardcode_into_libs=yes
9357 if test "$with_gnu_ld" = yes; then
9358 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9359 shlibpath_overrides_runpath=no
9360 else
9361 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9362 shlibpath_overrides_runpath=yes
9363 case $host_os in
9364 sco3.2v5*)
9365 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9366 ;;
9367 esac
9368 fi
9369 sys_lib_dlsearch_path_spec='/usr/lib'
9370 ;;
9371
brynercb91a2f2006-08-25 21:14:45 +00009372uts4*)
9373 version_type=linux
9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375 soname_spec='${libname}${release}${shared_ext}$major'
9376 shlibpath_var=LD_LIBRARY_PATH
9377 ;;
9378
9379*)
9380 dynamic_linker=no
9381 ;;
9382esac
mmentovai8c2a4de2006-09-20 16:20:15 +00009383{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9384echo "${ECHO_T}$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009385test "$dynamic_linker" = no && can_build_shared=no
9386
mmentovai8c2a4de2006-09-20 16:20:15 +00009387variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9388if test "$GCC" = yes; then
9389 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9390fi
9391
9392{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9393echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009394hardcode_action=
9395if test -n "$hardcode_libdir_flag_spec" || \
mmentovai8c2a4de2006-09-20 16:20:15 +00009396 test -n "$runpath_var" || \
9397 test "X$hardcode_automatic" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +00009398
9399 # We can hardcode non-existant directories.
9400 if test "$hardcode_direct" != no &&
9401 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9402 # have to relink, otherwise we might link with an installed library
9403 # when we should be linking with a yet-to-be-installed one
9404 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9405 test "$hardcode_minus_L" != no; then
9406 # Linking always hardcodes the temporary library directory.
9407 hardcode_action=relink
9408 else
9409 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9410 hardcode_action=immediate
9411 fi
9412else
9413 # We cannot hardcode anything, or else we can only hardcode existing
9414 # directories.
9415 hardcode_action=unsupported
9416fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009417{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9418echo "${ECHO_T}$hardcode_action" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009419
9420if test "$hardcode_action" = relink; then
9421 # Fast installation is not supported
9422 enable_fast_install=no
9423elif test "$shlibpath_overrides_runpath" = yes ||
9424 test "$enable_shared" = no; then
9425 # Fast installation is not necessary
9426 enable_fast_install=needless
9427fi
9428
9429striplib=
9430old_striplib=
mmentovai8c2a4de2006-09-20 16:20:15 +00009431{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9432echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009433if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9434 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9435 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
mmentovai8c2a4de2006-09-20 16:20:15 +00009436 { echo "$as_me:$LINENO: result: yes" >&5
9437echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009438else
9439# FIXME - insert some real tests, host_os isn't really good enough
9440 case $host_os in
9441 darwin*)
9442 if test -n "$STRIP" ; then
9443 striplib="$STRIP -x"
mmentovai8c2a4de2006-09-20 16:20:15 +00009444 { echo "$as_me:$LINENO: result: yes" >&5
9445echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009446 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009447 { echo "$as_me:$LINENO: result: no" >&5
9448echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009449fi
9450 ;;
9451 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00009452 { echo "$as_me:$LINENO: result: no" >&5
9453echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009454 ;;
9455 esac
9456fi
9457
9458if test "x$enable_dlopen" != xyes; then
9459 enable_dlopen=unknown
9460 enable_dlopen_self=unknown
9461 enable_dlopen_self_static=unknown
9462else
9463 lt_cv_dlopen=no
9464 lt_cv_dlopen_libs=
9465
9466 case $host_os in
9467 beos*)
9468 lt_cv_dlopen="load_add_on"
9469 lt_cv_dlopen_libs=
9470 lt_cv_dlopen_self=yes
9471 ;;
9472
9473 mingw* | pw32*)
9474 lt_cv_dlopen="LoadLibrary"
9475 lt_cv_dlopen_libs=
9476 ;;
9477
9478 cygwin*)
9479 lt_cv_dlopen="dlopen"
9480 lt_cv_dlopen_libs=
9481 ;;
9482
9483 darwin*)
9484 # if libdl is installed we need to link against it
mmentovai8c2a4de2006-09-20 16:20:15 +00009485 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9486echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009487if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9489else
9490 ac_check_lib_save_LIBS=$LIBS
9491LIBS="-ldl $LIBS"
9492cat >conftest.$ac_ext <<_ACEOF
9493/* confdefs.h. */
9494_ACEOF
9495cat confdefs.h >>conftest.$ac_ext
9496cat >>conftest.$ac_ext <<_ACEOF
9497/* end confdefs.h. */
9498
mmentovai8c2a4de2006-09-20 16:20:15 +00009499/* Override any GCC internal prototype to avoid an error.
9500 Use char because int might match the return type of a GCC
9501 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009502#ifdef __cplusplus
9503extern "C"
9504#endif
brynercb91a2f2006-08-25 21:14:45 +00009505char dlopen ();
9506int
9507main ()
9508{
mmentovai8c2a4de2006-09-20 16:20:15 +00009509return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +00009510 ;
9511 return 0;
9512}
9513_ACEOF
9514rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009515if { (ac_try="$ac_link"
9516case "(($ac_try" in
9517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9518 *) ac_try_echo=$ac_try;;
9519esac
9520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9521 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009522 ac_status=$?
9523 grep -v '^ *+' conftest.er1 >conftest.err
9524 rm -f conftest.er1
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00009528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9529 { (case "(($ac_try" in
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9532esac
9533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009535 ac_status=$?
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); }; } &&
9538 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00009539 { (case "(($ac_try" in
9540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9541 *) ac_try_echo=$ac_try;;
9542esac
9543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9544 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; }; then
9548 ac_cv_lib_dl_dlopen=yes
9549else
9550 echo "$as_me: failed program was:" >&5
9551sed 's/^/| /' conftest.$ac_ext >&5
9552
mmentovai8c2a4de2006-09-20 16:20:15 +00009553 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +00009554fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009555
9556rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00009557 conftest$ac_exeext conftest.$ac_ext
9558LIBS=$ac_check_lib_save_LIBS
9559fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009560{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9561echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009562if test $ac_cv_lib_dl_dlopen = yes; then
9563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9564else
9565
9566 lt_cv_dlopen="dyld"
9567 lt_cv_dlopen_libs=
9568 lt_cv_dlopen_self=yes
9569
9570fi
9571
9572 ;;
9573
9574 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00009575 { echo "$as_me:$LINENO: checking for shl_load" >&5
9576echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009577if test "${ac_cv_func_shl_load+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9579else
9580 cat >conftest.$ac_ext <<_ACEOF
9581/* confdefs.h. */
9582_ACEOF
9583cat confdefs.h >>conftest.$ac_ext
9584cat >>conftest.$ac_ext <<_ACEOF
9585/* end confdefs.h. */
9586/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9588#define shl_load innocuous_shl_load
9589
9590/* System header to define __stub macros and hopefully few prototypes,
9591 which can conflict with char shl_load (); below.
9592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9593 <limits.h> exists even on freestanding compilers. */
9594
9595#ifdef __STDC__
9596# include <limits.h>
9597#else
9598# include <assert.h>
9599#endif
9600
9601#undef shl_load
9602
mmentovai8c2a4de2006-09-20 16:20:15 +00009603/* Override any GCC internal prototype to avoid an error.
9604 Use char because int might match the return type of a GCC
9605 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009606#ifdef __cplusplus
9607extern "C"
brynercb91a2f2006-08-25 21:14:45 +00009608#endif
brynercb91a2f2006-08-25 21:14:45 +00009609char shl_load ();
9610/* The GNU C library defines this for functions which it implements
9611 to always fail with ENOSYS. Some functions are actually named
9612 something starting with __ and the normal name is an alias. */
mmentovai8c2a4de2006-09-20 16:20:15 +00009613#if defined __stub_shl_load || defined __stub___shl_load
brynercb91a2f2006-08-25 21:14:45 +00009614choke me
brynercb91a2f2006-08-25 21:14:45 +00009615#endif
9616
9617int
9618main ()
9619{
mmentovai8c2a4de2006-09-20 16:20:15 +00009620return shl_load ();
brynercb91a2f2006-08-25 21:14:45 +00009621 ;
9622 return 0;
9623}
9624_ACEOF
9625rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009626if { (ac_try="$ac_link"
9627case "(($ac_try" in
9628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9629 *) ac_try_echo=$ac_try;;
9630esac
9631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9632 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009633 ac_status=$?
9634 grep -v '^ *+' conftest.er1 >conftest.err
9635 rm -f conftest.er1
9636 cat conftest.err >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00009639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9640 { (case "(($ac_try" in
9641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9642 *) ac_try_echo=$ac_try;;
9643esac
9644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9645 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009646 ac_status=$?
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; } &&
9649 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00009650 { (case "(($ac_try" in
9651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652 *) ac_try_echo=$ac_try;;
9653esac
9654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9655 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009656 ac_status=$?
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; }; then
9659 ac_cv_func_shl_load=yes
9660else
9661 echo "$as_me: failed program was:" >&5
9662sed 's/^/| /' conftest.$ac_ext >&5
9663
mmentovai8c2a4de2006-09-20 16:20:15 +00009664 ac_cv_func_shl_load=no
brynercb91a2f2006-08-25 21:14:45 +00009665fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009666
9667rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00009668 conftest$ac_exeext conftest.$ac_ext
9669fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009670{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9671echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009672if test $ac_cv_func_shl_load = yes; then
9673 lt_cv_dlopen="shl_load"
9674else
mmentovai8c2a4de2006-09-20 16:20:15 +00009675 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9676echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009677if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9679else
9680 ac_check_lib_save_LIBS=$LIBS
9681LIBS="-ldld $LIBS"
9682cat >conftest.$ac_ext <<_ACEOF
9683/* confdefs.h. */
9684_ACEOF
9685cat confdefs.h >>conftest.$ac_ext
9686cat >>conftest.$ac_ext <<_ACEOF
9687/* end confdefs.h. */
9688
mmentovai8c2a4de2006-09-20 16:20:15 +00009689/* Override any GCC internal prototype to avoid an error.
9690 Use char because int might match the return type of a GCC
9691 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009692#ifdef __cplusplus
9693extern "C"
9694#endif
brynercb91a2f2006-08-25 21:14:45 +00009695char shl_load ();
9696int
9697main ()
9698{
mmentovai8c2a4de2006-09-20 16:20:15 +00009699return shl_load ();
brynercb91a2f2006-08-25 21:14:45 +00009700 ;
9701 return 0;
9702}
9703_ACEOF
9704rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009705if { (ac_try="$ac_link"
9706case "(($ac_try" in
9707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708 *) ac_try_echo=$ac_try;;
9709esac
9710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009712 ac_status=$?
9713 grep -v '^ *+' conftest.er1 >conftest.err
9714 rm -f conftest.er1
9715 cat conftest.err >&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00009718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9719 { (case "(($ac_try" in
9720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 *) ac_try_echo=$ac_try;;
9722esac
9723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009725 ac_status=$?
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; } &&
9728 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00009729 { (case "(($ac_try" in
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9732esac
9733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009735 ac_status=$?
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; }; then
9738 ac_cv_lib_dld_shl_load=yes
9739else
9740 echo "$as_me: failed program was:" >&5
9741sed 's/^/| /' conftest.$ac_ext >&5
9742
mmentovai8c2a4de2006-09-20 16:20:15 +00009743 ac_cv_lib_dld_shl_load=no
brynercb91a2f2006-08-25 21:14:45 +00009744fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009745
9746rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00009747 conftest$ac_exeext conftest.$ac_ext
9748LIBS=$ac_check_lib_save_LIBS
9749fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009750{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9751echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009752if test $ac_cv_lib_dld_shl_load = yes; then
9753 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9754else
mmentovai8c2a4de2006-09-20 16:20:15 +00009755 { echo "$as_me:$LINENO: checking for dlopen" >&5
9756echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009757if test "${ac_cv_func_dlopen+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9759else
9760 cat >conftest.$ac_ext <<_ACEOF
9761/* confdefs.h. */
9762_ACEOF
9763cat confdefs.h >>conftest.$ac_ext
9764cat >>conftest.$ac_ext <<_ACEOF
9765/* end confdefs.h. */
9766/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9768#define dlopen innocuous_dlopen
9769
9770/* System header to define __stub macros and hopefully few prototypes,
9771 which can conflict with char dlopen (); below.
9772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9773 <limits.h> exists even on freestanding compilers. */
9774
9775#ifdef __STDC__
9776# include <limits.h>
9777#else
9778# include <assert.h>
9779#endif
9780
9781#undef dlopen
9782
mmentovai8c2a4de2006-09-20 16:20:15 +00009783/* Override any GCC internal prototype to avoid an error.
9784 Use char because int might match the return type of a GCC
9785 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009786#ifdef __cplusplus
9787extern "C"
brynercb91a2f2006-08-25 21:14:45 +00009788#endif
brynercb91a2f2006-08-25 21:14:45 +00009789char dlopen ();
9790/* The GNU C library defines this for functions which it implements
9791 to always fail with ENOSYS. Some functions are actually named
9792 something starting with __ and the normal name is an alias. */
mmentovai8c2a4de2006-09-20 16:20:15 +00009793#if defined __stub_dlopen || defined __stub___dlopen
brynercb91a2f2006-08-25 21:14:45 +00009794choke me
brynercb91a2f2006-08-25 21:14:45 +00009795#endif
9796
9797int
9798main ()
9799{
mmentovai8c2a4de2006-09-20 16:20:15 +00009800return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +00009801 ;
9802 return 0;
9803}
9804_ACEOF
9805rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009806if { (ac_try="$ac_link"
9807case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9810esac
9811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00009819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9820 { (case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9823esac
9824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009826 ac_status=$?
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; } &&
9829 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00009830 { (case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9833esac
9834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9839 ac_cv_func_dlopen=yes
9840else
9841 echo "$as_me: failed program was:" >&5
9842sed 's/^/| /' conftest.$ac_ext >&5
9843
mmentovai8c2a4de2006-09-20 16:20:15 +00009844 ac_cv_func_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +00009845fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009846
9847rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00009848 conftest$ac_exeext conftest.$ac_ext
9849fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009850{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9851echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009852if test $ac_cv_func_dlopen = yes; then
9853 lt_cv_dlopen="dlopen"
9854else
mmentovai8c2a4de2006-09-20 16:20:15 +00009855 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9856echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009857if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9859else
9860 ac_check_lib_save_LIBS=$LIBS
9861LIBS="-ldl $LIBS"
9862cat >conftest.$ac_ext <<_ACEOF
9863/* confdefs.h. */
9864_ACEOF
9865cat confdefs.h >>conftest.$ac_ext
9866cat >>conftest.$ac_ext <<_ACEOF
9867/* end confdefs.h. */
9868
mmentovai8c2a4de2006-09-20 16:20:15 +00009869/* Override any GCC internal prototype to avoid an error.
9870 Use char because int might match the return type of a GCC
9871 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009872#ifdef __cplusplus
9873extern "C"
9874#endif
brynercb91a2f2006-08-25 21:14:45 +00009875char dlopen ();
9876int
9877main ()
9878{
mmentovai8c2a4de2006-09-20 16:20:15 +00009879return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +00009880 ;
9881 return 0;
9882}
9883_ACEOF
9884rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009885if { (ac_try="$ac_link"
9886case "(($ac_try" in
9887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888 *) ac_try_echo=$ac_try;;
9889esac
9890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009892 ac_status=$?
9893 grep -v '^ *+' conftest.er1 >conftest.err
9894 rm -f conftest.er1
9895 cat conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00009898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9899 { (case "(($ac_try" in
9900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901 *) ac_try_echo=$ac_try;;
9902esac
9903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009905 ac_status=$?
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); }; } &&
9908 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00009909 { (case "(($ac_try" in
9910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9911 *) ac_try_echo=$ac_try;;
9912esac
9913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9914 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009915 ac_status=$?
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); }; }; then
9918 ac_cv_lib_dl_dlopen=yes
9919else
9920 echo "$as_me: failed program was:" >&5
9921sed 's/^/| /' conftest.$ac_ext >&5
9922
mmentovai8c2a4de2006-09-20 16:20:15 +00009923 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +00009924fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009925
9926rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00009927 conftest$ac_exeext conftest.$ac_ext
9928LIBS=$ac_check_lib_save_LIBS
9929fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009930{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9931echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009932if test $ac_cv_lib_dl_dlopen = yes; then
9933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9934else
mmentovai8c2a4de2006-09-20 16:20:15 +00009935 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9936echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009937if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9939else
9940 ac_check_lib_save_LIBS=$LIBS
9941LIBS="-lsvld $LIBS"
9942cat >conftest.$ac_ext <<_ACEOF
9943/* confdefs.h. */
9944_ACEOF
9945cat confdefs.h >>conftest.$ac_ext
9946cat >>conftest.$ac_ext <<_ACEOF
9947/* end confdefs.h. */
9948
mmentovai8c2a4de2006-09-20 16:20:15 +00009949/* Override any GCC internal prototype to avoid an error.
9950 Use char because int might match the return type of a GCC
9951 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009952#ifdef __cplusplus
9953extern "C"
9954#endif
brynercb91a2f2006-08-25 21:14:45 +00009955char dlopen ();
9956int
9957main ()
9958{
mmentovai8c2a4de2006-09-20 16:20:15 +00009959return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +00009960 ;
9961 return 0;
9962}
9963_ACEOF
9964rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009965if { (ac_try="$ac_link"
9966case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00009978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9979 { (case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982esac
9983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009985 ac_status=$?
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; } &&
9988 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00009989 { (case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9992esac
9993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009995 ac_status=$?
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; }; then
9998 ac_cv_lib_svld_dlopen=yes
9999else
10000 echo "$as_me: failed program was:" >&5
10001sed 's/^/| /' conftest.$ac_ext >&5
10002
mmentovai8c2a4de2006-09-20 16:20:15 +000010003 ac_cv_lib_svld_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000010004fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010005
10006rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000010007 conftest$ac_exeext conftest.$ac_ext
10008LIBS=$ac_check_lib_save_LIBS
10009fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010010{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10011echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010012if test $ac_cv_lib_svld_dlopen = yes; then
10013 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10014else
mmentovai8c2a4de2006-09-20 16:20:15 +000010015 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10016echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010017if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10019else
10020 ac_check_lib_save_LIBS=$LIBS
10021LIBS="-ldld $LIBS"
10022cat >conftest.$ac_ext <<_ACEOF
10023/* confdefs.h. */
10024_ACEOF
10025cat confdefs.h >>conftest.$ac_ext
10026cat >>conftest.$ac_ext <<_ACEOF
10027/* end confdefs.h. */
10028
mmentovai8c2a4de2006-09-20 16:20:15 +000010029/* Override any GCC internal prototype to avoid an error.
10030 Use char because int might match the return type of a GCC
10031 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010032#ifdef __cplusplus
10033extern "C"
10034#endif
brynercb91a2f2006-08-25 21:14:45 +000010035char dld_link ();
10036int
10037main ()
10038{
mmentovai8c2a4de2006-09-20 16:20:15 +000010039return dld_link ();
brynercb91a2f2006-08-25 21:14:45 +000010040 ;
10041 return 0;
10042}
10043_ACEOF
10044rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000010045if { (ac_try="$ac_link"
10046case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10049esac
10050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000010052 ac_status=$?
10053 grep -v '^ *+' conftest.er1 >conftest.err
10054 rm -f conftest.er1
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000010058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10059 { (case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10062esac
10063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000010065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; } &&
10068 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000010069 { (case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10072esac
10073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000010075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
10078 ac_cv_lib_dld_dld_link=yes
10079else
10080 echo "$as_me: failed program was:" >&5
10081sed 's/^/| /' conftest.$ac_ext >&5
10082
mmentovai8c2a4de2006-09-20 16:20:15 +000010083 ac_cv_lib_dld_dld_link=no
brynercb91a2f2006-08-25 21:14:45 +000010084fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010085
10086rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000010087 conftest$ac_exeext conftest.$ac_ext
10088LIBS=$ac_check_lib_save_LIBS
10089fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010090{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10091echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010092if test $ac_cv_lib_dld_dld_link = yes; then
10093 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10094fi
10095
10096
10097fi
10098
10099
10100fi
10101
10102
10103fi
10104
10105
10106fi
10107
10108
10109fi
10110
10111 ;;
10112 esac
10113
10114 if test "x$lt_cv_dlopen" != xno; then
10115 enable_dlopen=yes
10116 else
10117 enable_dlopen=no
10118 fi
10119
10120 case $lt_cv_dlopen in
10121 dlopen)
10122 save_CPPFLAGS="$CPPFLAGS"
10123 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10124
10125 save_LDFLAGS="$LDFLAGS"
mmentovai8c2a4de2006-09-20 16:20:15 +000010126 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
brynercb91a2f2006-08-25 21:14:45 +000010127
10128 save_LIBS="$LIBS"
10129 LIBS="$lt_cv_dlopen_libs $LIBS"
10130
mmentovai8c2a4de2006-09-20 16:20:15 +000010131 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10132echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010133if test "${lt_cv_dlopen_self+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10135else
10136 if test "$cross_compiling" = yes; then :
10137 lt_cv_dlopen_self=cross
10138else
10139 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10140 lt_status=$lt_dlunknown
10141 cat > conftest.$ac_ext <<EOF
mmentovai8c2a4de2006-09-20 16:20:15 +000010142#line 10142 "configure"
brynercb91a2f2006-08-25 21:14:45 +000010143#include "confdefs.h"
10144
10145#if HAVE_DLFCN_H
10146#include <dlfcn.h>
10147#endif
10148
10149#include <stdio.h>
10150
10151#ifdef RTLD_GLOBAL
10152# define LT_DLGLOBAL RTLD_GLOBAL
10153#else
10154# ifdef DL_GLOBAL
10155# define LT_DLGLOBAL DL_GLOBAL
10156# else
10157# define LT_DLGLOBAL 0
10158# endif
10159#endif
10160
10161/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10162 find out it does not work in some platform. */
10163#ifndef LT_DLLAZY_OR_NOW
10164# ifdef RTLD_LAZY
10165# define LT_DLLAZY_OR_NOW RTLD_LAZY
10166# else
10167# ifdef DL_LAZY
10168# define LT_DLLAZY_OR_NOW DL_LAZY
10169# else
10170# ifdef RTLD_NOW
10171# define LT_DLLAZY_OR_NOW RTLD_NOW
10172# else
10173# ifdef DL_NOW
10174# define LT_DLLAZY_OR_NOW DL_NOW
10175# else
10176# define LT_DLLAZY_OR_NOW 0
10177# endif
10178# endif
10179# endif
10180# endif
10181#endif
10182
10183#ifdef __cplusplus
10184extern "C" void exit (int);
10185#endif
10186
10187void fnord() { int i=42;}
10188int main ()
10189{
10190 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10191 int status = $lt_dlunknown;
10192
10193 if (self)
10194 {
10195 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10196 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10197 /* dlclose (self); */
10198 }
mmentovai8c2a4de2006-09-20 16:20:15 +000010199 else
10200 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000010201
10202 exit (status);
10203}
10204EOF
10205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10206 (eval $ac_link) 2>&5
10207 ac_status=$?
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010210 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000010211 lt_status=$?
10212 case x$lt_status in
10213 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10214 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010215 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
brynercb91a2f2006-08-25 21:14:45 +000010216 esac
10217 else :
10218 # compilation failed
10219 lt_cv_dlopen_self=no
10220 fi
10221fi
10222rm -fr conftest*
10223
10224
10225fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010226{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10227echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010228
10229 if test "x$lt_cv_dlopen_self" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010230 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10231 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10232echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010233if test "${lt_cv_dlopen_self_static+set}" = set; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10235else
10236 if test "$cross_compiling" = yes; then :
10237 lt_cv_dlopen_self_static=cross
10238else
10239 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10240 lt_status=$lt_dlunknown
10241 cat > conftest.$ac_ext <<EOF
mmentovai8c2a4de2006-09-20 16:20:15 +000010242#line 10242 "configure"
brynercb91a2f2006-08-25 21:14:45 +000010243#include "confdefs.h"
10244
10245#if HAVE_DLFCN_H
10246#include <dlfcn.h>
10247#endif
10248
10249#include <stdio.h>
10250
10251#ifdef RTLD_GLOBAL
10252# define LT_DLGLOBAL RTLD_GLOBAL
10253#else
10254# ifdef DL_GLOBAL
10255# define LT_DLGLOBAL DL_GLOBAL
10256# else
10257# define LT_DLGLOBAL 0
10258# endif
10259#endif
10260
10261/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10262 find out it does not work in some platform. */
10263#ifndef LT_DLLAZY_OR_NOW
10264# ifdef RTLD_LAZY
10265# define LT_DLLAZY_OR_NOW RTLD_LAZY
10266# else
10267# ifdef DL_LAZY
10268# define LT_DLLAZY_OR_NOW DL_LAZY
10269# else
10270# ifdef RTLD_NOW
10271# define LT_DLLAZY_OR_NOW RTLD_NOW
10272# else
10273# ifdef DL_NOW
10274# define LT_DLLAZY_OR_NOW DL_NOW
10275# else
10276# define LT_DLLAZY_OR_NOW 0
10277# endif
10278# endif
10279# endif
10280# endif
10281#endif
10282
10283#ifdef __cplusplus
10284extern "C" void exit (int);
10285#endif
10286
10287void fnord() { int i=42;}
10288int main ()
10289{
10290 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10291 int status = $lt_dlunknown;
10292
10293 if (self)
10294 {
10295 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10296 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10297 /* dlclose (self); */
10298 }
mmentovai8c2a4de2006-09-20 16:20:15 +000010299 else
10300 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000010301
10302 exit (status);
10303}
10304EOF
10305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10306 (eval $ac_link) 2>&5
10307 ac_status=$?
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010310 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000010311 lt_status=$?
10312 case x$lt_status in
10313 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10314 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010315 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
brynercb91a2f2006-08-25 21:14:45 +000010316 esac
10317 else :
10318 # compilation failed
10319 lt_cv_dlopen_self_static=no
10320 fi
10321fi
10322rm -fr conftest*
10323
10324
10325fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010326{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10327echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010328 fi
10329
10330 CPPFLAGS="$save_CPPFLAGS"
10331 LDFLAGS="$save_LDFLAGS"
10332 LIBS="$save_LIBS"
10333 ;;
10334 esac
10335
10336 case $lt_cv_dlopen_self in
10337 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10338 *) enable_dlopen_self=unknown ;;
10339 esac
10340
10341 case $lt_cv_dlopen_self_static in
10342 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10343 *) enable_dlopen_self_static=unknown ;;
10344 esac
10345fi
10346
10347
mmentovai8c2a4de2006-09-20 16:20:15 +000010348# Report which library types will actually be built
10349{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10350echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10351{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10352echo "${ECHO_T}$can_build_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010353
mmentovai8c2a4de2006-09-20 16:20:15 +000010354{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10355echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010356test "$can_build_shared" = "no" && enable_shared=no
10357
10358# On AIX, shared libraries and static libraries use the same namespace, and
10359# are all built from PIC.
mmentovai8c2a4de2006-09-20 16:20:15 +000010360case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000010361aix3*)
10362 test "$enable_shared" = yes && enable_static=no
10363 if test -n "$RANLIB"; then
10364 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10365 postinstall_cmds='$RANLIB $lib'
10366 fi
10367 ;;
10368
10369aix4* | aix5*)
10370 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10371 test "$enable_shared" = yes && enable_static=no
10372 fi
brynercb91a2f2006-08-25 21:14:45 +000010373 ;;
10374esac
mmentovai8c2a4de2006-09-20 16:20:15 +000010375{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10376echo "${ECHO_T}$enable_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010377
mmentovai8c2a4de2006-09-20 16:20:15 +000010378{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10379echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010380# Make sure either enable_shared or enable_static is yes.
10381test "$enable_shared" = yes || enable_static=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000010382{ echo "$as_me:$LINENO: result: $enable_static" >&5
10383echo "${ECHO_T}$enable_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010384
10385# The else clause should only fire when bootstrapping the
10386# libtool distribution, otherwise you forgot to ship ltmain.sh
10387# with your package, and you will get complaints that there are
10388# no rules to generate ltmain.sh.
10389if test -f "$ltmain"; then
10390 # See if we are running on zsh, and set the options which allow our commands through
10391 # without removal of \ escapes.
10392 if test -n "${ZSH_VERSION+set}" ; then
10393 setopt NO_GLOB_SUBST
10394 fi
10395 # Now quote all the things that may contain metacharacters while being
10396 # careful not to overquote the AC_SUBSTed values. We take copies of the
10397 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000010398 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000010399 SED SHELL STRIP \
10400 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10401 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10402 deplibs_check_method reload_flag reload_cmds need_locks \
10403 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10404 lt_cv_sys_global_symbol_to_c_name_address \
10405 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10406 old_postinstall_cmds old_postuninstall_cmds \
10407 compiler \
10408 CC \
10409 LD \
10410 lt_prog_compiler_wl \
10411 lt_prog_compiler_pic \
10412 lt_prog_compiler_static \
10413 lt_prog_compiler_no_builtin_flag \
10414 export_dynamic_flag_spec \
10415 thread_safe_flag_spec \
10416 whole_archive_flag_spec \
10417 enable_shared_with_static_runtimes \
10418 old_archive_cmds \
10419 old_archive_from_new_cmds \
10420 predep_objects \
10421 postdep_objects \
10422 predeps \
10423 postdeps \
10424 compiler_lib_search_path \
10425 archive_cmds \
10426 archive_expsym_cmds \
10427 postinstall_cmds \
10428 postuninstall_cmds \
10429 old_archive_from_expsyms_cmds \
10430 allow_undefined_flag \
10431 no_undefined_flag \
10432 export_symbols_cmds \
10433 hardcode_libdir_flag_spec \
10434 hardcode_libdir_flag_spec_ld \
10435 hardcode_libdir_separator \
10436 hardcode_automatic \
10437 module_cmds \
10438 module_expsym_cmds \
10439 lt_cv_prog_compiler_c_o \
10440 exclude_expsyms \
10441 include_expsyms; do
10442
10443 case $var in
10444 old_archive_cmds | \
10445 old_archive_from_new_cmds | \
10446 archive_cmds | \
10447 archive_expsym_cmds | \
10448 module_cmds | \
10449 module_expsym_cmds | \
10450 old_archive_from_expsyms_cmds | \
10451 export_symbols_cmds | \
10452 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10453 postinstall_cmds | postuninstall_cmds | \
10454 old_postinstall_cmds | old_postuninstall_cmds | \
10455 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10456 # Double-quote double-evaled strings.
10457 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10458 ;;
10459 *)
10460 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10461 ;;
10462 esac
10463 done
10464
10465 case $lt_echo in
10466 *'\$0 --fallback-echo"')
10467 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10468 ;;
10469 esac
10470
10471cfgfile="${ofile}T"
10472 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10473 $rm -f "$cfgfile"
10474 { echo "$as_me:$LINENO: creating $ofile" >&5
10475echo "$as_me: creating $ofile" >&6;}
10476
10477 cat <<__EOF__ >> "$cfgfile"
10478#! $SHELL
10479
10480# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10481# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10482# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10483#
10484# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10485# Free Software Foundation, Inc.
10486#
10487# This file is part of GNU Libtool:
10488# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10489#
10490# This program is free software; you can redistribute it and/or modify
10491# it under the terms of the GNU General Public License as published by
10492# the Free Software Foundation; either version 2 of the License, or
10493# (at your option) any later version.
10494#
10495# This program is distributed in the hope that it will be useful, but
10496# WITHOUT ANY WARRANTY; without even the implied warranty of
10497# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10498# General Public License for more details.
10499#
10500# You should have received a copy of the GNU General Public License
10501# along with this program; if not, write to the Free Software
mmentovai8c2a4de2006-09-20 16:20:15 +000010502# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
brynercb91a2f2006-08-25 21:14:45 +000010503#
10504# As a special exception to the GNU General Public License, if you
10505# distribute this file as part of a program that contains a
10506# configuration script generated by Autoconf, you may include it under
10507# the same distribution terms that you use for the rest of that program.
10508
10509# A sed program that does not truncate output.
10510SED=$lt_SED
10511
10512# Sed that helps us avoid accidentally triggering echo(1) options like -n.
mmentovai8c2a4de2006-09-20 16:20:15 +000010513Xsed="$SED -e 1s/^X//"
brynercb91a2f2006-08-25 21:14:45 +000010514
10515# The HP-UX ksh and POSIX shell print the target directory to stdout
10516# if CDPATH is set.
mmentovai8c2a4de2006-09-20 16:20:15 +000010517(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
brynercb91a2f2006-08-25 21:14:45 +000010518
10519# The names of the tagged configurations supported by this script.
10520available_tags=
10521
10522# ### BEGIN LIBTOOL CONFIG
10523
10524# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10525
10526# Shell to use when invoking shell scripts.
10527SHELL=$lt_SHELL
10528
10529# Whether or not to build shared libraries.
10530build_libtool_libs=$enable_shared
10531
10532# Whether or not to build static libraries.
10533build_old_libs=$enable_static
10534
10535# Whether or not to add -lc for building shared libraries.
10536build_libtool_need_lc=$archive_cmds_need_lc
10537
10538# Whether or not to disallow shared libs when runtime libs are static
10539allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10540
10541# Whether or not to optimize for fast installation.
10542fast_install=$enable_fast_install
10543
10544# The host system.
10545host_alias=$host_alias
10546host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000010547host_os=$host_os
10548
10549# The build system.
10550build_alias=$build_alias
10551build=$build
10552build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000010553
10554# An echo program that does not interpret backslashes.
10555echo=$lt_echo
10556
10557# The archiver.
10558AR=$lt_AR
10559AR_FLAGS=$lt_AR_FLAGS
10560
10561# A C compiler.
10562LTCC=$lt_LTCC
10563
mmentovai8c2a4de2006-09-20 16:20:15 +000010564# LTCC compiler flags.
10565LTCFLAGS=$lt_LTCFLAGS
10566
brynercb91a2f2006-08-25 21:14:45 +000010567# A language-specific compiler.
10568CC=$lt_compiler
10569
10570# Is the compiler the GNU C compiler?
10571with_gcc=$GCC
10572
10573# An ERE matcher.
10574EGREP=$lt_EGREP
10575
10576# The linker used to build libraries.
10577LD=$lt_LD
10578
10579# Whether we need hard or soft links.
10580LN_S=$lt_LN_S
10581
10582# A BSD-compatible nm program.
10583NM=$lt_NM
10584
10585# A symbol stripping program
10586STRIP=$lt_STRIP
10587
10588# Used to examine libraries when file_magic_cmd begins "file"
10589MAGIC_CMD=$MAGIC_CMD
10590
10591# Used on cygwin: DLL creation program.
10592DLLTOOL="$DLLTOOL"
10593
10594# Used on cygwin: object dumper.
10595OBJDUMP="$OBJDUMP"
10596
10597# Used on cygwin: assembler.
10598AS="$AS"
10599
10600# The name of the directory that contains temporary libtool files.
10601objdir=$objdir
10602
10603# How to create reloadable object files.
10604reload_flag=$lt_reload_flag
10605reload_cmds=$lt_reload_cmds
10606
10607# How to pass a linker flag through the compiler.
10608wl=$lt_lt_prog_compiler_wl
10609
10610# Object file suffix (normally "o").
10611objext="$ac_objext"
10612
10613# Old archive suffix (normally "a").
10614libext="$libext"
10615
10616# Shared library suffix (normally ".so").
10617shrext_cmds='$shrext_cmds'
10618
10619# Executable file suffix (normally "").
10620exeext="$exeext"
10621
10622# Additional compiler flags for building library objects.
10623pic_flag=$lt_lt_prog_compiler_pic
10624pic_mode=$pic_mode
10625
10626# What is the maximum length of a command?
10627max_cmd_len=$lt_cv_sys_max_cmd_len
10628
10629# Does compiler simultaneously support -c and -o options?
10630compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10631
mmentovai8c2a4de2006-09-20 16:20:15 +000010632# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000010633need_locks=$lt_need_locks
10634
10635# Do we need the lib prefix for modules?
10636need_lib_prefix=$need_lib_prefix
10637
10638# Do we need a version for libraries?
10639need_version=$need_version
10640
10641# Whether dlopen is supported.
10642dlopen_support=$enable_dlopen
10643
10644# Whether dlopen of programs is supported.
10645dlopen_self=$enable_dlopen_self
10646
10647# Whether dlopen of statically linked programs is supported.
10648dlopen_self_static=$enable_dlopen_self_static
10649
10650# Compiler flag to prevent dynamic linking.
10651link_static_flag=$lt_lt_prog_compiler_static
10652
10653# Compiler flag to turn off builtin functions.
10654no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10655
10656# Compiler flag to allow reflexive dlopens.
10657export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10658
10659# Compiler flag to generate shared objects directly from archives.
10660whole_archive_flag_spec=$lt_whole_archive_flag_spec
10661
10662# Compiler flag to generate thread-safe objects.
10663thread_safe_flag_spec=$lt_thread_safe_flag_spec
10664
10665# Library versioning type.
10666version_type=$version_type
10667
10668# Format of library name prefix.
10669libname_spec=$lt_libname_spec
10670
10671# List of archive names. First name is the real one, the rest are links.
10672# The last name is the one that the linker finds with -lNAME.
10673library_names_spec=$lt_library_names_spec
10674
10675# The coded name of the library, if different from the real name.
10676soname_spec=$lt_soname_spec
10677
10678# Commands used to build and install an old-style archive.
10679RANLIB=$lt_RANLIB
10680old_archive_cmds=$lt_old_archive_cmds
10681old_postinstall_cmds=$lt_old_postinstall_cmds
10682old_postuninstall_cmds=$lt_old_postuninstall_cmds
10683
10684# Create an old-style archive from a shared archive.
10685old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10686
10687# Create a temporary old-style archive to link instead of a shared archive.
10688old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10689
10690# Commands used to build and install a shared archive.
10691archive_cmds=$lt_archive_cmds
10692archive_expsym_cmds=$lt_archive_expsym_cmds
10693postinstall_cmds=$lt_postinstall_cmds
10694postuninstall_cmds=$lt_postuninstall_cmds
10695
10696# Commands used to build a loadable module (assumed same as above if empty)
10697module_cmds=$lt_module_cmds
10698module_expsym_cmds=$lt_module_expsym_cmds
10699
10700# Commands to strip libraries.
10701old_striplib=$lt_old_striplib
10702striplib=$lt_striplib
10703
10704# Dependencies to place before the objects being linked to create a
10705# shared library.
10706predep_objects=$lt_predep_objects
10707
10708# Dependencies to place after the objects being linked to create a
10709# shared library.
10710postdep_objects=$lt_postdep_objects
10711
10712# Dependencies to place before the objects being linked to create a
10713# shared library.
10714predeps=$lt_predeps
10715
10716# Dependencies to place after the objects being linked to create a
10717# shared library.
10718postdeps=$lt_postdeps
10719
10720# The library search path used internally by the compiler when linking
10721# a shared library.
10722compiler_lib_search_path=$lt_compiler_lib_search_path
10723
10724# Method to check whether dependent libraries are shared objects.
10725deplibs_check_method=$lt_deplibs_check_method
10726
10727# Command to use when deplibs_check_method == file_magic.
10728file_magic_cmd=$lt_file_magic_cmd
10729
10730# Flag that allows shared libraries with undefined symbols to be built.
10731allow_undefined_flag=$lt_allow_undefined_flag
10732
10733# Flag that forces no undefined symbols.
10734no_undefined_flag=$lt_no_undefined_flag
10735
10736# Commands used to finish a libtool library installation in a directory.
10737finish_cmds=$lt_finish_cmds
10738
10739# Same as above, but a single script fragment to be evaled but not shown.
10740finish_eval=$lt_finish_eval
10741
10742# Take the output of nm and produce a listing of raw symbols and C names.
10743global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10744
10745# Transform the output of nm in a proper C declaration
10746global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10747
10748# Transform the output of nm in a C name address pair
10749global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10750
10751# This is the shared library runtime path variable.
10752runpath_var=$runpath_var
10753
10754# This is the shared library path variable.
10755shlibpath_var=$shlibpath_var
10756
10757# Is shlibpath searched before the hard-coded library search path?
10758shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10759
10760# How to hardcode a shared library path into an executable.
10761hardcode_action=$hardcode_action
10762
10763# Whether we should hardcode library paths into libraries.
10764hardcode_into_libs=$hardcode_into_libs
10765
10766# Flag to hardcode \$libdir into a binary during linking.
10767# This must work even if \$libdir does not exist.
10768hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10769
10770# If ld is used when linking, flag to hardcode \$libdir into
10771# a binary during linking. This must work even if \$libdir does
10772# not exist.
10773hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10774
10775# Whether we need a single -rpath flag with a separated argument.
10776hardcode_libdir_separator=$lt_hardcode_libdir_separator
10777
10778# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10779# resulting binary.
10780hardcode_direct=$hardcode_direct
10781
10782# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10783# resulting binary.
10784hardcode_minus_L=$hardcode_minus_L
10785
10786# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10787# the resulting binary.
10788hardcode_shlibpath_var=$hardcode_shlibpath_var
10789
10790# Set to yes if building a shared library automatically hardcodes DIR into the library
10791# and all subsequent libraries and executables linked against it.
10792hardcode_automatic=$hardcode_automatic
10793
10794# Variables whose values should be saved in libtool wrapper scripts and
10795# restored at relink time.
10796variables_saved_for_relink="$variables_saved_for_relink"
10797
10798# Whether libtool must link a program against all its dependency libraries.
10799link_all_deplibs=$link_all_deplibs
10800
10801# Compile-time system search path for libraries
10802sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10803
10804# Run-time system search path for libraries
10805sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10806
10807# Fix the shell variable \$srcfile for the compiler.
10808fix_srcfile_path="$fix_srcfile_path"
10809
10810# Set to yes if exported symbols are required.
10811always_export_symbols=$always_export_symbols
10812
10813# The commands to list exported symbols.
10814export_symbols_cmds=$lt_export_symbols_cmds
10815
10816# The commands to extract the exported symbol list from a shared archive.
10817extract_expsyms_cmds=$lt_extract_expsyms_cmds
10818
10819# Symbols that should not be listed in the preloaded symbols.
10820exclude_expsyms=$lt_exclude_expsyms
10821
10822# Symbols that must always be exported.
10823include_expsyms=$lt_include_expsyms
10824
10825# ### END LIBTOOL CONFIG
10826
10827__EOF__
10828
10829
10830 case $host_os in
10831 aix3*)
10832 cat <<\EOF >> "$cfgfile"
10833
10834# AIX sometimes has problems with the GCC collect2 program. For some
10835# reason, if we set the COLLECT_NAMES environment variable, the problems
10836# vanish in a puff of smoke.
10837if test "X${COLLECT_NAMES+set}" != Xset; then
10838 COLLECT_NAMES=
10839 export COLLECT_NAMES
10840fi
10841EOF
10842 ;;
10843 esac
10844
10845 # We use sed instead of cat because bash on DJGPP gets confused if
10846 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10847 # text mode, it properly converts lines to CR/LF. This bash problem
10848 # is reportedly fixed, but why not run on old versions too?
10849 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10850
10851 mv -f "$cfgfile" "$ofile" || \
10852 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10853 chmod +x "$ofile"
10854
10855else
10856 # If there is no Makefile yet, we rely on a make rule to execute
10857 # `config.status --recheck' to rerun these tests and create the
10858 # libtool script then.
10859 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10860 if test -f "$ltmain_in"; then
10861 test -f Makefile && make "$ltmain"
10862 fi
10863fi
10864
10865
10866ac_ext=c
10867ac_cpp='$CPP $CPPFLAGS'
10868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10870ac_compiler_gnu=$ac_cv_c_compiler_gnu
10871
10872CC="$lt_save_CC"
10873
10874
mmentovai8c2a4de2006-09-20 16:20:15 +000010875# Check whether --with-tags was given.
brynercb91a2f2006-08-25 21:14:45 +000010876if test "${with_tags+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010877 withval=$with_tags; tagnames="$withval"
10878fi
10879
brynercb91a2f2006-08-25 21:14:45 +000010880
10881if test -f "$ltmain" && test -n "$tagnames"; then
10882 if test ! -f "${ofile}"; then
10883 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10884echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10885 fi
10886
10887 if test -z "$LTCC"; then
10888 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10889 if test -z "$LTCC"; then
10890 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10891echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10892 else
10893 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10894echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10895 fi
10896 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010897 if test -z "$LTCFLAGS"; then
10898 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10899 fi
brynercb91a2f2006-08-25 21:14:45 +000010900
10901 # Extract list of available tagged configurations in $ofile.
10902 # Note that this assumes the entire list is on one line.
10903 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10904
10905 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10906 for tagname in $tagnames; do
10907 IFS="$lt_save_ifs"
10908 # Check whether tagname contains only valid characters
10909 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10910 "") ;;
10911 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10912echo "$as_me: error: invalid tag name: $tagname" >&2;}
10913 { (exit 1); exit 1; }; }
10914 ;;
10915 esac
10916
10917 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10918 then
10919 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10920echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10921 { (exit 1); exit 1; }; }
10922 fi
10923
10924 # Update the list of available tags.
10925 if test -n "$tagname"; then
10926 echo appending configuration tag \"$tagname\" to $ofile
10927
10928 case $tagname in
10929 CXX)
mmentovai8c2a4de2006-09-20 16:20:15 +000010930 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10931 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10932 (test "X$CXX" != "Xg++"))) ; then
10933 ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000010934ac_cpp='$CXXCPP $CPPFLAGS'
10935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10938
10939
10940
10941
10942archive_cmds_need_lc_CXX=no
10943allow_undefined_flag_CXX=
10944always_export_symbols_CXX=no
10945archive_expsym_cmds_CXX=
10946export_dynamic_flag_spec_CXX=
10947hardcode_direct_CXX=no
10948hardcode_libdir_flag_spec_CXX=
10949hardcode_libdir_flag_spec_ld_CXX=
10950hardcode_libdir_separator_CXX=
10951hardcode_minus_L_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000010952hardcode_shlibpath_var_CXX=unsupported
brynercb91a2f2006-08-25 21:14:45 +000010953hardcode_automatic_CXX=no
10954module_cmds_CXX=
10955module_expsym_cmds_CXX=
10956link_all_deplibs_CXX=unknown
10957old_archive_cmds_CXX=$old_archive_cmds
10958no_undefined_flag_CXX=
10959whole_archive_flag_spec_CXX=
10960enable_shared_with_static_runtimes_CXX=no
10961
10962# Dependencies to place before and after the object being linked:
10963predep_objects_CXX=
10964postdep_objects_CXX=
10965predeps_CXX=
10966postdeps_CXX=
10967compiler_lib_search_path_CXX=
10968
10969# Source file extension for C++ test sources.
mmentovai8c2a4de2006-09-20 16:20:15 +000010970ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000010971
10972# Object file extension for compiled C++ test sources.
10973objext=o
10974objext_CXX=$objext
10975
10976# Code to be used in simple compile tests
10977lt_simple_compile_test_code="int some_variable = 0;\n"
10978
10979# Code to be used in simple link tests
mmentovai8c2a4de2006-09-20 16:20:15 +000010980lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
brynercb91a2f2006-08-25 21:14:45 +000010981
10982# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10983
10984# If no C compiler was specified, use CC.
10985LTCC=${LTCC-"$CC"}
10986
mmentovai8c2a4de2006-09-20 16:20:15 +000010987# If no C compiler flags were specified, use CFLAGS.
10988LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10989
brynercb91a2f2006-08-25 21:14:45 +000010990# Allow CC to be a program name with arguments.
10991compiler=$CC
10992
10993
mmentovai8c2a4de2006-09-20 16:20:15 +000010994# save warnings/boilerplate of simple test code
10995ac_outfile=conftest.$ac_objext
10996printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10997eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10998_lt_compiler_boilerplate=`cat conftest.err`
10999$rm conftest*
11000
11001ac_outfile=conftest.$ac_objext
11002printf "$lt_simple_link_test_code" >conftest.$ac_ext
11003eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11004_lt_linker_boilerplate=`cat conftest.err`
11005$rm conftest*
11006
11007
brynercb91a2f2006-08-25 21:14:45 +000011008# Allow CC to be a program name with arguments.
11009lt_save_CC=$CC
11010lt_save_LD=$LD
11011lt_save_GCC=$GCC
11012GCC=$GXX
11013lt_save_with_gnu_ld=$with_gnu_ld
11014lt_save_path_LD=$lt_cv_path_LD
11015if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11016 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11017else
mmentovai8c2a4de2006-09-20 16:20:15 +000011018 $as_unset lt_cv_prog_gnu_ld
brynercb91a2f2006-08-25 21:14:45 +000011019fi
11020if test -n "${lt_cv_path_LDCXX+set}"; then
11021 lt_cv_path_LD=$lt_cv_path_LDCXX
11022else
mmentovai8c2a4de2006-09-20 16:20:15 +000011023 $as_unset lt_cv_path_LD
brynercb91a2f2006-08-25 21:14:45 +000011024fi
11025test -z "${LDCXX+set}" || LD=$LDCXX
11026CC=${CXX-"c++"}
11027compiler=$CC
11028compiler_CXX=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +000011029for cc_temp in $compiler""; do
11030 case $cc_temp in
11031 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11032 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11033 \-*) ;;
11034 *) break;;
11035 esac
11036done
11037cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11038
brynercb91a2f2006-08-25 21:14:45 +000011039
11040# We don't want -fno-exception wen compiling C++ code, so set the
11041# no_builtin_flag separately
11042if test "$GXX" = yes; then
11043 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11044else
11045 lt_prog_compiler_no_builtin_flag_CXX=
11046fi
11047
11048if test "$GXX" = yes; then
11049 # Set up default GNU C++ configuration
11050
11051
mmentovai8c2a4de2006-09-20 16:20:15 +000011052# Check whether --with-gnu-ld was given.
brynercb91a2f2006-08-25 21:14:45 +000011053if test "${with_gnu_ld+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011054 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +000011055else
11056 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011057fi
11058
brynercb91a2f2006-08-25 21:14:45 +000011059ac_prog=ld
11060if test "$GCC" = yes; then
11061 # Check if gcc -print-prog-name=ld gives a path.
mmentovai8c2a4de2006-09-20 16:20:15 +000011062 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11063echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011064 case $host in
11065 *-*-mingw*)
11066 # gcc leaves a trailing carriage return which upsets mingw
11067 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11068 *)
11069 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11070 esac
11071 case $ac_prog in
11072 # Accept absolute paths.
11073 [\\/]* | ?:[\\/]*)
11074 re_direlt='/[^/][^/]*/\.\./'
11075 # Canonicalize the pathname of ld
11076 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11077 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11078 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11079 done
11080 test -z "$LD" && LD="$ac_prog"
11081 ;;
11082 "")
11083 # If it fails, then pretend we aren't using GCC.
11084 ac_prog=ld
11085 ;;
11086 *)
11087 # If it is relative, then search for the first ld in PATH.
11088 with_gnu_ld=unknown
11089 ;;
11090 esac
11091elif test "$with_gnu_ld" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011092 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11093echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011094else
mmentovai8c2a4de2006-09-20 16:20:15 +000011095 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11096echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011097fi
11098if test "${lt_cv_path_LD+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11100else
11101 if test -z "$LD"; then
11102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11103 for ac_dir in $PATH; do
11104 IFS="$lt_save_ifs"
11105 test -z "$ac_dir" && ac_dir=.
11106 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11107 lt_cv_path_LD="$ac_dir/$ac_prog"
11108 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +000011109 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011110 # Break only if it was the GNU/non-GNU ld that we prefer.
11111 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11112 *GNU* | *'with BFD'*)
11113 test "$with_gnu_ld" != no && break
11114 ;;
11115 *)
11116 test "$with_gnu_ld" != yes && break
11117 ;;
11118 esac
11119 fi
11120 done
11121 IFS="$lt_save_ifs"
11122else
11123 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11124fi
11125fi
11126
11127LD="$lt_cv_path_LD"
11128if test -n "$LD"; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011129 { echo "$as_me:$LINENO: result: $LD" >&5
11130echo "${ECHO_T}$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011131else
mmentovai8c2a4de2006-09-20 16:20:15 +000011132 { echo "$as_me:$LINENO: result: no" >&5
11133echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011134fi
11135test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11136echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11137 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +000011138{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11139echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011140if test "${lt_cv_prog_gnu_ld+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11142else
mmentovai8c2a4de2006-09-20 16:20:15 +000011143 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011144case `$LD -v 2>&1 </dev/null` in
11145*GNU* | *'with BFD'*)
11146 lt_cv_prog_gnu_ld=yes
11147 ;;
11148*)
11149 lt_cv_prog_gnu_ld=no
11150 ;;
11151esac
11152fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011153{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11154echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011155with_gnu_ld=$lt_cv_prog_gnu_ld
11156
11157
11158
11159 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11160 # archiving commands below assume that GNU ld is being used.
11161 if test "$with_gnu_ld" = yes; then
11162 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11163 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'
11164
11165 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11166 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11167
11168 # If archive_cmds runs LD, not CC, wlarc should be empty
11169 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11170 # investigate it a little bit more. (MM)
11171 wlarc='${wl}'
11172
11173 # ancient GNU ld didn't support --whole-archive et. al.
11174 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11175 grep 'no-whole-archive' > /dev/null; then
11176 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11177 else
11178 whole_archive_flag_spec_CXX=
11179 fi
11180 else
11181 with_gnu_ld=no
11182 wlarc=
11183
11184 # A generic and very simple default shared library creation
11185 # command for GNU C++ for the case where it uses the native
11186 # linker, instead of GNU ld. If possible, this setting should
11187 # overridden to take advantage of the native linker features on
11188 # the platform it is being used on.
11189 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11190 fi
11191
11192 # Commands to make compiler produce verbose output that lists
11193 # what "hidden" libraries, object files and flags are used when
11194 # linking a shared library.
11195 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11196
11197else
11198 GXX=no
11199 with_gnu_ld=no
11200 wlarc=
11201fi
11202
11203# PORTME: fill in a description of your system's C++ link characteristics
mmentovai8c2a4de2006-09-20 16:20:15 +000011204{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11205echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011206ld_shlibs_CXX=yes
11207case $host_os in
11208 aix3*)
11209 # FIXME: insert proper C++ library support
11210 ld_shlibs_CXX=no
11211 ;;
11212 aix4* | aix5*)
11213 if test "$host_cpu" = ia64; then
11214 # On IA64, the linker does run time linking by default, so we don't
11215 # have to do anything special.
11216 aix_use_runtimelinking=no
11217 exp_sym_flag='-Bexport'
11218 no_entry_flag=""
11219 else
11220 aix_use_runtimelinking=no
11221
11222 # Test if we are trying to use run time linking or normal
11223 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11224 # need to do runtime linking.
11225 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11226 for ld_flag in $LDFLAGS; do
11227 case $ld_flag in
11228 *-brtl*)
11229 aix_use_runtimelinking=yes
11230 break
11231 ;;
11232 esac
11233 done
mmentovai8c2a4de2006-09-20 16:20:15 +000011234 ;;
brynercb91a2f2006-08-25 21:14:45 +000011235 esac
11236
11237 exp_sym_flag='-bexport'
11238 no_entry_flag='-bnoentry'
11239 fi
11240
11241 # When large executables or shared objects are built, AIX ld can
11242 # have problems creating the table of contents. If linking a library
11243 # or program results in "error TOC overflow" add -mminimal-toc to
11244 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11245 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11246
11247 archive_cmds_CXX=''
11248 hardcode_direct_CXX=yes
11249 hardcode_libdir_separator_CXX=':'
11250 link_all_deplibs_CXX=yes
11251
11252 if test "$GXX" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011253 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +000011254 # We only want to do this on AIX 4.2 and lower, the check
11255 # below for broken collect2 doesn't work under 4.3+
11256 collect2name=`${CC} -print-prog-name=collect2`
11257 if test -f "$collect2name" && \
11258 strings "$collect2name" | grep resolve_lib_name >/dev/null
11259 then
11260 # We have reworked collect2
11261 hardcode_direct_CXX=yes
11262 else
11263 # We have old collect2
11264 hardcode_direct_CXX=unsupported
11265 # It fails to find uninstalled libraries when the uninstalled
11266 # path is not listed in the libpath. Setting hardcode_minus_L
11267 # to unsupported forces relinking
11268 hardcode_minus_L_CXX=yes
11269 hardcode_libdir_flag_spec_CXX='-L$libdir'
11270 hardcode_libdir_separator_CXX=
11271 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011272 ;;
brynercb91a2f2006-08-25 21:14:45 +000011273 esac
11274 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +000011275 if test "$aix_use_runtimelinking" = yes; then
11276 shared_flag="$shared_flag "'${wl}-G'
11277 fi
brynercb91a2f2006-08-25 21:14:45 +000011278 else
11279 # not using gcc
11280 if test "$host_cpu" = ia64; then
11281 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11282 # chokes on -Wl,-G. The following line is correct:
11283 shared_flag='-G'
11284 else
11285 if test "$aix_use_runtimelinking" = yes; then
11286 shared_flag='${wl}-G'
11287 else
11288 shared_flag='${wl}-bM:SRE'
11289 fi
11290 fi
11291 fi
11292
11293 # It seems that -bexpall does not export symbols beginning with
11294 # underscore (_), so it is better to generate a list of symbols to export.
11295 always_export_symbols_CXX=yes
11296 if test "$aix_use_runtimelinking" = yes; then
11297 # Warning - without using the other runtime loading flags (-brtl),
11298 # -berok will link without error, but may produce a broken library.
11299 allow_undefined_flag_CXX='-berok'
11300 # Determine the default libpath from the value encoded in an empty executable.
11301 cat >conftest.$ac_ext <<_ACEOF
11302/* confdefs.h. */
11303_ACEOF
11304cat confdefs.h >>conftest.$ac_ext
11305cat >>conftest.$ac_ext <<_ACEOF
11306/* end confdefs.h. */
11307
11308int
11309main ()
11310{
11311
11312 ;
11313 return 0;
11314}
11315_ACEOF
11316rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000011317if { (ac_try="$ac_link"
11318case "(($ac_try" in
11319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320 *) ac_try_echo=$ac_try;;
11321esac
11322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11323 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000011324 ac_status=$?
11325 grep -v '^ *+' conftest.er1 >conftest.err
11326 rm -f conftest.er1
11327 cat conftest.err >&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000011330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11331 { (case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334esac
11335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000011337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; } &&
11340 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000011341 { (case "(($ac_try" in
11342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11343 *) ac_try_echo=$ac_try;;
11344esac
11345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11346 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000011347 ac_status=$?
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; }; then
11350
11351aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11352}'`
11353# Check for a 64-bit object if we didn't find anything.
11354if 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; }
11355}'`; fi
11356else
11357 echo "$as_me: failed program was:" >&5
11358sed 's/^/| /' conftest.$ac_ext >&5
11359
mmentovai8c2a4de2006-09-20 16:20:15 +000011360
brynercb91a2f2006-08-25 21:14:45 +000011361fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011362
11363rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000011364 conftest$ac_exeext conftest.$ac_ext
11365if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11366
11367 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11368
mmentovai8c2a4de2006-09-20 16:20:15 +000011369 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 +000011370 else
11371 if test "$host_cpu" = ia64; then
11372 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11373 allow_undefined_flag_CXX="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +000011374 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 +000011375 else
11376 # Determine the default libpath from the value encoded in an empty executable.
11377 cat >conftest.$ac_ext <<_ACEOF
11378/* confdefs.h. */
11379_ACEOF
11380cat confdefs.h >>conftest.$ac_ext
11381cat >>conftest.$ac_ext <<_ACEOF
11382/* end confdefs.h. */
11383
11384int
11385main ()
11386{
11387
11388 ;
11389 return 0;
11390}
11391_ACEOF
11392rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000011393if { (ac_try="$ac_link"
11394case "(($ac_try" in
11395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396 *) ac_try_echo=$ac_try;;
11397esac
11398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000011400 ac_status=$?
11401 grep -v '^ *+' conftest.er1 >conftest.err
11402 rm -f conftest.er1
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000011406 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11407 { (case "(($ac_try" in
11408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409 *) ac_try_echo=$ac_try;;
11410esac
11411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000011413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; } &&
11416 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000011417 { (case "(($ac_try" in
11418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11419 *) ac_try_echo=$ac_try;;
11420esac
11421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11422 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000011423 ac_status=$?
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }; }; then
11426
11427aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11428}'`
11429# Check for a 64-bit object if we didn't find anything.
11430if 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; }
11431}'`; fi
11432else
11433 echo "$as_me: failed program was:" >&5
11434sed 's/^/| /' conftest.$ac_ext >&5
11435
mmentovai8c2a4de2006-09-20 16:20:15 +000011436
brynercb91a2f2006-08-25 21:14:45 +000011437fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011438
11439rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000011440 conftest$ac_exeext conftest.$ac_ext
11441if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11442
11443 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11444 # Warning - without using the other run time loading flags,
11445 # -berok will link without error, but may produce a broken library.
11446 no_undefined_flag_CXX=' ${wl}-bernotok'
11447 allow_undefined_flag_CXX=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +000011448 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +000011449 whole_archive_flag_spec_CXX='$convenience'
brynercb91a2f2006-08-25 21:14:45 +000011450 archive_cmds_need_lc_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000011451 # This is similar to how AIX traditionally builds its shared libraries.
11452 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 +000011453 fi
11454 fi
11455 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011456
11457 beos*)
11458 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11459 allow_undefined_flag_CXX=unsupported
11460 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11461 # support --undefined. This deserves some investigation. FIXME
11462 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11463 else
11464 ld_shlibs_CXX=no
11465 fi
11466 ;;
11467
brynercb91a2f2006-08-25 21:14:45 +000011468 chorus*)
11469 case $cc_basename in
11470 *)
11471 # FIXME: insert proper C++ library support
11472 ld_shlibs_CXX=no
11473 ;;
11474 esac
11475 ;;
11476
11477 cygwin* | mingw* | pw32*)
11478 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11479 # as there is no search path for DLLs.
11480 hardcode_libdir_flag_spec_CXX='-L$libdir'
11481 allow_undefined_flag_CXX=unsupported
11482 always_export_symbols_CXX=no
11483 enable_shared_with_static_runtimes_CXX=yes
11484
11485 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011486 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 +000011487 # If the export-symbols file already is a .def file (1st line
11488 # is EXPORTS), use it as is; otherwise, prepend...
11489 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11490 cp $export_symbols $output_objdir/$soname.def;
11491 else
11492 echo EXPORTS > $output_objdir/$soname.def;
11493 cat $export_symbols >> $output_objdir/$soname.def;
11494 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +000011495 $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 +000011496 else
11497 ld_shlibs_CXX=no
11498 fi
11499 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011500 darwin* | rhapsody*)
11501 case $host_os in
11502 rhapsody* | darwin1.[012])
11503 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11504 ;;
11505 *) # Darwin 1.3 on
11506 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11507 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11508 else
11509 case ${MACOSX_DEPLOYMENT_TARGET} in
11510 10.[012])
11511 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11512 ;;
11513 10.*)
11514 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11515 ;;
11516 esac
11517 fi
11518 ;;
brynerd5e66382006-09-08 02:35:53 +000011519 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000011520 archive_cmds_need_lc_CXX=no
11521 hardcode_direct_CXX=no
11522 hardcode_automatic_CXX=yes
11523 hardcode_shlibpath_var_CXX=unsupported
11524 whole_archive_flag_spec_CXX=''
11525 link_all_deplibs_CXX=yes
brynerd5e66382006-09-08 02:35:53 +000011526
mmentovai8c2a4de2006-09-20 16:20:15 +000011527 if test "$GXX" = yes ; then
11528 lt_int_apple_cc_single_mod=no
11529 output_verbose_link_cmd='echo'
11530 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11531 lt_int_apple_cc_single_mod=yes
11532 fi
11533 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11534 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11535 else
11536 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'
11537 fi
11538 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11539 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11540 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11541 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}'
11542 else
11543 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}'
11544 fi
11545 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}'
11546 else
11547 case $cc_basename in
11548 xlc*)
11549 output_verbose_link_cmd='echo'
11550 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'
11551 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11552 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11553 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}'
11554 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}'
11555 ;;
11556 *)
11557 ld_shlibs_CXX=no
11558 ;;
11559 esac
11560 fi
11561 ;;
brynercb91a2f2006-08-25 21:14:45 +000011562
11563 dgux*)
11564 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011565 ec++*)
brynercb91a2f2006-08-25 21:14:45 +000011566 # FIXME: insert proper C++ library support
11567 ld_shlibs_CXX=no
11568 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011569 ghcx*)
brynercb91a2f2006-08-25 21:14:45 +000011570 # Green Hills C++ Compiler
11571 # FIXME: insert proper C++ library support
11572 ld_shlibs_CXX=no
11573 ;;
11574 *)
11575 # FIXME: insert proper C++ library support
11576 ld_shlibs_CXX=no
11577 ;;
11578 esac
11579 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011580 freebsd[12]*)
brynercb91a2f2006-08-25 21:14:45 +000011581 # C++ shared libraries reported to be fairly broken before switch to ELF
11582 ld_shlibs_CXX=no
11583 ;;
11584 freebsd-elf*)
11585 archive_cmds_need_lc_CXX=no
11586 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011587 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000011588 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11589 # conventions
11590 ld_shlibs_CXX=yes
11591 ;;
11592 gnu*)
11593 ;;
11594 hpux9*)
11595 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11596 hardcode_libdir_separator_CXX=:
11597 export_dynamic_flag_spec_CXX='${wl}-E'
11598 hardcode_direct_CXX=yes
11599 hardcode_minus_L_CXX=yes # Not in the search PATH,
11600 # but as the default
11601 # location of the library.
11602
11603 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011604 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011605 # FIXME: insert proper C++ library support
11606 ld_shlibs_CXX=no
11607 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011608 aCC*)
brynercb91a2f2006-08-25 21:14:45 +000011609 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'
11610 # Commands to make compiler produce verbose output that lists
11611 # what "hidden" libraries, object files and flags are used when
11612 # linking a shared library.
11613 #
11614 # There doesn't appear to be a way to prevent this compiler from
11615 # explicitly linking system object files so we need to strip them
11616 # from the output so that they don't get included in the library
11617 # dependencies.
mmentovai8c2a4de2006-09-20 16:20:15 +000011618 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 +000011619 ;;
11620 *)
11621 if test "$GXX" = yes; then
11622 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'
11623 else
11624 # FIXME: insert proper C++ library support
11625 ld_shlibs_CXX=no
11626 fi
11627 ;;
11628 esac
11629 ;;
11630 hpux10*|hpux11*)
11631 if test $with_gnu_ld = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011632 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11633 hardcode_libdir_separator_CXX=:
11634
11635 case $host_cpu in
11636 hppa*64*|ia64*)
brynercb91a2f2006-08-25 21:14:45 +000011637 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
brynercb91a2f2006-08-25 21:14:45 +000011638 ;;
11639 *)
brynercb91a2f2006-08-25 21:14:45 +000011640 export_dynamic_flag_spec_CXX='${wl}-E'
11641 ;;
11642 esac
11643 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011644 case $host_cpu in
11645 hppa*64*|ia64*)
brynercb91a2f2006-08-25 21:14:45 +000011646 hardcode_direct_CXX=no
11647 hardcode_shlibpath_var_CXX=no
11648 ;;
brynercb91a2f2006-08-25 21:14:45 +000011649 *)
11650 hardcode_direct_CXX=yes
11651 hardcode_minus_L_CXX=yes # Not in the search PATH,
11652 # but as the default
11653 # location of the library.
11654 ;;
11655 esac
11656
11657 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011658 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011659 # FIXME: insert proper C++ library support
11660 ld_shlibs_CXX=no
11661 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011662 aCC*)
11663 case $host_cpu in
11664 hppa*64*)
11665 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11666 ;;
11667 ia64*)
11668 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 +000011669 ;;
11670 *)
11671 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11672 ;;
11673 esac
11674 # Commands to make compiler produce verbose output that lists
11675 # what "hidden" libraries, object files and flags are used when
11676 # linking a shared library.
11677 #
11678 # There doesn't appear to be a way to prevent this compiler from
11679 # explicitly linking system object files so we need to strip them
11680 # from the output so that they don't get included in the library
11681 # dependencies.
11682 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'
11683 ;;
11684 *)
11685 if test "$GXX" = yes; then
11686 if test $with_gnu_ld = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011687 case $host_cpu in
11688 hppa*64*)
11689 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11690 ;;
11691 ia64*)
11692 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 +000011693 ;;
11694 *)
11695 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'
11696 ;;
11697 esac
11698 fi
11699 else
11700 # FIXME: insert proper C++ library support
11701 ld_shlibs_CXX=no
11702 fi
11703 ;;
11704 esac
11705 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011706 interix3*)
11707 hardcode_direct_CXX=no
11708 hardcode_shlibpath_var_CXX=no
11709 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11710 export_dynamic_flag_spec_CXX='${wl}-E'
11711 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11712 # Instead, shared libraries are loaded at an image base (0x10000000 by
11713 # default) and relocated if they conflict, which is a slow very memory
11714 # consuming and fragmenting process. To avoid this, we pick a random,
11715 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11716 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11717 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'
11718 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'
11719 ;;
brynercb91a2f2006-08-25 21:14:45 +000011720 irix5* | irix6*)
11721 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011722 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011723 # SGI C++
mmentovai8c2a4de2006-09-20 16:20:15 +000011724 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 +000011725
11726 # Archives containing C++ object files must be created using
11727 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11728 # necessary to make sure instantiated templates are included
11729 # in the archive.
11730 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11731 ;;
11732 *)
11733 if test "$GXX" = yes; then
11734 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011735 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 +000011736 else
11737 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'
11738 fi
11739 fi
11740 link_all_deplibs_CXX=yes
11741 ;;
11742 esac
11743 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11744 hardcode_libdir_separator_CXX=:
11745 ;;
11746 linux*)
11747 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011748 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000011749 # Kuck and Associates, Inc. (KAI) C++ Compiler
11750
11751 # KCC will only create a shared library if the output file
11752 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11753 # to its proper name (with version) after linking.
11754 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'
11755 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'
11756 # Commands to make compiler produce verbose output that lists
11757 # what "hidden" libraries, object files and flags are used when
11758 # linking a shared library.
11759 #
11760 # There doesn't appear to be a way to prevent this compiler from
11761 # explicitly linking system object files so we need to strip them
11762 # from the output so that they don't get included in the library
11763 # dependencies.
11764 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'
11765
11766 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11767 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11768
11769 # Archives containing C++ object files must be created using
11770 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11771 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11772 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011773 icpc*)
brynercb91a2f2006-08-25 21:14:45 +000011774 # Intel C++
11775 with_gnu_ld=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000011776 # version 8.0 and above of icpc choke on multiply defined symbols
11777 # if we add $predep_objects and $postdep_objects, however 7.1 and
11778 # earlier do not add the objects themselves.
11779 case `$CC -V 2>&1` in
11780 *"Version 7."*)
11781 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11782 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'
11783 ;;
11784 *) # Version 8.0 or newer
11785 tmp_idyn=
11786 case $host_cpu in
11787 ia64*) tmp_idyn=' -i_dynamic';;
11788 esac
11789 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11790 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'
11791 ;;
11792 esac
brynercb91a2f2006-08-25 21:14:45 +000011793 archive_cmds_need_lc_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011794 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11795 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11796 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11797 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011798 pgCC*)
11799 # Portland Group C++ compiler
11800 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11801 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'
11802
11803 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11804 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11805 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'
11806 ;;
11807 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011808 # Compaq C++
11809 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11810 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'
11811
11812 runpath_var=LD_RUN_PATH
11813 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11814 hardcode_libdir_separator_CXX=:
11815
11816 # Commands to make compiler produce verbose output that lists
11817 # what "hidden" libraries, object files and flags are used when
11818 # linking a shared library.
11819 #
11820 # There doesn't appear to be a way to prevent this compiler from
11821 # explicitly linking system object files so we need to strip them
11822 # from the output so that they don't get included in the library
11823 # dependencies.
11824 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'
11825 ;;
11826 esac
11827 ;;
11828 lynxos*)
11829 # FIXME: insert proper C++ library support
11830 ld_shlibs_CXX=no
11831 ;;
11832 m88k*)
11833 # FIXME: insert proper C++ library support
11834 ld_shlibs_CXX=no
11835 ;;
11836 mvs*)
11837 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011838 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011839 # FIXME: insert proper C++ library support
11840 ld_shlibs_CXX=no
11841 ;;
11842 *)
11843 # FIXME: insert proper C++ library support
11844 ld_shlibs_CXX=no
11845 ;;
11846 esac
11847 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011848 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000011849 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11850 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11851 wlarc=
11852 hardcode_libdir_flag_spec_CXX='-R$libdir'
11853 hardcode_direct_CXX=yes
11854 hardcode_shlibpath_var_CXX=no
11855 fi
11856 # Workaround some broken pre-1.5 toolchains
11857 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11858 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011859 openbsd2*)
11860 # C++ shared libraries are fairly broken
11861 ld_shlibs_CXX=no
11862 ;;
11863 openbsd*)
11864 hardcode_direct_CXX=yes
11865 hardcode_shlibpath_var_CXX=no
11866 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11867 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11868 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11869 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11870 export_dynamic_flag_spec_CXX='${wl}-E'
11871 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11872 fi
11873 output_verbose_link_cmd='echo'
11874 ;;
brynercb91a2f2006-08-25 21:14:45 +000011875 osf3*)
11876 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011877 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000011878 # Kuck and Associates, Inc. (KAI) C++ Compiler
11879
11880 # KCC will only create a shared library if the output file
11881 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11882 # to its proper name (with version) after linking.
11883 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'
11884
11885 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11886 hardcode_libdir_separator_CXX=:
11887
11888 # Archives containing C++ object files must be created using
11889 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11890 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11891
11892 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011893 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000011894 # Rational C++ 2.4.1
11895 # FIXME: insert proper C++ library support
11896 ld_shlibs_CXX=no
11897 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011898 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011899 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
mmentovai8c2a4de2006-09-20 16:20:15 +000011900 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 +000011901
11902 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11903 hardcode_libdir_separator_CXX=:
11904
11905 # Commands to make compiler produce verbose output that lists
11906 # what "hidden" libraries, object files and flags are used when
11907 # linking a shared library.
11908 #
11909 # There doesn't appear to be a way to prevent this compiler from
11910 # explicitly linking system object files so we need to strip them
11911 # from the output so that they don't get included in the library
11912 # dependencies.
11913 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'
11914 ;;
11915 *)
11916 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11917 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
mmentovai8c2a4de2006-09-20 16:20:15 +000011918 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 +000011919
11920 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11921 hardcode_libdir_separator_CXX=:
11922
11923 # Commands to make compiler produce verbose output that lists
11924 # what "hidden" libraries, object files and flags are used when
11925 # linking a shared library.
11926 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11927
11928 else
11929 # FIXME: insert proper C++ library support
11930 ld_shlibs_CXX=no
11931 fi
11932 ;;
11933 esac
11934 ;;
11935 osf4* | osf5*)
11936 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011937 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000011938 # Kuck and Associates, Inc. (KAI) C++ Compiler
11939
11940 # KCC will only create a shared library if the output file
11941 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11942 # to its proper name (with version) after linking.
11943 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'
11944
11945 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11946 hardcode_libdir_separator_CXX=:
11947
11948 # Archives containing C++ object files must be created using
11949 # the KAI C++ compiler.
11950 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11951 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011952 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000011953 # Rational C++ 2.4.1
11954 # FIXME: insert proper C++ library support
11955 ld_shlibs_CXX=no
11956 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011957 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011958 allow_undefined_flag_CXX=' -expect_unresolved \*'
mmentovai8c2a4de2006-09-20 16:20:15 +000011959 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 +000011960 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11961 echo "-hidden">> $lib.exp~
mmentovai8c2a4de2006-09-20 16:20:15 +000011962 $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 +000011963 $rm $lib.exp'
11964
11965 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11966 hardcode_libdir_separator_CXX=:
11967
11968 # Commands to make compiler produce verbose output that lists
11969 # what "hidden" libraries, object files and flags are used when
11970 # linking a shared library.
11971 #
11972 # There doesn't appear to be a way to prevent this compiler from
11973 # explicitly linking system object files so we need to strip them
11974 # from the output so that they don't get included in the library
11975 # dependencies.
11976 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'
11977 ;;
11978 *)
11979 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11980 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
mmentovai8c2a4de2006-09-20 16:20:15 +000011981 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 +000011982
11983 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11984 hardcode_libdir_separator_CXX=:
11985
11986 # Commands to make compiler produce verbose output that lists
11987 # what "hidden" libraries, object files and flags are used when
11988 # linking a shared library.
11989 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11990
11991 else
11992 # FIXME: insert proper C++ library support
11993 ld_shlibs_CXX=no
11994 fi
11995 ;;
11996 esac
11997 ;;
11998 psos*)
11999 # FIXME: insert proper C++ library support
12000 ld_shlibs_CXX=no
12001 ;;
brynercb91a2f2006-08-25 21:14:45 +000012002 sunos4*)
12003 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012004 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012005 # Sun C++ 4.x
12006 # FIXME: insert proper C++ library support
12007 ld_shlibs_CXX=no
12008 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012009 lcc*)
brynercb91a2f2006-08-25 21:14:45 +000012010 # Lucid
12011 # FIXME: insert proper C++ library support
12012 ld_shlibs_CXX=no
12013 ;;
12014 *)
12015 # FIXME: insert proper C++ library support
12016 ld_shlibs_CXX=no
12017 ;;
12018 esac
12019 ;;
12020 solaris*)
12021 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012022 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012023 # Sun C++ 4.2, 5.x and Centerline C++
mmentovai8c2a4de2006-09-20 16:20:15 +000012024 archive_cmds_need_lc_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000012025 no_undefined_flag_CXX=' -zdefs'
mmentovai8c2a4de2006-09-20 16:20:15 +000012026 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 +000012027 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 +000012028 $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 +000012029
12030 hardcode_libdir_flag_spec_CXX='-R$libdir'
12031 hardcode_shlibpath_var_CXX=no
12032 case $host_os in
mmentovai8c2a4de2006-09-20 16:20:15 +000012033 solaris2.[0-5] | solaris2.[0-5].*) ;;
brynercb91a2f2006-08-25 21:14:45 +000012034 *)
12035 # The C++ compiler is used as linker so we must use $wl
12036 # flag to pass the commands to the underlying system
mmentovai8c2a4de2006-09-20 16:20:15 +000012037 # linker. We must also pass each convience library through
12038 # to the system linker between allextract/defaultextract.
12039 # The C++ compiler will combine linker options so we
12040 # cannot just pass the convience library names through
12041 # without $wl.
brynercb91a2f2006-08-25 21:14:45 +000012042 # Supported since Solaris 2.6 (maybe 2.5.1?)
mmentovai8c2a4de2006-09-20 16:20:15 +000012043 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 +000012044 ;;
12045 esac
12046 link_all_deplibs_CXX=yes
12047
mmentovai8c2a4de2006-09-20 16:20:15 +000012048 output_verbose_link_cmd='echo'
brynercb91a2f2006-08-25 21:14:45 +000012049
12050 # Archives containing C++ object files must be created using
12051 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12052 # necessary to make sure instantiated templates are included
12053 # in the archive.
12054 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12055 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012056 gcx*)
brynercb91a2f2006-08-25 21:14:45 +000012057 # Green Hills C++ Compiler
12058 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12059
12060 # The C++ compiler must be used to create the archive.
12061 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12062 ;;
12063 *)
12064 # GNU C++ compiler with Solaris linker
12065 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12066 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12067 if $CC --version | grep -v '^2\.7' > /dev/null; then
12068 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12069 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12070 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12071
12072 # Commands to make compiler produce verbose output that lists
12073 # what "hidden" libraries, object files and flags are used when
12074 # linking a shared library.
12075 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12076 else
12077 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12078 # platform.
12079 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12080 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12081 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12082
12083 # Commands to make compiler produce verbose output that lists
12084 # what "hidden" libraries, object files and flags are used when
12085 # linking a shared library.
12086 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12087 fi
12088
12089 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12090 fi
12091 ;;
12092 esac
12093 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012094 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12095 no_undefined_flag_CXX='${wl}-z,text'
brynercb91a2f2006-08-25 21:14:45 +000012096 archive_cmds_need_lc_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000012097 hardcode_shlibpath_var_CXX=no
12098 runpath_var='LD_RUN_PATH'
12099
12100 case $cc_basename in
12101 CC*)
12102 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12103 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12104 ;;
12105 *)
12106 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12107 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12108 ;;
12109 esac
12110 ;;
12111 sysv5* | sco3.2v5* | sco5v6*)
12112 # Note: We can NOT use -z defs as we might desire, because we do not
12113 # link with -lc, and that would cause any symbols used from libc to
12114 # always be unresolved, which means just about no library would
12115 # ever link correctly. If we're not using GNU ld we use -z text
12116 # though, which does catch some bad symbols but isn't as heavy-handed
12117 # as -z defs.
12118 # For security reasons, it is highly recommended that you always
12119 # use absolute paths for naming shared libraries, and exclude the
12120 # DT_RUNPATH tag from executables and libraries. But doing so
12121 # requires that you compile everything twice, which is a pain.
12122 # So that behaviour is only enabled if SCOABSPATH is set to a
12123 # non-empty value in the environment. Most likely only useful for
12124 # creating official distributions of packages.
12125 # This is a hack until libtool officially supports absolute path
12126 # names for shared libraries.
12127 no_undefined_flag_CXX='${wl}-z,text'
12128 allow_undefined_flag_CXX='${wl}-z,nodefs'
12129 archive_cmds_need_lc_CXX=no
12130 hardcode_shlibpath_var_CXX=no
12131 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12132 hardcode_libdir_separator_CXX=':'
12133 link_all_deplibs_CXX=yes
12134 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12135 runpath_var='LD_RUN_PATH'
12136
12137 case $cc_basename in
12138 CC*)
12139 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12140 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12141 ;;
12142 *)
12143 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12144 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12145 ;;
12146 esac
brynercb91a2f2006-08-25 21:14:45 +000012147 ;;
12148 tandem*)
12149 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012150 NCC*)
brynercb91a2f2006-08-25 21:14:45 +000012151 # NonStop-UX NCC 3.20
12152 # FIXME: insert proper C++ library support
12153 ld_shlibs_CXX=no
12154 ;;
12155 *)
12156 # FIXME: insert proper C++ library support
12157 ld_shlibs_CXX=no
12158 ;;
12159 esac
12160 ;;
12161 vxworks*)
12162 # FIXME: insert proper C++ library support
12163 ld_shlibs_CXX=no
12164 ;;
12165 *)
12166 # FIXME: insert proper C++ library support
12167 ld_shlibs_CXX=no
12168 ;;
12169esac
mmentovai8c2a4de2006-09-20 16:20:15 +000012170{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12171echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012172test "$ld_shlibs_CXX" = no && can_build_shared=no
12173
12174GCC_CXX="$GXX"
12175LD_CXX="$LD"
12176
12177
12178cat > conftest.$ac_ext <<EOF
12179class Foo
12180{
12181public:
12182 Foo (void) { a = 0; }
12183private:
12184 int a;
12185};
12186EOF
12187
12188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12189 (eval $ac_compile) 2>&5
12190 ac_status=$?
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; then
12193 # Parse the compiler output and extract the necessary
12194 # objects, libraries and library flags.
12195
12196 # Sentinel used to keep track of whether or not we are before
12197 # the conftest object file.
12198 pre_test_object_deps_done=no
12199
12200 # The `*' in the case matches for architectures that use `case' in
12201 # $output_verbose_cmd can trigger glob expansion during the loop
12202 # eval without this substitution.
mmentovai8c2a4de2006-09-20 16:20:15 +000012203 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
brynercb91a2f2006-08-25 21:14:45 +000012204
12205 for p in `eval $output_verbose_link_cmd`; do
12206 case $p in
12207
12208 -L* | -R* | -l*)
12209 # Some compilers place space between "-{L,R}" and the path.
12210 # Remove the space.
12211 if test $p = "-L" \
12212 || test $p = "-R"; then
12213 prev=$p
12214 continue
12215 else
12216 prev=
12217 fi
12218
12219 if test "$pre_test_object_deps_done" = no; then
12220 case $p in
12221 -L* | -R*)
12222 # Internal compiler library paths should come after those
12223 # provided the user. The postdeps already come after the
12224 # user supplied libs so there is no need to process them.
12225 if test -z "$compiler_lib_search_path_CXX"; then
12226 compiler_lib_search_path_CXX="${prev}${p}"
12227 else
12228 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12229 fi
12230 ;;
12231 # The "-l" case would never come before the object being
12232 # linked, so don't bother handling this case.
12233 esac
12234 else
12235 if test -z "$postdeps_CXX"; then
12236 postdeps_CXX="${prev}${p}"
12237 else
12238 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12239 fi
12240 fi
12241 ;;
12242
12243 *.$objext)
12244 # This assumes that the test object file only shows up
12245 # once in the compiler output.
12246 if test "$p" = "conftest.$objext"; then
12247 pre_test_object_deps_done=yes
12248 continue
12249 fi
12250
12251 if test "$pre_test_object_deps_done" = no; then
12252 if test -z "$predep_objects_CXX"; then
12253 predep_objects_CXX="$p"
12254 else
12255 predep_objects_CXX="$predep_objects_CXX $p"
12256 fi
12257 else
12258 if test -z "$postdep_objects_CXX"; then
12259 postdep_objects_CXX="$p"
12260 else
12261 postdep_objects_CXX="$postdep_objects_CXX $p"
12262 fi
12263 fi
12264 ;;
12265
12266 *) ;; # Ignore the rest.
12267
12268 esac
12269 done
12270
12271 # Clean up.
12272 rm -f a.out a.exe
12273else
12274 echo "libtool.m4: error: problem compiling CXX test program"
12275fi
12276
12277$rm -f confest.$objext
12278
mmentovai8c2a4de2006-09-20 16:20:15 +000012279# PORTME: override above test on systems where it is broken
12280case $host_os in
12281interix3*)
12282 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12283 # hack all around it, let's just trust "g++" to DTRT.
12284 predep_objects_CXX=
12285 postdep_objects_CXX=
12286 postdeps_CXX=
12287 ;;
12288
12289solaris*)
12290 case $cc_basename in
12291 CC*)
12292 # Adding this requires a known-good setup of shared libraries for
12293 # Sun compiler versions before 5.6, else PIC objects from an old
12294 # archive will be linked into the output, leading to subtle bugs.
12295 postdeps_CXX='-lCstd -lCrun'
12296 ;;
12297 esac
12298 ;;
12299esac
12300
12301
brynercb91a2f2006-08-25 21:14:45 +000012302case " $postdeps_CXX " in
12303*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12304esac
12305
12306lt_prog_compiler_wl_CXX=
12307lt_prog_compiler_pic_CXX=
12308lt_prog_compiler_static_CXX=
12309
mmentovai8c2a4de2006-09-20 16:20:15 +000012310{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12311echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012312
12313 # C++ specific cases for pic, static, wl, etc.
12314 if test "$GXX" = yes; then
12315 lt_prog_compiler_wl_CXX='-Wl,'
12316 lt_prog_compiler_static_CXX='-static'
12317
12318 case $host_os in
12319 aix*)
12320 # All AIX code is PIC.
12321 if test "$host_cpu" = ia64; then
12322 # AIX 5 now supports IA64 processor
12323 lt_prog_compiler_static_CXX='-Bstatic'
12324 fi
12325 ;;
12326 amigaos*)
12327 # FIXME: we need at least 68020 code to build shared libraries, but
12328 # adding the `-m68020' flag to GCC prevents building anything better,
12329 # like `-m68040'.
12330 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12331 ;;
12332 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12333 # PIC is the default for these OSes.
12334 ;;
12335 mingw* | os2* | pw32*)
12336 # This hack is so that the source file can tell whether it is being
12337 # built for inclusion in a dll (and should export symbols for example).
12338 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12339 ;;
12340 darwin* | rhapsody*)
12341 # PIC is the default on this platform
12342 # Common symbols not allowed in MH_DYLIB files
12343 lt_prog_compiler_pic_CXX='-fno-common'
12344 ;;
12345 *djgpp*)
12346 # DJGPP does not support shared libraries at all
12347 lt_prog_compiler_pic_CXX=
12348 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012349 interix3*)
12350 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12351 # Instead, we relocate shared libraries at runtime.
12352 ;;
brynercb91a2f2006-08-25 21:14:45 +000012353 sysv4*MP*)
12354 if test -d /usr/nec; then
12355 lt_prog_compiler_pic_CXX=-Kconform_pic
12356 fi
12357 ;;
12358 hpux*)
12359 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12360 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000012361 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000012362 hppa*64*|ia64*)
12363 ;;
12364 *)
12365 lt_prog_compiler_pic_CXX='-fPIC'
12366 ;;
12367 esac
12368 ;;
12369 *)
12370 lt_prog_compiler_pic_CXX='-fPIC'
12371 ;;
12372 esac
12373 else
12374 case $host_os in
12375 aix4* | aix5*)
12376 # All AIX code is PIC.
12377 if test "$host_cpu" = ia64; then
12378 # AIX 5 now supports IA64 processor
12379 lt_prog_compiler_static_CXX='-Bstatic'
12380 else
12381 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12382 fi
12383 ;;
12384 chorus*)
12385 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012386 cxch68*)
brynercb91a2f2006-08-25 21:14:45 +000012387 # Green Hills C++ Compiler
12388 # _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"
12389 ;;
12390 esac
12391 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012392 darwin*)
12393 # PIC is the default on this platform
12394 # Common symbols not allowed in MH_DYLIB files
12395 case $cc_basename in
12396 xlc*)
12397 lt_prog_compiler_pic_CXX='-qnocommon'
12398 lt_prog_compiler_wl_CXX='-Wl,'
12399 ;;
12400 esac
12401 ;;
brynercb91a2f2006-08-25 21:14:45 +000012402 dgux*)
12403 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012404 ec++*)
brynercb91a2f2006-08-25 21:14:45 +000012405 lt_prog_compiler_pic_CXX='-KPIC'
12406 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012407 ghcx*)
brynercb91a2f2006-08-25 21:14:45 +000012408 # Green Hills C++ Compiler
12409 lt_prog_compiler_pic_CXX='-pic'
12410 ;;
12411 *)
12412 ;;
12413 esac
12414 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012415 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000012416 # FreeBSD uses GNU C++
12417 ;;
12418 hpux9* | hpux10* | hpux11*)
12419 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012420 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012421 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000012422 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
brynercb91a2f2006-08-25 21:14:45 +000012423 if test "$host_cpu" != ia64; then
12424 lt_prog_compiler_pic_CXX='+Z'
12425 fi
12426 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012427 aCC*)
brynercb91a2f2006-08-25 21:14:45 +000012428 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000012429 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12430 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000012431 hppa*64*|ia64*)
12432 # +Z the default
12433 ;;
12434 *)
12435 lt_prog_compiler_pic_CXX='+Z'
12436 ;;
12437 esac
12438 ;;
12439 *)
12440 ;;
12441 esac
12442 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012443 interix*)
12444 # This is c89, which is MS Visual C++ (no shared libs)
12445 # Anyone wants to do a port?
12446 ;;
brynercb91a2f2006-08-25 21:14:45 +000012447 irix5* | irix6* | nonstopux*)
12448 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012449 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012450 lt_prog_compiler_wl_CXX='-Wl,'
12451 lt_prog_compiler_static_CXX='-non_shared'
12452 # CC pic flag -KPIC is the default.
12453 ;;
12454 *)
12455 ;;
12456 esac
12457 ;;
12458 linux*)
12459 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012460 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000012461 # KAI C++ Compiler
12462 lt_prog_compiler_wl_CXX='--backend -Wl,'
12463 lt_prog_compiler_pic_CXX='-fPIC'
12464 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012465 icpc* | ecpc*)
brynercb91a2f2006-08-25 21:14:45 +000012466 # Intel C++
12467 lt_prog_compiler_wl_CXX='-Wl,'
12468 lt_prog_compiler_pic_CXX='-KPIC'
12469 lt_prog_compiler_static_CXX='-static'
12470 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012471 pgCC*)
12472 # Portland Group C++ compiler.
12473 lt_prog_compiler_wl_CXX='-Wl,'
12474 lt_prog_compiler_pic_CXX='-fpic'
12475 lt_prog_compiler_static_CXX='-Bstatic'
12476 ;;
12477 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000012478 # Compaq C++
12479 # Make sure the PIC flag is empty. It appears that all Alpha
12480 # Linux and Compaq Tru64 Unix objects are PIC.
12481 lt_prog_compiler_pic_CXX=
12482 lt_prog_compiler_static_CXX='-non_shared'
12483 ;;
12484 *)
12485 ;;
12486 esac
12487 ;;
12488 lynxos*)
12489 ;;
12490 m88k*)
12491 ;;
12492 mvs*)
12493 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012494 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000012495 lt_prog_compiler_pic_CXX='-W c,exportall'
12496 ;;
12497 *)
12498 ;;
12499 esac
12500 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012501 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000012502 ;;
12503 osf3* | osf4* | osf5*)
12504 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012505 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000012506 lt_prog_compiler_wl_CXX='--backend -Wl,'
12507 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012508 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000012509 # Rational C++ 2.4.1
12510 lt_prog_compiler_pic_CXX='-pic'
12511 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012512 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000012513 # Digital/Compaq C++
12514 lt_prog_compiler_wl_CXX='-Wl,'
12515 # Make sure the PIC flag is empty. It appears that all Alpha
12516 # Linux and Compaq Tru64 Unix objects are PIC.
12517 lt_prog_compiler_pic_CXX=
12518 lt_prog_compiler_static_CXX='-non_shared'
12519 ;;
12520 *)
12521 ;;
12522 esac
12523 ;;
12524 psos*)
12525 ;;
brynercb91a2f2006-08-25 21:14:45 +000012526 solaris*)
12527 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012528 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012529 # Sun C++ 4.2, 5.x and Centerline C++
12530 lt_prog_compiler_pic_CXX='-KPIC'
12531 lt_prog_compiler_static_CXX='-Bstatic'
12532 lt_prog_compiler_wl_CXX='-Qoption ld '
12533 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012534 gcx*)
brynercb91a2f2006-08-25 21:14:45 +000012535 # Green Hills C++ Compiler
12536 lt_prog_compiler_pic_CXX='-PIC'
12537 ;;
12538 *)
12539 ;;
12540 esac
12541 ;;
12542 sunos4*)
12543 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012544 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012545 # Sun C++ 4.x
12546 lt_prog_compiler_pic_CXX='-pic'
12547 lt_prog_compiler_static_CXX='-Bstatic'
12548 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012549 lcc*)
brynercb91a2f2006-08-25 21:14:45 +000012550 # Lucid
12551 lt_prog_compiler_pic_CXX='-pic'
12552 ;;
12553 *)
12554 ;;
12555 esac
12556 ;;
12557 tandem*)
12558 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012559 NCC*)
brynercb91a2f2006-08-25 21:14:45 +000012560 # NonStop-UX NCC 3.20
12561 lt_prog_compiler_pic_CXX='-KPIC'
12562 ;;
12563 *)
12564 ;;
12565 esac
12566 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012567 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12568 case $cc_basename in
12569 CC*)
12570 lt_prog_compiler_wl_CXX='-Wl,'
12571 lt_prog_compiler_pic_CXX='-KPIC'
12572 lt_prog_compiler_static_CXX='-Bstatic'
12573 ;;
12574 esac
brynercb91a2f2006-08-25 21:14:45 +000012575 ;;
12576 vxworks*)
12577 ;;
12578 *)
12579 lt_prog_compiler_can_build_shared_CXX=no
12580 ;;
12581 esac
12582 fi
12583
mmentovai8c2a4de2006-09-20 16:20:15 +000012584{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12585echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012586
12587#
12588# Check to make sure the PIC flag actually works.
12589#
12590if test -n "$lt_prog_compiler_pic_CXX"; then
12591
mmentovai8c2a4de2006-09-20 16:20:15 +000012592{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12593echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012594if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596else
12597 lt_prog_compiler_pic_works_CXX=no
12598 ac_outfile=conftest.$ac_objext
12599 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12600 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12601 # Insert the option either (1) after the last *FLAGS variable, or
12602 # (2) before a word containing "conftest.", or (3) at the end.
12603 # Note that $ac_compile itself does not contain backslashes and begins
12604 # with a dollar sign (not a hyphen), so the echo should work correctly.
12605 # The option is referenced via a variable to avoid confusing sed.
12606 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000012607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000012608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12609 -e 's:$: $lt_compiler_flag:'`
mmentovai8c2a4de2006-09-20 16:20:15 +000012610 (eval echo "\"\$as_me:12610: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000012611 (eval "$lt_compile" 2>conftest.err)
12612 ac_status=$?
12613 cat conftest.err >&5
mmentovai8c2a4de2006-09-20 16:20:15 +000012614 echo "$as_me:12614: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000012615 if (exit $ac_status) && test -s "$ac_outfile"; then
12616 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000012617 # So say no if there are warnings other than the usual output.
12618 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12619 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12620 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000012621 lt_prog_compiler_pic_works_CXX=yes
12622 fi
12623 fi
12624 $rm conftest*
12625
12626fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012627{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12628echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012629
12630if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12631 case $lt_prog_compiler_pic_CXX in
12632 "" | " "*) ;;
12633 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12634 esac
12635else
12636 lt_prog_compiler_pic_CXX=
12637 lt_prog_compiler_can_build_shared_CXX=no
12638fi
12639
12640fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012641case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000012642 # For platforms which do not support PIC, -DPIC is meaningless:
12643 *djgpp*)
12644 lt_prog_compiler_pic_CXX=
12645 ;;
12646 *)
12647 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12648 ;;
12649esac
12650
mmentovai8c2a4de2006-09-20 16:20:15 +000012651#
12652# Check to make sure the static flag actually works.
12653#
12654wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12655{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12656echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12657if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12658 echo $ECHO_N "(cached) $ECHO_C" >&6
12659else
12660 lt_prog_compiler_static_works_CXX=no
12661 save_LDFLAGS="$LDFLAGS"
12662 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12663 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12664 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12665 # The linker can only warn and ignore the option if not recognized
12666 # So say no if there are warnings
12667 if test -s conftest.err; then
12668 # Append any errors to the config.log.
12669 cat conftest.err 1>&5
12670 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12672 if diff conftest.exp conftest.er2 >/dev/null; then
12673 lt_prog_compiler_static_works_CXX=yes
12674 fi
12675 else
12676 lt_prog_compiler_static_works_CXX=yes
12677 fi
12678 fi
12679 $rm conftest*
12680 LDFLAGS="$save_LDFLAGS"
12681
12682fi
12683{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12684echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12685
12686if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12687 :
12688else
12689 lt_prog_compiler_static_CXX=
12690fi
12691
12692
12693{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12694echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012695if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12696 echo $ECHO_N "(cached) $ECHO_C" >&6
12697else
12698 lt_cv_prog_compiler_c_o_CXX=no
12699 $rm -r conftest 2>/dev/null
12700 mkdir conftest
12701 cd conftest
12702 mkdir out
12703 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12704
12705 lt_compiler_flag="-o out/conftest2.$ac_objext"
12706 # Insert the option either (1) after the last *FLAGS variable, or
12707 # (2) before a word containing "conftest.", or (3) at the end.
12708 # Note that $ac_compile itself does not contain backslashes and begins
12709 # with a dollar sign (not a hyphen), so the echo should work correctly.
12710 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000012711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000012712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12713 -e 's:$: $lt_compiler_flag:'`
mmentovai8c2a4de2006-09-20 16:20:15 +000012714 (eval echo "\"\$as_me:12714: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000012715 (eval "$lt_compile" 2>out/conftest.err)
12716 ac_status=$?
12717 cat out/conftest.err >&5
mmentovai8c2a4de2006-09-20 16:20:15 +000012718 echo "$as_me:12718: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000012719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12720 then
12721 # The compiler can only warn and ignore the option if not recognized
12722 # So say no if there are warnings
mmentovai8c2a4de2006-09-20 16:20:15 +000012723 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12724 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12725 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000012726 lt_cv_prog_compiler_c_o_CXX=yes
12727 fi
12728 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012729 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +000012730 $rm conftest*
12731 # SGI C++ compiler will create directory out/ii_files/ for
12732 # template instantiation
12733 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12734 $rm out/* && rmdir out
12735 cd ..
12736 rmdir conftest
12737 $rm conftest*
12738
12739fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012740{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12741echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012742
12743
12744hard_links="nottested"
12745if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12746 # do not overwrite the value of need_locks provided by the user
mmentovai8c2a4de2006-09-20 16:20:15 +000012747 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12748echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012749 hard_links=yes
12750 $rm conftest*
12751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12752 touch conftest.a
12753 ln conftest.a conftest.b 2>&5 || hard_links=no
12754 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mmentovai8c2a4de2006-09-20 16:20:15 +000012755 { echo "$as_me:$LINENO: result: $hard_links" >&5
12756echo "${ECHO_T}$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012757 if test "$hard_links" = no; then
12758 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12759echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12760 need_locks=warn
12761 fi
12762else
12763 need_locks=no
12764fi
12765
mmentovai8c2a4de2006-09-20 16:20:15 +000012766{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12767echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012768
12769 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12770 case $host_os in
12771 aix4* | aix5*)
12772 # If we're using GNU nm, then we don't want the "-C" option.
12773 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12774 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12775 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'
12776 else
12777 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'
12778 fi
12779 ;;
12780 pw32*)
12781 export_symbols_cmds_CXX="$ltdll_cmds"
12782 ;;
12783 cygwin* | mingw*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012784 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 +000012785 ;;
12786 *)
12787 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12788 ;;
12789 esac
12790
mmentovai8c2a4de2006-09-20 16:20:15 +000012791{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12792echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012793test "$ld_shlibs_CXX" = no && can_build_shared=no
12794
brynercb91a2f2006-08-25 21:14:45 +000012795#
12796# Do we need to explicitly link libc?
12797#
12798case "x$archive_cmds_need_lc_CXX" in
12799x|xyes)
12800 # Assume -lc should be added
12801 archive_cmds_need_lc_CXX=yes
12802
12803 if test "$enable_shared" = yes && test "$GCC" = yes; then
12804 case $archive_cmds_CXX in
12805 *'~'*)
12806 # FIXME: we may have to deal with multi-command sequences.
12807 ;;
12808 '$CC '*)
12809 # Test whether the compiler implicitly links with -lc since on some
12810 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12811 # to ld, don't add -lc before -lgcc.
mmentovai8c2a4de2006-09-20 16:20:15 +000012812 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12813echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012814 $rm conftest*
12815 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12816
12817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12818 (eval $ac_compile) 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } 2>conftest.err; then
12822 soname=conftest
12823 lib=conftest
12824 libobjs=conftest.$ac_objext
12825 deplibs=
12826 wl=$lt_prog_compiler_wl_CXX
mmentovai8c2a4de2006-09-20 16:20:15 +000012827 pic_flag=$lt_prog_compiler_pic_CXX
brynercb91a2f2006-08-25 21:14:45 +000012828 compiler_flags=-v
12829 linker_flags=-v
12830 verstring=
12831 output_objdir=.
12832 libname=conftest
12833 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12834 allow_undefined_flag_CXX=
12835 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12836 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12837 ac_status=$?
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }
12840 then
12841 archive_cmds_need_lc_CXX=no
12842 else
12843 archive_cmds_need_lc_CXX=yes
12844 fi
12845 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12846 else
12847 cat conftest.err 1>&5
12848 fi
12849 $rm conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000012850 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12851echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012852 ;;
12853 esac
12854 fi
12855 ;;
12856esac
12857
mmentovai8c2a4de2006-09-20 16:20:15 +000012858{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12859echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012860library_names_spec=
12861libname_spec='lib$name'
12862soname_spec=
12863shrext_cmds=".so"
12864postinstall_cmds=
12865postuninstall_cmds=
12866finish_cmds=
12867finish_eval=
12868shlibpath_var=
12869shlibpath_overrides_runpath=unknown
12870version_type=none
12871dynamic_linker="$host_os ld.so"
12872sys_lib_dlsearch_path_spec="/lib /usr/lib"
12873if test "$GCC" = yes; then
12874 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12875 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12876 # if the path contains ";" then we assume it to be the separator
12877 # otherwise default to the standard path separator (i.e. ":") - it is
12878 # assumed that no part of a normal pathname contains ";" but that should
12879 # okay in the real world where ";" in dirpaths is itself problematic.
12880 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12881 else
12882 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12883 fi
12884else
12885 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12886fi
12887need_lib_prefix=unknown
12888hardcode_into_libs=no
12889
12890# when you set need_version to no, make sure it does not cause -set_version
12891# flags to be left without arguments
12892need_version=unknown
12893
12894case $host_os in
12895aix3*)
12896 version_type=linux
12897 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12898 shlibpath_var=LIBPATH
12899
12900 # AIX 3 has no versioning support, so we append a major version to the name.
12901 soname_spec='${libname}${release}${shared_ext}$major'
12902 ;;
12903
12904aix4* | aix5*)
12905 version_type=linux
12906 need_lib_prefix=no
12907 need_version=no
12908 hardcode_into_libs=yes
12909 if test "$host_cpu" = ia64; then
12910 # AIX 5 supports IA64
12911 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12912 shlibpath_var=LD_LIBRARY_PATH
12913 else
12914 # With GCC up to 2.95.x, collect2 would create an import file
12915 # for dependence libraries. The import file would start with
12916 # the line `#! .'. This would cause the generated library to
12917 # depend on `.', always an invalid library. This was fixed in
12918 # development snapshots of GCC prior to 3.0.
12919 case $host_os in
12920 aix4 | aix4.[01] | aix4.[01].*)
12921 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12922 echo ' yes '
12923 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12924 :
12925 else
12926 can_build_shared=no
12927 fi
12928 ;;
12929 esac
12930 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12931 # soname into executable. Probably we can add versioning support to
12932 # collect2, so additional links can be useful in future.
12933 if test "$aix_use_runtimelinking" = yes; then
12934 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12935 # instead of lib<name>.a to let people know that these are not
12936 # typical AIX shared libraries.
12937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12938 else
12939 # We preserve .a as extension for shared libraries through AIX4.2
12940 # and later when we are not doing run time linking.
12941 library_names_spec='${libname}${release}.a $libname.a'
12942 soname_spec='${libname}${release}${shared_ext}$major'
12943 fi
12944 shlibpath_var=LIBPATH
12945 fi
12946 ;;
12947
12948amigaos*)
12949 library_names_spec='$libname.ixlibrary $libname.a'
12950 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12951 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'
12952 ;;
12953
12954beos*)
12955 library_names_spec='${libname}${shared_ext}'
12956 dynamic_linker="$host_os ld.so"
12957 shlibpath_var=LIBRARY_PATH
12958 ;;
12959
mmentovai8c2a4de2006-09-20 16:20:15 +000012960bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000012961 version_type=linux
12962 need_version=no
12963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12964 soname_spec='${libname}${release}${shared_ext}$major'
12965 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12966 shlibpath_var=LD_LIBRARY_PATH
12967 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12968 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12969 # the default ld.so.conf also contains /usr/contrib/lib and
12970 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12971 # libtool to hard-code these into programs
12972 ;;
12973
12974cygwin* | mingw* | pw32*)
12975 version_type=windows
12976 shrext_cmds=".dll"
12977 need_version=no
12978 need_lib_prefix=no
12979
12980 case $GCC,$host_os in
12981 yes,cygwin* | yes,mingw* | yes,pw32*)
12982 library_names_spec='$libname.dll.a'
12983 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12984 postinstall_cmds='base_file=`basename \${file}`~
12985 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12986 dldir=$destdir/`dirname \$dlpath`~
12987 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000012988 $install_prog $dir/$dlname \$dldir/$dlname~
12989 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000012990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12991 dlpath=$dir/\$dldll~
12992 $rm \$dlpath'
12993 shlibpath_overrides_runpath=yes
12994
12995 case $host_os in
12996 cygwin*)
12997 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12998 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12999 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13000 ;;
13001 mingw*)
13002 # MinGW DLLs use traditional 'lib' prefix
13003 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13004 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13005 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13006 # It is most probably a Windows format PATH printed by
13007 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13008 # path with ; separators, and with drive letters. We can handle the
13009 # drive letters (cygwin fileutils understands them), so leave them,
13010 # especially as we might pass files found there to a mingw objdump,
13011 # which wouldn't understand a cygwinified path. Ahh.
13012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13013 else
13014 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13015 fi
13016 ;;
13017 pw32*)
13018 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000013019 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 +000013020 ;;
13021 esac
13022 ;;
13023
13024 *)
13025 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13026 ;;
13027 esac
13028 dynamic_linker='Win32 ld.exe'
13029 # FIXME: first we should search . and the directory the executable is in
13030 shlibpath_var=PATH
13031 ;;
13032
13033darwin* | rhapsody*)
13034 dynamic_linker="$host_os dyld"
13035 version_type=darwin
13036 need_lib_prefix=no
13037 need_version=no
13038 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13039 soname_spec='${libname}${release}${major}$shared_ext'
13040 shlibpath_overrides_runpath=yes
13041 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000013042 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
brynercb91a2f2006-08-25 21:14:45 +000013043 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13044 if test "$GCC" = yes; then
13045 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"`
13046 else
13047 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13048 fi
13049 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13050 ;;
13051
13052dgux*)
13053 version_type=linux
13054 need_lib_prefix=no
13055 need_version=no
13056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13057 soname_spec='${libname}${release}${shared_ext}$major'
13058 shlibpath_var=LD_LIBRARY_PATH
13059 ;;
13060
13061freebsd1*)
13062 dynamic_linker=no
13063 ;;
13064
13065kfreebsd*-gnu)
13066 version_type=linux
13067 need_lib_prefix=no
13068 need_version=no
13069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13070 soname_spec='${libname}${release}${shared_ext}$major'
13071 shlibpath_var=LD_LIBRARY_PATH
13072 shlibpath_overrides_runpath=no
13073 hardcode_into_libs=yes
13074 dynamic_linker='GNU ld.so'
13075 ;;
13076
mmentovai8c2a4de2006-09-20 16:20:15 +000013077freebsd* | dragonfly*)
13078 # DragonFly does not have aout. When/if they implement a new
13079 # versioning mechanism, adjust this.
13080 if test -x /usr/bin/objformat; then
13081 objformat=`/usr/bin/objformat`
13082 else
13083 case $host_os in
13084 freebsd[123]*) objformat=aout ;;
13085 *) objformat=elf ;;
13086 esac
13087 fi
brynercb91a2f2006-08-25 21:14:45 +000013088 version_type=freebsd-$objformat
13089 case $version_type in
13090 freebsd-elf*)
13091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13092 need_version=no
13093 need_lib_prefix=no
13094 ;;
13095 freebsd-*)
13096 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13097 need_version=yes
13098 ;;
13099 esac
13100 shlibpath_var=LD_LIBRARY_PATH
13101 case $host_os in
13102 freebsd2*)
13103 shlibpath_overrides_runpath=yes
13104 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013105 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000013106 shlibpath_overrides_runpath=yes
13107 hardcode_into_libs=yes
13108 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013109 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13110 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000013111 shlibpath_overrides_runpath=no
13112 hardcode_into_libs=yes
13113 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013114 freebsd*) # from 4.6 on
13115 shlibpath_overrides_runpath=yes
13116 hardcode_into_libs=yes
13117 ;;
brynercb91a2f2006-08-25 21:14:45 +000013118 esac
13119 ;;
13120
13121gnu*)
13122 version_type=linux
13123 need_lib_prefix=no
13124 need_version=no
13125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13126 soname_spec='${libname}${release}${shared_ext}$major'
13127 shlibpath_var=LD_LIBRARY_PATH
13128 hardcode_into_libs=yes
13129 ;;
13130
13131hpux9* | hpux10* | hpux11*)
13132 # Give a soname corresponding to the major version so that dld.sl refuses to
13133 # link against other versions.
13134 version_type=sunos
13135 need_lib_prefix=no
13136 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013137 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000013138 ia64*)
13139 shrext_cmds='.so'
13140 hardcode_into_libs=yes
13141 dynamic_linker="$host_os dld.so"
13142 shlibpath_var=LD_LIBRARY_PATH
13143 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13145 soname_spec='${libname}${release}${shared_ext}$major'
13146 if test "X$HPUX_IA64_MODE" = X32; then
13147 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13148 else
13149 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13150 fi
13151 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13152 ;;
13153 hppa*64*)
13154 shrext_cmds='.sl'
13155 hardcode_into_libs=yes
13156 dynamic_linker="$host_os dld.sl"
13157 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13158 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13160 soname_spec='${libname}${release}${shared_ext}$major'
13161 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13162 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13163 ;;
13164 *)
13165 shrext_cmds='.sl'
13166 dynamic_linker="$host_os dld.sl"
13167 shlibpath_var=SHLIB_PATH
13168 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13170 soname_spec='${libname}${release}${shared_ext}$major'
13171 ;;
13172 esac
13173 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13174 postinstall_cmds='chmod 555 $lib'
13175 ;;
13176
mmentovai8c2a4de2006-09-20 16:20:15 +000013177interix3*)
13178 version_type=linux
13179 need_lib_prefix=no
13180 need_version=no
13181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13182 soname_spec='${libname}${release}${shared_ext}$major'
13183 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13184 shlibpath_var=LD_LIBRARY_PATH
13185 shlibpath_overrides_runpath=no
13186 hardcode_into_libs=yes
13187 ;;
13188
brynercb91a2f2006-08-25 21:14:45 +000013189irix5* | irix6* | nonstopux*)
13190 case $host_os in
13191 nonstopux*) version_type=nonstopux ;;
13192 *)
13193 if test "$lt_cv_prog_gnu_ld" = yes; then
13194 version_type=linux
13195 else
13196 version_type=irix
13197 fi ;;
13198 esac
13199 need_lib_prefix=no
13200 need_version=no
13201 soname_spec='${libname}${release}${shared_ext}$major'
13202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13203 case $host_os in
13204 irix5* | nonstopux*)
13205 libsuff= shlibsuff=
13206 ;;
13207 *)
13208 case $LD in # libtool.m4 will add one of these switches to LD
13209 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13210 libsuff= shlibsuff= libmagic=32-bit;;
13211 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13212 libsuff=32 shlibsuff=N32 libmagic=N32;;
13213 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13214 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13215 *) libsuff= shlibsuff= libmagic=never-match;;
13216 esac
13217 ;;
13218 esac
13219 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13220 shlibpath_overrides_runpath=no
13221 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13222 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13223 hardcode_into_libs=yes
13224 ;;
13225
13226# No shared lib support for Linux oldld, aout, or coff.
13227linux*oldld* | linux*aout* | linux*coff*)
13228 dynamic_linker=no
13229 ;;
13230
13231# This must be Linux ELF.
13232linux*)
13233 version_type=linux
13234 need_lib_prefix=no
13235 need_version=no
13236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13237 soname_spec='${libname}${release}${shared_ext}$major'
13238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13239 shlibpath_var=LD_LIBRARY_PATH
13240 shlibpath_overrides_runpath=no
13241 # This implies no fast_install, which is unacceptable.
13242 # Some rework will be needed to allow for fast_install
13243 # before this can be enabled.
13244 hardcode_into_libs=yes
13245
13246 # Append ld.so.conf contents to the search path
13247 if test -f /etc/ld.so.conf; then
mmentovai8c2a4de2006-09-20 16:20:15 +000013248 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 +000013249 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13250 fi
13251
13252 # We used to test for /lib/ld.so.1 and disable shared libraries on
13253 # powerpc, because MkLinux only supported shared libraries with the
13254 # GNU dynamic linker. Since this was broken with cross compilers,
13255 # most powerpc-linux boxes support dynamic linking these days and
13256 # people can always --disable-shared, the test was removed, and we
13257 # assume the GNU/Linux dynamic linker is in use.
13258 dynamic_linker='GNU/Linux ld.so'
13259 ;;
13260
brynercb91a2f2006-08-25 21:14:45 +000013261knetbsd*-gnu)
13262 version_type=linux
13263 need_lib_prefix=no
13264 need_version=no
13265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13266 soname_spec='${libname}${release}${shared_ext}$major'
13267 shlibpath_var=LD_LIBRARY_PATH
13268 shlibpath_overrides_runpath=no
13269 hardcode_into_libs=yes
13270 dynamic_linker='GNU ld.so'
13271 ;;
13272
13273netbsd*)
13274 version_type=sunos
13275 need_lib_prefix=no
13276 need_version=no
13277 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13280 dynamic_linker='NetBSD (a.out) ld.so'
13281 else
13282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13283 soname_spec='${libname}${release}${shared_ext}$major'
13284 dynamic_linker='NetBSD ld.elf_so'
13285 fi
13286 shlibpath_var=LD_LIBRARY_PATH
13287 shlibpath_overrides_runpath=yes
13288 hardcode_into_libs=yes
13289 ;;
13290
13291newsos6)
13292 version_type=linux
13293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13294 shlibpath_var=LD_LIBRARY_PATH
13295 shlibpath_overrides_runpath=yes
13296 ;;
13297
13298nto-qnx*)
13299 version_type=linux
13300 need_lib_prefix=no
13301 need_version=no
13302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13303 soname_spec='${libname}${release}${shared_ext}$major'
13304 shlibpath_var=LD_LIBRARY_PATH
13305 shlibpath_overrides_runpath=yes
13306 ;;
13307
13308openbsd*)
13309 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000013310 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000013311 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013312 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13313 case $host_os in
13314 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13315 *) need_version=no ;;
13316 esac
brynercb91a2f2006-08-25 21:14:45 +000013317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13319 shlibpath_var=LD_LIBRARY_PATH
13320 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13321 case $host_os in
13322 openbsd2.[89] | openbsd2.[89].*)
13323 shlibpath_overrides_runpath=no
13324 ;;
13325 *)
13326 shlibpath_overrides_runpath=yes
13327 ;;
13328 esac
13329 else
13330 shlibpath_overrides_runpath=yes
13331 fi
13332 ;;
13333
13334os2*)
13335 libname_spec='$name'
13336 shrext_cmds=".dll"
13337 need_lib_prefix=no
13338 library_names_spec='$libname${shared_ext} $libname.a'
13339 dynamic_linker='OS/2 ld.exe'
13340 shlibpath_var=LIBPATH
13341 ;;
13342
13343osf3* | osf4* | osf5*)
13344 version_type=osf
13345 need_lib_prefix=no
13346 need_version=no
13347 soname_spec='${libname}${release}${shared_ext}$major'
13348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13349 shlibpath_var=LD_LIBRARY_PATH
13350 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13351 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13352 ;;
13353
brynercb91a2f2006-08-25 21:14:45 +000013354solaris*)
13355 version_type=linux
13356 need_lib_prefix=no
13357 need_version=no
13358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13359 soname_spec='${libname}${release}${shared_ext}$major'
13360 shlibpath_var=LD_LIBRARY_PATH
13361 shlibpath_overrides_runpath=yes
13362 hardcode_into_libs=yes
13363 # ldd complains unless libraries are executable
13364 postinstall_cmds='chmod +x $lib'
13365 ;;
13366
13367sunos4*)
13368 version_type=sunos
13369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13370 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13371 shlibpath_var=LD_LIBRARY_PATH
13372 shlibpath_overrides_runpath=yes
13373 if test "$with_gnu_ld" = yes; then
13374 need_lib_prefix=no
13375 fi
13376 need_version=yes
13377 ;;
13378
mmentovai8c2a4de2006-09-20 16:20:15 +000013379sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000013380 version_type=linux
13381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13382 soname_spec='${libname}${release}${shared_ext}$major'
13383 shlibpath_var=LD_LIBRARY_PATH
13384 case $host_vendor in
13385 sni)
13386 shlibpath_overrides_runpath=no
13387 need_lib_prefix=no
13388 export_dynamic_flag_spec='${wl}-Blargedynsym'
13389 runpath_var=LD_RUN_PATH
13390 ;;
13391 siemens)
13392 need_lib_prefix=no
13393 ;;
13394 motorola)
13395 need_lib_prefix=no
13396 need_version=no
13397 shlibpath_overrides_runpath=no
13398 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13399 ;;
13400 esac
13401 ;;
13402
13403sysv4*MP*)
13404 if test -d /usr/nec ;then
13405 version_type=linux
13406 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13407 soname_spec='$libname${shared_ext}.$major'
13408 shlibpath_var=LD_LIBRARY_PATH
13409 fi
13410 ;;
13411
mmentovai8c2a4de2006-09-20 16:20:15 +000013412sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13413 version_type=freebsd-elf
13414 need_lib_prefix=no
13415 need_version=no
13416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13417 soname_spec='${libname}${release}${shared_ext}$major'
13418 shlibpath_var=LD_LIBRARY_PATH
13419 hardcode_into_libs=yes
13420 if test "$with_gnu_ld" = yes; then
13421 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13422 shlibpath_overrides_runpath=no
13423 else
13424 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13425 shlibpath_overrides_runpath=yes
13426 case $host_os in
13427 sco3.2v5*)
13428 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13429 ;;
13430 esac
13431 fi
13432 sys_lib_dlsearch_path_spec='/usr/lib'
13433 ;;
13434
brynercb91a2f2006-08-25 21:14:45 +000013435uts4*)
13436 version_type=linux
13437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13438 soname_spec='${libname}${release}${shared_ext}$major'
13439 shlibpath_var=LD_LIBRARY_PATH
13440 ;;
13441
13442*)
13443 dynamic_linker=no
13444 ;;
13445esac
mmentovai8c2a4de2006-09-20 16:20:15 +000013446{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13447echo "${ECHO_T}$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013448test "$dynamic_linker" = no && can_build_shared=no
13449
mmentovai8c2a4de2006-09-20 16:20:15 +000013450variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13451if test "$GCC" = yes; then
13452 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13453fi
13454
13455{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13456echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013457hardcode_action_CXX=
13458if test -n "$hardcode_libdir_flag_spec_CXX" || \
mmentovai8c2a4de2006-09-20 16:20:15 +000013459 test -n "$runpath_var_CXX" || \
13460 test "X$hardcode_automatic_CXX" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000013461
13462 # We can hardcode non-existant directories.
13463 if test "$hardcode_direct_CXX" != no &&
13464 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13465 # have to relink, otherwise we might link with an installed library
13466 # when we should be linking with a yet-to-be-installed one
13467 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13468 test "$hardcode_minus_L_CXX" != no; then
13469 # Linking always hardcodes the temporary library directory.
13470 hardcode_action_CXX=relink
13471 else
13472 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13473 hardcode_action_CXX=immediate
13474 fi
13475else
13476 # We cannot hardcode anything, or else we can only hardcode existing
13477 # directories.
13478 hardcode_action_CXX=unsupported
13479fi
mmentovai8c2a4de2006-09-20 16:20:15 +000013480{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13481echo "${ECHO_T}$hardcode_action_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013482
13483if test "$hardcode_action_CXX" = relink; then
13484 # Fast installation is not supported
13485 enable_fast_install=no
13486elif test "$shlibpath_overrides_runpath" = yes ||
13487 test "$enable_shared" = no; then
13488 # Fast installation is not necessary
13489 enable_fast_install=needless
13490fi
13491
brynercb91a2f2006-08-25 21:14:45 +000013492
13493# The else clause should only fire when bootstrapping the
13494# libtool distribution, otherwise you forgot to ship ltmain.sh
13495# with your package, and you will get complaints that there are
13496# no rules to generate ltmain.sh.
13497if test -f "$ltmain"; then
13498 # See if we are running on zsh, and set the options which allow our commands through
13499 # without removal of \ escapes.
13500 if test -n "${ZSH_VERSION+set}" ; then
13501 setopt NO_GLOB_SUBST
13502 fi
13503 # Now quote all the things that may contain metacharacters while being
13504 # careful not to overquote the AC_SUBSTed values. We take copies of the
13505 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000013506 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000013507 SED SHELL STRIP \
13508 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13509 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13510 deplibs_check_method reload_flag reload_cmds need_locks \
13511 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13512 lt_cv_sys_global_symbol_to_c_name_address \
13513 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13514 old_postinstall_cmds old_postuninstall_cmds \
13515 compiler_CXX \
13516 CC_CXX \
13517 LD_CXX \
13518 lt_prog_compiler_wl_CXX \
13519 lt_prog_compiler_pic_CXX \
13520 lt_prog_compiler_static_CXX \
13521 lt_prog_compiler_no_builtin_flag_CXX \
13522 export_dynamic_flag_spec_CXX \
13523 thread_safe_flag_spec_CXX \
13524 whole_archive_flag_spec_CXX \
13525 enable_shared_with_static_runtimes_CXX \
13526 old_archive_cmds_CXX \
13527 old_archive_from_new_cmds_CXX \
13528 predep_objects_CXX \
13529 postdep_objects_CXX \
13530 predeps_CXX \
13531 postdeps_CXX \
13532 compiler_lib_search_path_CXX \
13533 archive_cmds_CXX \
13534 archive_expsym_cmds_CXX \
13535 postinstall_cmds_CXX \
13536 postuninstall_cmds_CXX \
13537 old_archive_from_expsyms_cmds_CXX \
13538 allow_undefined_flag_CXX \
13539 no_undefined_flag_CXX \
13540 export_symbols_cmds_CXX \
13541 hardcode_libdir_flag_spec_CXX \
13542 hardcode_libdir_flag_spec_ld_CXX \
13543 hardcode_libdir_separator_CXX \
13544 hardcode_automatic_CXX \
13545 module_cmds_CXX \
13546 module_expsym_cmds_CXX \
13547 lt_cv_prog_compiler_c_o_CXX \
13548 exclude_expsyms_CXX \
13549 include_expsyms_CXX; do
13550
13551 case $var in
13552 old_archive_cmds_CXX | \
13553 old_archive_from_new_cmds_CXX | \
13554 archive_cmds_CXX | \
13555 archive_expsym_cmds_CXX | \
13556 module_cmds_CXX | \
13557 module_expsym_cmds_CXX | \
13558 old_archive_from_expsyms_cmds_CXX | \
13559 export_symbols_cmds_CXX | \
13560 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13561 postinstall_cmds | postuninstall_cmds | \
13562 old_postinstall_cmds | old_postuninstall_cmds | \
13563 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13564 # Double-quote double-evaled strings.
13565 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13566 ;;
13567 *)
13568 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13569 ;;
13570 esac
13571 done
13572
13573 case $lt_echo in
13574 *'\$0 --fallback-echo"')
13575 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13576 ;;
13577 esac
13578
13579cfgfile="$ofile"
13580
13581 cat <<__EOF__ >> "$cfgfile"
13582# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13583
13584# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13585
13586# Shell to use when invoking shell scripts.
13587SHELL=$lt_SHELL
13588
13589# Whether or not to build shared libraries.
13590build_libtool_libs=$enable_shared
13591
13592# Whether or not to build static libraries.
13593build_old_libs=$enable_static
13594
13595# Whether or not to add -lc for building shared libraries.
13596build_libtool_need_lc=$archive_cmds_need_lc_CXX
13597
13598# Whether or not to disallow shared libs when runtime libs are static
13599allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13600
13601# Whether or not to optimize for fast installation.
13602fast_install=$enable_fast_install
13603
13604# The host system.
13605host_alias=$host_alias
13606host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000013607host_os=$host_os
13608
13609# The build system.
13610build_alias=$build_alias
13611build=$build
13612build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000013613
13614# An echo program that does not interpret backslashes.
13615echo=$lt_echo
13616
13617# The archiver.
13618AR=$lt_AR
13619AR_FLAGS=$lt_AR_FLAGS
13620
13621# A C compiler.
13622LTCC=$lt_LTCC
13623
mmentovai8c2a4de2006-09-20 16:20:15 +000013624# LTCC compiler flags.
13625LTCFLAGS=$lt_LTCFLAGS
13626
brynercb91a2f2006-08-25 21:14:45 +000013627# A language-specific compiler.
13628CC=$lt_compiler_CXX
13629
13630# Is the compiler the GNU C compiler?
13631with_gcc=$GCC_CXX
13632
13633# An ERE matcher.
13634EGREP=$lt_EGREP
13635
13636# The linker used to build libraries.
13637LD=$lt_LD_CXX
13638
13639# Whether we need hard or soft links.
13640LN_S=$lt_LN_S
13641
13642# A BSD-compatible nm program.
13643NM=$lt_NM
13644
13645# A symbol stripping program
13646STRIP=$lt_STRIP
13647
13648# Used to examine libraries when file_magic_cmd begins "file"
13649MAGIC_CMD=$MAGIC_CMD
13650
13651# Used on cygwin: DLL creation program.
13652DLLTOOL="$DLLTOOL"
13653
13654# Used on cygwin: object dumper.
13655OBJDUMP="$OBJDUMP"
13656
13657# Used on cygwin: assembler.
13658AS="$AS"
13659
13660# The name of the directory that contains temporary libtool files.
13661objdir=$objdir
13662
13663# How to create reloadable object files.
13664reload_flag=$lt_reload_flag
13665reload_cmds=$lt_reload_cmds
13666
13667# How to pass a linker flag through the compiler.
13668wl=$lt_lt_prog_compiler_wl_CXX
13669
13670# Object file suffix (normally "o").
13671objext="$ac_objext"
13672
13673# Old archive suffix (normally "a").
13674libext="$libext"
13675
13676# Shared library suffix (normally ".so").
13677shrext_cmds='$shrext_cmds'
13678
13679# Executable file suffix (normally "").
13680exeext="$exeext"
13681
13682# Additional compiler flags for building library objects.
13683pic_flag=$lt_lt_prog_compiler_pic_CXX
13684pic_mode=$pic_mode
13685
13686# What is the maximum length of a command?
13687max_cmd_len=$lt_cv_sys_max_cmd_len
13688
13689# Does compiler simultaneously support -c and -o options?
13690compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13691
mmentovai8c2a4de2006-09-20 16:20:15 +000013692# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000013693need_locks=$lt_need_locks
13694
13695# Do we need the lib prefix for modules?
13696need_lib_prefix=$need_lib_prefix
13697
13698# Do we need a version for libraries?
13699need_version=$need_version
13700
13701# Whether dlopen is supported.
13702dlopen_support=$enable_dlopen
13703
13704# Whether dlopen of programs is supported.
13705dlopen_self=$enable_dlopen_self
13706
13707# Whether dlopen of statically linked programs is supported.
13708dlopen_self_static=$enable_dlopen_self_static
13709
13710# Compiler flag to prevent dynamic linking.
13711link_static_flag=$lt_lt_prog_compiler_static_CXX
13712
13713# Compiler flag to turn off builtin functions.
13714no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13715
13716# Compiler flag to allow reflexive dlopens.
13717export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13718
13719# Compiler flag to generate shared objects directly from archives.
13720whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13721
13722# Compiler flag to generate thread-safe objects.
13723thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13724
13725# Library versioning type.
13726version_type=$version_type
13727
13728# Format of library name prefix.
13729libname_spec=$lt_libname_spec
13730
13731# List of archive names. First name is the real one, the rest are links.
13732# The last name is the one that the linker finds with -lNAME.
13733library_names_spec=$lt_library_names_spec
13734
13735# The coded name of the library, if different from the real name.
13736soname_spec=$lt_soname_spec
13737
13738# Commands used to build and install an old-style archive.
13739RANLIB=$lt_RANLIB
13740old_archive_cmds=$lt_old_archive_cmds_CXX
13741old_postinstall_cmds=$lt_old_postinstall_cmds
13742old_postuninstall_cmds=$lt_old_postuninstall_cmds
13743
13744# Create an old-style archive from a shared archive.
13745old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13746
13747# Create a temporary old-style archive to link instead of a shared archive.
13748old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13749
13750# Commands used to build and install a shared archive.
13751archive_cmds=$lt_archive_cmds_CXX
13752archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13753postinstall_cmds=$lt_postinstall_cmds
13754postuninstall_cmds=$lt_postuninstall_cmds
13755
13756# Commands used to build a loadable module (assumed same as above if empty)
13757module_cmds=$lt_module_cmds_CXX
13758module_expsym_cmds=$lt_module_expsym_cmds_CXX
13759
13760# Commands to strip libraries.
13761old_striplib=$lt_old_striplib
13762striplib=$lt_striplib
13763
13764# Dependencies to place before the objects being linked to create a
13765# shared library.
13766predep_objects=$lt_predep_objects_CXX
13767
13768# Dependencies to place after the objects being linked to create a
13769# shared library.
13770postdep_objects=$lt_postdep_objects_CXX
13771
13772# Dependencies to place before the objects being linked to create a
13773# shared library.
13774predeps=$lt_predeps_CXX
13775
13776# Dependencies to place after the objects being linked to create a
13777# shared library.
13778postdeps=$lt_postdeps_CXX
13779
13780# The library search path used internally by the compiler when linking
13781# a shared library.
13782compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13783
13784# Method to check whether dependent libraries are shared objects.
13785deplibs_check_method=$lt_deplibs_check_method
13786
13787# Command to use when deplibs_check_method == file_magic.
13788file_magic_cmd=$lt_file_magic_cmd
13789
13790# Flag that allows shared libraries with undefined symbols to be built.
13791allow_undefined_flag=$lt_allow_undefined_flag_CXX
13792
13793# Flag that forces no undefined symbols.
13794no_undefined_flag=$lt_no_undefined_flag_CXX
13795
13796# Commands used to finish a libtool library installation in a directory.
13797finish_cmds=$lt_finish_cmds
13798
13799# Same as above, but a single script fragment to be evaled but not shown.
13800finish_eval=$lt_finish_eval
13801
13802# Take the output of nm and produce a listing of raw symbols and C names.
13803global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13804
13805# Transform the output of nm in a proper C declaration
13806global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13807
13808# Transform the output of nm in a C name address pair
13809global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13810
13811# This is the shared library runtime path variable.
13812runpath_var=$runpath_var
13813
13814# This is the shared library path variable.
13815shlibpath_var=$shlibpath_var
13816
13817# Is shlibpath searched before the hard-coded library search path?
13818shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13819
13820# How to hardcode a shared library path into an executable.
13821hardcode_action=$hardcode_action_CXX
13822
13823# Whether we should hardcode library paths into libraries.
13824hardcode_into_libs=$hardcode_into_libs
13825
13826# Flag to hardcode \$libdir into a binary during linking.
13827# This must work even if \$libdir does not exist.
13828hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13829
13830# If ld is used when linking, flag to hardcode \$libdir into
13831# a binary during linking. This must work even if \$libdir does
13832# not exist.
13833hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13834
13835# Whether we need a single -rpath flag with a separated argument.
13836hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13837
13838# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13839# resulting binary.
13840hardcode_direct=$hardcode_direct_CXX
13841
13842# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13843# resulting binary.
13844hardcode_minus_L=$hardcode_minus_L_CXX
13845
13846# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13847# the resulting binary.
13848hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13849
13850# Set to yes if building a shared library automatically hardcodes DIR into the library
13851# and all subsequent libraries and executables linked against it.
13852hardcode_automatic=$hardcode_automatic_CXX
13853
13854# Variables whose values should be saved in libtool wrapper scripts and
13855# restored at relink time.
13856variables_saved_for_relink="$variables_saved_for_relink"
13857
13858# Whether libtool must link a program against all its dependency libraries.
13859link_all_deplibs=$link_all_deplibs_CXX
13860
13861# Compile-time system search path for libraries
13862sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13863
13864# Run-time system search path for libraries
13865sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13866
13867# Fix the shell variable \$srcfile for the compiler.
13868fix_srcfile_path="$fix_srcfile_path_CXX"
13869
13870# Set to yes if exported symbols are required.
13871always_export_symbols=$always_export_symbols_CXX
13872
13873# The commands to list exported symbols.
13874export_symbols_cmds=$lt_export_symbols_cmds_CXX
13875
13876# The commands to extract the exported symbol list from a shared archive.
13877extract_expsyms_cmds=$lt_extract_expsyms_cmds
13878
13879# Symbols that should not be listed in the preloaded symbols.
13880exclude_expsyms=$lt_exclude_expsyms_CXX
13881
13882# Symbols that must always be exported.
13883include_expsyms=$lt_include_expsyms_CXX
13884
13885# ### END LIBTOOL TAG CONFIG: $tagname
13886
13887__EOF__
13888
13889
13890else
13891 # If there is no Makefile yet, we rely on a make rule to execute
13892 # `config.status --recheck' to rerun these tests and create the
13893 # libtool script then.
13894 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13895 if test -f "$ltmain_in"; then
13896 test -f Makefile && make "$ltmain"
13897 fi
13898fi
13899
13900
13901ac_ext=c
13902ac_cpp='$CPP $CPPFLAGS'
13903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13905ac_compiler_gnu=$ac_cv_c_compiler_gnu
13906
13907CC=$lt_save_CC
13908LDCXX=$LD
13909LD=$lt_save_LD
13910GCC=$lt_save_GCC
13911with_gnu_ldcxx=$with_gnu_ld
13912with_gnu_ld=$lt_save_with_gnu_ld
13913lt_cv_path_LDCXX=$lt_cv_path_LD
13914lt_cv_path_LD=$lt_save_path_LD
13915lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13916lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13917
13918 else
13919 tagname=""
13920 fi
13921 ;;
13922
13923 F77)
13924 if test -n "$F77" && test "X$F77" != "Xno"; then
13925
13926ac_ext=f
13927ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13928ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13929ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13930
13931
13932archive_cmds_need_lc_F77=no
13933allow_undefined_flag_F77=
13934always_export_symbols_F77=no
13935archive_expsym_cmds_F77=
13936export_dynamic_flag_spec_F77=
13937hardcode_direct_F77=no
13938hardcode_libdir_flag_spec_F77=
13939hardcode_libdir_flag_spec_ld_F77=
13940hardcode_libdir_separator_F77=
13941hardcode_minus_L_F77=no
13942hardcode_automatic_F77=no
13943module_cmds_F77=
13944module_expsym_cmds_F77=
13945link_all_deplibs_F77=unknown
13946old_archive_cmds_F77=$old_archive_cmds
13947no_undefined_flag_F77=
13948whole_archive_flag_spec_F77=
13949enable_shared_with_static_runtimes_F77=no
13950
13951# Source file extension for f77 test sources.
13952ac_ext=f
13953
13954# Object file extension for compiled f77 test sources.
13955objext=o
13956objext_F77=$objext
13957
13958# Code to be used in simple compile tests
13959lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13960
13961# Code to be used in simple link tests
13962lt_simple_link_test_code=" program t\n end\n"
13963
13964# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13965
13966# If no C compiler was specified, use CC.
13967LTCC=${LTCC-"$CC"}
13968
mmentovai8c2a4de2006-09-20 16:20:15 +000013969# If no C compiler flags were specified, use CFLAGS.
13970LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13971
brynercb91a2f2006-08-25 21:14:45 +000013972# Allow CC to be a program name with arguments.
13973compiler=$CC
13974
13975
mmentovai8c2a4de2006-09-20 16:20:15 +000013976# save warnings/boilerplate of simple test code
13977ac_outfile=conftest.$ac_objext
13978printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13979eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13980_lt_compiler_boilerplate=`cat conftest.err`
13981$rm conftest*
13982
13983ac_outfile=conftest.$ac_objext
13984printf "$lt_simple_link_test_code" >conftest.$ac_ext
13985eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13986_lt_linker_boilerplate=`cat conftest.err`
13987$rm conftest*
13988
13989
brynercb91a2f2006-08-25 21:14:45 +000013990# Allow CC to be a program name with arguments.
13991lt_save_CC="$CC"
13992CC=${F77-"f77"}
13993compiler=$CC
13994compiler_F77=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +000013995for cc_temp in $compiler""; do
13996 case $cc_temp in
13997 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13998 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13999 \-*) ;;
14000 *) break;;
14001 esac
14002done
14003cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +000014004
brynercb91a2f2006-08-25 21:14:45 +000014005
mmentovai8c2a4de2006-09-20 16:20:15 +000014006{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14007echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14008{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14009echo "${ECHO_T}$can_build_shared" >&6; }
14010
14011{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14012echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014013test "$can_build_shared" = "no" && enable_shared=no
14014
14015# On AIX, shared libraries and static libraries use the same namespace, and
14016# are all built from PIC.
mmentovai8c2a4de2006-09-20 16:20:15 +000014017case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000014018aix3*)
14019 test "$enable_shared" = yes && enable_static=no
14020 if test -n "$RANLIB"; then
14021 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14022 postinstall_cmds='$RANLIB $lib'
14023 fi
14024 ;;
14025aix4* | aix5*)
mmentovai8c2a4de2006-09-20 16:20:15 +000014026 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14027 test "$enable_shared" = yes && enable_static=no
14028 fi
brynercb91a2f2006-08-25 21:14:45 +000014029 ;;
14030esac
mmentovai8c2a4de2006-09-20 16:20:15 +000014031{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14032echo "${ECHO_T}$enable_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014033
mmentovai8c2a4de2006-09-20 16:20:15 +000014034{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14035echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014036# Make sure either enable_shared or enable_static is yes.
14037test "$enable_shared" = yes || enable_static=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014038{ echo "$as_me:$LINENO: result: $enable_static" >&5
14039echo "${ECHO_T}$enable_static" >&6; }
brynerd5e66382006-09-08 02:35:53 +000014040
brynercb91a2f2006-08-25 21:14:45 +000014041GCC_F77="$G77"
14042LD_F77="$LD"
14043
14044lt_prog_compiler_wl_F77=
14045lt_prog_compiler_pic_F77=
14046lt_prog_compiler_static_F77=
14047
mmentovai8c2a4de2006-09-20 16:20:15 +000014048{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14049echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014050
14051 if test "$GCC" = yes; then
14052 lt_prog_compiler_wl_F77='-Wl,'
14053 lt_prog_compiler_static_F77='-static'
14054
14055 case $host_os in
14056 aix*)
14057 # All AIX code is PIC.
14058 if test "$host_cpu" = ia64; then
14059 # AIX 5 now supports IA64 processor
14060 lt_prog_compiler_static_F77='-Bstatic'
14061 fi
14062 ;;
14063
14064 amigaos*)
14065 # FIXME: we need at least 68020 code to build shared libraries, but
14066 # adding the `-m68020' flag to GCC prevents building anything better,
14067 # like `-m68040'.
14068 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14069 ;;
14070
14071 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14072 # PIC is the default for these OSes.
14073 ;;
14074
14075 mingw* | pw32* | os2*)
14076 # This hack is so that the source file can tell whether it is being
14077 # built for inclusion in a dll (and should export symbols for example).
14078 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14079 ;;
14080
14081 darwin* | rhapsody*)
14082 # PIC is the default on this platform
14083 # Common symbols not allowed in MH_DYLIB files
14084 lt_prog_compiler_pic_F77='-fno-common'
14085 ;;
14086
mmentovai8c2a4de2006-09-20 16:20:15 +000014087 interix3*)
14088 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14089 # Instead, we relocate shared libraries at runtime.
14090 ;;
14091
brynercb91a2f2006-08-25 21:14:45 +000014092 msdosdjgpp*)
14093 # Just because we use GCC doesn't mean we suddenly get shared libraries
14094 # on systems that don't support them.
14095 lt_prog_compiler_can_build_shared_F77=no
14096 enable_shared=no
14097 ;;
14098
14099 sysv4*MP*)
14100 if test -d /usr/nec; then
14101 lt_prog_compiler_pic_F77=-Kconform_pic
14102 fi
14103 ;;
14104
14105 hpux*)
14106 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14107 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000014108 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000014109 hppa*64*|ia64*)
14110 # +Z the default
14111 ;;
14112 *)
14113 lt_prog_compiler_pic_F77='-fPIC'
14114 ;;
14115 esac
14116 ;;
14117
14118 *)
14119 lt_prog_compiler_pic_F77='-fPIC'
14120 ;;
14121 esac
14122 else
14123 # PORTME Check for flag to pass linker flags through the system compiler.
14124 case $host_os in
14125 aix*)
14126 lt_prog_compiler_wl_F77='-Wl,'
14127 if test "$host_cpu" = ia64; then
14128 # AIX 5 now supports IA64 processor
14129 lt_prog_compiler_static_F77='-Bstatic'
14130 else
14131 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14132 fi
14133 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014134 darwin*)
14135 # PIC is the default on this platform
14136 # Common symbols not allowed in MH_DYLIB files
14137 case $cc_basename in
14138 xlc*)
14139 lt_prog_compiler_pic_F77='-qnocommon'
14140 lt_prog_compiler_wl_F77='-Wl,'
14141 ;;
14142 esac
14143 ;;
brynercb91a2f2006-08-25 21:14:45 +000014144
14145 mingw* | pw32* | os2*)
14146 # This hack is so that the source file can tell whether it is being
14147 # built for inclusion in a dll (and should export symbols for example).
14148 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14149 ;;
14150
14151 hpux9* | hpux10* | hpux11*)
14152 lt_prog_compiler_wl_F77='-Wl,'
14153 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14154 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000014155 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000014156 hppa*64*|ia64*)
14157 # +Z the default
14158 ;;
14159 *)
14160 lt_prog_compiler_pic_F77='+Z'
14161 ;;
14162 esac
14163 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14164 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14165 ;;
14166
14167 irix5* | irix6* | nonstopux*)
14168 lt_prog_compiler_wl_F77='-Wl,'
14169 # PIC (with -KPIC) is the default.
14170 lt_prog_compiler_static_F77='-non_shared'
14171 ;;
14172
14173 newsos6)
14174 lt_prog_compiler_pic_F77='-KPIC'
14175 lt_prog_compiler_static_F77='-Bstatic'
14176 ;;
14177
14178 linux*)
mmentovai8c2a4de2006-09-20 16:20:15 +000014179 case $cc_basename in
brynercb91a2f2006-08-25 21:14:45 +000014180 icc* | ecc*)
14181 lt_prog_compiler_wl_F77='-Wl,'
14182 lt_prog_compiler_pic_F77='-KPIC'
14183 lt_prog_compiler_static_F77='-static'
14184 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014185 pgcc* | pgf77* | pgf90* | pgf95*)
14186 # Portland Group compilers (*not* the Pentium gcc compiler,
14187 # which looks to be a dead project)
14188 lt_prog_compiler_wl_F77='-Wl,'
14189 lt_prog_compiler_pic_F77='-fpic'
14190 lt_prog_compiler_static_F77='-Bstatic'
14191 ;;
brynercb91a2f2006-08-25 21:14:45 +000014192 ccc*)
14193 lt_prog_compiler_wl_F77='-Wl,'
14194 # All Alpha code is PIC.
14195 lt_prog_compiler_static_F77='-non_shared'
14196 ;;
14197 esac
14198 ;;
14199
14200 osf3* | osf4* | osf5*)
14201 lt_prog_compiler_wl_F77='-Wl,'
14202 # All OSF/1 code is PIC.
14203 lt_prog_compiler_static_F77='-non_shared'
14204 ;;
14205
brynercb91a2f2006-08-25 21:14:45 +000014206 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000014207 lt_prog_compiler_pic_F77='-KPIC'
14208 lt_prog_compiler_static_F77='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +000014209 case $cc_basename in
14210 f77* | f90* | f95*)
14211 lt_prog_compiler_wl_F77='-Qoption ld ';;
14212 *)
14213 lt_prog_compiler_wl_F77='-Wl,';;
14214 esac
brynercb91a2f2006-08-25 21:14:45 +000014215 ;;
14216
14217 sunos4*)
14218 lt_prog_compiler_wl_F77='-Qoption ld '
14219 lt_prog_compiler_pic_F77='-PIC'
14220 lt_prog_compiler_static_F77='-Bstatic'
14221 ;;
14222
mmentovai8c2a4de2006-09-20 16:20:15 +000014223 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000014224 lt_prog_compiler_wl_F77='-Wl,'
14225 lt_prog_compiler_pic_F77='-KPIC'
14226 lt_prog_compiler_static_F77='-Bstatic'
14227 ;;
14228
14229 sysv4*MP*)
14230 if test -d /usr/nec ;then
14231 lt_prog_compiler_pic_F77='-Kconform_pic'
14232 lt_prog_compiler_static_F77='-Bstatic'
14233 fi
14234 ;;
14235
mmentovai8c2a4de2006-09-20 16:20:15 +000014236 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14237 lt_prog_compiler_wl_F77='-Wl,'
14238 lt_prog_compiler_pic_F77='-KPIC'
14239 lt_prog_compiler_static_F77='-Bstatic'
14240 ;;
14241
14242 unicos*)
14243 lt_prog_compiler_wl_F77='-Wl,'
14244 lt_prog_compiler_can_build_shared_F77=no
14245 ;;
14246
brynercb91a2f2006-08-25 21:14:45 +000014247 uts4*)
14248 lt_prog_compiler_pic_F77='-pic'
14249 lt_prog_compiler_static_F77='-Bstatic'
14250 ;;
14251
14252 *)
14253 lt_prog_compiler_can_build_shared_F77=no
14254 ;;
14255 esac
14256 fi
14257
mmentovai8c2a4de2006-09-20 16:20:15 +000014258{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14259echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014260
14261#
14262# Check to make sure the PIC flag actually works.
14263#
14264if test -n "$lt_prog_compiler_pic_F77"; then
14265
mmentovai8c2a4de2006-09-20 16:20:15 +000014266{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14267echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014268if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
14270else
14271 lt_prog_compiler_pic_works_F77=no
14272 ac_outfile=conftest.$ac_objext
14273 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14274 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14275 # Insert the option either (1) after the last *FLAGS variable, or
14276 # (2) before a word containing "conftest.", or (3) at the end.
14277 # Note that $ac_compile itself does not contain backslashes and begins
14278 # with a dollar sign (not a hyphen), so the echo should work correctly.
14279 # The option is referenced via a variable to avoid confusing sed.
14280 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000014281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000014282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14283 -e 's:$: $lt_compiler_flag:'`
mmentovai8c2a4de2006-09-20 16:20:15 +000014284 (eval echo "\"\$as_me:14284: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000014285 (eval "$lt_compile" 2>conftest.err)
14286 ac_status=$?
14287 cat conftest.err >&5
mmentovai8c2a4de2006-09-20 16:20:15 +000014288 echo "$as_me:14288: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000014289 if (exit $ac_status) && test -s "$ac_outfile"; then
14290 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000014291 # So say no if there are warnings other than the usual output.
14292 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14294 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000014295 lt_prog_compiler_pic_works_F77=yes
14296 fi
14297 fi
14298 $rm conftest*
14299
14300fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014301{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14302echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014303
14304if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14305 case $lt_prog_compiler_pic_F77 in
14306 "" | " "*) ;;
14307 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14308 esac
14309else
14310 lt_prog_compiler_pic_F77=
14311 lt_prog_compiler_can_build_shared_F77=no
14312fi
14313
14314fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014315case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000014316 # For platforms which do not support PIC, -DPIC is meaningless:
14317 *djgpp*)
14318 lt_prog_compiler_pic_F77=
14319 ;;
14320 *)
14321 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14322 ;;
14323esac
14324
mmentovai8c2a4de2006-09-20 16:20:15 +000014325#
14326# Check to make sure the static flag actually works.
14327#
14328wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14329{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14330echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14331if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14332 echo $ECHO_N "(cached) $ECHO_C" >&6
14333else
14334 lt_prog_compiler_static_works_F77=no
14335 save_LDFLAGS="$LDFLAGS"
14336 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14337 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14338 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14339 # The linker can only warn and ignore the option if not recognized
14340 # So say no if there are warnings
14341 if test -s conftest.err; then
14342 # Append any errors to the config.log.
14343 cat conftest.err 1>&5
14344 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14346 if diff conftest.exp conftest.er2 >/dev/null; then
14347 lt_prog_compiler_static_works_F77=yes
14348 fi
14349 else
14350 lt_prog_compiler_static_works_F77=yes
14351 fi
14352 fi
14353 $rm conftest*
14354 LDFLAGS="$save_LDFLAGS"
14355
14356fi
14357{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14358echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14359
14360if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14361 :
14362else
14363 lt_prog_compiler_static_F77=
14364fi
14365
14366
14367{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14368echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014369if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14371else
14372 lt_cv_prog_compiler_c_o_F77=no
14373 $rm -r conftest 2>/dev/null
14374 mkdir conftest
14375 cd conftest
14376 mkdir out
14377 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14378
14379 lt_compiler_flag="-o out/conftest2.$ac_objext"
14380 # Insert the option either (1) after the last *FLAGS variable, or
14381 # (2) before a word containing "conftest.", or (3) at the end.
14382 # Note that $ac_compile itself does not contain backslashes and begins
14383 # with a dollar sign (not a hyphen), so the echo should work correctly.
14384 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000014385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000014386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14387 -e 's:$: $lt_compiler_flag:'`
mmentovai8c2a4de2006-09-20 16:20:15 +000014388 (eval echo "\"\$as_me:14388: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000014389 (eval "$lt_compile" 2>out/conftest.err)
14390 ac_status=$?
14391 cat out/conftest.err >&5
mmentovai8c2a4de2006-09-20 16:20:15 +000014392 echo "$as_me:14392: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000014393 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14394 then
14395 # The compiler can only warn and ignore the option if not recognized
14396 # So say no if there are warnings
mmentovai8c2a4de2006-09-20 16:20:15 +000014397 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14398 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14399 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000014400 lt_cv_prog_compiler_c_o_F77=yes
14401 fi
14402 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014403 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +000014404 $rm conftest*
14405 # SGI C++ compiler will create directory out/ii_files/ for
14406 # template instantiation
14407 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14408 $rm out/* && rmdir out
14409 cd ..
14410 rmdir conftest
14411 $rm conftest*
14412
14413fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014414{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14415echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014416
14417
14418hard_links="nottested"
14419if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14420 # do not overwrite the value of need_locks provided by the user
mmentovai8c2a4de2006-09-20 16:20:15 +000014421 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14422echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014423 hard_links=yes
14424 $rm conftest*
14425 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14426 touch conftest.a
14427 ln conftest.a conftest.b 2>&5 || hard_links=no
14428 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mmentovai8c2a4de2006-09-20 16:20:15 +000014429 { echo "$as_me:$LINENO: result: $hard_links" >&5
14430echo "${ECHO_T}$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014431 if test "$hard_links" = no; then
14432 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14433echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14434 need_locks=warn
14435 fi
14436else
14437 need_locks=no
14438fi
14439
mmentovai8c2a4de2006-09-20 16:20:15 +000014440{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14441echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014442
14443 runpath_var=
14444 allow_undefined_flag_F77=
14445 enable_shared_with_static_runtimes_F77=no
14446 archive_cmds_F77=
14447 archive_expsym_cmds_F77=
14448 old_archive_From_new_cmds_F77=
14449 old_archive_from_expsyms_cmds_F77=
14450 export_dynamic_flag_spec_F77=
14451 whole_archive_flag_spec_F77=
14452 thread_safe_flag_spec_F77=
14453 hardcode_libdir_flag_spec_F77=
14454 hardcode_libdir_flag_spec_ld_F77=
14455 hardcode_libdir_separator_F77=
14456 hardcode_direct_F77=no
14457 hardcode_minus_L_F77=no
14458 hardcode_shlibpath_var_F77=unsupported
14459 link_all_deplibs_F77=unknown
14460 hardcode_automatic_F77=no
14461 module_cmds_F77=
14462 module_expsym_cmds_F77=
14463 always_export_symbols_F77=no
14464 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14465 # include_expsyms should be a list of space-separated symbols to be *always*
14466 # included in the symbol list
14467 include_expsyms_F77=
14468 # exclude_expsyms can be an extended regexp of symbols to exclude
14469 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14470 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14471 # as well as any symbol that contains `d'.
14472 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14473 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14474 # platforms (ab)use it in PIC code, but their linkers get confused if
14475 # the symbol is explicitly referenced. Since portable code cannot
14476 # rely on this symbol name, it's probably fine to never include it in
14477 # preloaded symbol tables.
14478 extract_expsyms_cmds=
mmentovai8c2a4de2006-09-20 16:20:15 +000014479 # Just being paranoid about ensuring that cc_basename is set.
14480 for cc_temp in $compiler""; do
14481 case $cc_temp in
14482 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14483 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14484 \-*) ;;
14485 *) break;;
14486 esac
14487done
14488cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +000014489
14490 case $host_os in
14491 cygwin* | mingw* | pw32*)
14492 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14493 # When not using gcc, we currently assume that we are using
14494 # Microsoft Visual C++.
14495 if test "$GCC" != yes; then
14496 with_gnu_ld=no
14497 fi
14498 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014499 interix*)
14500 # we just hope/assume this is gcc and not c89 (= MSVC++)
14501 with_gnu_ld=yes
14502 ;;
brynercb91a2f2006-08-25 21:14:45 +000014503 openbsd*)
14504 with_gnu_ld=no
14505 ;;
14506 esac
14507
14508 ld_shlibs_F77=yes
14509 if test "$with_gnu_ld" = yes; then
14510 # If archive_cmds runs LD, not CC, wlarc should be empty
14511 wlarc='${wl}'
14512
mmentovai8c2a4de2006-09-20 16:20:15 +000014513 # Set some defaults for GNU ld with shared library support. These
14514 # are reset later if shared libraries are not supported. Putting them
14515 # here allows them to be overridden if necessary.
14516 runpath_var=LD_RUN_PATH
14517 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14518 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14519 # ancient GNU ld didn't support --whole-archive et. al.
14520 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14521 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14522 else
14523 whole_archive_flag_spec_F77=
14524 fi
14525 supports_anon_versioning=no
14526 case `$LD -v 2>/dev/null` in
14527 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14528 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14529 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14530 *\ 2.11.*) ;; # other 2.11 versions
14531 *) supports_anon_versioning=yes ;;
14532 esac
14533
brynercb91a2f2006-08-25 21:14:45 +000014534 # See if GNU ld supports shared libraries.
14535 case $host_os in
14536 aix3* | aix4* | aix5*)
14537 # On AIX/PPC, the GNU linker is very broken
14538 if test "$host_cpu" != ia64; then
14539 ld_shlibs_F77=no
14540 cat <<EOF 1>&2
14541
14542*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14543*** to be unable to reliably create shared libraries on AIX.
14544*** Therefore, libtool is disabling shared libraries support. If you
14545*** really care for shared libraries, you may want to modify your PATH
14546*** so that a non-GNU linker is found, and then restart.
14547
14548EOF
14549 fi
14550 ;;
14551
14552 amigaos*)
14553 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)'
14554 hardcode_libdir_flag_spec_F77='-L$libdir'
14555 hardcode_minus_L_F77=yes
14556
14557 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14558 # that the semantics of dynamic libraries on AmigaOS, at least up
14559 # to version 4, is to share data among multiple programs linked
14560 # with the same dynamic library. Since this doesn't match the
14561 # behavior of shared libraries on other platforms, we can't use
14562 # them.
14563 ld_shlibs_F77=no
14564 ;;
14565
14566 beos*)
14567 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14568 allow_undefined_flag_F77=unsupported
14569 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14570 # support --undefined. This deserves some investigation. FIXME
14571 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14572 else
14573 ld_shlibs_F77=no
14574 fi
14575 ;;
14576
14577 cygwin* | mingw* | pw32*)
14578 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14579 # as there is no search path for DLLs.
14580 hardcode_libdir_flag_spec_F77='-L$libdir'
14581 allow_undefined_flag_F77=unsupported
14582 always_export_symbols_F77=no
14583 enable_shared_with_static_runtimes_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014584 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 +000014585
14586 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000014587 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 +000014588 # If the export-symbols file already is a .def file (1st line
14589 # is EXPORTS), use it as is; otherwise, prepend...
14590 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14591 cp $export_symbols $output_objdir/$soname.def;
14592 else
14593 echo EXPORTS > $output_objdir/$soname.def;
14594 cat $export_symbols >> $output_objdir/$soname.def;
14595 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +000014596 $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 +000014597 else
mmentovai8c2a4de2006-09-20 16:20:15 +000014598 ld_shlibs_F77=no
brynercb91a2f2006-08-25 21:14:45 +000014599 fi
14600 ;;
14601
mmentovai8c2a4de2006-09-20 16:20:15 +000014602 interix3*)
14603 hardcode_direct_F77=no
14604 hardcode_shlibpath_var_F77=no
14605 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14606 export_dynamic_flag_spec_F77='${wl}-E'
14607 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14608 # Instead, shared libraries are loaded at an image base (0x10000000 by
14609 # default) and relocated if they conflict, which is a slow very memory
14610 # consuming and fragmenting process. To avoid this, we pick a random,
14611 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14612 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14613 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'
14614 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'
14615 ;;
14616
14617 linux*)
14618 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14619 tmp_addflag=
14620 case $cc_basename,$host_cpu in
14621 pgcc*) # Portland Group C compiler
14622 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'
14623 tmp_addflag=' $pic_flag'
14624 ;;
14625 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
14628 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14629 tmp_addflag=' -i_dynamic' ;;
14630 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14631 tmp_addflag=' -i_dynamic -nofor_main' ;;
14632 ifc* | ifort*) # Intel Fortran compiler
14633 tmp_addflag=' -nofor_main' ;;
14634 esac
14635 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14636
14637 if test $supports_anon_versioning = yes; then
14638 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14639 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14640 $echo "local: *; };" >> $output_objdir/$libname.ver~
14641 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14642 fi
14643 else
14644 ld_shlibs_F77=no
14645 fi
14646 ;;
14647
14648 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000014649 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14650 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14651 wlarc=
14652 else
14653 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14654 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14655 fi
14656 ;;
14657
mmentovai8c2a4de2006-09-20 16:20:15 +000014658 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000014659 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14660 ld_shlibs_F77=no
14661 cat <<EOF 1>&2
14662
14663*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14664*** create shared libraries on Solaris systems. Therefore, libtool
14665*** is disabling shared libraries support. We urge you to upgrade GNU
14666*** binutils to release 2.9.1 or newer. Another option is to modify
14667*** your PATH or compiler configuration so that the native linker is
14668*** used, and then restart.
14669
14670EOF
14671 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14672 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14673 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14674 else
14675 ld_shlibs_F77=no
14676 fi
14677 ;;
14678
mmentovai8c2a4de2006-09-20 16:20:15 +000014679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14680 case `$LD -v 2>&1` in
14681 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14682 ld_shlibs_F77=no
14683 cat <<_LT_EOF 1>&2
14684
14685*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14686*** reliably create shared libraries on SCO systems. Therefore, libtool
14687*** is disabling shared libraries support. We urge you to upgrade GNU
14688*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14689*** your PATH or compiler configuration so that the native linker is
14690*** used, and then restart.
14691
14692_LT_EOF
14693 ;;
14694 *)
14695 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14696 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14697 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14698 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14699 else
14700 ld_shlibs_F77=no
14701 fi
14702 ;;
14703 esac
14704 ;;
14705
brynercb91a2f2006-08-25 21:14:45 +000014706 sunos4*)
14707 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14708 wlarc=
14709 hardcode_direct_F77=yes
14710 hardcode_shlibpath_var_F77=no
14711 ;;
14712
brynercb91a2f2006-08-25 21:14:45 +000014713 *)
14714 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14715 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14716 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14717 else
14718 ld_shlibs_F77=no
14719 fi
14720 ;;
14721 esac
14722
mmentovai8c2a4de2006-09-20 16:20:15 +000014723 if test "$ld_shlibs_F77" = no; then
14724 runpath_var=
14725 hardcode_libdir_flag_spec_F77=
14726 export_dynamic_flag_spec_F77=
14727 whole_archive_flag_spec_F77=
brynercb91a2f2006-08-25 21:14:45 +000014728 fi
14729 else
14730 # PORTME fill in a description of your system's linker (not GNU ld)
14731 case $host_os in
14732 aix3*)
14733 allow_undefined_flag_F77=unsupported
14734 always_export_symbols_F77=yes
14735 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'
14736 # Note: this linker hardcodes the directories in LIBPATH if there
14737 # are no directories specified by -L.
14738 hardcode_minus_L_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014739 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +000014740 # Neither direct hardcoding nor static linking is supported with a
14741 # broken collect2.
14742 hardcode_direct_F77=unsupported
14743 fi
14744 ;;
14745
14746 aix4* | aix5*)
14747 if test "$host_cpu" = ia64; then
14748 # On IA64, the linker does run time linking by default, so we don't
14749 # have to do anything special.
14750 aix_use_runtimelinking=no
14751 exp_sym_flag='-Bexport'
14752 no_entry_flag=""
14753 else
14754 # If we're using GNU nm, then we don't want the "-C" option.
14755 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14756 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14757 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'
14758 else
14759 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'
14760 fi
14761 aix_use_runtimelinking=no
14762
14763 # Test if we are trying to use run time linking or normal
14764 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14765 # need to do runtime linking.
14766 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14767 for ld_flag in $LDFLAGS; do
14768 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14769 aix_use_runtimelinking=yes
14770 break
14771 fi
14772 done
mmentovai8c2a4de2006-09-20 16:20:15 +000014773 ;;
brynercb91a2f2006-08-25 21:14:45 +000014774 esac
14775
14776 exp_sym_flag='-bexport'
14777 no_entry_flag='-bnoentry'
14778 fi
14779
14780 # When large executables or shared objects are built, AIX ld can
14781 # have problems creating the table of contents. If linking a library
14782 # or program results in "error TOC overflow" add -mminimal-toc to
14783 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14784 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14785
14786 archive_cmds_F77=''
14787 hardcode_direct_F77=yes
14788 hardcode_libdir_separator_F77=':'
14789 link_all_deplibs_F77=yes
14790
14791 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000014792 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +000014793 # We only want to do this on AIX 4.2 and lower, the check
14794 # below for broken collect2 doesn't work under 4.3+
14795 collect2name=`${CC} -print-prog-name=collect2`
14796 if test -f "$collect2name" && \
14797 strings "$collect2name" | grep resolve_lib_name >/dev/null
14798 then
14799 # We have reworked collect2
14800 hardcode_direct_F77=yes
14801 else
14802 # We have old collect2
14803 hardcode_direct_F77=unsupported
14804 # It fails to find uninstalled libraries when the uninstalled
14805 # path is not listed in the libpath. Setting hardcode_minus_L
14806 # to unsupported forces relinking
14807 hardcode_minus_L_F77=yes
14808 hardcode_libdir_flag_spec_F77='-L$libdir'
14809 hardcode_libdir_separator_F77=
14810 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014811 ;;
brynercb91a2f2006-08-25 21:14:45 +000014812 esac
14813 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +000014814 if test "$aix_use_runtimelinking" = yes; then
14815 shared_flag="$shared_flag "'${wl}-G'
14816 fi
brynercb91a2f2006-08-25 21:14:45 +000014817 else
14818 # not using gcc
14819 if test "$host_cpu" = ia64; then
14820 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14821 # chokes on -Wl,-G. The following line is correct:
14822 shared_flag='-G'
14823 else
mmentovai8c2a4de2006-09-20 16:20:15 +000014824 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000014825 shared_flag='${wl}-G'
14826 else
14827 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +000014828 fi
brynercb91a2f2006-08-25 21:14:45 +000014829 fi
14830 fi
14831
14832 # It seems that -bexpall does not export symbols beginning with
14833 # underscore (_), so it is better to generate a list of symbols to export.
14834 always_export_symbols_F77=yes
14835 if test "$aix_use_runtimelinking" = yes; then
14836 # Warning - without using the other runtime loading flags (-brtl),
14837 # -berok will link without error, but may produce a broken library.
14838 allow_undefined_flag_F77='-berok'
14839 # Determine the default libpath from the value encoded in an empty executable.
14840 cat >conftest.$ac_ext <<_ACEOF
14841 program main
14842
14843 end
14844_ACEOF
14845rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000014846if { (ac_try="$ac_link"
14847case "(($ac_try" in
14848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14849 *) ac_try_echo=$ac_try;;
14850esac
14851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14852 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000014853 ac_status=$?
14854 grep -v '^ *+' conftest.er1 >conftest.err
14855 rm -f conftest.er1
14856 cat conftest.err >&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000014859 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14860 { (case "(($ac_try" in
14861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14862 *) ac_try_echo=$ac_try;;
14863esac
14864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14865 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000014866 ac_status=$?
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); }; } &&
14869 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000014870 { (case "(($ac_try" in
14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872 *) ac_try_echo=$ac_try;;
14873esac
14874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000014876 ac_status=$?
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14879
14880aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14881}'`
14882# Check for a 64-bit object if we didn't find anything.
14883if 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; }
14884}'`; fi
14885else
14886 echo "$as_me: failed program was:" >&5
14887sed 's/^/| /' conftest.$ac_ext >&5
14888
mmentovai8c2a4de2006-09-20 16:20:15 +000014889
brynercb91a2f2006-08-25 21:14:45 +000014890fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014891
14892rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000014893 conftest$ac_exeext conftest.$ac_ext
14894if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14895
14896 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
mmentovai8c2a4de2006-09-20 16:20:15 +000014897 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 +000014898 else
14899 if test "$host_cpu" = ia64; then
14900 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14901 allow_undefined_flag_F77="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +000014902 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 +000014903 else
14904 # Determine the default libpath from the value encoded in an empty executable.
14905 cat >conftest.$ac_ext <<_ACEOF
14906 program main
14907
14908 end
14909_ACEOF
14910rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000014911if { (ac_try="$ac_link"
14912case "(($ac_try" in
14913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914 *) ac_try_echo=$ac_try;;
14915esac
14916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000014918 ac_status=$?
14919 grep -v '^ *+' conftest.er1 >conftest.err
14920 rm -f conftest.er1
14921 cat conftest.err >&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000014924 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14925 { (case "(($ac_try" in
14926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14927 *) ac_try_echo=$ac_try;;
14928esac
14929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14930 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000014931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; } &&
14934 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000014935 { (case "(($ac_try" in
14936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14937 *) ac_try_echo=$ac_try;;
14938esac
14939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000014941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; }; then
14944
14945aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14946}'`
14947# Check for a 64-bit object if we didn't find anything.
14948if 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; }
14949}'`; fi
14950else
14951 echo "$as_me: failed program was:" >&5
14952sed 's/^/| /' conftest.$ac_ext >&5
14953
mmentovai8c2a4de2006-09-20 16:20:15 +000014954
brynercb91a2f2006-08-25 21:14:45 +000014955fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014956
14957rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000014958 conftest$ac_exeext conftest.$ac_ext
14959if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14960
14961 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14962 # Warning - without using the other run time loading flags,
14963 # -berok will link without error, but may produce a broken library.
14964 no_undefined_flag_F77=' ${wl}-bernotok'
14965 allow_undefined_flag_F77=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +000014966 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +000014967 whole_archive_flag_spec_F77='$convenience'
brynercb91a2f2006-08-25 21:14:45 +000014968 archive_cmds_need_lc_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014969 # This is similar to how AIX traditionally builds its shared libraries.
14970 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 +000014971 fi
14972 fi
14973 ;;
14974
14975 amigaos*)
14976 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)'
14977 hardcode_libdir_flag_spec_F77='-L$libdir'
14978 hardcode_minus_L_F77=yes
14979 # see comment about different semantics on the GNU ld section
14980 ld_shlibs_F77=no
14981 ;;
14982
mmentovai8c2a4de2006-09-20 16:20:15 +000014983 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000014984 export_dynamic_flag_spec_F77=-rdynamic
14985 ;;
14986
14987 cygwin* | mingw* | pw32*)
14988 # When not using gcc, we currently assume that we are using
14989 # Microsoft Visual C++.
14990 # hardcode_libdir_flag_spec is actually meaningless, as there is
14991 # no search path for DLLs.
14992 hardcode_libdir_flag_spec_F77=' '
14993 allow_undefined_flag_F77=unsupported
14994 # Tell ltmain to make .lib files, not .a files.
14995 libext=lib
14996 # Tell ltmain to make .dll files, not .so files.
14997 shrext_cmds=".dll"
14998 # FIXME: Setting linknames here is a bad hack.
14999 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15000 # The linker will automatically build a .lib file if we build a DLL.
15001 old_archive_From_new_cmds_F77='true'
15002 # FIXME: Should let the user specify the lib program.
15003 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
mmentovai8c2a4de2006-09-20 16:20:15 +000015004 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
brynercb91a2f2006-08-25 21:14:45 +000015005 enable_shared_with_static_runtimes_F77=yes
15006 ;;
15007
15008 darwin* | rhapsody*)
mmentovai8c2a4de2006-09-20 16:20:15 +000015009 case $host_os in
15010 rhapsody* | darwin1.[012])
15011 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15012 ;;
15013 *) # Darwin 1.3 on
15014 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15015 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15016 else
15017 case ${MACOSX_DEPLOYMENT_TARGET} in
15018 10.[012])
15019 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15020 ;;
15021 10.*)
15022 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15023 ;;
15024 esac
15025 fi
15026 ;;
brynerd5e66382006-09-08 02:35:53 +000015027 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000015028 archive_cmds_need_lc_F77=no
brynercb91a2f2006-08-25 21:14:45 +000015029 hardcode_direct_F77=no
15030 hardcode_automatic_F77=yes
15031 hardcode_shlibpath_var_F77=unsupported
mmentovai8c2a4de2006-09-20 16:20:15 +000015032 whole_archive_flag_spec_F77=''
brynercb91a2f2006-08-25 21:14:45 +000015033 link_all_deplibs_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000015034 if test "$GCC" = yes ; then
15035 output_verbose_link_cmd='echo'
15036 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15037 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15038 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15039 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}'
15040 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 +000015041 else
mmentovai8c2a4de2006-09-20 16:20:15 +000015042 case $cc_basename in
15043 xlc*)
15044 output_verbose_link_cmd='echo'
15045 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15046 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15047 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15048 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}'
15049 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}'
15050 ;;
15051 *)
15052 ld_shlibs_F77=no
15053 ;;
15054 esac
brynercb91a2f2006-08-25 21:14:45 +000015055 fi
15056 ;;
15057
15058 dgux*)
15059 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15060 hardcode_libdir_flag_spec_F77='-L$libdir'
15061 hardcode_shlibpath_var_F77=no
15062 ;;
15063
15064 freebsd1*)
15065 ld_shlibs_F77=no
15066 ;;
15067
15068 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15069 # support. Future versions do this automatically, but an explicit c++rt0.o
15070 # does not break anything, and helps significantly (at the cost of a little
15071 # extra space).
15072 freebsd2.2*)
15073 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15074 hardcode_libdir_flag_spec_F77='-R$libdir'
15075 hardcode_direct_F77=yes
15076 hardcode_shlibpath_var_F77=no
15077 ;;
15078
15079 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15080 freebsd2*)
15081 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15082 hardcode_direct_F77=yes
15083 hardcode_minus_L_F77=yes
15084 hardcode_shlibpath_var_F77=no
15085 ;;
15086
15087 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mmentovai8c2a4de2006-09-20 16:20:15 +000015088 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000015089 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15090 hardcode_libdir_flag_spec_F77='-R$libdir'
15091 hardcode_direct_F77=yes
15092 hardcode_shlibpath_var_F77=no
15093 ;;
15094
15095 hpux9*)
15096 if test "$GCC" = yes; then
15097 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'
15098 else
15099 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'
15100 fi
15101 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15102 hardcode_libdir_separator_F77=:
15103 hardcode_direct_F77=yes
15104
15105 # hardcode_minus_L: Not really in the search PATH,
15106 # but as the default location of the library.
15107 hardcode_minus_L_F77=yes
15108 export_dynamic_flag_spec_F77='${wl}-E'
15109 ;;
15110
mmentovai8c2a4de2006-09-20 16:20:15 +000015111 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +000015112 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015113 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15114 else
15115 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15116 fi
15117 if test "$with_gnu_ld" = no; then
15118 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15119 hardcode_libdir_separator_F77=:
15120
15121 hardcode_direct_F77=yes
15122 export_dynamic_flag_spec_F77='${wl}-E'
15123
15124 # hardcode_minus_L: Not really in the search PATH,
15125 # but as the default location of the library.
15126 hardcode_minus_L_F77=yes
15127 fi
15128 ;;
15129
15130 hpux11*)
15131 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15132 case $host_cpu in
15133 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +000015134 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15135 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015136 ia64*)
15137 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15138 ;;
brynercb91a2f2006-08-25 21:14:45 +000015139 *)
15140 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15141 ;;
15142 esac
15143 else
mmentovai8c2a4de2006-09-20 16:20:15 +000015144 case $host_cpu in
15145 hppa*64*)
15146 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15147 ;;
15148 ia64*)
15149 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000015150 ;;
15151 *)
mmentovai8c2a4de2006-09-20 16:20:15 +000015152 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 +000015153 ;;
15154 esac
15155 fi
15156 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015157 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15158 hardcode_libdir_separator_F77=:
brynerd5e66382006-09-08 02:35:53 +000015159
mmentovai8c2a4de2006-09-20 16:20:15 +000015160 case $host_cpu in
15161 hppa*64*|ia64*)
15162 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15163 hardcode_direct_F77=no
15164 hardcode_shlibpath_var_F77=no
brynerd5e66382006-09-08 02:35:53 +000015165 ;;
brynercb91a2f2006-08-25 21:14:45 +000015166 *)
brynercb91a2f2006-08-25 21:14:45 +000015167 hardcode_direct_F77=yes
15168 export_dynamic_flag_spec_F77='${wl}-E'
15169
15170 # hardcode_minus_L: Not really in the search PATH,
15171 # but as the default location of the library.
15172 hardcode_minus_L_F77=yes
15173 ;;
15174 esac
15175 fi
15176 ;;
15177
15178 irix5* | irix6* | nonstopux*)
15179 if test "$GCC" = yes; then
15180 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'
15181 else
15182 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'
15183 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15184 fi
15185 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15186 hardcode_libdir_separator_F77=:
15187 link_all_deplibs_F77=yes
15188 ;;
15189
mmentovai8c2a4de2006-09-20 16:20:15 +000015190 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000015191 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15192 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15193 else
15194 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15195 fi
15196 hardcode_libdir_flag_spec_F77='-R$libdir'
15197 hardcode_direct_F77=yes
15198 hardcode_shlibpath_var_F77=no
15199 ;;
15200
15201 newsos6)
15202 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15203 hardcode_direct_F77=yes
15204 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15205 hardcode_libdir_separator_F77=:
15206 hardcode_shlibpath_var_F77=no
15207 ;;
15208
15209 openbsd*)
15210 hardcode_direct_F77=yes
15211 hardcode_shlibpath_var_F77=no
15212 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15213 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +000015214 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 +000015215 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15216 export_dynamic_flag_spec_F77='${wl}-E'
15217 else
15218 case $host_os in
15219 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15220 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15221 hardcode_libdir_flag_spec_F77='-R$libdir'
15222 ;;
15223 *)
15224 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15225 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15226 ;;
15227 esac
15228 fi
15229 ;;
15230
15231 os2*)
15232 hardcode_libdir_flag_spec_F77='-L$libdir'
15233 hardcode_minus_L_F77=yes
15234 allow_undefined_flag_F77=unsupported
15235 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'
15236 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15237 ;;
15238
15239 osf3*)
15240 if test "$GCC" = yes; then
15241 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15242 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'
15243 else
15244 allow_undefined_flag_F77=' -expect_unresolved \*'
15245 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'
15246 fi
15247 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15248 hardcode_libdir_separator_F77=:
15249 ;;
15250
15251 osf4* | osf5*) # as osf3* with the addition of -msym flag
15252 if test "$GCC" = yes; then
15253 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15254 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'
15255 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15256 else
15257 allow_undefined_flag_F77=' -expect_unresolved \*'
15258 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'
15259 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 +000015260 $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 +000015261
15262 # Both c and cxx compiler support -rpath directly
15263 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15264 fi
15265 hardcode_libdir_separator_F77=:
15266 ;;
15267
brynercb91a2f2006-08-25 21:14:45 +000015268 solaris*)
15269 no_undefined_flag_F77=' -z text'
15270 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015271 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +000015272 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15273 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15274 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15275 else
mmentovai8c2a4de2006-09-20 16:20:15 +000015276 wlarc=''
brynercb91a2f2006-08-25 21:14:45 +000015277 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15278 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15279 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15280 fi
15281 hardcode_libdir_flag_spec_F77='-R$libdir'
15282 hardcode_shlibpath_var_F77=no
15283 case $host_os in
15284 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015285 *)
15286 # The compiler driver will combine linker options so we
15287 # cannot just pass the convience library names through
15288 # without $wl, iff we do not link with $LD.
15289 # Luckily, gcc supports the same syntax we need for Sun Studio.
15290 # Supported since Solaris 2.6 (maybe 2.5.1?)
15291 case $wlarc in
15292 '')
15293 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15294 *)
15295 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' ;;
15296 esac ;;
brynercb91a2f2006-08-25 21:14:45 +000015297 esac
15298 link_all_deplibs_F77=yes
15299 ;;
15300
15301 sunos4*)
15302 if test "x$host_vendor" = xsequent; then
15303 # Use $CC to link under sequent, because it throws in some extra .o
15304 # files that make .init and .fini sections work.
15305 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15306 else
15307 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15308 fi
15309 hardcode_libdir_flag_spec_F77='-L$libdir'
15310 hardcode_direct_F77=yes
15311 hardcode_minus_L_F77=yes
15312 hardcode_shlibpath_var_F77=no
15313 ;;
15314
15315 sysv4)
15316 case $host_vendor in
15317 sni)
15318 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15319 hardcode_direct_F77=yes # is this really true???
15320 ;;
15321 siemens)
15322 ## LD is ld it makes a PLAMLIB
15323 ## CC just makes a GrossModule.
15324 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15325 reload_cmds_F77='$CC -r -o $output$reload_objs'
15326 hardcode_direct_F77=no
15327 ;;
15328 motorola)
15329 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15330 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15331 ;;
15332 esac
15333 runpath_var='LD_RUN_PATH'
15334 hardcode_shlibpath_var_F77=no
15335 ;;
15336
15337 sysv4.3*)
15338 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15339 hardcode_shlibpath_var_F77=no
15340 export_dynamic_flag_spec_F77='-Bexport'
15341 ;;
15342
15343 sysv4*MP*)
15344 if test -d /usr/nec; then
15345 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15346 hardcode_shlibpath_var_F77=no
15347 runpath_var=LD_RUN_PATH
15348 hardcode_runpath_var=yes
15349 ld_shlibs_F77=yes
15350 fi
15351 ;;
15352
mmentovai8c2a4de2006-09-20 16:20:15 +000015353 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15354 no_undefined_flag_F77='${wl}-z,text'
15355 archive_cmds_need_lc_F77=no
brynercb91a2f2006-08-25 21:14:45 +000015356 hardcode_shlibpath_var_F77=no
mmentovai8c2a4de2006-09-20 16:20:15 +000015357 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +000015358
mmentovai3261e8b2006-09-06 02:56:44 +000015359 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015360 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15361 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 +000015362 else
mmentovai8c2a4de2006-09-20 16:20:15 +000015363 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15364 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 +000015365 fi
brynerd5e66382006-09-08 02:35:53 +000015366 ;;
15367
mmentovai8c2a4de2006-09-20 16:20:15 +000015368 sysv5* | sco3.2v5* | sco5v6*)
15369 # Note: We can NOT use -z defs as we might desire, because we do not
15370 # link with -lc, and that would cause any symbols used from libc to
15371 # always be unresolved, which means just about no library would
15372 # ever link correctly. If we're not using GNU ld we use -z text
15373 # though, which does catch some bad symbols but isn't as heavy-handed
15374 # as -z defs.
15375 no_undefined_flag_F77='${wl}-z,text'
15376 allow_undefined_flag_F77='${wl}-z,nodefs'
15377 archive_cmds_need_lc_F77=no
brynerd5e66382006-09-08 02:35:53 +000015378 hardcode_shlibpath_var_F77=no
mmentovai8c2a4de2006-09-20 16:20:15 +000015379 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15380 hardcode_libdir_separator_F77=':'
15381 link_all_deplibs_F77=yes
15382 export_dynamic_flag_spec_F77='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +000015383 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +000015384
15385 if test "$GCC" = yes; then
15386 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15387 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15388 else
15389 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15390 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15391 fi
brynercb91a2f2006-08-25 21:14:45 +000015392 ;;
15393
15394 uts4*)
15395 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15396 hardcode_libdir_flag_spec_F77='-L$libdir'
15397 hardcode_shlibpath_var_F77=no
15398 ;;
15399
15400 *)
15401 ld_shlibs_F77=no
15402 ;;
15403 esac
15404 fi
15405
mmentovai8c2a4de2006-09-20 16:20:15 +000015406{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15407echo "${ECHO_T}$ld_shlibs_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015408test "$ld_shlibs_F77" = no && can_build_shared=no
15409
brynercb91a2f2006-08-25 21:14:45 +000015410#
15411# Do we need to explicitly link libc?
15412#
15413case "x$archive_cmds_need_lc_F77" in
15414x|xyes)
15415 # Assume -lc should be added
15416 archive_cmds_need_lc_F77=yes
15417
15418 if test "$enable_shared" = yes && test "$GCC" = yes; then
15419 case $archive_cmds_F77 in
15420 *'~'*)
15421 # FIXME: we may have to deal with multi-command sequences.
15422 ;;
15423 '$CC '*)
15424 # Test whether the compiler implicitly links with -lc since on some
15425 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15426 # to ld, don't add -lc before -lgcc.
mmentovai8c2a4de2006-09-20 16:20:15 +000015427 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15428echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015429 $rm conftest*
15430 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15431
15432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15433 (eval $ac_compile) 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } 2>conftest.err; then
15437 soname=conftest
15438 lib=conftest
15439 libobjs=conftest.$ac_objext
15440 deplibs=
15441 wl=$lt_prog_compiler_wl_F77
mmentovai8c2a4de2006-09-20 16:20:15 +000015442 pic_flag=$lt_prog_compiler_pic_F77
brynercb91a2f2006-08-25 21:14:45 +000015443 compiler_flags=-v
15444 linker_flags=-v
15445 verstring=
15446 output_objdir=.
15447 libname=conftest
15448 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15449 allow_undefined_flag_F77=
15450 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15451 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15452 ac_status=$?
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }
15455 then
15456 archive_cmds_need_lc_F77=no
15457 else
15458 archive_cmds_need_lc_F77=yes
15459 fi
15460 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15461 else
15462 cat conftest.err 1>&5
15463 fi
15464 $rm conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000015465 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15466echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015467 ;;
15468 esac
15469 fi
15470 ;;
15471esac
15472
mmentovai8c2a4de2006-09-20 16:20:15 +000015473{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15474echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015475library_names_spec=
15476libname_spec='lib$name'
15477soname_spec=
15478shrext_cmds=".so"
15479postinstall_cmds=
15480postuninstall_cmds=
15481finish_cmds=
15482finish_eval=
15483shlibpath_var=
15484shlibpath_overrides_runpath=unknown
15485version_type=none
15486dynamic_linker="$host_os ld.so"
15487sys_lib_dlsearch_path_spec="/lib /usr/lib"
15488if test "$GCC" = yes; then
15489 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15490 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15491 # if the path contains ";" then we assume it to be the separator
15492 # otherwise default to the standard path separator (i.e. ":") - it is
15493 # assumed that no part of a normal pathname contains ";" but that should
15494 # okay in the real world where ";" in dirpaths is itself problematic.
15495 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15496 else
15497 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15498 fi
15499else
15500 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15501fi
15502need_lib_prefix=unknown
15503hardcode_into_libs=no
15504
15505# when you set need_version to no, make sure it does not cause -set_version
15506# flags to be left without arguments
15507need_version=unknown
15508
15509case $host_os in
15510aix3*)
15511 version_type=linux
15512 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15513 shlibpath_var=LIBPATH
15514
15515 # AIX 3 has no versioning support, so we append a major version to the name.
15516 soname_spec='${libname}${release}${shared_ext}$major'
15517 ;;
15518
15519aix4* | aix5*)
15520 version_type=linux
15521 need_lib_prefix=no
15522 need_version=no
15523 hardcode_into_libs=yes
15524 if test "$host_cpu" = ia64; then
15525 # AIX 5 supports IA64
15526 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15527 shlibpath_var=LD_LIBRARY_PATH
15528 else
15529 # With GCC up to 2.95.x, collect2 would create an import file
15530 # for dependence libraries. The import file would start with
15531 # the line `#! .'. This would cause the generated library to
15532 # depend on `.', always an invalid library. This was fixed in
15533 # development snapshots of GCC prior to 3.0.
15534 case $host_os in
15535 aix4 | aix4.[01] | aix4.[01].*)
15536 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15537 echo ' yes '
15538 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15539 :
15540 else
15541 can_build_shared=no
15542 fi
15543 ;;
15544 esac
15545 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15546 # soname into executable. Probably we can add versioning support to
15547 # collect2, so additional links can be useful in future.
15548 if test "$aix_use_runtimelinking" = yes; then
15549 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15550 # instead of lib<name>.a to let people know that these are not
15551 # typical AIX shared libraries.
15552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15553 else
15554 # We preserve .a as extension for shared libraries through AIX4.2
15555 # and later when we are not doing run time linking.
15556 library_names_spec='${libname}${release}.a $libname.a'
15557 soname_spec='${libname}${release}${shared_ext}$major'
15558 fi
15559 shlibpath_var=LIBPATH
15560 fi
15561 ;;
15562
15563amigaos*)
15564 library_names_spec='$libname.ixlibrary $libname.a'
15565 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15566 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'
15567 ;;
15568
15569beos*)
15570 library_names_spec='${libname}${shared_ext}'
15571 dynamic_linker="$host_os ld.so"
15572 shlibpath_var=LIBRARY_PATH
15573 ;;
15574
mmentovai8c2a4de2006-09-20 16:20:15 +000015575bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000015576 version_type=linux
15577 need_version=no
15578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15579 soname_spec='${libname}${release}${shared_ext}$major'
15580 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15581 shlibpath_var=LD_LIBRARY_PATH
15582 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15583 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15584 # the default ld.so.conf also contains /usr/contrib/lib and
15585 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15586 # libtool to hard-code these into programs
15587 ;;
15588
15589cygwin* | mingw* | pw32*)
15590 version_type=windows
15591 shrext_cmds=".dll"
15592 need_version=no
15593 need_lib_prefix=no
15594
15595 case $GCC,$host_os in
15596 yes,cygwin* | yes,mingw* | yes,pw32*)
15597 library_names_spec='$libname.dll.a'
15598 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15599 postinstall_cmds='base_file=`basename \${file}`~
15600 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15601 dldir=$destdir/`dirname \$dlpath`~
15602 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000015603 $install_prog $dir/$dlname \$dldir/$dlname~
15604 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000015605 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15606 dlpath=$dir/\$dldll~
15607 $rm \$dlpath'
15608 shlibpath_overrides_runpath=yes
15609
15610 case $host_os in
15611 cygwin*)
15612 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15613 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15614 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15615 ;;
15616 mingw*)
15617 # MinGW DLLs use traditional 'lib' prefix
15618 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15619 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15620 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15621 # It is most probably a Windows format PATH printed by
15622 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15623 # path with ; separators, and with drive letters. We can handle the
15624 # drive letters (cygwin fileutils understands them), so leave them,
15625 # especially as we might pass files found there to a mingw objdump,
15626 # which wouldn't understand a cygwinified path. Ahh.
15627 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15628 else
15629 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15630 fi
15631 ;;
15632 pw32*)
15633 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000015634 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 +000015635 ;;
15636 esac
15637 ;;
15638
15639 *)
15640 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15641 ;;
15642 esac
15643 dynamic_linker='Win32 ld.exe'
15644 # FIXME: first we should search . and the directory the executable is in
15645 shlibpath_var=PATH
15646 ;;
15647
15648darwin* | rhapsody*)
15649 dynamic_linker="$host_os dyld"
15650 version_type=darwin
15651 need_lib_prefix=no
15652 need_version=no
15653 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15654 soname_spec='${libname}${release}${major}$shared_ext'
15655 shlibpath_overrides_runpath=yes
15656 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000015657 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
brynercb91a2f2006-08-25 21:14:45 +000015658 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15659 if test "$GCC" = yes; then
15660 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"`
15661 else
15662 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15663 fi
15664 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15665 ;;
15666
15667dgux*)
15668 version_type=linux
15669 need_lib_prefix=no
15670 need_version=no
15671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15672 soname_spec='${libname}${release}${shared_ext}$major'
15673 shlibpath_var=LD_LIBRARY_PATH
15674 ;;
15675
15676freebsd1*)
15677 dynamic_linker=no
15678 ;;
15679
15680kfreebsd*-gnu)
15681 version_type=linux
15682 need_lib_prefix=no
15683 need_version=no
15684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15685 soname_spec='${libname}${release}${shared_ext}$major'
15686 shlibpath_var=LD_LIBRARY_PATH
15687 shlibpath_overrides_runpath=no
15688 hardcode_into_libs=yes
15689 dynamic_linker='GNU ld.so'
15690 ;;
15691
mmentovai8c2a4de2006-09-20 16:20:15 +000015692freebsd* | dragonfly*)
15693 # DragonFly does not have aout. When/if they implement a new
15694 # versioning mechanism, adjust this.
15695 if test -x /usr/bin/objformat; then
15696 objformat=`/usr/bin/objformat`
15697 else
15698 case $host_os in
15699 freebsd[123]*) objformat=aout ;;
15700 *) objformat=elf ;;
15701 esac
15702 fi
brynercb91a2f2006-08-25 21:14:45 +000015703 version_type=freebsd-$objformat
15704 case $version_type in
15705 freebsd-elf*)
15706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15707 need_version=no
15708 need_lib_prefix=no
15709 ;;
15710 freebsd-*)
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15712 need_version=yes
15713 ;;
15714 esac
15715 shlibpath_var=LD_LIBRARY_PATH
15716 case $host_os in
15717 freebsd2*)
15718 shlibpath_overrides_runpath=yes
15719 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015720 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000015721 shlibpath_overrides_runpath=yes
15722 hardcode_into_libs=yes
15723 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015724 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15725 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000015726 shlibpath_overrides_runpath=no
15727 hardcode_into_libs=yes
15728 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015729 freebsd*) # from 4.6 on
15730 shlibpath_overrides_runpath=yes
15731 hardcode_into_libs=yes
15732 ;;
brynercb91a2f2006-08-25 21:14:45 +000015733 esac
15734 ;;
15735
15736gnu*)
15737 version_type=linux
15738 need_lib_prefix=no
15739 need_version=no
15740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15741 soname_spec='${libname}${release}${shared_ext}$major'
15742 shlibpath_var=LD_LIBRARY_PATH
15743 hardcode_into_libs=yes
15744 ;;
15745
15746hpux9* | hpux10* | hpux11*)
15747 # Give a soname corresponding to the major version so that dld.sl refuses to
15748 # link against other versions.
15749 version_type=sunos
15750 need_lib_prefix=no
15751 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000015752 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000015753 ia64*)
15754 shrext_cmds='.so'
15755 hardcode_into_libs=yes
15756 dynamic_linker="$host_os dld.so"
15757 shlibpath_var=LD_LIBRARY_PATH
15758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15760 soname_spec='${libname}${release}${shared_ext}$major'
15761 if test "X$HPUX_IA64_MODE" = X32; then
15762 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15763 else
15764 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15765 fi
15766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15767 ;;
15768 hppa*64*)
15769 shrext_cmds='.sl'
15770 hardcode_into_libs=yes
15771 dynamic_linker="$host_os dld.sl"
15772 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15775 soname_spec='${libname}${release}${shared_ext}$major'
15776 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15778 ;;
15779 *)
15780 shrext_cmds='.sl'
15781 dynamic_linker="$host_os dld.sl"
15782 shlibpath_var=SHLIB_PATH
15783 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15785 soname_spec='${libname}${release}${shared_ext}$major'
15786 ;;
15787 esac
15788 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15789 postinstall_cmds='chmod 555 $lib'
15790 ;;
15791
mmentovai8c2a4de2006-09-20 16:20:15 +000015792interix3*)
15793 version_type=linux
15794 need_lib_prefix=no
15795 need_version=no
15796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15797 soname_spec='${libname}${release}${shared_ext}$major'
15798 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15799 shlibpath_var=LD_LIBRARY_PATH
15800 shlibpath_overrides_runpath=no
15801 hardcode_into_libs=yes
15802 ;;
15803
brynercb91a2f2006-08-25 21:14:45 +000015804irix5* | irix6* | nonstopux*)
15805 case $host_os in
15806 nonstopux*) version_type=nonstopux ;;
15807 *)
15808 if test "$lt_cv_prog_gnu_ld" = yes; then
15809 version_type=linux
15810 else
15811 version_type=irix
15812 fi ;;
15813 esac
15814 need_lib_prefix=no
15815 need_version=no
15816 soname_spec='${libname}${release}${shared_ext}$major'
15817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15818 case $host_os in
15819 irix5* | nonstopux*)
15820 libsuff= shlibsuff=
15821 ;;
15822 *)
15823 case $LD in # libtool.m4 will add one of these switches to LD
15824 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15825 libsuff= shlibsuff= libmagic=32-bit;;
15826 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15827 libsuff=32 shlibsuff=N32 libmagic=N32;;
15828 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15829 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15830 *) libsuff= shlibsuff= libmagic=never-match;;
15831 esac
15832 ;;
15833 esac
15834 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15835 shlibpath_overrides_runpath=no
15836 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15837 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15838 hardcode_into_libs=yes
15839 ;;
15840
15841# No shared lib support for Linux oldld, aout, or coff.
15842linux*oldld* | linux*aout* | linux*coff*)
15843 dynamic_linker=no
15844 ;;
15845
15846# This must be Linux ELF.
15847linux*)
15848 version_type=linux
15849 need_lib_prefix=no
15850 need_version=no
15851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15852 soname_spec='${libname}${release}${shared_ext}$major'
15853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15854 shlibpath_var=LD_LIBRARY_PATH
15855 shlibpath_overrides_runpath=no
15856 # This implies no fast_install, which is unacceptable.
15857 # Some rework will be needed to allow for fast_install
15858 # before this can be enabled.
15859 hardcode_into_libs=yes
15860
15861 # Append ld.so.conf contents to the search path
15862 if test -f /etc/ld.so.conf; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015863 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 +000015864 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15865 fi
15866
15867 # We used to test for /lib/ld.so.1 and disable shared libraries on
15868 # powerpc, because MkLinux only supported shared libraries with the
15869 # GNU dynamic linker. Since this was broken with cross compilers,
15870 # most powerpc-linux boxes support dynamic linking these days and
15871 # people can always --disable-shared, the test was removed, and we
15872 # assume the GNU/Linux dynamic linker is in use.
15873 dynamic_linker='GNU/Linux ld.so'
15874 ;;
15875
brynercb91a2f2006-08-25 21:14:45 +000015876knetbsd*-gnu)
15877 version_type=linux
15878 need_lib_prefix=no
15879 need_version=no
15880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15881 soname_spec='${libname}${release}${shared_ext}$major'
15882 shlibpath_var=LD_LIBRARY_PATH
15883 shlibpath_overrides_runpath=no
15884 hardcode_into_libs=yes
15885 dynamic_linker='GNU ld.so'
15886 ;;
15887
15888netbsd*)
15889 version_type=sunos
15890 need_lib_prefix=no
15891 need_version=no
15892 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15895 dynamic_linker='NetBSD (a.out) ld.so'
15896 else
15897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15898 soname_spec='${libname}${release}${shared_ext}$major'
15899 dynamic_linker='NetBSD ld.elf_so'
15900 fi
15901 shlibpath_var=LD_LIBRARY_PATH
15902 shlibpath_overrides_runpath=yes
15903 hardcode_into_libs=yes
15904 ;;
15905
15906newsos6)
15907 version_type=linux
15908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15909 shlibpath_var=LD_LIBRARY_PATH
15910 shlibpath_overrides_runpath=yes
15911 ;;
15912
15913nto-qnx*)
15914 version_type=linux
15915 need_lib_prefix=no
15916 need_version=no
15917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15918 soname_spec='${libname}${release}${shared_ext}$major'
15919 shlibpath_var=LD_LIBRARY_PATH
15920 shlibpath_overrides_runpath=yes
15921 ;;
15922
15923openbsd*)
15924 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000015925 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000015926 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000015927 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15928 case $host_os in
15929 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15930 *) need_version=no ;;
15931 esac
brynercb91a2f2006-08-25 21:14:45 +000015932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15934 shlibpath_var=LD_LIBRARY_PATH
15935 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15936 case $host_os in
15937 openbsd2.[89] | openbsd2.[89].*)
15938 shlibpath_overrides_runpath=no
15939 ;;
15940 *)
15941 shlibpath_overrides_runpath=yes
15942 ;;
15943 esac
15944 else
15945 shlibpath_overrides_runpath=yes
15946 fi
15947 ;;
15948
15949os2*)
15950 libname_spec='$name'
15951 shrext_cmds=".dll"
15952 need_lib_prefix=no
15953 library_names_spec='$libname${shared_ext} $libname.a'
15954 dynamic_linker='OS/2 ld.exe'
15955 shlibpath_var=LIBPATH
15956 ;;
15957
15958osf3* | osf4* | osf5*)
15959 version_type=osf
15960 need_lib_prefix=no
15961 need_version=no
15962 soname_spec='${libname}${release}${shared_ext}$major'
15963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15964 shlibpath_var=LD_LIBRARY_PATH
15965 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15966 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15967 ;;
15968
brynercb91a2f2006-08-25 21:14:45 +000015969solaris*)
15970 version_type=linux
15971 need_lib_prefix=no
15972 need_version=no
15973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15974 soname_spec='${libname}${release}${shared_ext}$major'
15975 shlibpath_var=LD_LIBRARY_PATH
15976 shlibpath_overrides_runpath=yes
15977 hardcode_into_libs=yes
15978 # ldd complains unless libraries are executable
15979 postinstall_cmds='chmod +x $lib'
15980 ;;
15981
15982sunos4*)
15983 version_type=sunos
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15985 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15986 shlibpath_var=LD_LIBRARY_PATH
15987 shlibpath_overrides_runpath=yes
15988 if test "$with_gnu_ld" = yes; then
15989 need_lib_prefix=no
15990 fi
15991 need_version=yes
15992 ;;
15993
mmentovai8c2a4de2006-09-20 16:20:15 +000015994sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000015995 version_type=linux
15996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15997 soname_spec='${libname}${release}${shared_ext}$major'
15998 shlibpath_var=LD_LIBRARY_PATH
15999 case $host_vendor in
16000 sni)
16001 shlibpath_overrides_runpath=no
16002 need_lib_prefix=no
16003 export_dynamic_flag_spec='${wl}-Blargedynsym'
16004 runpath_var=LD_RUN_PATH
16005 ;;
16006 siemens)
16007 need_lib_prefix=no
16008 ;;
16009 motorola)
16010 need_lib_prefix=no
16011 need_version=no
16012 shlibpath_overrides_runpath=no
16013 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16014 ;;
16015 esac
16016 ;;
16017
16018sysv4*MP*)
16019 if test -d /usr/nec ;then
16020 version_type=linux
16021 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16022 soname_spec='$libname${shared_ext}.$major'
16023 shlibpath_var=LD_LIBRARY_PATH
16024 fi
16025 ;;
16026
mmentovai8c2a4de2006-09-20 16:20:15 +000016027sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16028 version_type=freebsd-elf
16029 need_lib_prefix=no
16030 need_version=no
16031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16032 soname_spec='${libname}${release}${shared_ext}$major'
16033 shlibpath_var=LD_LIBRARY_PATH
16034 hardcode_into_libs=yes
16035 if test "$with_gnu_ld" = yes; then
16036 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16037 shlibpath_overrides_runpath=no
16038 else
16039 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16040 shlibpath_overrides_runpath=yes
16041 case $host_os in
16042 sco3.2v5*)
16043 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16044 ;;
16045 esac
16046 fi
16047 sys_lib_dlsearch_path_spec='/usr/lib'
16048 ;;
16049
brynercb91a2f2006-08-25 21:14:45 +000016050uts4*)
16051 version_type=linux
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16053 soname_spec='${libname}${release}${shared_ext}$major'
16054 shlibpath_var=LD_LIBRARY_PATH
16055 ;;
16056
16057*)
16058 dynamic_linker=no
16059 ;;
16060esac
mmentovai8c2a4de2006-09-20 16:20:15 +000016061{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16062echo "${ECHO_T}$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016063test "$dynamic_linker" = no && can_build_shared=no
16064
mmentovai8c2a4de2006-09-20 16:20:15 +000016065variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16066if test "$GCC" = yes; then
16067 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16068fi
16069
16070{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16071echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016072hardcode_action_F77=
16073if test -n "$hardcode_libdir_flag_spec_F77" || \
mmentovai8c2a4de2006-09-20 16:20:15 +000016074 test -n "$runpath_var_F77" || \
16075 test "X$hardcode_automatic_F77" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000016076
16077 # We can hardcode non-existant directories.
16078 if test "$hardcode_direct_F77" != no &&
16079 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16080 # have to relink, otherwise we might link with an installed library
16081 # when we should be linking with a yet-to-be-installed one
16082 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16083 test "$hardcode_minus_L_F77" != no; then
16084 # Linking always hardcodes the temporary library directory.
16085 hardcode_action_F77=relink
16086 else
16087 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16088 hardcode_action_F77=immediate
16089 fi
16090else
16091 # We cannot hardcode anything, or else we can only hardcode existing
16092 # directories.
16093 hardcode_action_F77=unsupported
16094fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016095{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16096echo "${ECHO_T}$hardcode_action_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016097
16098if test "$hardcode_action_F77" = relink; then
16099 # Fast installation is not supported
16100 enable_fast_install=no
16101elif test "$shlibpath_overrides_runpath" = yes ||
16102 test "$enable_shared" = no; then
16103 # Fast installation is not necessary
16104 enable_fast_install=needless
16105fi
16106
brynercb91a2f2006-08-25 21:14:45 +000016107
16108# The else clause should only fire when bootstrapping the
16109# libtool distribution, otherwise you forgot to ship ltmain.sh
16110# with your package, and you will get complaints that there are
16111# no rules to generate ltmain.sh.
16112if test -f "$ltmain"; then
16113 # See if we are running on zsh, and set the options which allow our commands through
16114 # without removal of \ escapes.
16115 if test -n "${ZSH_VERSION+set}" ; then
16116 setopt NO_GLOB_SUBST
16117 fi
16118 # Now quote all the things that may contain metacharacters while being
16119 # careful not to overquote the AC_SUBSTed values. We take copies of the
16120 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000016121 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000016122 SED SHELL STRIP \
16123 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16124 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16125 deplibs_check_method reload_flag reload_cmds need_locks \
16126 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16127 lt_cv_sys_global_symbol_to_c_name_address \
16128 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16129 old_postinstall_cmds old_postuninstall_cmds \
16130 compiler_F77 \
16131 CC_F77 \
16132 LD_F77 \
16133 lt_prog_compiler_wl_F77 \
16134 lt_prog_compiler_pic_F77 \
16135 lt_prog_compiler_static_F77 \
16136 lt_prog_compiler_no_builtin_flag_F77 \
16137 export_dynamic_flag_spec_F77 \
16138 thread_safe_flag_spec_F77 \
16139 whole_archive_flag_spec_F77 \
16140 enable_shared_with_static_runtimes_F77 \
16141 old_archive_cmds_F77 \
16142 old_archive_from_new_cmds_F77 \
16143 predep_objects_F77 \
16144 postdep_objects_F77 \
16145 predeps_F77 \
16146 postdeps_F77 \
16147 compiler_lib_search_path_F77 \
16148 archive_cmds_F77 \
16149 archive_expsym_cmds_F77 \
16150 postinstall_cmds_F77 \
16151 postuninstall_cmds_F77 \
16152 old_archive_from_expsyms_cmds_F77 \
16153 allow_undefined_flag_F77 \
16154 no_undefined_flag_F77 \
16155 export_symbols_cmds_F77 \
16156 hardcode_libdir_flag_spec_F77 \
16157 hardcode_libdir_flag_spec_ld_F77 \
16158 hardcode_libdir_separator_F77 \
16159 hardcode_automatic_F77 \
16160 module_cmds_F77 \
16161 module_expsym_cmds_F77 \
16162 lt_cv_prog_compiler_c_o_F77 \
16163 exclude_expsyms_F77 \
16164 include_expsyms_F77; do
16165
16166 case $var in
16167 old_archive_cmds_F77 | \
16168 old_archive_from_new_cmds_F77 | \
16169 archive_cmds_F77 | \
16170 archive_expsym_cmds_F77 | \
16171 module_cmds_F77 | \
16172 module_expsym_cmds_F77 | \
16173 old_archive_from_expsyms_cmds_F77 | \
16174 export_symbols_cmds_F77 | \
16175 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16176 postinstall_cmds | postuninstall_cmds | \
16177 old_postinstall_cmds | old_postuninstall_cmds | \
16178 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16179 # Double-quote double-evaled strings.
16180 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16181 ;;
16182 *)
16183 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16184 ;;
16185 esac
16186 done
16187
16188 case $lt_echo in
16189 *'\$0 --fallback-echo"')
16190 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16191 ;;
16192 esac
16193
16194cfgfile="$ofile"
16195
16196 cat <<__EOF__ >> "$cfgfile"
16197# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16198
16199# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16200
16201# Shell to use when invoking shell scripts.
16202SHELL=$lt_SHELL
16203
16204# Whether or not to build shared libraries.
16205build_libtool_libs=$enable_shared
16206
16207# Whether or not to build static libraries.
16208build_old_libs=$enable_static
16209
16210# Whether or not to add -lc for building shared libraries.
16211build_libtool_need_lc=$archive_cmds_need_lc_F77
16212
16213# Whether or not to disallow shared libs when runtime libs are static
16214allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16215
16216# Whether or not to optimize for fast installation.
16217fast_install=$enable_fast_install
16218
16219# The host system.
16220host_alias=$host_alias
16221host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000016222host_os=$host_os
16223
16224# The build system.
16225build_alias=$build_alias
16226build=$build
16227build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000016228
16229# An echo program that does not interpret backslashes.
16230echo=$lt_echo
16231
16232# The archiver.
16233AR=$lt_AR
16234AR_FLAGS=$lt_AR_FLAGS
16235
16236# A C compiler.
16237LTCC=$lt_LTCC
16238
mmentovai8c2a4de2006-09-20 16:20:15 +000016239# LTCC compiler flags.
16240LTCFLAGS=$lt_LTCFLAGS
16241
brynercb91a2f2006-08-25 21:14:45 +000016242# A language-specific compiler.
16243CC=$lt_compiler_F77
16244
16245# Is the compiler the GNU C compiler?
16246with_gcc=$GCC_F77
16247
16248# An ERE matcher.
16249EGREP=$lt_EGREP
16250
16251# The linker used to build libraries.
16252LD=$lt_LD_F77
16253
16254# Whether we need hard or soft links.
16255LN_S=$lt_LN_S
16256
16257# A BSD-compatible nm program.
16258NM=$lt_NM
16259
16260# A symbol stripping program
16261STRIP=$lt_STRIP
16262
16263# Used to examine libraries when file_magic_cmd begins "file"
16264MAGIC_CMD=$MAGIC_CMD
16265
16266# Used on cygwin: DLL creation program.
16267DLLTOOL="$DLLTOOL"
16268
16269# Used on cygwin: object dumper.
16270OBJDUMP="$OBJDUMP"
16271
16272# Used on cygwin: assembler.
16273AS="$AS"
16274
16275# The name of the directory that contains temporary libtool files.
16276objdir=$objdir
16277
16278# How to create reloadable object files.
16279reload_flag=$lt_reload_flag
16280reload_cmds=$lt_reload_cmds
16281
16282# How to pass a linker flag through the compiler.
16283wl=$lt_lt_prog_compiler_wl_F77
16284
16285# Object file suffix (normally "o").
16286objext="$ac_objext"
16287
16288# Old archive suffix (normally "a").
16289libext="$libext"
16290
16291# Shared library suffix (normally ".so").
16292shrext_cmds='$shrext_cmds'
16293
16294# Executable file suffix (normally "").
16295exeext="$exeext"
16296
16297# Additional compiler flags for building library objects.
16298pic_flag=$lt_lt_prog_compiler_pic_F77
16299pic_mode=$pic_mode
16300
16301# What is the maximum length of a command?
16302max_cmd_len=$lt_cv_sys_max_cmd_len
16303
16304# Does compiler simultaneously support -c and -o options?
16305compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16306
mmentovai8c2a4de2006-09-20 16:20:15 +000016307# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000016308need_locks=$lt_need_locks
16309
16310# Do we need the lib prefix for modules?
16311need_lib_prefix=$need_lib_prefix
16312
16313# Do we need a version for libraries?
16314need_version=$need_version
16315
16316# Whether dlopen is supported.
16317dlopen_support=$enable_dlopen
16318
16319# Whether dlopen of programs is supported.
16320dlopen_self=$enable_dlopen_self
16321
16322# Whether dlopen of statically linked programs is supported.
16323dlopen_self_static=$enable_dlopen_self_static
16324
16325# Compiler flag to prevent dynamic linking.
16326link_static_flag=$lt_lt_prog_compiler_static_F77
16327
16328# Compiler flag to turn off builtin functions.
16329no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16330
16331# Compiler flag to allow reflexive dlopens.
16332export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16333
16334# Compiler flag to generate shared objects directly from archives.
16335whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16336
16337# Compiler flag to generate thread-safe objects.
16338thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16339
16340# Library versioning type.
16341version_type=$version_type
16342
16343# Format of library name prefix.
16344libname_spec=$lt_libname_spec
16345
16346# List of archive names. First name is the real one, the rest are links.
16347# The last name is the one that the linker finds with -lNAME.
16348library_names_spec=$lt_library_names_spec
16349
16350# The coded name of the library, if different from the real name.
16351soname_spec=$lt_soname_spec
16352
16353# Commands used to build and install an old-style archive.
16354RANLIB=$lt_RANLIB
16355old_archive_cmds=$lt_old_archive_cmds_F77
16356old_postinstall_cmds=$lt_old_postinstall_cmds
16357old_postuninstall_cmds=$lt_old_postuninstall_cmds
16358
16359# Create an old-style archive from a shared archive.
16360old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16361
16362# Create a temporary old-style archive to link instead of a shared archive.
16363old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16364
16365# Commands used to build and install a shared archive.
16366archive_cmds=$lt_archive_cmds_F77
16367archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16368postinstall_cmds=$lt_postinstall_cmds
16369postuninstall_cmds=$lt_postuninstall_cmds
16370
16371# Commands used to build a loadable module (assumed same as above if empty)
16372module_cmds=$lt_module_cmds_F77
16373module_expsym_cmds=$lt_module_expsym_cmds_F77
16374
16375# Commands to strip libraries.
16376old_striplib=$lt_old_striplib
16377striplib=$lt_striplib
16378
16379# Dependencies to place before the objects being linked to create a
16380# shared library.
16381predep_objects=$lt_predep_objects_F77
16382
16383# Dependencies to place after the objects being linked to create a
16384# shared library.
16385postdep_objects=$lt_postdep_objects_F77
16386
16387# Dependencies to place before the objects being linked to create a
16388# shared library.
16389predeps=$lt_predeps_F77
16390
16391# Dependencies to place after the objects being linked to create a
16392# shared library.
16393postdeps=$lt_postdeps_F77
16394
16395# The library search path used internally by the compiler when linking
16396# a shared library.
16397compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16398
16399# Method to check whether dependent libraries are shared objects.
16400deplibs_check_method=$lt_deplibs_check_method
16401
16402# Command to use when deplibs_check_method == file_magic.
16403file_magic_cmd=$lt_file_magic_cmd
16404
16405# Flag that allows shared libraries with undefined symbols to be built.
16406allow_undefined_flag=$lt_allow_undefined_flag_F77
16407
16408# Flag that forces no undefined symbols.
16409no_undefined_flag=$lt_no_undefined_flag_F77
16410
16411# Commands used to finish a libtool library installation in a directory.
16412finish_cmds=$lt_finish_cmds
16413
16414# Same as above, but a single script fragment to be evaled but not shown.
16415finish_eval=$lt_finish_eval
16416
16417# Take the output of nm and produce a listing of raw symbols and C names.
16418global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16419
16420# Transform the output of nm in a proper C declaration
16421global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16422
16423# Transform the output of nm in a C name address pair
16424global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16425
16426# This is the shared library runtime path variable.
16427runpath_var=$runpath_var
16428
16429# This is the shared library path variable.
16430shlibpath_var=$shlibpath_var
16431
16432# Is shlibpath searched before the hard-coded library search path?
16433shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16434
16435# How to hardcode a shared library path into an executable.
16436hardcode_action=$hardcode_action_F77
16437
16438# Whether we should hardcode library paths into libraries.
16439hardcode_into_libs=$hardcode_into_libs
16440
16441# Flag to hardcode \$libdir into a binary during linking.
16442# This must work even if \$libdir does not exist.
16443hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16444
16445# If ld is used when linking, flag to hardcode \$libdir into
16446# a binary during linking. This must work even if \$libdir does
16447# not exist.
16448hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16449
16450# Whether we need a single -rpath flag with a separated argument.
16451hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16452
16453# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16454# resulting binary.
16455hardcode_direct=$hardcode_direct_F77
16456
16457# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16458# resulting binary.
16459hardcode_minus_L=$hardcode_minus_L_F77
16460
16461# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16462# the resulting binary.
16463hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16464
16465# Set to yes if building a shared library automatically hardcodes DIR into the library
16466# and all subsequent libraries and executables linked against it.
16467hardcode_automatic=$hardcode_automatic_F77
16468
16469# Variables whose values should be saved in libtool wrapper scripts and
16470# restored at relink time.
16471variables_saved_for_relink="$variables_saved_for_relink"
16472
16473# Whether libtool must link a program against all its dependency libraries.
16474link_all_deplibs=$link_all_deplibs_F77
16475
16476# Compile-time system search path for libraries
16477sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16478
16479# Run-time system search path for libraries
16480sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16481
16482# Fix the shell variable \$srcfile for the compiler.
16483fix_srcfile_path="$fix_srcfile_path_F77"
16484
16485# Set to yes if exported symbols are required.
16486always_export_symbols=$always_export_symbols_F77
16487
16488# The commands to list exported symbols.
16489export_symbols_cmds=$lt_export_symbols_cmds_F77
16490
16491# The commands to extract the exported symbol list from a shared archive.
16492extract_expsyms_cmds=$lt_extract_expsyms_cmds
16493
16494# Symbols that should not be listed in the preloaded symbols.
16495exclude_expsyms=$lt_exclude_expsyms_F77
16496
16497# Symbols that must always be exported.
16498include_expsyms=$lt_include_expsyms_F77
16499
16500# ### END LIBTOOL TAG CONFIG: $tagname
16501
16502__EOF__
16503
16504
16505else
16506 # If there is no Makefile yet, we rely on a make rule to execute
16507 # `config.status --recheck' to rerun these tests and create the
16508 # libtool script then.
16509 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16510 if test -f "$ltmain_in"; then
16511 test -f Makefile && make "$ltmain"
16512 fi
16513fi
16514
16515
16516ac_ext=c
16517ac_cpp='$CPP $CPPFLAGS'
16518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16520ac_compiler_gnu=$ac_cv_c_compiler_gnu
16521
16522CC="$lt_save_CC"
16523
16524 else
16525 tagname=""
16526 fi
16527 ;;
16528
16529 GCJ)
16530 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16531
16532
brynercb91a2f2006-08-25 21:14:45 +000016533# Source file extension for Java test sources.
16534ac_ext=java
16535
16536# Object file extension for compiled Java test sources.
16537objext=o
16538objext_GCJ=$objext
16539
16540# Code to be used in simple compile tests
16541lt_simple_compile_test_code="class foo {}\n"
16542
16543# Code to be used in simple link tests
mmentovai8c2a4de2006-09-20 16:20:15 +000016544lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
brynercb91a2f2006-08-25 21:14:45 +000016545
16546# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16547
16548# If no C compiler was specified, use CC.
16549LTCC=${LTCC-"$CC"}
16550
mmentovai8c2a4de2006-09-20 16:20:15 +000016551# If no C compiler flags were specified, use CFLAGS.
16552LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16553
brynercb91a2f2006-08-25 21:14:45 +000016554# Allow CC to be a program name with arguments.
16555compiler=$CC
16556
16557
mmentovai8c2a4de2006-09-20 16:20:15 +000016558# save warnings/boilerplate of simple test code
16559ac_outfile=conftest.$ac_objext
16560printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16561eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16562_lt_compiler_boilerplate=`cat conftest.err`
16563$rm conftest*
16564
16565ac_outfile=conftest.$ac_objext
16566printf "$lt_simple_link_test_code" >conftest.$ac_ext
16567eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16568_lt_linker_boilerplate=`cat conftest.err`
16569$rm conftest*
16570
16571
brynercb91a2f2006-08-25 21:14:45 +000016572# Allow CC to be a program name with arguments.
16573lt_save_CC="$CC"
16574CC=${GCJ-"gcj"}
16575compiler=$CC
16576compiler_GCJ=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +000016577for cc_temp in $compiler""; do
16578 case $cc_temp in
16579 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16580 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16581 \-*) ;;
16582 *) break;;
16583 esac
16584done
16585cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16586
brynercb91a2f2006-08-25 21:14:45 +000016587
16588# GCJ did not exist at the time GCC didn't implicitly link libc in.
16589archive_cmds_need_lc_GCJ=no
16590
mmentovai8c2a4de2006-09-20 16:20:15 +000016591old_archive_cmds_GCJ=$old_archive_cmds
16592
brynercb91a2f2006-08-25 21:14:45 +000016593
16594lt_prog_compiler_no_builtin_flag_GCJ=
16595
16596if test "$GCC" = yes; then
16597 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16598
16599
mmentovai8c2a4de2006-09-20 16:20:15 +000016600{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16601echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016602if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16603 echo $ECHO_N "(cached) $ECHO_C" >&6
16604else
16605 lt_cv_prog_compiler_rtti_exceptions=no
16606 ac_outfile=conftest.$ac_objext
16607 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16608 lt_compiler_flag="-fno-rtti -fno-exceptions"
16609 # Insert the option either (1) after the last *FLAGS variable, or
16610 # (2) before a word containing "conftest.", or (3) at the end.
16611 # Note that $ac_compile itself does not contain backslashes and begins
16612 # with a dollar sign (not a hyphen), so the echo should work correctly.
16613 # The option is referenced via a variable to avoid confusing sed.
16614 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000016615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000016616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16617 -e 's:$: $lt_compiler_flag:'`
mmentovai8c2a4de2006-09-20 16:20:15 +000016618 (eval echo "\"\$as_me:16618: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000016619 (eval "$lt_compile" 2>conftest.err)
16620 ac_status=$?
16621 cat conftest.err >&5
mmentovai8c2a4de2006-09-20 16:20:15 +000016622 echo "$as_me:16622: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000016623 if (exit $ac_status) && test -s "$ac_outfile"; then
16624 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000016625 # So say no if there are warnings other than the usual output.
16626 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16627 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16628 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000016629 lt_cv_prog_compiler_rtti_exceptions=yes
16630 fi
16631 fi
16632 $rm conftest*
16633
16634fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016635{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16636echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016637
16638if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16639 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16640else
16641 :
16642fi
16643
16644fi
16645
16646lt_prog_compiler_wl_GCJ=
16647lt_prog_compiler_pic_GCJ=
16648lt_prog_compiler_static_GCJ=
16649
mmentovai8c2a4de2006-09-20 16:20:15 +000016650{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16651echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016652
16653 if test "$GCC" = yes; then
16654 lt_prog_compiler_wl_GCJ='-Wl,'
16655 lt_prog_compiler_static_GCJ='-static'
16656
16657 case $host_os in
16658 aix*)
16659 # All AIX code is PIC.
16660 if test "$host_cpu" = ia64; then
16661 # AIX 5 now supports IA64 processor
16662 lt_prog_compiler_static_GCJ='-Bstatic'
16663 fi
16664 ;;
16665
16666 amigaos*)
16667 # FIXME: we need at least 68020 code to build shared libraries, but
16668 # adding the `-m68020' flag to GCC prevents building anything better,
16669 # like `-m68040'.
16670 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16671 ;;
16672
16673 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16674 # PIC is the default for these OSes.
16675 ;;
16676
16677 mingw* | pw32* | os2*)
16678 # This hack is so that the source file can tell whether it is being
16679 # built for inclusion in a dll (and should export symbols for example).
16680 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16681 ;;
16682
16683 darwin* | rhapsody*)
16684 # PIC is the default on this platform
16685 # Common symbols not allowed in MH_DYLIB files
16686 lt_prog_compiler_pic_GCJ='-fno-common'
16687 ;;
16688
mmentovai8c2a4de2006-09-20 16:20:15 +000016689 interix3*)
16690 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16691 # Instead, we relocate shared libraries at runtime.
16692 ;;
16693
brynercb91a2f2006-08-25 21:14:45 +000016694 msdosdjgpp*)
16695 # Just because we use GCC doesn't mean we suddenly get shared libraries
16696 # on systems that don't support them.
16697 lt_prog_compiler_can_build_shared_GCJ=no
16698 enable_shared=no
16699 ;;
16700
16701 sysv4*MP*)
16702 if test -d /usr/nec; then
16703 lt_prog_compiler_pic_GCJ=-Kconform_pic
16704 fi
16705 ;;
16706
16707 hpux*)
16708 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16709 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000016710 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000016711 hppa*64*|ia64*)
16712 # +Z the default
16713 ;;
16714 *)
16715 lt_prog_compiler_pic_GCJ='-fPIC'
16716 ;;
16717 esac
16718 ;;
16719
16720 *)
16721 lt_prog_compiler_pic_GCJ='-fPIC'
16722 ;;
16723 esac
16724 else
16725 # PORTME Check for flag to pass linker flags through the system compiler.
16726 case $host_os in
16727 aix*)
16728 lt_prog_compiler_wl_GCJ='-Wl,'
16729 if test "$host_cpu" = ia64; then
16730 # AIX 5 now supports IA64 processor
16731 lt_prog_compiler_static_GCJ='-Bstatic'
16732 else
16733 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16734 fi
16735 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016736 darwin*)
16737 # PIC is the default on this platform
16738 # Common symbols not allowed in MH_DYLIB files
16739 case $cc_basename in
16740 xlc*)
16741 lt_prog_compiler_pic_GCJ='-qnocommon'
16742 lt_prog_compiler_wl_GCJ='-Wl,'
16743 ;;
16744 esac
16745 ;;
brynercb91a2f2006-08-25 21:14:45 +000016746
16747 mingw* | pw32* | os2*)
16748 # This hack is so that the source file can tell whether it is being
16749 # built for inclusion in a dll (and should export symbols for example).
16750 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16751 ;;
16752
16753 hpux9* | hpux10* | hpux11*)
16754 lt_prog_compiler_wl_GCJ='-Wl,'
16755 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16756 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000016757 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000016758 hppa*64*|ia64*)
16759 # +Z the default
16760 ;;
16761 *)
16762 lt_prog_compiler_pic_GCJ='+Z'
16763 ;;
16764 esac
16765 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16766 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16767 ;;
16768
16769 irix5* | irix6* | nonstopux*)
16770 lt_prog_compiler_wl_GCJ='-Wl,'
16771 # PIC (with -KPIC) is the default.
16772 lt_prog_compiler_static_GCJ='-non_shared'
16773 ;;
16774
16775 newsos6)
16776 lt_prog_compiler_pic_GCJ='-KPIC'
16777 lt_prog_compiler_static_GCJ='-Bstatic'
16778 ;;
16779
16780 linux*)
mmentovai8c2a4de2006-09-20 16:20:15 +000016781 case $cc_basename in
brynercb91a2f2006-08-25 21:14:45 +000016782 icc* | ecc*)
16783 lt_prog_compiler_wl_GCJ='-Wl,'
16784 lt_prog_compiler_pic_GCJ='-KPIC'
16785 lt_prog_compiler_static_GCJ='-static'
16786 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016787 pgcc* | pgf77* | pgf90* | pgf95*)
16788 # Portland Group compilers (*not* the Pentium gcc compiler,
16789 # which looks to be a dead project)
16790 lt_prog_compiler_wl_GCJ='-Wl,'
16791 lt_prog_compiler_pic_GCJ='-fpic'
16792 lt_prog_compiler_static_GCJ='-Bstatic'
16793 ;;
brynercb91a2f2006-08-25 21:14:45 +000016794 ccc*)
16795 lt_prog_compiler_wl_GCJ='-Wl,'
16796 # All Alpha code is PIC.
16797 lt_prog_compiler_static_GCJ='-non_shared'
16798 ;;
16799 esac
16800 ;;
16801
16802 osf3* | osf4* | osf5*)
16803 lt_prog_compiler_wl_GCJ='-Wl,'
16804 # All OSF/1 code is PIC.
16805 lt_prog_compiler_static_GCJ='-non_shared'
16806 ;;
16807
brynercb91a2f2006-08-25 21:14:45 +000016808 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000016809 lt_prog_compiler_pic_GCJ='-KPIC'
16810 lt_prog_compiler_static_GCJ='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +000016811 case $cc_basename in
16812 f77* | f90* | f95*)
16813 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16814 *)
16815 lt_prog_compiler_wl_GCJ='-Wl,';;
16816 esac
brynercb91a2f2006-08-25 21:14:45 +000016817 ;;
16818
16819 sunos4*)
16820 lt_prog_compiler_wl_GCJ='-Qoption ld '
16821 lt_prog_compiler_pic_GCJ='-PIC'
16822 lt_prog_compiler_static_GCJ='-Bstatic'
16823 ;;
16824
mmentovai8c2a4de2006-09-20 16:20:15 +000016825 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000016826 lt_prog_compiler_wl_GCJ='-Wl,'
16827 lt_prog_compiler_pic_GCJ='-KPIC'
16828 lt_prog_compiler_static_GCJ='-Bstatic'
16829 ;;
16830
16831 sysv4*MP*)
16832 if test -d /usr/nec ;then
16833 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16834 lt_prog_compiler_static_GCJ='-Bstatic'
16835 fi
16836 ;;
16837
mmentovai8c2a4de2006-09-20 16:20:15 +000016838 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16839 lt_prog_compiler_wl_GCJ='-Wl,'
16840 lt_prog_compiler_pic_GCJ='-KPIC'
16841 lt_prog_compiler_static_GCJ='-Bstatic'
16842 ;;
16843
16844 unicos*)
16845 lt_prog_compiler_wl_GCJ='-Wl,'
16846 lt_prog_compiler_can_build_shared_GCJ=no
16847 ;;
16848
brynercb91a2f2006-08-25 21:14:45 +000016849 uts4*)
16850 lt_prog_compiler_pic_GCJ='-pic'
16851 lt_prog_compiler_static_GCJ='-Bstatic'
16852 ;;
16853
16854 *)
16855 lt_prog_compiler_can_build_shared_GCJ=no
16856 ;;
16857 esac
16858 fi
16859
mmentovai8c2a4de2006-09-20 16:20:15 +000016860{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16861echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016862
16863#
16864# Check to make sure the PIC flag actually works.
16865#
16866if test -n "$lt_prog_compiler_pic_GCJ"; then
16867
mmentovai8c2a4de2006-09-20 16:20:15 +000016868{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16869echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016870if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16872else
16873 lt_prog_compiler_pic_works_GCJ=no
16874 ac_outfile=conftest.$ac_objext
16875 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16876 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16877 # Insert the option either (1) after the last *FLAGS variable, or
16878 # (2) before a word containing "conftest.", or (3) at the end.
16879 # Note that $ac_compile itself does not contain backslashes and begins
16880 # with a dollar sign (not a hyphen), so the echo should work correctly.
16881 # The option is referenced via a variable to avoid confusing sed.
16882 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000016883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000016884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16885 -e 's:$: $lt_compiler_flag:'`
mmentovai8c2a4de2006-09-20 16:20:15 +000016886 (eval echo "\"\$as_me:16886: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000016887 (eval "$lt_compile" 2>conftest.err)
16888 ac_status=$?
16889 cat conftest.err >&5
mmentovai8c2a4de2006-09-20 16:20:15 +000016890 echo "$as_me:16890: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000016891 if (exit $ac_status) && test -s "$ac_outfile"; then
16892 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000016893 # So say no if there are warnings other than the usual output.
16894 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16895 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16896 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000016897 lt_prog_compiler_pic_works_GCJ=yes
16898 fi
16899 fi
16900 $rm conftest*
16901
16902fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016903{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16904echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016905
16906if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16907 case $lt_prog_compiler_pic_GCJ in
16908 "" | " "*) ;;
16909 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16910 esac
16911else
16912 lt_prog_compiler_pic_GCJ=
16913 lt_prog_compiler_can_build_shared_GCJ=no
16914fi
16915
16916fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016917case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000016918 # For platforms which do not support PIC, -DPIC is meaningless:
16919 *djgpp*)
16920 lt_prog_compiler_pic_GCJ=
16921 ;;
16922 *)
16923 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16924 ;;
16925esac
16926
mmentovai8c2a4de2006-09-20 16:20:15 +000016927#
16928# Check to make sure the static flag actually works.
16929#
16930wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16931{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16932echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16933if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16935else
16936 lt_prog_compiler_static_works_GCJ=no
16937 save_LDFLAGS="$LDFLAGS"
16938 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16939 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16940 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16941 # The linker can only warn and ignore the option if not recognized
16942 # So say no if there are warnings
16943 if test -s conftest.err; then
16944 # Append any errors to the config.log.
16945 cat conftest.err 1>&5
16946 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16948 if diff conftest.exp conftest.er2 >/dev/null; then
16949 lt_prog_compiler_static_works_GCJ=yes
16950 fi
16951 else
16952 lt_prog_compiler_static_works_GCJ=yes
16953 fi
16954 fi
16955 $rm conftest*
16956 LDFLAGS="$save_LDFLAGS"
16957
16958fi
16959{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16960echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16961
16962if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16963 :
16964else
16965 lt_prog_compiler_static_GCJ=
16966fi
16967
16968
16969{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16970echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016971if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16972 echo $ECHO_N "(cached) $ECHO_C" >&6
16973else
16974 lt_cv_prog_compiler_c_o_GCJ=no
16975 $rm -r conftest 2>/dev/null
16976 mkdir conftest
16977 cd conftest
16978 mkdir out
16979 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16980
16981 lt_compiler_flag="-o out/conftest2.$ac_objext"
16982 # Insert the option either (1) after the last *FLAGS variable, or
16983 # (2) before a word containing "conftest.", or (3) at the end.
16984 # Note that $ac_compile itself does not contain backslashes and begins
16985 # with a dollar sign (not a hyphen), so the echo should work correctly.
16986 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000016987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000016988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16989 -e 's:$: $lt_compiler_flag:'`
mmentovai8c2a4de2006-09-20 16:20:15 +000016990 (eval echo "\"\$as_me:16990: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000016991 (eval "$lt_compile" 2>out/conftest.err)
16992 ac_status=$?
16993 cat out/conftest.err >&5
mmentovai8c2a4de2006-09-20 16:20:15 +000016994 echo "$as_me:16994: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000016995 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16996 then
16997 # The compiler can only warn and ignore the option if not recognized
16998 # So say no if there are warnings
mmentovai8c2a4de2006-09-20 16:20:15 +000016999 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17000 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17001 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000017002 lt_cv_prog_compiler_c_o_GCJ=yes
17003 fi
17004 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017005 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +000017006 $rm conftest*
17007 # SGI C++ compiler will create directory out/ii_files/ for
17008 # template instantiation
17009 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17010 $rm out/* && rmdir out
17011 cd ..
17012 rmdir conftest
17013 $rm conftest*
17014
17015fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017016{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17017echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017018
17019
17020hard_links="nottested"
17021if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17022 # do not overwrite the value of need_locks provided by the user
mmentovai8c2a4de2006-09-20 16:20:15 +000017023 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17024echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017025 hard_links=yes
17026 $rm conftest*
17027 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17028 touch conftest.a
17029 ln conftest.a conftest.b 2>&5 || hard_links=no
17030 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mmentovai8c2a4de2006-09-20 16:20:15 +000017031 { echo "$as_me:$LINENO: result: $hard_links" >&5
17032echo "${ECHO_T}$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017033 if test "$hard_links" = no; then
17034 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17035echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17036 need_locks=warn
17037 fi
17038else
17039 need_locks=no
17040fi
17041
mmentovai8c2a4de2006-09-20 16:20:15 +000017042{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17043echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017044
17045 runpath_var=
17046 allow_undefined_flag_GCJ=
17047 enable_shared_with_static_runtimes_GCJ=no
17048 archive_cmds_GCJ=
17049 archive_expsym_cmds_GCJ=
17050 old_archive_From_new_cmds_GCJ=
17051 old_archive_from_expsyms_cmds_GCJ=
17052 export_dynamic_flag_spec_GCJ=
17053 whole_archive_flag_spec_GCJ=
17054 thread_safe_flag_spec_GCJ=
17055 hardcode_libdir_flag_spec_GCJ=
17056 hardcode_libdir_flag_spec_ld_GCJ=
17057 hardcode_libdir_separator_GCJ=
17058 hardcode_direct_GCJ=no
17059 hardcode_minus_L_GCJ=no
17060 hardcode_shlibpath_var_GCJ=unsupported
17061 link_all_deplibs_GCJ=unknown
17062 hardcode_automatic_GCJ=no
17063 module_cmds_GCJ=
17064 module_expsym_cmds_GCJ=
17065 always_export_symbols_GCJ=no
17066 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17067 # include_expsyms should be a list of space-separated symbols to be *always*
17068 # included in the symbol list
17069 include_expsyms_GCJ=
17070 # exclude_expsyms can be an extended regexp of symbols to exclude
17071 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17072 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17073 # as well as any symbol that contains `d'.
17074 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17075 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17076 # platforms (ab)use it in PIC code, but their linkers get confused if
17077 # the symbol is explicitly referenced. Since portable code cannot
17078 # rely on this symbol name, it's probably fine to never include it in
17079 # preloaded symbol tables.
17080 extract_expsyms_cmds=
mmentovai8c2a4de2006-09-20 16:20:15 +000017081 # Just being paranoid about ensuring that cc_basename is set.
17082 for cc_temp in $compiler""; do
17083 case $cc_temp in
17084 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17085 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17086 \-*) ;;
17087 *) break;;
17088 esac
17089done
17090cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +000017091
17092 case $host_os in
17093 cygwin* | mingw* | pw32*)
17094 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17095 # When not using gcc, we currently assume that we are using
17096 # Microsoft Visual C++.
17097 if test "$GCC" != yes; then
17098 with_gnu_ld=no
17099 fi
17100 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000017101 interix*)
17102 # we just hope/assume this is gcc and not c89 (= MSVC++)
17103 with_gnu_ld=yes
17104 ;;
brynercb91a2f2006-08-25 21:14:45 +000017105 openbsd*)
17106 with_gnu_ld=no
17107 ;;
17108 esac
17109
17110 ld_shlibs_GCJ=yes
17111 if test "$with_gnu_ld" = yes; then
17112 # If archive_cmds runs LD, not CC, wlarc should be empty
17113 wlarc='${wl}'
17114
mmentovai8c2a4de2006-09-20 16:20:15 +000017115 # Set some defaults for GNU ld with shared library support. These
17116 # are reset later if shared libraries are not supported. Putting them
17117 # here allows them to be overridden if necessary.
17118 runpath_var=LD_RUN_PATH
17119 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17120 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17121 # ancient GNU ld didn't support --whole-archive et. al.
17122 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17123 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17124 else
17125 whole_archive_flag_spec_GCJ=
17126 fi
17127 supports_anon_versioning=no
17128 case `$LD -v 2>/dev/null` in
17129 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17130 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17131 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17132 *\ 2.11.*) ;; # other 2.11 versions
17133 *) supports_anon_versioning=yes ;;
17134 esac
17135
brynercb91a2f2006-08-25 21:14:45 +000017136 # See if GNU ld supports shared libraries.
17137 case $host_os in
17138 aix3* | aix4* | aix5*)
17139 # On AIX/PPC, the GNU linker is very broken
17140 if test "$host_cpu" != ia64; then
17141 ld_shlibs_GCJ=no
17142 cat <<EOF 1>&2
17143
17144*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17145*** to be unable to reliably create shared libraries on AIX.
17146*** Therefore, libtool is disabling shared libraries support. If you
17147*** really care for shared libraries, you may want to modify your PATH
17148*** so that a non-GNU linker is found, and then restart.
17149
17150EOF
17151 fi
17152 ;;
17153
17154 amigaos*)
17155 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)'
17156 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17157 hardcode_minus_L_GCJ=yes
17158
17159 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17160 # that the semantics of dynamic libraries on AmigaOS, at least up
17161 # to version 4, is to share data among multiple programs linked
17162 # with the same dynamic library. Since this doesn't match the
17163 # behavior of shared libraries on other platforms, we can't use
17164 # them.
17165 ld_shlibs_GCJ=no
17166 ;;
17167
17168 beos*)
17169 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17170 allow_undefined_flag_GCJ=unsupported
17171 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17172 # support --undefined. This deserves some investigation. FIXME
17173 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17174 else
17175 ld_shlibs_GCJ=no
17176 fi
17177 ;;
17178
17179 cygwin* | mingw* | pw32*)
17180 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17181 # as there is no search path for DLLs.
17182 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17183 allow_undefined_flag_GCJ=unsupported
17184 always_export_symbols_GCJ=no
17185 enable_shared_with_static_runtimes_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000017186 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 +000017187
17188 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017189 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 +000017190 # If the export-symbols file already is a .def file (1st line
17191 # is EXPORTS), use it as is; otherwise, prepend...
17192 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17193 cp $export_symbols $output_objdir/$soname.def;
17194 else
17195 echo EXPORTS > $output_objdir/$soname.def;
17196 cat $export_symbols >> $output_objdir/$soname.def;
17197 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +000017198 $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 +000017199 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017200 ld_shlibs_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000017201 fi
17202 ;;
17203
mmentovai8c2a4de2006-09-20 16:20:15 +000017204 interix3*)
17205 hardcode_direct_GCJ=no
17206 hardcode_shlibpath_var_GCJ=no
17207 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17208 export_dynamic_flag_spec_GCJ='${wl}-E'
17209 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17210 # Instead, shared libraries are loaded at an image base (0x10000000 by
17211 # default) and relocated if they conflict, which is a slow very memory
17212 # consuming and fragmenting process. To avoid this, we pick a random,
17213 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17214 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17215 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'
17216 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'
17217 ;;
17218
17219 linux*)
17220 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17221 tmp_addflag=
17222 case $cc_basename,$host_cpu in
17223 pgcc*) # Portland Group C compiler
17224 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'
17225 tmp_addflag=' $pic_flag'
17226 ;;
17227 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
17230 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17231 tmp_addflag=' -i_dynamic' ;;
17232 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17233 tmp_addflag=' -i_dynamic -nofor_main' ;;
17234 ifc* | ifort*) # Intel Fortran compiler
17235 tmp_addflag=' -nofor_main' ;;
17236 esac
17237 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17238
17239 if test $supports_anon_versioning = yes; then
17240 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17242 $echo "local: *; };" >> $output_objdir/$libname.ver~
17243 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17244 fi
17245 else
17246 ld_shlibs_GCJ=no
17247 fi
17248 ;;
17249
17250 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000017251 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17252 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17253 wlarc=
17254 else
17255 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17256 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17257 fi
17258 ;;
17259
mmentovai8c2a4de2006-09-20 16:20:15 +000017260 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000017261 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17262 ld_shlibs_GCJ=no
17263 cat <<EOF 1>&2
17264
17265*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17266*** create shared libraries on Solaris systems. Therefore, libtool
17267*** is disabling shared libraries support. We urge you to upgrade GNU
17268*** binutils to release 2.9.1 or newer. Another option is to modify
17269*** your PATH or compiler configuration so that the native linker is
17270*** used, and then restart.
17271
17272EOF
17273 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17274 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17275 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17276 else
17277 ld_shlibs_GCJ=no
17278 fi
17279 ;;
17280
mmentovai8c2a4de2006-09-20 16:20:15 +000017281 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17282 case `$LD -v 2>&1` in
17283 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17284 ld_shlibs_GCJ=no
17285 cat <<_LT_EOF 1>&2
17286
17287*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17288*** reliably create shared libraries on SCO systems. Therefore, libtool
17289*** is disabling shared libraries support. We urge you to upgrade GNU
17290*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17291*** your PATH or compiler configuration so that the native linker is
17292*** used, and then restart.
17293
17294_LT_EOF
17295 ;;
17296 *)
17297 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17298 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17299 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17300 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17301 else
17302 ld_shlibs_GCJ=no
17303 fi
17304 ;;
17305 esac
17306 ;;
17307
brynercb91a2f2006-08-25 21:14:45 +000017308 sunos4*)
17309 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17310 wlarc=
17311 hardcode_direct_GCJ=yes
17312 hardcode_shlibpath_var_GCJ=no
17313 ;;
17314
brynercb91a2f2006-08-25 21:14:45 +000017315 *)
17316 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17317 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17318 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17319 else
17320 ld_shlibs_GCJ=no
17321 fi
17322 ;;
17323 esac
17324
mmentovai8c2a4de2006-09-20 16:20:15 +000017325 if test "$ld_shlibs_GCJ" = no; then
17326 runpath_var=
17327 hardcode_libdir_flag_spec_GCJ=
17328 export_dynamic_flag_spec_GCJ=
17329 whole_archive_flag_spec_GCJ=
brynercb91a2f2006-08-25 21:14:45 +000017330 fi
17331 else
17332 # PORTME fill in a description of your system's linker (not GNU ld)
17333 case $host_os in
17334 aix3*)
17335 allow_undefined_flag_GCJ=unsupported
17336 always_export_symbols_GCJ=yes
17337 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'
17338 # Note: this linker hardcodes the directories in LIBPATH if there
17339 # are no directories specified by -L.
17340 hardcode_minus_L_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000017341 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +000017342 # Neither direct hardcoding nor static linking is supported with a
17343 # broken collect2.
17344 hardcode_direct_GCJ=unsupported
17345 fi
17346 ;;
17347
17348 aix4* | aix5*)
17349 if test "$host_cpu" = ia64; then
17350 # On IA64, the linker does run time linking by default, so we don't
17351 # have to do anything special.
17352 aix_use_runtimelinking=no
17353 exp_sym_flag='-Bexport'
17354 no_entry_flag=""
17355 else
17356 # If we're using GNU nm, then we don't want the "-C" option.
17357 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17358 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17359 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'
17360 else
17361 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'
17362 fi
17363 aix_use_runtimelinking=no
17364
17365 # Test if we are trying to use run time linking or normal
17366 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17367 # need to do runtime linking.
17368 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17369 for ld_flag in $LDFLAGS; do
17370 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17371 aix_use_runtimelinking=yes
17372 break
17373 fi
17374 done
mmentovai8c2a4de2006-09-20 16:20:15 +000017375 ;;
brynercb91a2f2006-08-25 21:14:45 +000017376 esac
17377
17378 exp_sym_flag='-bexport'
17379 no_entry_flag='-bnoentry'
17380 fi
17381
17382 # When large executables or shared objects are built, AIX ld can
17383 # have problems creating the table of contents. If linking a library
17384 # or program results in "error TOC overflow" add -mminimal-toc to
17385 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17386 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17387
17388 archive_cmds_GCJ=''
17389 hardcode_direct_GCJ=yes
17390 hardcode_libdir_separator_GCJ=':'
17391 link_all_deplibs_GCJ=yes
17392
17393 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017394 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +000017395 # We only want to do this on AIX 4.2 and lower, the check
17396 # below for broken collect2 doesn't work under 4.3+
17397 collect2name=`${CC} -print-prog-name=collect2`
17398 if test -f "$collect2name" && \
17399 strings "$collect2name" | grep resolve_lib_name >/dev/null
17400 then
17401 # We have reworked collect2
17402 hardcode_direct_GCJ=yes
17403 else
17404 # We have old collect2
17405 hardcode_direct_GCJ=unsupported
17406 # It fails to find uninstalled libraries when the uninstalled
17407 # path is not listed in the libpath. Setting hardcode_minus_L
17408 # to unsupported forces relinking
17409 hardcode_minus_L_GCJ=yes
17410 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17411 hardcode_libdir_separator_GCJ=
17412 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017413 ;;
brynercb91a2f2006-08-25 21:14:45 +000017414 esac
17415 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +000017416 if test "$aix_use_runtimelinking" = yes; then
17417 shared_flag="$shared_flag "'${wl}-G'
17418 fi
brynercb91a2f2006-08-25 21:14:45 +000017419 else
17420 # not using gcc
17421 if test "$host_cpu" = ia64; then
17422 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17423 # chokes on -Wl,-G. The following line is correct:
17424 shared_flag='-G'
17425 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017426 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000017427 shared_flag='${wl}-G'
17428 else
17429 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +000017430 fi
brynercb91a2f2006-08-25 21:14:45 +000017431 fi
17432 fi
17433
17434 # It seems that -bexpall does not export symbols beginning with
17435 # underscore (_), so it is better to generate a list of symbols to export.
17436 always_export_symbols_GCJ=yes
17437 if test "$aix_use_runtimelinking" = yes; then
17438 # Warning - without using the other runtime loading flags (-brtl),
17439 # -berok will link without error, but may produce a broken library.
17440 allow_undefined_flag_GCJ='-berok'
17441 # Determine the default libpath from the value encoded in an empty executable.
17442 cat >conftest.$ac_ext <<_ACEOF
17443/* confdefs.h. */
17444_ACEOF
17445cat confdefs.h >>conftest.$ac_ext
17446cat >>conftest.$ac_ext <<_ACEOF
17447/* end confdefs.h. */
17448
17449int
17450main ()
17451{
17452
17453 ;
17454 return 0;
17455}
17456_ACEOF
17457rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000017458if { (ac_try="$ac_link"
17459case "(($ac_try" in
17460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461 *) ac_try_echo=$ac_try;;
17462esac
17463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000017465 ac_status=$?
17466 grep -v '^ *+' conftest.er1 >conftest.err
17467 rm -f conftest.er1
17468 cat conftest.err >&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000017471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17472 { (case "(($ac_try" in
17473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474 *) ac_try_echo=$ac_try;;
17475esac
17476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000017478 ac_status=$?
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; } &&
17481 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000017482 { (case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17485esac
17486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000017488 ac_status=$?
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491
17492aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17493}'`
17494# Check for a 64-bit object if we didn't find anything.
17495if 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; }
17496}'`; fi
17497else
17498 echo "$as_me: failed program was:" >&5
17499sed 's/^/| /' conftest.$ac_ext >&5
17500
mmentovai8c2a4de2006-09-20 16:20:15 +000017501
brynercb91a2f2006-08-25 21:14:45 +000017502fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017503
17504rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000017505 conftest$ac_exeext conftest.$ac_ext
17506if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17507
17508 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
mmentovai8c2a4de2006-09-20 16:20:15 +000017509 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 +000017510 else
17511 if test "$host_cpu" = ia64; then
17512 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17513 allow_undefined_flag_GCJ="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +000017514 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 +000017515 else
17516 # Determine the default libpath from the value encoded in an empty executable.
17517 cat >conftest.$ac_ext <<_ACEOF
17518/* confdefs.h. */
17519_ACEOF
17520cat confdefs.h >>conftest.$ac_ext
17521cat >>conftest.$ac_ext <<_ACEOF
17522/* end confdefs.h. */
17523
17524int
17525main ()
17526{
17527
17528 ;
17529 return 0;
17530}
17531_ACEOF
17532rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000017533if { (ac_try="$ac_link"
17534case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17537esac
17538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000017540 ac_status=$?
17541 grep -v '^ *+' conftest.er1 >conftest.err
17542 rm -f conftest.er1
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000017546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17547 { (case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17550esac
17551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000017553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; } &&
17556 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000017557 { (case "(($ac_try" in
17558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559 *) ac_try_echo=$ac_try;;
17560esac
17561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000017563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; }; then
17566
17567aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17568}'`
17569# Check for a 64-bit object if we didn't find anything.
17570if 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; }
17571}'`; fi
17572else
17573 echo "$as_me: failed program was:" >&5
17574sed 's/^/| /' conftest.$ac_ext >&5
17575
mmentovai8c2a4de2006-09-20 16:20:15 +000017576
brynercb91a2f2006-08-25 21:14:45 +000017577fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017578
17579rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000017580 conftest$ac_exeext conftest.$ac_ext
17581if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17582
17583 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17584 # Warning - without using the other run time loading flags,
17585 # -berok will link without error, but may produce a broken library.
17586 no_undefined_flag_GCJ=' ${wl}-bernotok'
17587 allow_undefined_flag_GCJ=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +000017588 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +000017589 whole_archive_flag_spec_GCJ='$convenience'
brynercb91a2f2006-08-25 21:14:45 +000017590 archive_cmds_need_lc_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000017591 # This is similar to how AIX traditionally builds its shared libraries.
17592 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 +000017593 fi
17594 fi
17595 ;;
17596
17597 amigaos*)
17598 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)'
17599 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17600 hardcode_minus_L_GCJ=yes
17601 # see comment about different semantics on the GNU ld section
17602 ld_shlibs_GCJ=no
17603 ;;
17604
mmentovai8c2a4de2006-09-20 16:20:15 +000017605 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000017606 export_dynamic_flag_spec_GCJ=-rdynamic
17607 ;;
17608
17609 cygwin* | mingw* | pw32*)
17610 # When not using gcc, we currently assume that we are using
17611 # Microsoft Visual C++.
17612 # hardcode_libdir_flag_spec is actually meaningless, as there is
17613 # no search path for DLLs.
17614 hardcode_libdir_flag_spec_GCJ=' '
17615 allow_undefined_flag_GCJ=unsupported
17616 # Tell ltmain to make .lib files, not .a files.
17617 libext=lib
17618 # Tell ltmain to make .dll files, not .so files.
17619 shrext_cmds=".dll"
17620 # FIXME: Setting linknames here is a bad hack.
17621 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17622 # The linker will automatically build a .lib file if we build a DLL.
17623 old_archive_From_new_cmds_GCJ='true'
17624 # FIXME: Should let the user specify the lib program.
17625 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
mmentovai8c2a4de2006-09-20 16:20:15 +000017626 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
brynercb91a2f2006-08-25 21:14:45 +000017627 enable_shared_with_static_runtimes_GCJ=yes
17628 ;;
17629
17630 darwin* | rhapsody*)
mmentovai8c2a4de2006-09-20 16:20:15 +000017631 case $host_os in
17632 rhapsody* | darwin1.[012])
17633 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17634 ;;
17635 *) # Darwin 1.3 on
17636 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17637 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17638 else
17639 case ${MACOSX_DEPLOYMENT_TARGET} in
17640 10.[012])
17641 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17642 ;;
17643 10.*)
17644 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17645 ;;
17646 esac
17647 fi
17648 ;;
brynerd5e66382006-09-08 02:35:53 +000017649 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000017650 archive_cmds_need_lc_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000017651 hardcode_direct_GCJ=no
17652 hardcode_automatic_GCJ=yes
17653 hardcode_shlibpath_var_GCJ=unsupported
mmentovai8c2a4de2006-09-20 16:20:15 +000017654 whole_archive_flag_spec_GCJ=''
brynercb91a2f2006-08-25 21:14:45 +000017655 link_all_deplibs_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000017656 if test "$GCC" = yes ; then
17657 output_verbose_link_cmd='echo'
17658 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17659 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17660 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17661 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}'
17662 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 +000017663 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017664 case $cc_basename in
17665 xlc*)
17666 output_verbose_link_cmd='echo'
17667 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17668 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17669 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17670 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}'
17671 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}'
17672 ;;
17673 *)
17674 ld_shlibs_GCJ=no
17675 ;;
17676 esac
brynercb91a2f2006-08-25 21:14:45 +000017677 fi
17678 ;;
17679
17680 dgux*)
17681 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17682 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17683 hardcode_shlibpath_var_GCJ=no
17684 ;;
17685
17686 freebsd1*)
17687 ld_shlibs_GCJ=no
17688 ;;
17689
17690 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17691 # support. Future versions do this automatically, but an explicit c++rt0.o
17692 # does not break anything, and helps significantly (at the cost of a little
17693 # extra space).
17694 freebsd2.2*)
17695 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17696 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17697 hardcode_direct_GCJ=yes
17698 hardcode_shlibpath_var_GCJ=no
17699 ;;
17700
17701 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17702 freebsd2*)
17703 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17704 hardcode_direct_GCJ=yes
17705 hardcode_minus_L_GCJ=yes
17706 hardcode_shlibpath_var_GCJ=no
17707 ;;
17708
17709 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mmentovai8c2a4de2006-09-20 16:20:15 +000017710 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000017711 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17712 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17713 hardcode_direct_GCJ=yes
17714 hardcode_shlibpath_var_GCJ=no
17715 ;;
17716
17717 hpux9*)
17718 if test "$GCC" = yes; then
17719 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'
17720 else
17721 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'
17722 fi
17723 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17724 hardcode_libdir_separator_GCJ=:
17725 hardcode_direct_GCJ=yes
17726
17727 # hardcode_minus_L: Not really in the search PATH,
17728 # but as the default location of the library.
17729 hardcode_minus_L_GCJ=yes
17730 export_dynamic_flag_spec_GCJ='${wl}-E'
17731 ;;
17732
mmentovai8c2a4de2006-09-20 16:20:15 +000017733 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +000017734 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017735 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17736 else
17737 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17738 fi
17739 if test "$with_gnu_ld" = no; then
17740 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17741 hardcode_libdir_separator_GCJ=:
17742
17743 hardcode_direct_GCJ=yes
17744 export_dynamic_flag_spec_GCJ='${wl}-E'
17745
17746 # hardcode_minus_L: Not really in the search PATH,
17747 # but as the default location of the library.
17748 hardcode_minus_L_GCJ=yes
17749 fi
17750 ;;
17751
17752 hpux11*)
17753 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17754 case $host_cpu in
17755 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +000017756 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17757 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000017758 ia64*)
17759 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17760 ;;
brynercb91a2f2006-08-25 21:14:45 +000017761 *)
17762 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17763 ;;
17764 esac
17765 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017766 case $host_cpu in
17767 hppa*64*)
17768 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17769 ;;
17770 ia64*)
17771 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000017772 ;;
17773 *)
mmentovai8c2a4de2006-09-20 16:20:15 +000017774 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 +000017775 ;;
17776 esac
17777 fi
17778 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017779 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17780 hardcode_libdir_separator_GCJ=:
brynerd5e66382006-09-08 02:35:53 +000017781
mmentovai8c2a4de2006-09-20 16:20:15 +000017782 case $host_cpu in
17783 hppa*64*|ia64*)
17784 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17785 hardcode_direct_GCJ=no
17786 hardcode_shlibpath_var_GCJ=no
brynerd5e66382006-09-08 02:35:53 +000017787 ;;
brynercb91a2f2006-08-25 21:14:45 +000017788 *)
brynercb91a2f2006-08-25 21:14:45 +000017789 hardcode_direct_GCJ=yes
17790 export_dynamic_flag_spec_GCJ='${wl}-E'
17791
17792 # hardcode_minus_L: Not really in the search PATH,
17793 # but as the default location of the library.
17794 hardcode_minus_L_GCJ=yes
17795 ;;
17796 esac
17797 fi
17798 ;;
17799
17800 irix5* | irix6* | nonstopux*)
17801 if test "$GCC" = yes; then
17802 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'
17803 else
17804 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'
17805 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17806 fi
17807 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17808 hardcode_libdir_separator_GCJ=:
17809 link_all_deplibs_GCJ=yes
17810 ;;
17811
mmentovai8c2a4de2006-09-20 16:20:15 +000017812 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000017813 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17814 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17815 else
17816 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17817 fi
17818 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17819 hardcode_direct_GCJ=yes
17820 hardcode_shlibpath_var_GCJ=no
17821 ;;
17822
17823 newsos6)
17824 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17825 hardcode_direct_GCJ=yes
17826 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17827 hardcode_libdir_separator_GCJ=:
17828 hardcode_shlibpath_var_GCJ=no
17829 ;;
17830
17831 openbsd*)
17832 hardcode_direct_GCJ=yes
17833 hardcode_shlibpath_var_GCJ=no
17834 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17835 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +000017836 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 +000017837 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17838 export_dynamic_flag_spec_GCJ='${wl}-E'
17839 else
17840 case $host_os in
17841 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17842 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17843 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17844 ;;
17845 *)
17846 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17847 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17848 ;;
17849 esac
17850 fi
17851 ;;
17852
17853 os2*)
17854 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17855 hardcode_minus_L_GCJ=yes
17856 allow_undefined_flag_GCJ=unsupported
17857 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'
17858 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17859 ;;
17860
17861 osf3*)
17862 if test "$GCC" = yes; then
17863 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17864 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'
17865 else
17866 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17867 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'
17868 fi
17869 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17870 hardcode_libdir_separator_GCJ=:
17871 ;;
17872
17873 osf4* | osf5*) # as osf3* with the addition of -msym flag
17874 if test "$GCC" = yes; then
17875 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17876 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'
17877 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17878 else
17879 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17880 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'
17881 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 +000017882 $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 +000017883
17884 # Both c and cxx compiler support -rpath directly
17885 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17886 fi
17887 hardcode_libdir_separator_GCJ=:
17888 ;;
17889
brynercb91a2f2006-08-25 21:14:45 +000017890 solaris*)
17891 no_undefined_flag_GCJ=' -z text'
17892 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017893 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +000017894 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17895 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17896 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17897 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017898 wlarc=''
brynercb91a2f2006-08-25 21:14:45 +000017899 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17900 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17901 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17902 fi
17903 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17904 hardcode_shlibpath_var_GCJ=no
17905 case $host_os in
17906 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000017907 *)
17908 # The compiler driver will combine linker options so we
17909 # cannot just pass the convience library names through
17910 # without $wl, iff we do not link with $LD.
17911 # Luckily, gcc supports the same syntax we need for Sun Studio.
17912 # Supported since Solaris 2.6 (maybe 2.5.1?)
17913 case $wlarc in
17914 '')
17915 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17916 *)
17917 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' ;;
17918 esac ;;
brynercb91a2f2006-08-25 21:14:45 +000017919 esac
17920 link_all_deplibs_GCJ=yes
17921 ;;
17922
17923 sunos4*)
17924 if test "x$host_vendor" = xsequent; then
17925 # Use $CC to link under sequent, because it throws in some extra .o
17926 # files that make .init and .fini sections work.
17927 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17928 else
17929 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17930 fi
17931 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17932 hardcode_direct_GCJ=yes
17933 hardcode_minus_L_GCJ=yes
17934 hardcode_shlibpath_var_GCJ=no
17935 ;;
17936
17937 sysv4)
17938 case $host_vendor in
17939 sni)
17940 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17941 hardcode_direct_GCJ=yes # is this really true???
17942 ;;
17943 siemens)
17944 ## LD is ld it makes a PLAMLIB
17945 ## CC just makes a GrossModule.
17946 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17947 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17948 hardcode_direct_GCJ=no
17949 ;;
17950 motorola)
17951 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17952 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17953 ;;
17954 esac
17955 runpath_var='LD_RUN_PATH'
17956 hardcode_shlibpath_var_GCJ=no
17957 ;;
17958
17959 sysv4.3*)
17960 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17961 hardcode_shlibpath_var_GCJ=no
17962 export_dynamic_flag_spec_GCJ='-Bexport'
17963 ;;
17964
17965 sysv4*MP*)
17966 if test -d /usr/nec; then
17967 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17968 hardcode_shlibpath_var_GCJ=no
17969 runpath_var=LD_RUN_PATH
17970 hardcode_runpath_var=yes
17971 ld_shlibs_GCJ=yes
17972 fi
17973 ;;
17974
mmentovai8c2a4de2006-09-20 16:20:15 +000017975 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17976 no_undefined_flag_GCJ='${wl}-z,text'
17977 archive_cmds_need_lc_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000017978 hardcode_shlibpath_var_GCJ=no
mmentovai8c2a4de2006-09-20 16:20:15 +000017979 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +000017980
mmentovai3261e8b2006-09-06 02:56:44 +000017981 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017982 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17983 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 +000017984 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017985 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17986 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 +000017987 fi
brynerd5e66382006-09-08 02:35:53 +000017988 ;;
17989
mmentovai8c2a4de2006-09-20 16:20:15 +000017990 sysv5* | sco3.2v5* | sco5v6*)
17991 # Note: We can NOT use -z defs as we might desire, because we do not
17992 # link with -lc, and that would cause any symbols used from libc to
17993 # always be unresolved, which means just about no library would
17994 # ever link correctly. If we're not using GNU ld we use -z text
17995 # though, which does catch some bad symbols but isn't as heavy-handed
17996 # as -z defs.
17997 no_undefined_flag_GCJ='${wl}-z,text'
17998 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17999 archive_cmds_need_lc_GCJ=no
brynerd5e66382006-09-08 02:35:53 +000018000 hardcode_shlibpath_var_GCJ=no
mmentovai8c2a4de2006-09-20 16:20:15 +000018001 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18002 hardcode_libdir_separator_GCJ=':'
18003 link_all_deplibs_GCJ=yes
18004 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +000018005 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +000018006
18007 if test "$GCC" = yes; then
18008 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18009 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18010 else
18011 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18012 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18013 fi
brynercb91a2f2006-08-25 21:14:45 +000018014 ;;
18015
18016 uts4*)
18017 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18018 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18019 hardcode_shlibpath_var_GCJ=no
18020 ;;
18021
18022 *)
18023 ld_shlibs_GCJ=no
18024 ;;
18025 esac
18026 fi
18027
mmentovai8c2a4de2006-09-20 16:20:15 +000018028{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18029echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018030test "$ld_shlibs_GCJ" = no && can_build_shared=no
18031
brynercb91a2f2006-08-25 21:14:45 +000018032#
18033# Do we need to explicitly link libc?
18034#
18035case "x$archive_cmds_need_lc_GCJ" in
18036x|xyes)
18037 # Assume -lc should be added
18038 archive_cmds_need_lc_GCJ=yes
18039
18040 if test "$enable_shared" = yes && test "$GCC" = yes; then
18041 case $archive_cmds_GCJ in
18042 *'~'*)
18043 # FIXME: we may have to deal with multi-command sequences.
18044 ;;
18045 '$CC '*)
18046 # Test whether the compiler implicitly links with -lc since on some
18047 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18048 # to ld, don't add -lc before -lgcc.
mmentovai8c2a4de2006-09-20 16:20:15 +000018049 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18050echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018051 $rm conftest*
18052 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18053
18054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18055 (eval $ac_compile) 2>&5
18056 ac_status=$?
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } 2>conftest.err; then
18059 soname=conftest
18060 lib=conftest
18061 libobjs=conftest.$ac_objext
18062 deplibs=
18063 wl=$lt_prog_compiler_wl_GCJ
mmentovai8c2a4de2006-09-20 16:20:15 +000018064 pic_flag=$lt_prog_compiler_pic_GCJ
brynercb91a2f2006-08-25 21:14:45 +000018065 compiler_flags=-v
18066 linker_flags=-v
18067 verstring=
18068 output_objdir=.
18069 libname=conftest
18070 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18071 allow_undefined_flag_GCJ=
18072 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18073 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18074 ac_status=$?
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); }
18077 then
18078 archive_cmds_need_lc_GCJ=no
18079 else
18080 archive_cmds_need_lc_GCJ=yes
18081 fi
18082 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18083 else
18084 cat conftest.err 1>&5
18085 fi
18086 $rm conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000018087 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18088echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018089 ;;
18090 esac
18091 fi
18092 ;;
18093esac
18094
mmentovai8c2a4de2006-09-20 16:20:15 +000018095{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18096echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018097library_names_spec=
18098libname_spec='lib$name'
18099soname_spec=
18100shrext_cmds=".so"
18101postinstall_cmds=
18102postuninstall_cmds=
18103finish_cmds=
18104finish_eval=
18105shlibpath_var=
18106shlibpath_overrides_runpath=unknown
18107version_type=none
18108dynamic_linker="$host_os ld.so"
18109sys_lib_dlsearch_path_spec="/lib /usr/lib"
18110if test "$GCC" = yes; then
18111 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18112 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18113 # if the path contains ";" then we assume it to be the separator
18114 # otherwise default to the standard path separator (i.e. ":") - it is
18115 # assumed that no part of a normal pathname contains ";" but that should
18116 # okay in the real world where ";" in dirpaths is itself problematic.
18117 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18118 else
18119 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18120 fi
18121else
18122 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18123fi
18124need_lib_prefix=unknown
18125hardcode_into_libs=no
18126
18127# when you set need_version to no, make sure it does not cause -set_version
18128# flags to be left without arguments
18129need_version=unknown
18130
18131case $host_os in
18132aix3*)
18133 version_type=linux
18134 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18135 shlibpath_var=LIBPATH
18136
18137 # AIX 3 has no versioning support, so we append a major version to the name.
18138 soname_spec='${libname}${release}${shared_ext}$major'
18139 ;;
18140
18141aix4* | aix5*)
18142 version_type=linux
18143 need_lib_prefix=no
18144 need_version=no
18145 hardcode_into_libs=yes
18146 if test "$host_cpu" = ia64; then
18147 # AIX 5 supports IA64
18148 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18149 shlibpath_var=LD_LIBRARY_PATH
18150 else
18151 # With GCC up to 2.95.x, collect2 would create an import file
18152 # for dependence libraries. The import file would start with
18153 # the line `#! .'. This would cause the generated library to
18154 # depend on `.', always an invalid library. This was fixed in
18155 # development snapshots of GCC prior to 3.0.
18156 case $host_os in
18157 aix4 | aix4.[01] | aix4.[01].*)
18158 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18159 echo ' yes '
18160 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18161 :
18162 else
18163 can_build_shared=no
18164 fi
18165 ;;
18166 esac
18167 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18168 # soname into executable. Probably we can add versioning support to
18169 # collect2, so additional links can be useful in future.
18170 if test "$aix_use_runtimelinking" = yes; then
18171 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18172 # instead of lib<name>.a to let people know that these are not
18173 # typical AIX shared libraries.
18174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18175 else
18176 # We preserve .a as extension for shared libraries through AIX4.2
18177 # and later when we are not doing run time linking.
18178 library_names_spec='${libname}${release}.a $libname.a'
18179 soname_spec='${libname}${release}${shared_ext}$major'
18180 fi
18181 shlibpath_var=LIBPATH
18182 fi
18183 ;;
18184
18185amigaos*)
18186 library_names_spec='$libname.ixlibrary $libname.a'
18187 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18188 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'
18189 ;;
18190
18191beos*)
18192 library_names_spec='${libname}${shared_ext}'
18193 dynamic_linker="$host_os ld.so"
18194 shlibpath_var=LIBRARY_PATH
18195 ;;
18196
mmentovai8c2a4de2006-09-20 16:20:15 +000018197bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000018198 version_type=linux
18199 need_version=no
18200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18201 soname_spec='${libname}${release}${shared_ext}$major'
18202 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18203 shlibpath_var=LD_LIBRARY_PATH
18204 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18205 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18206 # the default ld.so.conf also contains /usr/contrib/lib and
18207 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18208 # libtool to hard-code these into programs
18209 ;;
18210
18211cygwin* | mingw* | pw32*)
18212 version_type=windows
18213 shrext_cmds=".dll"
18214 need_version=no
18215 need_lib_prefix=no
18216
18217 case $GCC,$host_os in
18218 yes,cygwin* | yes,mingw* | yes,pw32*)
18219 library_names_spec='$libname.dll.a'
18220 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18221 postinstall_cmds='base_file=`basename \${file}`~
18222 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18223 dldir=$destdir/`dirname \$dlpath`~
18224 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000018225 $install_prog $dir/$dlname \$dldir/$dlname~
18226 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000018227 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18228 dlpath=$dir/\$dldll~
18229 $rm \$dlpath'
18230 shlibpath_overrides_runpath=yes
18231
18232 case $host_os in
18233 cygwin*)
18234 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18235 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18236 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18237 ;;
18238 mingw*)
18239 # MinGW DLLs use traditional 'lib' prefix
18240 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18241 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18242 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18243 # It is most probably a Windows format PATH printed by
18244 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18245 # path with ; separators, and with drive letters. We can handle the
18246 # drive letters (cygwin fileutils understands them), so leave them,
18247 # especially as we might pass files found there to a mingw objdump,
18248 # which wouldn't understand a cygwinified path. Ahh.
18249 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18250 else
18251 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18252 fi
18253 ;;
18254 pw32*)
18255 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000018256 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 +000018257 ;;
18258 esac
18259 ;;
18260
18261 *)
18262 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18263 ;;
18264 esac
18265 dynamic_linker='Win32 ld.exe'
18266 # FIXME: first we should search . and the directory the executable is in
18267 shlibpath_var=PATH
18268 ;;
18269
18270darwin* | rhapsody*)
18271 dynamic_linker="$host_os dyld"
18272 version_type=darwin
18273 need_lib_prefix=no
18274 need_version=no
18275 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18276 soname_spec='${libname}${release}${major}$shared_ext'
18277 shlibpath_overrides_runpath=yes
18278 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000018279 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
brynercb91a2f2006-08-25 21:14:45 +000018280 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18281 if test "$GCC" = yes; then
18282 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"`
18283 else
18284 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18285 fi
18286 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18287 ;;
18288
18289dgux*)
18290 version_type=linux
18291 need_lib_prefix=no
18292 need_version=no
18293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18294 soname_spec='${libname}${release}${shared_ext}$major'
18295 shlibpath_var=LD_LIBRARY_PATH
18296 ;;
18297
18298freebsd1*)
18299 dynamic_linker=no
18300 ;;
18301
18302kfreebsd*-gnu)
18303 version_type=linux
18304 need_lib_prefix=no
18305 need_version=no
18306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18307 soname_spec='${libname}${release}${shared_ext}$major'
18308 shlibpath_var=LD_LIBRARY_PATH
18309 shlibpath_overrides_runpath=no
18310 hardcode_into_libs=yes
18311 dynamic_linker='GNU ld.so'
18312 ;;
18313
mmentovai8c2a4de2006-09-20 16:20:15 +000018314freebsd* | dragonfly*)
18315 # DragonFly does not have aout. When/if they implement a new
18316 # versioning mechanism, adjust this.
18317 if test -x /usr/bin/objformat; then
18318 objformat=`/usr/bin/objformat`
18319 else
18320 case $host_os in
18321 freebsd[123]*) objformat=aout ;;
18322 *) objformat=elf ;;
18323 esac
18324 fi
brynercb91a2f2006-08-25 21:14:45 +000018325 version_type=freebsd-$objformat
18326 case $version_type in
18327 freebsd-elf*)
18328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18329 need_version=no
18330 need_lib_prefix=no
18331 ;;
18332 freebsd-*)
18333 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18334 need_version=yes
18335 ;;
18336 esac
18337 shlibpath_var=LD_LIBRARY_PATH
18338 case $host_os in
18339 freebsd2*)
18340 shlibpath_overrides_runpath=yes
18341 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000018342 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000018343 shlibpath_overrides_runpath=yes
18344 hardcode_into_libs=yes
18345 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000018346 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18347 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000018348 shlibpath_overrides_runpath=no
18349 hardcode_into_libs=yes
18350 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000018351 freebsd*) # from 4.6 on
18352 shlibpath_overrides_runpath=yes
18353 hardcode_into_libs=yes
18354 ;;
brynercb91a2f2006-08-25 21:14:45 +000018355 esac
18356 ;;
18357
18358gnu*)
18359 version_type=linux
18360 need_lib_prefix=no
18361 need_version=no
18362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18363 soname_spec='${libname}${release}${shared_ext}$major'
18364 shlibpath_var=LD_LIBRARY_PATH
18365 hardcode_into_libs=yes
18366 ;;
18367
18368hpux9* | hpux10* | hpux11*)
18369 # Give a soname corresponding to the major version so that dld.sl refuses to
18370 # link against other versions.
18371 version_type=sunos
18372 need_lib_prefix=no
18373 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000018374 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000018375 ia64*)
18376 shrext_cmds='.so'
18377 hardcode_into_libs=yes
18378 dynamic_linker="$host_os dld.so"
18379 shlibpath_var=LD_LIBRARY_PATH
18380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18382 soname_spec='${libname}${release}${shared_ext}$major'
18383 if test "X$HPUX_IA64_MODE" = X32; then
18384 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18385 else
18386 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18387 fi
18388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18389 ;;
18390 hppa*64*)
18391 shrext_cmds='.sl'
18392 hardcode_into_libs=yes
18393 dynamic_linker="$host_os dld.sl"
18394 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18395 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18397 soname_spec='${libname}${release}${shared_ext}$major'
18398 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18399 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18400 ;;
18401 *)
18402 shrext_cmds='.sl'
18403 dynamic_linker="$host_os dld.sl"
18404 shlibpath_var=SHLIB_PATH
18405 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18407 soname_spec='${libname}${release}${shared_ext}$major'
18408 ;;
18409 esac
18410 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18411 postinstall_cmds='chmod 555 $lib'
18412 ;;
18413
mmentovai8c2a4de2006-09-20 16:20:15 +000018414interix3*)
18415 version_type=linux
18416 need_lib_prefix=no
18417 need_version=no
18418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18419 soname_spec='${libname}${release}${shared_ext}$major'
18420 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18421 shlibpath_var=LD_LIBRARY_PATH
18422 shlibpath_overrides_runpath=no
18423 hardcode_into_libs=yes
18424 ;;
18425
brynercb91a2f2006-08-25 21:14:45 +000018426irix5* | irix6* | nonstopux*)
18427 case $host_os in
18428 nonstopux*) version_type=nonstopux ;;
18429 *)
18430 if test "$lt_cv_prog_gnu_ld" = yes; then
18431 version_type=linux
18432 else
18433 version_type=irix
18434 fi ;;
18435 esac
18436 need_lib_prefix=no
18437 need_version=no
18438 soname_spec='${libname}${release}${shared_ext}$major'
18439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18440 case $host_os in
18441 irix5* | nonstopux*)
18442 libsuff= shlibsuff=
18443 ;;
18444 *)
18445 case $LD in # libtool.m4 will add one of these switches to LD
18446 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18447 libsuff= shlibsuff= libmagic=32-bit;;
18448 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18449 libsuff=32 shlibsuff=N32 libmagic=N32;;
18450 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18451 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18452 *) libsuff= shlibsuff= libmagic=never-match;;
18453 esac
18454 ;;
18455 esac
18456 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18457 shlibpath_overrides_runpath=no
18458 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18459 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18460 hardcode_into_libs=yes
18461 ;;
18462
18463# No shared lib support for Linux oldld, aout, or coff.
18464linux*oldld* | linux*aout* | linux*coff*)
18465 dynamic_linker=no
18466 ;;
18467
18468# This must be Linux ELF.
18469linux*)
18470 version_type=linux
18471 need_lib_prefix=no
18472 need_version=no
18473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18474 soname_spec='${libname}${release}${shared_ext}$major'
18475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18476 shlibpath_var=LD_LIBRARY_PATH
18477 shlibpath_overrides_runpath=no
18478 # This implies no fast_install, which is unacceptable.
18479 # Some rework will be needed to allow for fast_install
18480 # before this can be enabled.
18481 hardcode_into_libs=yes
18482
18483 # Append ld.so.conf contents to the search path
18484 if test -f /etc/ld.so.conf; then
mmentovai8c2a4de2006-09-20 16:20:15 +000018485 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 +000018486 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18487 fi
18488
18489 # We used to test for /lib/ld.so.1 and disable shared libraries on
18490 # powerpc, because MkLinux only supported shared libraries with the
18491 # GNU dynamic linker. Since this was broken with cross compilers,
18492 # most powerpc-linux boxes support dynamic linking these days and
18493 # people can always --disable-shared, the test was removed, and we
18494 # assume the GNU/Linux dynamic linker is in use.
18495 dynamic_linker='GNU/Linux ld.so'
18496 ;;
18497
brynercb91a2f2006-08-25 21:14:45 +000018498knetbsd*-gnu)
18499 version_type=linux
18500 need_lib_prefix=no
18501 need_version=no
18502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18503 soname_spec='${libname}${release}${shared_ext}$major'
18504 shlibpath_var=LD_LIBRARY_PATH
18505 shlibpath_overrides_runpath=no
18506 hardcode_into_libs=yes
18507 dynamic_linker='GNU ld.so'
18508 ;;
18509
18510netbsd*)
18511 version_type=sunos
18512 need_lib_prefix=no
18513 need_version=no
18514 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18517 dynamic_linker='NetBSD (a.out) ld.so'
18518 else
18519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18520 soname_spec='${libname}${release}${shared_ext}$major'
18521 dynamic_linker='NetBSD ld.elf_so'
18522 fi
18523 shlibpath_var=LD_LIBRARY_PATH
18524 shlibpath_overrides_runpath=yes
18525 hardcode_into_libs=yes
18526 ;;
18527
18528newsos6)
18529 version_type=linux
18530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18531 shlibpath_var=LD_LIBRARY_PATH
18532 shlibpath_overrides_runpath=yes
18533 ;;
18534
18535nto-qnx*)
18536 version_type=linux
18537 need_lib_prefix=no
18538 need_version=no
18539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18540 soname_spec='${libname}${release}${shared_ext}$major'
18541 shlibpath_var=LD_LIBRARY_PATH
18542 shlibpath_overrides_runpath=yes
18543 ;;
18544
18545openbsd*)
18546 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000018547 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000018548 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000018549 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18550 case $host_os in
18551 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18552 *) need_version=no ;;
18553 esac
brynercb91a2f2006-08-25 21:14:45 +000018554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18556 shlibpath_var=LD_LIBRARY_PATH
18557 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18558 case $host_os in
18559 openbsd2.[89] | openbsd2.[89].*)
18560 shlibpath_overrides_runpath=no
18561 ;;
18562 *)
18563 shlibpath_overrides_runpath=yes
18564 ;;
18565 esac
18566 else
18567 shlibpath_overrides_runpath=yes
18568 fi
18569 ;;
18570
18571os2*)
18572 libname_spec='$name'
18573 shrext_cmds=".dll"
18574 need_lib_prefix=no
18575 library_names_spec='$libname${shared_ext} $libname.a'
18576 dynamic_linker='OS/2 ld.exe'
18577 shlibpath_var=LIBPATH
18578 ;;
18579
18580osf3* | osf4* | osf5*)
18581 version_type=osf
18582 need_lib_prefix=no
18583 need_version=no
18584 soname_spec='${libname}${release}${shared_ext}$major'
18585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18586 shlibpath_var=LD_LIBRARY_PATH
18587 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18588 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18589 ;;
18590
brynercb91a2f2006-08-25 21:14:45 +000018591solaris*)
18592 version_type=linux
18593 need_lib_prefix=no
18594 need_version=no
18595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18596 soname_spec='${libname}${release}${shared_ext}$major'
18597 shlibpath_var=LD_LIBRARY_PATH
18598 shlibpath_overrides_runpath=yes
18599 hardcode_into_libs=yes
18600 # ldd complains unless libraries are executable
18601 postinstall_cmds='chmod +x $lib'
18602 ;;
18603
18604sunos4*)
18605 version_type=sunos
18606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18607 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18608 shlibpath_var=LD_LIBRARY_PATH
18609 shlibpath_overrides_runpath=yes
18610 if test "$with_gnu_ld" = yes; then
18611 need_lib_prefix=no
18612 fi
18613 need_version=yes
18614 ;;
18615
mmentovai8c2a4de2006-09-20 16:20:15 +000018616sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000018617 version_type=linux
18618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18619 soname_spec='${libname}${release}${shared_ext}$major'
18620 shlibpath_var=LD_LIBRARY_PATH
18621 case $host_vendor in
18622 sni)
18623 shlibpath_overrides_runpath=no
18624 need_lib_prefix=no
18625 export_dynamic_flag_spec='${wl}-Blargedynsym'
18626 runpath_var=LD_RUN_PATH
18627 ;;
18628 siemens)
18629 need_lib_prefix=no
18630 ;;
18631 motorola)
18632 need_lib_prefix=no
18633 need_version=no
18634 shlibpath_overrides_runpath=no
18635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18636 ;;
18637 esac
18638 ;;
18639
18640sysv4*MP*)
18641 if test -d /usr/nec ;then
18642 version_type=linux
18643 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18644 soname_spec='$libname${shared_ext}.$major'
18645 shlibpath_var=LD_LIBRARY_PATH
18646 fi
18647 ;;
18648
mmentovai8c2a4de2006-09-20 16:20:15 +000018649sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18650 version_type=freebsd-elf
18651 need_lib_prefix=no
18652 need_version=no
18653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18654 soname_spec='${libname}${release}${shared_ext}$major'
18655 shlibpath_var=LD_LIBRARY_PATH
18656 hardcode_into_libs=yes
18657 if test "$with_gnu_ld" = yes; then
18658 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18659 shlibpath_overrides_runpath=no
18660 else
18661 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18662 shlibpath_overrides_runpath=yes
18663 case $host_os in
18664 sco3.2v5*)
18665 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18666 ;;
18667 esac
18668 fi
18669 sys_lib_dlsearch_path_spec='/usr/lib'
18670 ;;
18671
brynercb91a2f2006-08-25 21:14:45 +000018672uts4*)
18673 version_type=linux
18674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18675 soname_spec='${libname}${release}${shared_ext}$major'
18676 shlibpath_var=LD_LIBRARY_PATH
18677 ;;
18678
18679*)
18680 dynamic_linker=no
18681 ;;
18682esac
mmentovai8c2a4de2006-09-20 16:20:15 +000018683{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18684echo "${ECHO_T}$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018685test "$dynamic_linker" = no && can_build_shared=no
18686
mmentovai8c2a4de2006-09-20 16:20:15 +000018687variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18688if test "$GCC" = yes; then
18689 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18690fi
18691
18692{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18693echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018694hardcode_action_GCJ=
18695if test -n "$hardcode_libdir_flag_spec_GCJ" || \
mmentovai8c2a4de2006-09-20 16:20:15 +000018696 test -n "$runpath_var_GCJ" || \
18697 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000018698
18699 # We can hardcode non-existant directories.
18700 if test "$hardcode_direct_GCJ" != no &&
18701 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18702 # have to relink, otherwise we might link with an installed library
18703 # when we should be linking with a yet-to-be-installed one
18704 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18705 test "$hardcode_minus_L_GCJ" != no; then
18706 # Linking always hardcodes the temporary library directory.
18707 hardcode_action_GCJ=relink
18708 else
18709 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18710 hardcode_action_GCJ=immediate
18711 fi
18712else
18713 # We cannot hardcode anything, or else we can only hardcode existing
18714 # directories.
18715 hardcode_action_GCJ=unsupported
18716fi
mmentovai8c2a4de2006-09-20 16:20:15 +000018717{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18718echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018719
18720if test "$hardcode_action_GCJ" = relink; then
18721 # Fast installation is not supported
18722 enable_fast_install=no
18723elif test "$shlibpath_overrides_runpath" = yes ||
18724 test "$enable_shared" = no; then
18725 # Fast installation is not necessary
18726 enable_fast_install=needless
18727fi
18728
brynercb91a2f2006-08-25 21:14:45 +000018729
18730# The else clause should only fire when bootstrapping the
18731# libtool distribution, otherwise you forgot to ship ltmain.sh
18732# with your package, and you will get complaints that there are
18733# no rules to generate ltmain.sh.
18734if test -f "$ltmain"; then
18735 # See if we are running on zsh, and set the options which allow our commands through
18736 # without removal of \ escapes.
18737 if test -n "${ZSH_VERSION+set}" ; then
18738 setopt NO_GLOB_SUBST
18739 fi
18740 # Now quote all the things that may contain metacharacters while being
18741 # careful not to overquote the AC_SUBSTed values. We take copies of the
18742 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000018743 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000018744 SED SHELL STRIP \
18745 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18746 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18747 deplibs_check_method reload_flag reload_cmds need_locks \
18748 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18749 lt_cv_sys_global_symbol_to_c_name_address \
18750 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18751 old_postinstall_cmds old_postuninstall_cmds \
18752 compiler_GCJ \
18753 CC_GCJ \
18754 LD_GCJ \
18755 lt_prog_compiler_wl_GCJ \
18756 lt_prog_compiler_pic_GCJ \
18757 lt_prog_compiler_static_GCJ \
18758 lt_prog_compiler_no_builtin_flag_GCJ \
18759 export_dynamic_flag_spec_GCJ \
18760 thread_safe_flag_spec_GCJ \
18761 whole_archive_flag_spec_GCJ \
18762 enable_shared_with_static_runtimes_GCJ \
18763 old_archive_cmds_GCJ \
18764 old_archive_from_new_cmds_GCJ \
18765 predep_objects_GCJ \
18766 postdep_objects_GCJ \
18767 predeps_GCJ \
18768 postdeps_GCJ \
18769 compiler_lib_search_path_GCJ \
18770 archive_cmds_GCJ \
18771 archive_expsym_cmds_GCJ \
18772 postinstall_cmds_GCJ \
18773 postuninstall_cmds_GCJ \
18774 old_archive_from_expsyms_cmds_GCJ \
18775 allow_undefined_flag_GCJ \
18776 no_undefined_flag_GCJ \
18777 export_symbols_cmds_GCJ \
18778 hardcode_libdir_flag_spec_GCJ \
18779 hardcode_libdir_flag_spec_ld_GCJ \
18780 hardcode_libdir_separator_GCJ \
18781 hardcode_automatic_GCJ \
18782 module_cmds_GCJ \
18783 module_expsym_cmds_GCJ \
18784 lt_cv_prog_compiler_c_o_GCJ \
18785 exclude_expsyms_GCJ \
18786 include_expsyms_GCJ; do
18787
18788 case $var in
18789 old_archive_cmds_GCJ | \
18790 old_archive_from_new_cmds_GCJ | \
18791 archive_cmds_GCJ | \
18792 archive_expsym_cmds_GCJ | \
18793 module_cmds_GCJ | \
18794 module_expsym_cmds_GCJ | \
18795 old_archive_from_expsyms_cmds_GCJ | \
18796 export_symbols_cmds_GCJ | \
18797 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18798 postinstall_cmds | postuninstall_cmds | \
18799 old_postinstall_cmds | old_postuninstall_cmds | \
18800 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18801 # Double-quote double-evaled strings.
18802 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18803 ;;
18804 *)
18805 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18806 ;;
18807 esac
18808 done
18809
18810 case $lt_echo in
18811 *'\$0 --fallback-echo"')
18812 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18813 ;;
18814 esac
18815
18816cfgfile="$ofile"
18817
18818 cat <<__EOF__ >> "$cfgfile"
18819# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18820
18821# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18822
18823# Shell to use when invoking shell scripts.
18824SHELL=$lt_SHELL
18825
18826# Whether or not to build shared libraries.
18827build_libtool_libs=$enable_shared
18828
18829# Whether or not to build static libraries.
18830build_old_libs=$enable_static
18831
18832# Whether or not to add -lc for building shared libraries.
18833build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18834
18835# Whether or not to disallow shared libs when runtime libs are static
18836allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18837
18838# Whether or not to optimize for fast installation.
18839fast_install=$enable_fast_install
18840
18841# The host system.
18842host_alias=$host_alias
18843host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000018844host_os=$host_os
18845
18846# The build system.
18847build_alias=$build_alias
18848build=$build
18849build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000018850
18851# An echo program that does not interpret backslashes.
18852echo=$lt_echo
18853
18854# The archiver.
18855AR=$lt_AR
18856AR_FLAGS=$lt_AR_FLAGS
18857
18858# A C compiler.
18859LTCC=$lt_LTCC
18860
mmentovai8c2a4de2006-09-20 16:20:15 +000018861# LTCC compiler flags.
18862LTCFLAGS=$lt_LTCFLAGS
18863
brynercb91a2f2006-08-25 21:14:45 +000018864# A language-specific compiler.
18865CC=$lt_compiler_GCJ
18866
18867# Is the compiler the GNU C compiler?
18868with_gcc=$GCC_GCJ
18869
18870# An ERE matcher.
18871EGREP=$lt_EGREP
18872
18873# The linker used to build libraries.
18874LD=$lt_LD_GCJ
18875
18876# Whether we need hard or soft links.
18877LN_S=$lt_LN_S
18878
18879# A BSD-compatible nm program.
18880NM=$lt_NM
18881
18882# A symbol stripping program
18883STRIP=$lt_STRIP
18884
18885# Used to examine libraries when file_magic_cmd begins "file"
18886MAGIC_CMD=$MAGIC_CMD
18887
18888# Used on cygwin: DLL creation program.
18889DLLTOOL="$DLLTOOL"
18890
18891# Used on cygwin: object dumper.
18892OBJDUMP="$OBJDUMP"
18893
18894# Used on cygwin: assembler.
18895AS="$AS"
18896
18897# The name of the directory that contains temporary libtool files.
18898objdir=$objdir
18899
18900# How to create reloadable object files.
18901reload_flag=$lt_reload_flag
18902reload_cmds=$lt_reload_cmds
18903
18904# How to pass a linker flag through the compiler.
18905wl=$lt_lt_prog_compiler_wl_GCJ
18906
18907# Object file suffix (normally "o").
18908objext="$ac_objext"
18909
18910# Old archive suffix (normally "a").
18911libext="$libext"
18912
18913# Shared library suffix (normally ".so").
18914shrext_cmds='$shrext_cmds'
18915
18916# Executable file suffix (normally "").
18917exeext="$exeext"
18918
18919# Additional compiler flags for building library objects.
18920pic_flag=$lt_lt_prog_compiler_pic_GCJ
18921pic_mode=$pic_mode
18922
18923# What is the maximum length of a command?
18924max_cmd_len=$lt_cv_sys_max_cmd_len
18925
18926# Does compiler simultaneously support -c and -o options?
18927compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18928
mmentovai8c2a4de2006-09-20 16:20:15 +000018929# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000018930need_locks=$lt_need_locks
18931
18932# Do we need the lib prefix for modules?
18933need_lib_prefix=$need_lib_prefix
18934
18935# Do we need a version for libraries?
18936need_version=$need_version
18937
18938# Whether dlopen is supported.
18939dlopen_support=$enable_dlopen
18940
18941# Whether dlopen of programs is supported.
18942dlopen_self=$enable_dlopen_self
18943
18944# Whether dlopen of statically linked programs is supported.
18945dlopen_self_static=$enable_dlopen_self_static
18946
18947# Compiler flag to prevent dynamic linking.
18948link_static_flag=$lt_lt_prog_compiler_static_GCJ
18949
18950# Compiler flag to turn off builtin functions.
18951no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18952
18953# Compiler flag to allow reflexive dlopens.
18954export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18955
18956# Compiler flag to generate shared objects directly from archives.
18957whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18958
18959# Compiler flag to generate thread-safe objects.
18960thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18961
18962# Library versioning type.
18963version_type=$version_type
18964
18965# Format of library name prefix.
18966libname_spec=$lt_libname_spec
18967
18968# List of archive names. First name is the real one, the rest are links.
18969# The last name is the one that the linker finds with -lNAME.
18970library_names_spec=$lt_library_names_spec
18971
18972# The coded name of the library, if different from the real name.
18973soname_spec=$lt_soname_spec
18974
18975# Commands used to build and install an old-style archive.
18976RANLIB=$lt_RANLIB
18977old_archive_cmds=$lt_old_archive_cmds_GCJ
18978old_postinstall_cmds=$lt_old_postinstall_cmds
18979old_postuninstall_cmds=$lt_old_postuninstall_cmds
18980
18981# Create an old-style archive from a shared archive.
18982old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18983
18984# Create a temporary old-style archive to link instead of a shared archive.
18985old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18986
18987# Commands used to build and install a shared archive.
18988archive_cmds=$lt_archive_cmds_GCJ
18989archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18990postinstall_cmds=$lt_postinstall_cmds
18991postuninstall_cmds=$lt_postuninstall_cmds
18992
18993# Commands used to build a loadable module (assumed same as above if empty)
18994module_cmds=$lt_module_cmds_GCJ
18995module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18996
18997# Commands to strip libraries.
18998old_striplib=$lt_old_striplib
18999striplib=$lt_striplib
19000
19001# Dependencies to place before the objects being linked to create a
19002# shared library.
19003predep_objects=$lt_predep_objects_GCJ
19004
19005# Dependencies to place after the objects being linked to create a
19006# shared library.
19007postdep_objects=$lt_postdep_objects_GCJ
19008
19009# Dependencies to place before the objects being linked to create a
19010# shared library.
19011predeps=$lt_predeps_GCJ
19012
19013# Dependencies to place after the objects being linked to create a
19014# shared library.
19015postdeps=$lt_postdeps_GCJ
19016
19017# The library search path used internally by the compiler when linking
19018# a shared library.
19019compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19020
19021# Method to check whether dependent libraries are shared objects.
19022deplibs_check_method=$lt_deplibs_check_method
19023
19024# Command to use when deplibs_check_method == file_magic.
19025file_magic_cmd=$lt_file_magic_cmd
19026
19027# Flag that allows shared libraries with undefined symbols to be built.
19028allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19029
19030# Flag that forces no undefined symbols.
19031no_undefined_flag=$lt_no_undefined_flag_GCJ
19032
19033# Commands used to finish a libtool library installation in a directory.
19034finish_cmds=$lt_finish_cmds
19035
19036# Same as above, but a single script fragment to be evaled but not shown.
19037finish_eval=$lt_finish_eval
19038
19039# Take the output of nm and produce a listing of raw symbols and C names.
19040global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19041
19042# Transform the output of nm in a proper C declaration
19043global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19044
19045# Transform the output of nm in a C name address pair
19046global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19047
19048# This is the shared library runtime path variable.
19049runpath_var=$runpath_var
19050
19051# This is the shared library path variable.
19052shlibpath_var=$shlibpath_var
19053
19054# Is shlibpath searched before the hard-coded library search path?
19055shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19056
19057# How to hardcode a shared library path into an executable.
19058hardcode_action=$hardcode_action_GCJ
19059
19060# Whether we should hardcode library paths into libraries.
19061hardcode_into_libs=$hardcode_into_libs
19062
19063# Flag to hardcode \$libdir into a binary during linking.
19064# This must work even if \$libdir does not exist.
19065hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19066
19067# If ld is used when linking, flag to hardcode \$libdir into
19068# a binary during linking. This must work even if \$libdir does
19069# not exist.
19070hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19071
19072# Whether we need a single -rpath flag with a separated argument.
19073hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19074
19075# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19076# resulting binary.
19077hardcode_direct=$hardcode_direct_GCJ
19078
19079# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19080# resulting binary.
19081hardcode_minus_L=$hardcode_minus_L_GCJ
19082
19083# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19084# the resulting binary.
19085hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19086
19087# Set to yes if building a shared library automatically hardcodes DIR into the library
19088# and all subsequent libraries and executables linked against it.
19089hardcode_automatic=$hardcode_automatic_GCJ
19090
19091# Variables whose values should be saved in libtool wrapper scripts and
19092# restored at relink time.
19093variables_saved_for_relink="$variables_saved_for_relink"
19094
19095# Whether libtool must link a program against all its dependency libraries.
19096link_all_deplibs=$link_all_deplibs_GCJ
19097
19098# Compile-time system search path for libraries
19099sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19100
19101# Run-time system search path for libraries
19102sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19103
19104# Fix the shell variable \$srcfile for the compiler.
19105fix_srcfile_path="$fix_srcfile_path_GCJ"
19106
19107# Set to yes if exported symbols are required.
19108always_export_symbols=$always_export_symbols_GCJ
19109
19110# The commands to list exported symbols.
19111export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19112
19113# The commands to extract the exported symbol list from a shared archive.
19114extract_expsyms_cmds=$lt_extract_expsyms_cmds
19115
19116# Symbols that should not be listed in the preloaded symbols.
19117exclude_expsyms=$lt_exclude_expsyms_GCJ
19118
19119# Symbols that must always be exported.
19120include_expsyms=$lt_include_expsyms_GCJ
19121
19122# ### END LIBTOOL TAG CONFIG: $tagname
19123
19124__EOF__
19125
19126
19127else
19128 # If there is no Makefile yet, we rely on a make rule to execute
19129 # `config.status --recheck' to rerun these tests and create the
19130 # libtool script then.
19131 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19132 if test -f "$ltmain_in"; then
19133 test -f Makefile && make "$ltmain"
19134 fi
19135fi
19136
19137
19138ac_ext=c
19139ac_cpp='$CPP $CPPFLAGS'
19140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19142ac_compiler_gnu=$ac_cv_c_compiler_gnu
19143
19144CC="$lt_save_CC"
19145
19146 else
19147 tagname=""
19148 fi
19149 ;;
19150
19151 RC)
19152
19153
brynercb91a2f2006-08-25 21:14:45 +000019154# Source file extension for RC test sources.
19155ac_ext=rc
19156
19157# Object file extension for compiled RC test sources.
19158objext=o
19159objext_RC=$objext
19160
19161# Code to be used in simple compile tests
19162lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19163
19164# Code to be used in simple link tests
19165lt_simple_link_test_code="$lt_simple_compile_test_code"
19166
19167# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19168
19169# If no C compiler was specified, use CC.
19170LTCC=${LTCC-"$CC"}
19171
mmentovai8c2a4de2006-09-20 16:20:15 +000019172# If no C compiler flags were specified, use CFLAGS.
19173LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19174
brynercb91a2f2006-08-25 21:14:45 +000019175# Allow CC to be a program name with arguments.
19176compiler=$CC
19177
19178
mmentovai8c2a4de2006-09-20 16:20:15 +000019179# save warnings/boilerplate of simple test code
19180ac_outfile=conftest.$ac_objext
19181printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19182eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19183_lt_compiler_boilerplate=`cat conftest.err`
19184$rm conftest*
19185
19186ac_outfile=conftest.$ac_objext
19187printf "$lt_simple_link_test_code" >conftest.$ac_ext
19188eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19189_lt_linker_boilerplate=`cat conftest.err`
19190$rm conftest*
19191
19192
brynercb91a2f2006-08-25 21:14:45 +000019193# Allow CC to be a program name with arguments.
19194lt_save_CC="$CC"
19195CC=${RC-"windres"}
19196compiler=$CC
19197compiler_RC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +000019198for cc_temp in $compiler""; do
19199 case $cc_temp in
19200 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19201 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19202 \-*) ;;
19203 *) break;;
19204 esac
19205done
19206cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19207
brynercb91a2f2006-08-25 21:14:45 +000019208lt_cv_prog_compiler_c_o_RC=yes
19209
19210# The else clause should only fire when bootstrapping the
19211# libtool distribution, otherwise you forgot to ship ltmain.sh
19212# with your package, and you will get complaints that there are
19213# no rules to generate ltmain.sh.
19214if test -f "$ltmain"; then
19215 # See if we are running on zsh, and set the options which allow our commands through
19216 # without removal of \ escapes.
19217 if test -n "${ZSH_VERSION+set}" ; then
19218 setopt NO_GLOB_SUBST
19219 fi
19220 # Now quote all the things that may contain metacharacters while being
19221 # careful not to overquote the AC_SUBSTed values. We take copies of the
19222 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000019223 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000019224 SED SHELL STRIP \
19225 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19226 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19227 deplibs_check_method reload_flag reload_cmds need_locks \
19228 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19229 lt_cv_sys_global_symbol_to_c_name_address \
19230 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19231 old_postinstall_cmds old_postuninstall_cmds \
19232 compiler_RC \
19233 CC_RC \
19234 LD_RC \
19235 lt_prog_compiler_wl_RC \
19236 lt_prog_compiler_pic_RC \
19237 lt_prog_compiler_static_RC \
19238 lt_prog_compiler_no_builtin_flag_RC \
19239 export_dynamic_flag_spec_RC \
19240 thread_safe_flag_spec_RC \
19241 whole_archive_flag_spec_RC \
19242 enable_shared_with_static_runtimes_RC \
19243 old_archive_cmds_RC \
19244 old_archive_from_new_cmds_RC \
19245 predep_objects_RC \
19246 postdep_objects_RC \
19247 predeps_RC \
19248 postdeps_RC \
19249 compiler_lib_search_path_RC \
19250 archive_cmds_RC \
19251 archive_expsym_cmds_RC \
19252 postinstall_cmds_RC \
19253 postuninstall_cmds_RC \
19254 old_archive_from_expsyms_cmds_RC \
19255 allow_undefined_flag_RC \
19256 no_undefined_flag_RC \
19257 export_symbols_cmds_RC \
19258 hardcode_libdir_flag_spec_RC \
19259 hardcode_libdir_flag_spec_ld_RC \
19260 hardcode_libdir_separator_RC \
19261 hardcode_automatic_RC \
19262 module_cmds_RC \
19263 module_expsym_cmds_RC \
19264 lt_cv_prog_compiler_c_o_RC \
19265 exclude_expsyms_RC \
19266 include_expsyms_RC; do
19267
19268 case $var in
19269 old_archive_cmds_RC | \
19270 old_archive_from_new_cmds_RC | \
19271 archive_cmds_RC | \
19272 archive_expsym_cmds_RC | \
19273 module_cmds_RC | \
19274 module_expsym_cmds_RC | \
19275 old_archive_from_expsyms_cmds_RC | \
19276 export_symbols_cmds_RC | \
19277 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19278 postinstall_cmds | postuninstall_cmds | \
19279 old_postinstall_cmds | old_postuninstall_cmds | \
19280 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19281 # Double-quote double-evaled strings.
19282 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19283 ;;
19284 *)
19285 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19286 ;;
19287 esac
19288 done
19289
19290 case $lt_echo in
19291 *'\$0 --fallback-echo"')
19292 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19293 ;;
19294 esac
19295
19296cfgfile="$ofile"
19297
19298 cat <<__EOF__ >> "$cfgfile"
19299# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19300
19301# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19302
19303# Shell to use when invoking shell scripts.
19304SHELL=$lt_SHELL
19305
19306# Whether or not to build shared libraries.
19307build_libtool_libs=$enable_shared
19308
19309# Whether or not to build static libraries.
19310build_old_libs=$enable_static
19311
19312# Whether or not to add -lc for building shared libraries.
19313build_libtool_need_lc=$archive_cmds_need_lc_RC
19314
19315# Whether or not to disallow shared libs when runtime libs are static
19316allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19317
19318# Whether or not to optimize for fast installation.
19319fast_install=$enable_fast_install
19320
19321# The host system.
19322host_alias=$host_alias
19323host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000019324host_os=$host_os
19325
19326# The build system.
19327build_alias=$build_alias
19328build=$build
19329build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000019330
19331# An echo program that does not interpret backslashes.
19332echo=$lt_echo
19333
19334# The archiver.
19335AR=$lt_AR
19336AR_FLAGS=$lt_AR_FLAGS
19337
19338# A C compiler.
19339LTCC=$lt_LTCC
19340
mmentovai8c2a4de2006-09-20 16:20:15 +000019341# LTCC compiler flags.
19342LTCFLAGS=$lt_LTCFLAGS
19343
brynercb91a2f2006-08-25 21:14:45 +000019344# A language-specific compiler.
19345CC=$lt_compiler_RC
19346
19347# Is the compiler the GNU C compiler?
19348with_gcc=$GCC_RC
19349
19350# An ERE matcher.
19351EGREP=$lt_EGREP
19352
19353# The linker used to build libraries.
19354LD=$lt_LD_RC
19355
19356# Whether we need hard or soft links.
19357LN_S=$lt_LN_S
19358
19359# A BSD-compatible nm program.
19360NM=$lt_NM
19361
19362# A symbol stripping program
19363STRIP=$lt_STRIP
19364
19365# Used to examine libraries when file_magic_cmd begins "file"
19366MAGIC_CMD=$MAGIC_CMD
19367
19368# Used on cygwin: DLL creation program.
19369DLLTOOL="$DLLTOOL"
19370
19371# Used on cygwin: object dumper.
19372OBJDUMP="$OBJDUMP"
19373
19374# Used on cygwin: assembler.
19375AS="$AS"
19376
19377# The name of the directory that contains temporary libtool files.
19378objdir=$objdir
19379
19380# How to create reloadable object files.
19381reload_flag=$lt_reload_flag
19382reload_cmds=$lt_reload_cmds
19383
19384# How to pass a linker flag through the compiler.
19385wl=$lt_lt_prog_compiler_wl_RC
19386
19387# Object file suffix (normally "o").
19388objext="$ac_objext"
19389
19390# Old archive suffix (normally "a").
19391libext="$libext"
19392
19393# Shared library suffix (normally ".so").
19394shrext_cmds='$shrext_cmds'
19395
19396# Executable file suffix (normally "").
19397exeext="$exeext"
19398
19399# Additional compiler flags for building library objects.
19400pic_flag=$lt_lt_prog_compiler_pic_RC
19401pic_mode=$pic_mode
19402
19403# What is the maximum length of a command?
19404max_cmd_len=$lt_cv_sys_max_cmd_len
19405
19406# Does compiler simultaneously support -c and -o options?
19407compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19408
mmentovai8c2a4de2006-09-20 16:20:15 +000019409# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000019410need_locks=$lt_need_locks
19411
19412# Do we need the lib prefix for modules?
19413need_lib_prefix=$need_lib_prefix
19414
19415# Do we need a version for libraries?
19416need_version=$need_version
19417
19418# Whether dlopen is supported.
19419dlopen_support=$enable_dlopen
19420
19421# Whether dlopen of programs is supported.
19422dlopen_self=$enable_dlopen_self
19423
19424# Whether dlopen of statically linked programs is supported.
19425dlopen_self_static=$enable_dlopen_self_static
19426
19427# Compiler flag to prevent dynamic linking.
19428link_static_flag=$lt_lt_prog_compiler_static_RC
19429
19430# Compiler flag to turn off builtin functions.
19431no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19432
19433# Compiler flag to allow reflexive dlopens.
19434export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19435
19436# Compiler flag to generate shared objects directly from archives.
19437whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19438
19439# Compiler flag to generate thread-safe objects.
19440thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19441
19442# Library versioning type.
19443version_type=$version_type
19444
19445# Format of library name prefix.
19446libname_spec=$lt_libname_spec
19447
19448# List of archive names. First name is the real one, the rest are links.
19449# The last name is the one that the linker finds with -lNAME.
19450library_names_spec=$lt_library_names_spec
19451
19452# The coded name of the library, if different from the real name.
19453soname_spec=$lt_soname_spec
19454
19455# Commands used to build and install an old-style archive.
19456RANLIB=$lt_RANLIB
19457old_archive_cmds=$lt_old_archive_cmds_RC
19458old_postinstall_cmds=$lt_old_postinstall_cmds
19459old_postuninstall_cmds=$lt_old_postuninstall_cmds
19460
19461# Create an old-style archive from a shared archive.
19462old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19463
19464# Create a temporary old-style archive to link instead of a shared archive.
19465old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19466
19467# Commands used to build and install a shared archive.
19468archive_cmds=$lt_archive_cmds_RC
19469archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19470postinstall_cmds=$lt_postinstall_cmds
19471postuninstall_cmds=$lt_postuninstall_cmds
19472
19473# Commands used to build a loadable module (assumed same as above if empty)
19474module_cmds=$lt_module_cmds_RC
19475module_expsym_cmds=$lt_module_expsym_cmds_RC
19476
19477# Commands to strip libraries.
19478old_striplib=$lt_old_striplib
19479striplib=$lt_striplib
19480
19481# Dependencies to place before the objects being linked to create a
19482# shared library.
19483predep_objects=$lt_predep_objects_RC
19484
19485# Dependencies to place after the objects being linked to create a
19486# shared library.
19487postdep_objects=$lt_postdep_objects_RC
19488
19489# Dependencies to place before the objects being linked to create a
19490# shared library.
19491predeps=$lt_predeps_RC
19492
19493# Dependencies to place after the objects being linked to create a
19494# shared library.
19495postdeps=$lt_postdeps_RC
19496
19497# The library search path used internally by the compiler when linking
19498# a shared library.
19499compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19500
19501# Method to check whether dependent libraries are shared objects.
19502deplibs_check_method=$lt_deplibs_check_method
19503
19504# Command to use when deplibs_check_method == file_magic.
19505file_magic_cmd=$lt_file_magic_cmd
19506
19507# Flag that allows shared libraries with undefined symbols to be built.
19508allow_undefined_flag=$lt_allow_undefined_flag_RC
19509
19510# Flag that forces no undefined symbols.
19511no_undefined_flag=$lt_no_undefined_flag_RC
19512
19513# Commands used to finish a libtool library installation in a directory.
19514finish_cmds=$lt_finish_cmds
19515
19516# Same as above, but a single script fragment to be evaled but not shown.
19517finish_eval=$lt_finish_eval
19518
19519# Take the output of nm and produce a listing of raw symbols and C names.
19520global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19521
19522# Transform the output of nm in a proper C declaration
19523global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19524
19525# Transform the output of nm in a C name address pair
19526global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19527
19528# This is the shared library runtime path variable.
19529runpath_var=$runpath_var
19530
19531# This is the shared library path variable.
19532shlibpath_var=$shlibpath_var
19533
19534# Is shlibpath searched before the hard-coded library search path?
19535shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19536
19537# How to hardcode a shared library path into an executable.
19538hardcode_action=$hardcode_action_RC
19539
19540# Whether we should hardcode library paths into libraries.
19541hardcode_into_libs=$hardcode_into_libs
19542
19543# Flag to hardcode \$libdir into a binary during linking.
19544# This must work even if \$libdir does not exist.
19545hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19546
19547# If ld is used when linking, flag to hardcode \$libdir into
19548# a binary during linking. This must work even if \$libdir does
19549# not exist.
19550hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19551
19552# Whether we need a single -rpath flag with a separated argument.
19553hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19554
19555# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19556# resulting binary.
19557hardcode_direct=$hardcode_direct_RC
19558
19559# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19560# resulting binary.
19561hardcode_minus_L=$hardcode_minus_L_RC
19562
19563# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19564# the resulting binary.
19565hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19566
19567# Set to yes if building a shared library automatically hardcodes DIR into the library
19568# and all subsequent libraries and executables linked against it.
19569hardcode_automatic=$hardcode_automatic_RC
19570
19571# Variables whose values should be saved in libtool wrapper scripts and
19572# restored at relink time.
19573variables_saved_for_relink="$variables_saved_for_relink"
19574
19575# Whether libtool must link a program against all its dependency libraries.
19576link_all_deplibs=$link_all_deplibs_RC
19577
19578# Compile-time system search path for libraries
19579sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19580
19581# Run-time system search path for libraries
19582sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19583
19584# Fix the shell variable \$srcfile for the compiler.
19585fix_srcfile_path="$fix_srcfile_path_RC"
19586
19587# Set to yes if exported symbols are required.
19588always_export_symbols=$always_export_symbols_RC
19589
19590# The commands to list exported symbols.
19591export_symbols_cmds=$lt_export_symbols_cmds_RC
19592
19593# The commands to extract the exported symbol list from a shared archive.
19594extract_expsyms_cmds=$lt_extract_expsyms_cmds
19595
19596# Symbols that should not be listed in the preloaded symbols.
19597exclude_expsyms=$lt_exclude_expsyms_RC
19598
19599# Symbols that must always be exported.
19600include_expsyms=$lt_include_expsyms_RC
19601
19602# ### END LIBTOOL TAG CONFIG: $tagname
19603
19604__EOF__
19605
19606
19607else
19608 # If there is no Makefile yet, we rely on a make rule to execute
19609 # `config.status --recheck' to rerun these tests and create the
19610 # libtool script then.
19611 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19612 if test -f "$ltmain_in"; then
19613 test -f Makefile && make "$ltmain"
19614 fi
19615fi
19616
19617
19618ac_ext=c
19619ac_cpp='$CPP $CPPFLAGS'
19620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19622ac_compiler_gnu=$ac_cv_c_compiler_gnu
19623
19624CC="$lt_save_CC"
19625
19626 ;;
19627
19628 *)
19629 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19630echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19631 { (exit 1); exit 1; }; }
19632 ;;
19633 esac
19634
19635 # Append the new tag name to the list of available tags.
19636 if test -n "$tagname" ; then
19637 available_tags="$available_tags $tagname"
19638 fi
19639 fi
19640 done
19641 IFS="$lt_save_ifs"
19642
19643 # Now substitute the updated list of available tags.
19644 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19645 mv "${ofile}T" "$ofile"
19646 chmod +x "$ofile"
19647 else
19648 rm -f "${ofile}T"
19649 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19650echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19651 { (exit 1); exit 1; }; }
19652 fi
19653fi
19654
19655
19656
19657# This can be used to rebuild libtool when needed
19658LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19659
19660# Always use our own libtool.
19661LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19662
19663# Prevent multiple expansion
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
mmentovai8c2a4de2006-09-20 16:20:15 +000019686{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19687echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000019688if test "${ac_cv_header_stdc+set}" = set; then
19689 echo $ECHO_N "(cached) $ECHO_C" >&6
19690else
19691 cat >conftest.$ac_ext <<_ACEOF
19692/* confdefs.h. */
19693_ACEOF
19694cat confdefs.h >>conftest.$ac_ext
19695cat >>conftest.$ac_ext <<_ACEOF
19696/* end confdefs.h. */
19697#include <stdlib.h>
19698#include <stdarg.h>
19699#include <string.h>
19700#include <float.h>
19701
19702int
19703main ()
19704{
19705
19706 ;
19707 return 0;
19708}
19709_ACEOF
19710rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +000019711if { (ac_try="$ac_compile"
19712case "(($ac_try" in
19713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714 *) ac_try_echo=$ac_try;;
19715esac
19716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000019718 ac_status=$?
19719 grep -v '^ *+' conftest.er1 >conftest.err
19720 rm -f conftest.er1
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000019724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19725 { (case "(($ac_try" in
19726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19727 *) ac_try_echo=$ac_try;;
19728esac
19729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19730 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000019731 ac_status=$?
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; } &&
19734 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +000019735 { (case "(($ac_try" in
19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19738esac
19739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19740 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000019741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; }; then
19744 ac_cv_header_stdc=yes
19745else
19746 echo "$as_me: failed program was:" >&5
19747sed 's/^/| /' conftest.$ac_ext >&5
19748
mmentovai8c2a4de2006-09-20 16:20:15 +000019749 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +000019750fi
mmentovai8c2a4de2006-09-20 16:20:15 +000019751
19752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000019753
19754if test $ac_cv_header_stdc = yes; then
19755 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19756 cat >conftest.$ac_ext <<_ACEOF
19757/* confdefs.h. */
19758_ACEOF
19759cat confdefs.h >>conftest.$ac_ext
19760cat >>conftest.$ac_ext <<_ACEOF
19761/* end confdefs.h. */
19762#include <string.h>
19763
19764_ACEOF
19765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19766 $EGREP "memchr" >/dev/null 2>&1; then
19767 :
19768else
19769 ac_cv_header_stdc=no
19770fi
19771rm -f conftest*
19772
19773fi
19774
19775if test $ac_cv_header_stdc = yes; then
19776 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19777 cat >conftest.$ac_ext <<_ACEOF
19778/* confdefs.h. */
19779_ACEOF
19780cat confdefs.h >>conftest.$ac_ext
19781cat >>conftest.$ac_ext <<_ACEOF
19782/* end confdefs.h. */
19783#include <stdlib.h>
19784
19785_ACEOF
19786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19787 $EGREP "free" >/dev/null 2>&1; then
19788 :
19789else
19790 ac_cv_header_stdc=no
19791fi
19792rm -f conftest*
19793
19794fi
19795
19796if test $ac_cv_header_stdc = yes; then
19797 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19798 if test "$cross_compiling" = yes; then
19799 :
19800else
19801 cat >conftest.$ac_ext <<_ACEOF
19802/* confdefs.h. */
19803_ACEOF
19804cat confdefs.h >>conftest.$ac_ext
19805cat >>conftest.$ac_ext <<_ACEOF
19806/* end confdefs.h. */
19807#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +000019808#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +000019809#if ((' ' & 0x0FF) == 0x020)
19810# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19811# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19812#else
19813# define ISLOWER(c) \
19814 (('a' <= (c) && (c) <= 'i') \
19815 || ('j' <= (c) && (c) <= 'r') \
19816 || ('s' <= (c) && (c) <= 'z'))
19817# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19818#endif
19819
19820#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19821int
19822main ()
19823{
19824 int i;
19825 for (i = 0; i < 256; i++)
19826 if (XOR (islower (i), ISLOWER (i))
19827 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +000019828 return 2;
19829 return 0;
brynercb91a2f2006-08-25 21:14:45 +000019830}
19831_ACEOF
19832rm -f conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000019833if { (ac_try="$ac_link"
19834case "(($ac_try" in
19835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19837esac
19838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000019840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000019843 { (case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19846esac
19847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000019849 ac_status=$?
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); }; }; then
19852 :
19853else
19854 echo "$as_me: program exited with status $ac_status" >&5
19855echo "$as_me: failed program was:" >&5
19856sed 's/^/| /' conftest.$ac_ext >&5
19857
19858( exit $ac_status )
19859ac_cv_header_stdc=no
19860fi
mmentovai8c2a4de2006-09-20 16:20:15 +000019861rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19862fi
19863
19864
brynercb91a2f2006-08-25 21:14:45 +000019865fi
19866fi
mmentovai8c2a4de2006-09-20 16:20:15 +000019867{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19868echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000019869if test $ac_cv_header_stdc = yes; then
19870
19871cat >>confdefs.h <<\_ACEOF
19872#define STDC_HEADERS 1
19873_ACEOF
19874
19875fi
19876
19877
mmentovai8c2a4de2006-09-20 16:20:15 +000019878ac_config_files="$ac_config_files Makefile"
brynercb91a2f2006-08-25 21:14:45 +000019879
19880cat >confcache <<\_ACEOF
19881# This file is a shell script that caches the results of configure
19882# tests run on this system so they can be shared between configure
19883# scripts and configure runs, see configure's option --config-cache.
19884# It is not useful on other systems. If it contains results you don't
19885# want to keep, you may remove or edit it.
19886#
19887# config.status only pays attention to the cache file if you give it
19888# the --recheck option to rerun configure.
19889#
19890# `ac_cv_env_foo' variables (set or unset) will be overridden when
19891# loading this file, other *unset* `ac_cv_foo' will be assigned the
19892# following values.
19893
19894_ACEOF
19895
19896# The following way of writing the cache mishandles newlines in values,
19897# but we know of no workaround that is simple, portable, and efficient.
mmentovai8c2a4de2006-09-20 16:20:15 +000019898# So, we kill variables containing newlines.
brynercb91a2f2006-08-25 21:14:45 +000019899# Ultrix sh set writes to stderr and can't be redirected directly,
19900# and sets the high bit in the cache file unless we assign to the vars.
mmentovai8c2a4de2006-09-20 16:20:15 +000019901(
19902 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19903 eval ac_val=\$$ac_var
19904 case $ac_val in #(
19905 *${as_nl}*)
19906 case $ac_var in #(
19907 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19908echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19909 esac
19910 case $ac_var in #(
19911 _ | IFS | as_nl) ;; #(
19912 *) $as_unset $ac_var ;;
19913 esac ;;
19914 esac
19915 done
19916
brynercb91a2f2006-08-25 21:14:45 +000019917 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +000019918 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19919 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +000019920 # `set' does not quote correctly, so add quotes (double-quote
19921 # substitution turns \\\\ into \\, and sed turns \\ into \).
19922 sed -n \
19923 "s/'/'\\\\''/g;
19924 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mmentovai8c2a4de2006-09-20 16:20:15 +000019925 ;; #(
brynercb91a2f2006-08-25 21:14:45 +000019926 *)
19927 # `set' quotes correctly as required by POSIX, so do not add quotes.
mmentovai8c2a4de2006-09-20 16:20:15 +000019928 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +000019929 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000019930 esac |
19931 sort
19932) |
brynercb91a2f2006-08-25 21:14:45 +000019933 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +000019934 /^ac_cv_env_/b end
brynercb91a2f2006-08-25 21:14:45 +000019935 t clear
mmentovai8c2a4de2006-09-20 16:20:15 +000019936 :clear
brynercb91a2f2006-08-25 21:14:45 +000019937 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19938 t end
mmentovai8c2a4de2006-09-20 16:20:15 +000019939 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19940 :end' >>confcache
19941if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19942 if test -w "$cache_file"; then
19943 test "x$cache_file" != "x/dev/null" &&
19944 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19945echo "$as_me: updating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000019946 cat confcache >$cache_file
19947 else
mmentovai8c2a4de2006-09-20 16:20:15 +000019948 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19949echo "$as_me: not updating unwritable cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000019950 fi
19951fi
19952rm -f confcache
19953
19954test "x$prefix" = xNONE && prefix=$ac_default_prefix
19955# Let make expand exec_prefix.
19956test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19957
brynercb91a2f2006-08-25 21:14:45 +000019958DEFS=-DHAVE_CONFIG_H
19959
19960ac_libobjs=
19961ac_ltlibobjs=
19962for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19963 # 1. Remove the extension, and $U if already installed.
mmentovai8c2a4de2006-09-20 16:20:15 +000019964 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19965 ac_i=`echo "$ac_i" | sed "$ac_script"`
19966 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19967 # will be set to the directory where LIBOBJS objects are built.
19968 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19969 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
brynercb91a2f2006-08-25 21:14:45 +000019970done
19971LIBOBJS=$ac_libobjs
19972
19973LTLIBOBJS=$ac_ltlibobjs
19974
19975
19976if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19977 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19978Usually this means the macro was only invoked conditionally." >&5
19979echo "$as_me: error: conditional \"AMDEP\" was never defined.
19980Usually this means the macro was only invoked conditionally." >&2;}
19981 { (exit 1); exit 1; }; }
19982fi
19983if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19984 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19985Usually this means the macro was only invoked conditionally." >&5
19986echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19987Usually this means the macro was only invoked conditionally." >&2;}
19988 { (exit 1); exit 1; }; }
19989fi
19990if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19991 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19992Usually this means the macro was only invoked conditionally." >&5
19993echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19994Usually this means the macro was only invoked conditionally." >&2;}
19995 { (exit 1); exit 1; }; }
19996fi
19997
19998: ${CONFIG_STATUS=./config.status}
19999ac_clean_files_save=$ac_clean_files
20000ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20001{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20002echo "$as_me: creating $CONFIG_STATUS" >&6;}
20003cat >$CONFIG_STATUS <<_ACEOF
20004#! $SHELL
20005# Generated by $as_me.
20006# Run this file to recreate the current configuration.
20007# Compiler output produced by configure, useful for debugging
20008# configure, is in config.log if it exists.
20009
20010debug=false
20011ac_cs_recheck=false
20012ac_cs_silent=false
20013SHELL=\${CONFIG_SHELL-$SHELL}
20014_ACEOF
20015
20016cat >>$CONFIG_STATUS <<\_ACEOF
20017## --------------------- ##
20018## M4sh Initialization. ##
20019## --------------------- ##
20020
20021# Be Bourne compatible
20022if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20023 emulate sh
20024 NULLCMD=:
20025 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20026 # is contrary to our usage. Disable this feature.
20027 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000020028 setopt NO_GLOB_SUBST
20029else
20030 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
brynercb91a2f2006-08-25 21:14:45 +000020031fi
mmentovai8c2a4de2006-09-20 16:20:15 +000020032BIN_SH=xpg4; export BIN_SH # for Tru64
brynercb91a2f2006-08-25 21:14:45 +000020033DUALCASE=1; export DUALCASE # for MKS sh
20034
brynercb91a2f2006-08-25 21:14:45 +000020035
mmentovai8c2a4de2006-09-20 16:20:15 +000020036# PATH needs CR
brynercb91a2f2006-08-25 21:14:45 +000020037# Avoid depending upon Character Ranges.
20038as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20039as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20040as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20041as_cr_digits='0123456789'
20042as_cr_alnum=$as_cr_Letters$as_cr_digits
20043
20044# The user is always right.
20045if test "${PATH_SEPARATOR+set}" != set; then
20046 echo "#! /bin/sh" >conf$$.sh
20047 echo "exit 0" >>conf$$.sh
20048 chmod +x conf$$.sh
20049 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20050 PATH_SEPARATOR=';'
20051 else
20052 PATH_SEPARATOR=:
20053 fi
20054 rm -f conf$$.sh
20055fi
20056
mmentovai8c2a4de2006-09-20 16:20:15 +000020057# Support unset when possible.
20058if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20059 as_unset=unset
20060else
20061 as_unset=false
20062fi
brynercb91a2f2006-08-25 21:14:45 +000020063
mmentovai8c2a4de2006-09-20 16:20:15 +000020064
20065# IFS
20066# We need space, tab and new line, in precisely that order. Quoting is
20067# there to prevent editors from complaining about space-tab.
20068# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20069# splitting by setting IFS to empty value.)
20070as_nl='
20071'
20072IFS=" "" $as_nl"
20073
20074# Find who we are. Look in the path if we contain no directory separator.
20075case $0 in
20076 *[\\/]* ) as_myself=$0 ;;
20077 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000020078for as_dir in $PATH
20079do
20080 IFS=$as_save_IFS
20081 test -z "$as_dir" && as_dir=.
20082 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20083done
mmentovai8c2a4de2006-09-20 16:20:15 +000020084IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +000020085
mmentovai8c2a4de2006-09-20 16:20:15 +000020086 ;;
20087esac
20088# We did not find ourselves, most probably we were run as `sh COMMAND'
20089# in which case we are not to be found in the path.
20090if test "x$as_myself" = x; then
20091 as_myself=$0
20092fi
20093if test ! -f "$as_myself"; then
20094 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20095 { (exit 1); exit 1; }
20096fi
20097
20098# Work around bugs in pre-3.0 UWIN ksh.
20099for as_var in ENV MAIL MAILPATH
20100do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20101done
20102PS1='$ '
20103PS2='> '
20104PS4='+ '
20105
20106# NLS nuisances.
20107for as_var in \
20108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20110 LC_TELEPHONE LC_TIME
brynercb91a2f2006-08-25 21:14:45 +000020111do
mmentovai8c2a4de2006-09-20 16:20:15 +000020112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20113 eval $as_var=C; export $as_var
20114 else
20115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20116 fi
20117done
20118
20119# Required to use basename.
20120if expr a : '\(a\)' >/dev/null 2>&1 &&
20121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20122 as_expr=expr
20123else
20124 as_expr=false
20125fi
20126
20127if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20128 as_basename=basename
20129else
20130 as_basename=false
20131fi
20132
20133
20134# Name of the executable.
20135as_me=`$as_basename -- "$0" ||
20136$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20137 X"$0" : 'X\(//\)$' \| \
20138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20139echo X/"$0" |
20140 sed '/^.*\/\([^/][^/]*\)\/*$/{
20141 s//\1/
20142 q
20143 }
20144 /^X\/\(\/\/\)$/{
20145 s//\1/
20146 q
20147 }
20148 /^X\/\(\/\).*/{
20149 s//\1/
20150 q
20151 }
20152 s/.*/./; q'`
20153
20154# CDPATH.
20155$as_unset CDPATH
20156
20157
20158
brynercb91a2f2006-08-25 21:14:45 +000020159 as_lineno_1=$LINENO
20160 as_lineno_2=$LINENO
brynercb91a2f2006-08-25 21:14:45 +000020161 test "x$as_lineno_1" != "x$as_lineno_2" &&
mmentovai8c2a4de2006-09-20 16:20:15 +000020162 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
brynercb91a2f2006-08-25 21:14:45 +000020163
20164 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20165 # uniformly replaced by the line number. The first 'sed' inserts a
mmentovai8c2a4de2006-09-20 16:20:15 +000020166 # line-number line after each line using $LINENO; the second 'sed'
20167 # does the real work. The second script uses 'N' to pair each
20168 # line-number line with the line containing $LINENO, and appends
20169 # trailing '-' during substitution so that $LINENO is not a special
20170 # case at line end.
brynercb91a2f2006-08-25 21:14:45 +000020171 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mmentovai8c2a4de2006-09-20 16:20:15 +000020172 # scripts with optimization help from Paolo Bonzini. Blame Lee
20173 # E. McMahon (1931-1989) for sed's syntax. :-)
20174 sed -n '
20175 p
20176 /[$]LINENO/=
20177 ' <$as_myself |
brynercb91a2f2006-08-25 21:14:45 +000020178 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +000020179 s/[$]LINENO.*/&-/
20180 t lineno
20181 b
20182 :lineno
brynercb91a2f2006-08-25 21:14:45 +000020183 N
mmentovai8c2a4de2006-09-20 16:20:15 +000020184 :loop
20185 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
brynercb91a2f2006-08-25 21:14:45 +000020186 t loop
mmentovai8c2a4de2006-09-20 16:20:15 +000020187 s/-\n.*//
brynercb91a2f2006-08-25 21:14:45 +000020188 ' >$as_me.lineno &&
mmentovai8c2a4de2006-09-20 16:20:15 +000020189 chmod +x "$as_me.lineno" ||
20190 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
brynercb91a2f2006-08-25 21:14:45 +000020191 { (exit 1); exit 1; }; }
20192
20193 # Don't try to exec as it changes $[0], causing all sort of problems
20194 # (the dirname of $[0] is not the place where we might find the
mmentovai8c2a4de2006-09-20 16:20:15 +000020195 # original and so on. Autoconf is especially sensitive to this).
20196 . "./$as_me.lineno"
brynercb91a2f2006-08-25 21:14:45 +000020197 # Exit status is that of the last command.
20198 exit
20199}
20200
20201
mmentovai8c2a4de2006-09-20 16:20:15 +000020202if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20203 as_dirname=dirname
20204else
20205 as_dirname=false
20206fi
20207
20208ECHO_C= ECHO_N= ECHO_T=
20209case `echo -n x` in
20210-n*)
20211 case `echo 'x\c'` in
20212 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20213 *) ECHO_C='\c';;
20214 esac;;
20215*)
20216 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +000020217esac
20218
mmentovai8c2a4de2006-09-20 16:20:15 +000020219if expr a : '\(a\)' >/dev/null 2>&1 &&
20220 test "X`expr 00001 : '.*\(...\)'`" = X001; then
brynercb91a2f2006-08-25 21:14:45 +000020221 as_expr=expr
20222else
20223 as_expr=false
20224fi
20225
20226rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +000020227if test -d conf$$.dir; then
20228 rm -f conf$$.dir/conf$$.file
20229else
20230 rm -f conf$$.dir
20231 mkdir conf$$.dir
20232fi
brynercb91a2f2006-08-25 21:14:45 +000020233echo >conf$$.file
20234if ln -s conf$$.file conf$$ 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000020235 as_ln_s='ln -s'
20236 # ... but there are two gotchas:
20237 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20238 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20239 # In both cases, we have to default to `cp -p'.
20240 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
brynercb91a2f2006-08-25 21:14:45 +000020241 as_ln_s='cp -p'
brynercb91a2f2006-08-25 21:14:45 +000020242elif ln conf$$.file conf$$ 2>/dev/null; then
20243 as_ln_s=ln
20244else
20245 as_ln_s='cp -p'
20246fi
mmentovai8c2a4de2006-09-20 16:20:15 +000020247rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20248rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000020249
20250if mkdir -p . 2>/dev/null; then
20251 as_mkdir_p=:
20252else
20253 test -d ./-p && rmdir ./-p
20254 as_mkdir_p=false
20255fi
20256
mmentovai8c2a4de2006-09-20 16:20:15 +000020257# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20258# systems may use methods other than mode bits to determine executability.
20259cat >conf$$.file <<_ASEOF
20260#! /bin/sh
20261exit 0
20262_ASEOF
20263chmod +x conf$$.file
20264if test -x conf$$.file >/dev/null 2>&1; then
20265 as_executable_p="test -x"
20266else
20267 as_executable_p=:
20268fi
20269rm -f conf$$.file
brynercb91a2f2006-08-25 21:14:45 +000020270
20271# Sed expression to map a string onto a valid CPP name.
20272as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20273
20274# Sed expression to map a string onto a valid variable name.
20275as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20276
20277
brynercb91a2f2006-08-25 21:14:45 +000020278exec 6>&1
20279
mmentovai8c2a4de2006-09-20 16:20:15 +000020280# Save the log message, to keep $[0] and so on meaningful, and to
brynercb91a2f2006-08-25 21:14:45 +000020281# report actual input values of CONFIG_FILES etc. instead of their
mmentovai8c2a4de2006-09-20 16:20:15 +000020282# values after options handling.
20283ac_log="
brynercb91a2f2006-08-25 21:14:45 +000020284This file was extended by airbag $as_me 0.1, which was
mmentovai8c2a4de2006-09-20 16:20:15 +000020285generated by GNU Autoconf 2.60. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +000020286
20287 CONFIG_FILES = $CONFIG_FILES
20288 CONFIG_HEADERS = $CONFIG_HEADERS
20289 CONFIG_LINKS = $CONFIG_LINKS
20290 CONFIG_COMMANDS = $CONFIG_COMMANDS
20291 $ $0 $@
20292
mmentovai8c2a4de2006-09-20 16:20:15 +000020293on `(hostname || uname -n) 2>/dev/null | sed 1q`
20294"
20295
brynercb91a2f2006-08-25 21:14:45 +000020296_ACEOF
20297
mmentovai8c2a4de2006-09-20 16:20:15 +000020298cat >>$CONFIG_STATUS <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020299# Files that config.status was made for.
mmentovai8c2a4de2006-09-20 16:20:15 +000020300config_files="$ac_config_files"
20301config_headers="$ac_config_headers"
20302config_commands="$ac_config_commands"
brynercb91a2f2006-08-25 21:14:45 +000020303
mmentovai8c2a4de2006-09-20 16:20:15 +000020304_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020305
20306cat >>$CONFIG_STATUS <<\_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020307ac_cs_usage="\
20308\`$as_me' instantiates files from templates according to the
20309current configuration.
20310
20311Usage: $0 [OPTIONS] [FILE]...
20312
20313 -h, --help print this help, then exit
20314 -V, --version print version number, then exit
20315 -q, --quiet do not print progress messages
20316 -d, --debug don't remove temporary files
20317 --recheck update $as_me by reconfiguring in the same conditions
20318 --file=FILE[:TEMPLATE]
20319 instantiate the configuration file FILE
20320 --header=FILE[:TEMPLATE]
20321 instantiate the configuration header FILE
20322
20323Configuration files:
20324$config_files
20325
20326Configuration headers:
20327$config_headers
20328
20329Configuration commands:
20330$config_commands
20331
20332Report bugs to <bug-autoconf@gnu.org>."
brynercb91a2f2006-08-25 21:14:45 +000020333
mmentovai8c2a4de2006-09-20 16:20:15 +000020334_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020335cat >>$CONFIG_STATUS <<_ACEOF
20336ac_cs_version="\\
20337airbag config.status 0.1
mmentovai8c2a4de2006-09-20 16:20:15 +000020338configured by $0, generated by GNU Autoconf 2.60,
20339 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
brynercb91a2f2006-08-25 21:14:45 +000020340
mmentovai8c2a4de2006-09-20 16:20:15 +000020341Copyright (C) 2006 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +000020342This config.status script is free software; the Free Software Foundation
20343gives unlimited permission to copy, distribute and modify it."
mmentovai8c2a4de2006-09-20 16:20:15 +000020344
20345ac_pwd='$ac_pwd'
20346srcdir='$srcdir'
20347INSTALL='$INSTALL'
brynercb91a2f2006-08-25 21:14:45 +000020348_ACEOF
20349
20350cat >>$CONFIG_STATUS <<\_ACEOF
20351# If no file are specified by the user, then we need to provide default
20352# value. By we need to know if files were specified by the user.
20353ac_need_defaults=:
20354while test $# != 0
20355do
20356 case $1 in
20357 --*=*)
mmentovai8c2a4de2006-09-20 16:20:15 +000020358 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20359 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +000020360 ac_shift=:
20361 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000020362 *)
brynercb91a2f2006-08-25 21:14:45 +000020363 ac_option=$1
20364 ac_optarg=$2
20365 ac_shift=shift
20366 ;;
brynercb91a2f2006-08-25 21:14:45 +000020367 esac
20368
20369 case $ac_option in
20370 # Handling of the options.
brynercb91a2f2006-08-25 21:14:45 +000020371 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20372 ac_cs_recheck=: ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000020373 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20374 echo "$ac_cs_version"; exit ;;
20375 --debug | --debu | --deb | --de | --d | -d )
brynercb91a2f2006-08-25 21:14:45 +000020376 debug=: ;;
20377 --file | --fil | --fi | --f )
20378 $ac_shift
20379 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20380 ac_need_defaults=false;;
20381 --header | --heade | --head | --hea )
20382 $ac_shift
20383 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20384 ac_need_defaults=false;;
mmentovai8c2a4de2006-09-20 16:20:15 +000020385 --he | --h)
20386 # Conflict between --help and --header
20387 { echo "$as_me: error: ambiguous option: $1
20388Try \`$0 --help' for more information." >&2
20389 { (exit 1); exit 1; }; };;
20390 --help | --hel | -h )
20391 echo "$ac_cs_usage"; exit ;;
brynercb91a2f2006-08-25 21:14:45 +000020392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20393 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20394 ac_cs_silent=: ;;
20395
20396 # This is an error.
mmentovai8c2a4de2006-09-20 16:20:15 +000020397 -*) { echo "$as_me: error: unrecognized option: $1
20398Try \`$0 --help' for more information." >&2
brynercb91a2f2006-08-25 21:14:45 +000020399 { (exit 1); exit 1; }; } ;;
20400
mmentovai8c2a4de2006-09-20 16:20:15 +000020401 *) ac_config_targets="$ac_config_targets $1"
20402 ac_need_defaults=false ;;
brynercb91a2f2006-08-25 21:14:45 +000020403
20404 esac
20405 shift
20406done
20407
20408ac_configure_extra_args=
20409
20410if $ac_cs_silent; then
20411 exec 6>/dev/null
20412 ac_configure_extra_args="$ac_configure_extra_args --silent"
20413fi
20414
20415_ACEOF
20416cat >>$CONFIG_STATUS <<_ACEOF
20417if \$ac_cs_recheck; then
mmentovai8c2a4de2006-09-20 16:20:15 +000020418 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20419 CONFIG_SHELL=$SHELL
20420 export CONFIG_SHELL
20421 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
brynercb91a2f2006-08-25 21:14:45 +000020422fi
20423
20424_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000020425cat >>$CONFIG_STATUS <<\_ACEOF
20426exec 5>>config.log
20427{
20428 echo
20429 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20430## Running $as_me. ##
20431_ASBOX
20432 echo "$ac_log"
20433} >&5
brynercb91a2f2006-08-25 21:14:45 +000020434
mmentovai8c2a4de2006-09-20 16:20:15 +000020435_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020436cat >>$CONFIG_STATUS <<_ACEOF
20437#
mmentovai8c2a4de2006-09-20 16:20:15 +000020438# INIT-COMMANDS
brynercb91a2f2006-08-25 21:14:45 +000020439#
brynercb91a2f2006-08-25 21:14:45 +000020440AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20441
20442_ACEOF
20443
brynercb91a2f2006-08-25 21:14:45 +000020444cat >>$CONFIG_STATUS <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000020445
20446# Handling of arguments.
brynercb91a2f2006-08-25 21:14:45 +000020447for ac_config_target in $ac_config_targets
20448do
mmentovai8c2a4de2006-09-20 16:20:15 +000020449 case $ac_config_target in
20450 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20451 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20452 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20453
brynercb91a2f2006-08-25 21:14:45 +000020454 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20455echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20456 { (exit 1); exit 1; }; };;
20457 esac
20458done
20459
mmentovai8c2a4de2006-09-20 16:20:15 +000020460
brynercb91a2f2006-08-25 21:14:45 +000020461# If the user did not use the arguments to specify the items to instantiate,
20462# then the envvar interface is used. Set only those that are not.
20463# We use the long form for the default assignment because of an extremely
20464# bizarre bug on SunOS 4.1.3.
20465if $ac_need_defaults; then
20466 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20467 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20468 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20469fi
20470
20471# Have a temporary directory for convenience. Make it in the build tree
mmentovai8c2a4de2006-09-20 16:20:15 +000020472# simply because there is no reason against having it here, and in addition,
brynercb91a2f2006-08-25 21:14:45 +000020473# creating and moving files from /tmp can sometimes cause problems.
mmentovai8c2a4de2006-09-20 16:20:15 +000020474# Hook for its removal unless debugging.
20475# Note that there is a small window in which the directory will not be cleaned:
20476# after its creation but before its name has been assigned to `$tmp'.
brynercb91a2f2006-08-25 21:14:45 +000020477$debug ||
20478{
mmentovai8c2a4de2006-09-20 16:20:15 +000020479 tmp=
20480 trap 'exit_status=$?
20481 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20482' 0
brynercb91a2f2006-08-25 21:14:45 +000020483 trap '{ (exit 1); exit 1; }' 1 2 13 15
20484}
brynercb91a2f2006-08-25 21:14:45 +000020485# Create a (secure) tmp directory for tmp files.
20486
20487{
mmentovai8c2a4de2006-09-20 16:20:15 +000020488 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
brynercb91a2f2006-08-25 21:14:45 +000020489 test -n "$tmp" && test -d "$tmp"
20490} ||
20491{
mmentovai8c2a4de2006-09-20 16:20:15 +000020492 tmp=./conf$$-$RANDOM
20493 (umask 077 && mkdir "$tmp")
brynercb91a2f2006-08-25 21:14:45 +000020494} ||
20495{
20496 echo "$me: cannot create a temporary directory in ." >&2
20497 { (exit 1); exit 1; }
20498}
20499
brynercb91a2f2006-08-25 21:14:45 +000020500#
mmentovai8c2a4de2006-09-20 16:20:15 +000020501# Set up the sed scripts for CONFIG_FILES section.
brynercb91a2f2006-08-25 21:14:45 +000020502#
20503
20504# No need to generate the scripts if there are no CONFIG_FILES.
20505# This happens for instance when ./config.status config.h
mmentovai8c2a4de2006-09-20 16:20:15 +000020506if test -n "$CONFIG_FILES"; then
brynercb91a2f2006-08-25 21:14:45 +000020507
20508_ACEOF
20509
mmentovai8c2a4de2006-09-20 16:20:15 +000020510
20511
20512ac_delim='%!_!# '
20513for ac_last_try in false false false false false :; do
20514 cat >conf$$subs.sed <<_ACEOF
20515SHELL!$SHELL$ac_delim
20516PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20517PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20518PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20519PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20520PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20521PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20522exec_prefix!$exec_prefix$ac_delim
20523prefix!$prefix$ac_delim
20524program_transform_name!$program_transform_name$ac_delim
20525bindir!$bindir$ac_delim
20526sbindir!$sbindir$ac_delim
20527libexecdir!$libexecdir$ac_delim
20528datarootdir!$datarootdir$ac_delim
20529datadir!$datadir$ac_delim
20530sysconfdir!$sysconfdir$ac_delim
20531sharedstatedir!$sharedstatedir$ac_delim
20532localstatedir!$localstatedir$ac_delim
20533includedir!$includedir$ac_delim
20534oldincludedir!$oldincludedir$ac_delim
20535docdir!$docdir$ac_delim
20536infodir!$infodir$ac_delim
20537htmldir!$htmldir$ac_delim
20538dvidir!$dvidir$ac_delim
20539pdfdir!$pdfdir$ac_delim
20540psdir!$psdir$ac_delim
20541libdir!$libdir$ac_delim
20542localedir!$localedir$ac_delim
20543mandir!$mandir$ac_delim
20544DEFS!$DEFS$ac_delim
20545ECHO_C!$ECHO_C$ac_delim
20546ECHO_N!$ECHO_N$ac_delim
20547ECHO_T!$ECHO_T$ac_delim
20548LIBS!$LIBS$ac_delim
20549build_alias!$build_alias$ac_delim
20550host_alias!$host_alias$ac_delim
20551target_alias!$target_alias$ac_delim
20552INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20553INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20554INSTALL_DATA!$INSTALL_DATA$ac_delim
20555CYGPATH_W!$CYGPATH_W$ac_delim
20556PACKAGE!$PACKAGE$ac_delim
20557VERSION!$VERSION$ac_delim
20558ACLOCAL!$ACLOCAL$ac_delim
20559AUTOCONF!$AUTOCONF$ac_delim
20560AUTOMAKE!$AUTOMAKE$ac_delim
20561AUTOHEADER!$AUTOHEADER$ac_delim
20562MAKEINFO!$MAKEINFO$ac_delim
20563install_sh!$install_sh$ac_delim
20564STRIP!$STRIP$ac_delim
20565INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20566mkdir_p!$mkdir_p$ac_delim
20567AWK!$AWK$ac_delim
20568SET_MAKE!$SET_MAKE$ac_delim
20569am__leading_dot!$am__leading_dot$ac_delim
20570AMTAR!$AMTAR$ac_delim
20571am__tar!$am__tar$ac_delim
20572am__untar!$am__untar$ac_delim
20573CC!$CC$ac_delim
20574CFLAGS!$CFLAGS$ac_delim
20575LDFLAGS!$LDFLAGS$ac_delim
20576CPPFLAGS!$CPPFLAGS$ac_delim
20577ac_ct_CC!$ac_ct_CC$ac_delim
20578EXEEXT!$EXEEXT$ac_delim
20579OBJEXT!$OBJEXT$ac_delim
20580DEPDIR!$DEPDIR$ac_delim
20581am__include!$am__include$ac_delim
20582am__quote!$am__quote$ac_delim
20583AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20584AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20585AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20586CCDEPMODE!$CCDEPMODE$ac_delim
20587am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20588am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20589CPP!$CPP$ac_delim
20590CXX!$CXX$ac_delim
20591CXXFLAGS!$CXXFLAGS$ac_delim
20592ac_ct_CXX!$ac_ct_CXX$ac_delim
20593CXXDEPMODE!$CXXDEPMODE$ac_delim
20594am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20595am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20596build!$build$ac_delim
20597build_cpu!$build_cpu$ac_delim
20598build_vendor!$build_vendor$ac_delim
20599build_os!$build_os$ac_delim
20600host!$host$ac_delim
20601host_cpu!$host_cpu$ac_delim
20602host_vendor!$host_vendor$ac_delim
20603host_os!$host_os$ac_delim
20604GREP!$GREP$ac_delim
20605EGREP!$EGREP$ac_delim
20606LN_S!$LN_S$ac_delim
20607ECHO!$ECHO$ac_delim
20608AR!$AR$ac_delim
20609RANLIB!$RANLIB$ac_delim
20610CXXCPP!$CXXCPP$ac_delim
20611F77!$F77$ac_delim
20612_ACEOF
20613
20614 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20615 break
20616 elif $ac_last_try; then
20617 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20618echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20619 { (exit 1); exit 1; }; }
20620 else
20621 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
brynercb91a2f2006-08-25 21:14:45 +000020622 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000020623done
20624
20625ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20626if test -n "$ac_eof"; then
20627 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20628 ac_eof=`expr $ac_eof + 1`
20629fi
20630
20631cat >>$CONFIG_STATUS <<_ACEOF
20632cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20633/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20634_ACEOF
20635sed '
20636s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20637s/^/s,@/; s/!/@,|#_!!_#|/
20638:n
20639t n
20640s/'"$ac_delim"'$/,g/; t
20641s/$/\\/; p
20642N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20643' >>$CONFIG_STATUS <conf$$subs.sed
20644rm -f conf$$subs.sed
20645cat >>$CONFIG_STATUS <<_ACEOF
20646CEOF$ac_eof
20647_ACEOF
20648
20649
20650ac_delim='%!_!# '
20651for ac_last_try in false false false false false :; do
20652 cat >conf$$subs.sed <<_ACEOF
20653FFLAGS!$FFLAGS$ac_delim
20654ac_ct_F77!$ac_ct_F77$ac_delim
20655LIBTOOL!$LIBTOOL$ac_delim
20656LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
20657LIBOBJS!$LIBOBJS$ac_delim
20658LTLIBOBJS!$LTLIBOBJS$ac_delim
20659_ACEOF
20660
20661 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
20662 break
20663 elif $ac_last_try; then
20664 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20665echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20666 { (exit 1); exit 1; }; }
20667 else
20668 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20669 fi
20670done
20671
20672ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20673if test -n "$ac_eof"; then
20674 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20675 ac_eof=`expr $ac_eof + 1`
20676fi
20677
20678cat >>$CONFIG_STATUS <<_ACEOF
20679cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20680/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20681_ACEOF
20682sed '
20683s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20684s/^/s,@/; s/!/@,|#_!!_#|/
20685:n
20686t n
20687s/'"$ac_delim"'$/,g/; t
20688s/$/\\/; p
20689N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20690' >>$CONFIG_STATUS <conf$$subs.sed
20691rm -f conf$$subs.sed
20692cat >>$CONFIG_STATUS <<_ACEOF
20693:end
20694s/|#_!!_#|//g
20695CEOF$ac_eof
20696_ACEOF
20697
20698
20699# VPATH may cause trouble with some makes, so we remove $(srcdir),
20700# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20701# trailing colons and then remove the whole line if VPATH becomes empty
20702# (actually we leave an empty line to preserve line numbers).
20703if test "x$srcdir" = x.; then
20704 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20705s/:*\$(srcdir):*/:/
20706s/:*\${srcdir}:*/:/
20707s/:*@srcdir@:*/:/
20708s/^\([^=]*=[ ]*\):*/\1/
20709s/:*$//
20710s/^[^=]*=[ ]*$//
20711}'
20712fi
20713
20714cat >>$CONFIG_STATUS <<\_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020715fi # test -n "$CONFIG_FILES"
20716
mmentovai8c2a4de2006-09-20 16:20:15 +000020717
20718for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20719do
20720 case $ac_tag in
20721 :[FHLC]) ac_mode=$ac_tag; continue;;
20722 esac
20723 case $ac_mode$ac_tag in
20724 :[FHL]*:*);;
20725 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20726echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20727 { (exit 1); exit 1; }; };;
20728 :[FH]-) ac_tag=-:-;;
20729 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20730 esac
20731 ac_save_IFS=$IFS
20732 IFS=:
20733 set x $ac_tag
20734 IFS=$ac_save_IFS
20735 shift
20736 ac_file=$1
20737 shift
20738
20739 case $ac_mode in
20740 :L) ac_source=$1;;
20741 :[FH])
20742 ac_file_inputs=
20743 for ac_f
20744 do
20745 case $ac_f in
20746 -) ac_f="$tmp/stdin";;
20747 *) # Look for the file first in the build tree, then in the source tree
20748 # (if the path is not absolute). The absolute path cannot be DOS-style,
20749 # because $ac_f cannot contain `:'.
20750 test -f "$ac_f" ||
20751 case $ac_f in
20752 [\\/$]*) false;;
20753 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20754 esac ||
20755 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20756echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20757 { (exit 1); exit 1; }; };;
20758 esac
20759 ac_file_inputs="$ac_file_inputs $ac_f"
20760 done
20761
20762 # Let's still pretend it is `configure' which instantiates (i.e., don't
20763 # use $as_me), people would be surprised to read:
20764 # /* config.h. Generated by config.status. */
20765 configure_input="Generated from "`IFS=:
20766 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20767 if test x"$ac_file" != x-; then
20768 configure_input="$ac_file. $configure_input"
20769 { echo "$as_me:$LINENO: creating $ac_file" >&5
20770echo "$as_me: creating $ac_file" >&6;}
20771 fi
20772
20773 case $ac_tag in
20774 *:-:* | *:-) cat >"$tmp/stdin";;
20775 esac
20776 ;;
brynercb91a2f2006-08-25 21:14:45 +000020777 esac
20778
mmentovai8c2a4de2006-09-20 16:20:15 +000020779 ac_dir=`$as_dirname -- "$ac_file" ||
brynercb91a2f2006-08-25 21:14:45 +000020780$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20781 X"$ac_file" : 'X\(//\)[^/]' \| \
20782 X"$ac_file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000020783 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000020784echo X"$ac_file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000020785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20786 s//\1/
20787 q
20788 }
20789 /^X\(\/\/\)[^/].*/{
20790 s//\1/
20791 q
20792 }
20793 /^X\(\/\/\)$/{
20794 s//\1/
20795 q
20796 }
20797 /^X\(\/\).*/{
20798 s//\1/
20799 q
20800 }
20801 s/.*/./; q'`
20802 { as_dir="$ac_dir"
20803 case $as_dir in #(
20804 -*) as_dir=./$as_dir;;
20805 esac
20806 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
brynercb91a2f2006-08-25 21:14:45 +000020807 as_dirs=
mmentovai8c2a4de2006-09-20 16:20:15 +000020808 while :; do
20809 case $as_dir in #(
20810 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20811 *) as_qdir=$as_dir;;
20812 esac
20813 as_dirs="'$as_qdir' $as_dirs"
20814 as_dir=`$as_dirname -- "$as_dir" ||
brynercb91a2f2006-08-25 21:14:45 +000020815$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20816 X"$as_dir" : 'X\(//\)[^/]' \| \
20817 X"$as_dir" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000020818 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000020819echo X"$as_dir" |
mmentovai8c2a4de2006-09-20 16:20:15 +000020820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20821 s//\1/
20822 q
20823 }
20824 /^X\(\/\/\)[^/].*/{
20825 s//\1/
20826 q
20827 }
20828 /^X\(\/\/\)$/{
20829 s//\1/
20830 q
20831 }
20832 /^X\(\/\).*/{
20833 s//\1/
20834 q
20835 }
20836 s/.*/./; q'`
20837 test -d "$as_dir" && break
brynercb91a2f2006-08-25 21:14:45 +000020838 done
mmentovai8c2a4de2006-09-20 16:20:15 +000020839 test -z "$as_dirs" || eval "mkdir $as_dirs"
20840 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20841echo "$as_me: error: cannot create directory $as_dir" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000020842 { (exit 1); exit 1; }; }; }
brynercb91a2f2006-08-25 21:14:45 +000020843 ac_builddir=.
20844
mmentovai8c2a4de2006-09-20 16:20:15 +000020845case "$ac_dir" in
20846.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20847*)
brynercb91a2f2006-08-25 21:14:45 +000020848 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
mmentovai8c2a4de2006-09-20 16:20:15 +000020849 # A ".." for each directory in $ac_dir_suffix.
20850 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20851 case $ac_top_builddir_sub in
20852 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20853 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20854 esac ;;
20855esac
20856ac_abs_top_builddir=$ac_pwd
20857ac_abs_builddir=$ac_pwd$ac_dir_suffix
20858# for backward compatibility:
20859ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +000020860
20861case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +000020862 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +000020863 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +000020864 ac_top_srcdir=$ac_top_builddir_sub
20865 ac_abs_top_srcdir=$ac_pwd ;;
20866 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +000020867 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +000020868 ac_top_srcdir=$srcdir
20869 ac_abs_top_srcdir=$srcdir ;;
20870 *) # Relative name.
20871 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20872 ac_top_srcdir=$ac_top_build_prefix$srcdir
20873 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +000020874esac
mmentovai8c2a4de2006-09-20 16:20:15 +000020875ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +000020876
brynercb91a2f2006-08-25 21:14:45 +000020877
mmentovai8c2a4de2006-09-20 16:20:15 +000020878 case $ac_mode in
20879 :F)
20880 #
20881 # CONFIG_FILE
20882 #
brynercb91a2f2006-08-25 21:14:45 +000020883
20884 case $INSTALL in
20885 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000020886 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
brynercb91a2f2006-08-25 21:14:45 +000020887 esac
brynercb91a2f2006-08-25 21:14:45 +000020888_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000020889
20890cat >>$CONFIG_STATUS <<\_ACEOF
20891# If the template does not know about datarootdir, expand it.
20892# FIXME: This hack should be removed a few years after 2.60.
20893ac_datarootdir_hack=; ac_datarootdir_seen=
20894
20895case `sed -n '/datarootdir/ {
20896 p
20897 q
20898}
20899/@datadir@/p
20900/@docdir@/p
20901/@infodir@/p
20902/@localedir@/p
20903/@mandir@/p
20904' $ac_file_inputs` in
20905*datarootdir*) ac_datarootdir_seen=yes;;
20906*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20907 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20908echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20909_ACEOF
20910cat >>$CONFIG_STATUS <<_ACEOF
20911 ac_datarootdir_hack='
20912 s&@datadir@&$datadir&g
20913 s&@docdir@&$docdir&g
20914 s&@infodir@&$infodir&g
20915 s&@localedir@&$localedir&g
20916 s&@mandir@&$mandir&g
20917 s&\\\${datarootdir}&$datarootdir&g' ;;
20918esac
20919_ACEOF
20920
20921# Neutralize VPATH when `$srcdir' = `.'.
20922# Shell code in configure.ac might set extrasub.
20923# FIXME: do we really want to maintain this feature?
brynercb91a2f2006-08-25 21:14:45 +000020924cat >>$CONFIG_STATUS <<_ACEOF
20925 sed "$ac_vpsub
20926$extrasub
20927_ACEOF
20928cat >>$CONFIG_STATUS <<\_ACEOF
20929:t
20930/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
mmentovai8c2a4de2006-09-20 16:20:15 +000020931s&@configure_input@&$configure_input&;t t
20932s&@top_builddir@&$ac_top_builddir_sub&;t t
20933s&@srcdir@&$ac_srcdir&;t t
20934s&@abs_srcdir@&$ac_abs_srcdir&;t t
20935s&@top_srcdir@&$ac_top_srcdir&;t t
20936s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20937s&@builddir@&$ac_builddir&;t t
20938s&@abs_builddir@&$ac_abs_builddir&;t t
20939s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20940s&@INSTALL@&$ac_INSTALL&;t t
20941$ac_datarootdir_hack
20942" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
brynercb91a2f2006-08-25 21:14:45 +000020943
mmentovai8c2a4de2006-09-20 16:20:15 +000020944test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20945 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20946 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20947 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20948which seems to be undefined. Please make sure it is defined." >&5
20949echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20950which seems to be undefined. Please make sure it is defined." >&2;}
brynercb91a2f2006-08-25 21:14:45 +000020951
mmentovai8c2a4de2006-09-20 16:20:15 +000020952 rm -f "$tmp/stdin"
brynercb91a2f2006-08-25 21:14:45 +000020953 case $ac_file in
mmentovai8c2a4de2006-09-20 16:20:15 +000020954 -) cat "$tmp/out"; rm -f "$tmp/out";;
20955 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
brynercb91a2f2006-08-25 21:14:45 +000020956 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000020957 ;;
20958 :H)
20959 #
20960 # CONFIG_HEADER
20961 #
brynercb91a2f2006-08-25 21:14:45 +000020962_ACEOF
20963
mmentovai8c2a4de2006-09-20 16:20:15 +000020964# Transform confdefs.h into a sed script `conftest.defines', that
20965# substitutes the proper values into config.h.in to produce config.h.
20966rm -f conftest.defines conftest.tail
20967# First, append a space to every undef/define line, to ease matching.
20968echo 's/$/ /' >conftest.defines
20969# Then, protect against being on the right side of a sed subst, or in
20970# an unquoted here document, in config.status. If some macros were
20971# called several times there might be several #defines for the same
20972# symbol, which is useless. But do not sort them, since the last
20973# AC_DEFINE must be honored.
20974ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20975# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20976# NAME is the cpp macro being defined, VALUE is the value it is being given.
20977# PARAMS is the parameter list in the macro definition--in most cases, it's
20978# just an empty string.
20979ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20980ac_dB='\\)[ (].*,\\1define\\2'
20981ac_dC=' '
20982ac_dD=' ,'
brynercb91a2f2006-08-25 21:14:45 +000020983
mmentovai8c2a4de2006-09-20 16:20:15 +000020984uniq confdefs.h |
20985 sed -n '
20986 t rset
20987 :rset
20988 s/^[ ]*#[ ]*define[ ][ ]*//
20989 t ok
20990 d
20991 :ok
20992 s/[\\&,]/\\&/g
20993 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20994 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20995 ' >>conftest.defines
20996
20997# Remove the space that was appended to ease matching.
20998# Then replace #undef with comments. This is necessary, for
brynercb91a2f2006-08-25 21:14:45 +000020999# example, in the case of _POSIX_SOURCE, which is predefined and required
21000# on some systems where configure will not decide to define it.
mmentovai8c2a4de2006-09-20 16:20:15 +000021001# (The regexp can be short, since the line contains either #define or #undef.)
21002echo 's/ $//
21003s,^[ #]*u.*,/* & */,' >>conftest.defines
brynercb91a2f2006-08-25 21:14:45 +000021004
mmentovai8c2a4de2006-09-20 16:20:15 +000021005# Break up conftest.defines:
21006ac_max_sed_lines=50
21007
21008# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21009# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21010# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21011# et cetera.
21012ac_in='$ac_file_inputs'
21013ac_out='"$tmp/out1"'
21014ac_nxt='"$tmp/out2"'
21015
21016while :
brynercb91a2f2006-08-25 21:14:45 +000021017do
mmentovai8c2a4de2006-09-20 16:20:15 +000021018 # Write a here document:
21019 cat >>$CONFIG_STATUS <<_ACEOF
21020 # First, check the format of the line:
21021 cat >"\$tmp/defines.sed" <<\\CEOF
21022/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21023/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21024b
21025:def
21026_ACEOF
21027 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
brynercb91a2f2006-08-25 21:14:45 +000021028 echo 'CEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000021029 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21030 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21031 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21032 grep . conftest.tail >/dev/null || break
brynercb91a2f2006-08-25 21:14:45 +000021033 rm -f conftest.defines
21034 mv conftest.tail conftest.defines
21035done
mmentovai8c2a4de2006-09-20 16:20:15 +000021036rm -f conftest.defines conftest.tail
brynercb91a2f2006-08-25 21:14:45 +000021037
mmentovai8c2a4de2006-09-20 16:20:15 +000021038echo "ac_result=$ac_in" >>$CONFIG_STATUS
brynercb91a2f2006-08-25 21:14:45 +000021039cat >>$CONFIG_STATUS <<\_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000021040 if test x"$ac_file" != x-; then
mmentovai8c2a4de2006-09-20 16:20:15 +000021041 echo "/* $configure_input */" >"$tmp/config.h"
21042 cat "$ac_result" >>"$tmp/config.h"
21043 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
brynercb91a2f2006-08-25 21:14:45 +000021044 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21045echo "$as_me: $ac_file is unchanged" >&6;}
21046 else
brynercb91a2f2006-08-25 21:14:45 +000021047 rm -f $ac_file
mmentovai8c2a4de2006-09-20 16:20:15 +000021048 mv "$tmp/config.h" $ac_file
brynercb91a2f2006-08-25 21:14:45 +000021049 fi
21050 else
mmentovai8c2a4de2006-09-20 16:20:15 +000021051 echo "/* $configure_input */"
21052 cat "$ac_result"
brynercb91a2f2006-08-25 21:14:45 +000021053 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000021054 rm -f "$tmp/out12"
brynercb91a2f2006-08-25 21:14:45 +000021055# Compute $ac_file's index in $config_headers.
21056_am_stamp_count=1
21057for _am_header in $config_headers :; do
21058 case $_am_header in
21059 $ac_file | $ac_file:* )
21060 break ;;
21061 * )
21062 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21063 esac
21064done
mmentovai8c2a4de2006-09-20 16:20:15 +000021065echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
brynercb91a2f2006-08-25 21:14:45 +000021066$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21067 X$ac_file : 'X\(//\)[^/]' \| \
21068 X$ac_file : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000021069 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000021070echo X$ac_file |
mmentovai8c2a4de2006-09-20 16:20:15 +000021071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21072 s//\1/
21073 q
21074 }
21075 /^X\(\/\/\)[^/].*/{
21076 s//\1/
21077 q
21078 }
21079 /^X\(\/\/\)$/{
21080 s//\1/
21081 q
21082 }
21083 /^X\(\/\).*/{
21084 s//\1/
21085 q
21086 }
21087 s/.*/./; q'`/stamp-h$_am_stamp_count
21088 ;;
brynercb91a2f2006-08-25 21:14:45 +000021089
mmentovai8c2a4de2006-09-20 16:20:15 +000021090 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21091echo "$as_me: executing $ac_file commands" >&6;}
21092 ;;
21093 esac
brynercb91a2f2006-08-25 21:14:45 +000021094
21095
mmentovai8c2a4de2006-09-20 16:20:15 +000021096 case $ac_file$ac_mode in
21097 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
brynercb91a2f2006-08-25 21:14:45 +000021098 # Strip MF so we end up with the name of the file.
21099 mf=`echo "$mf" | sed -e 's/:.*$//'`
21100 # Check whether this is an Automake generated Makefile or not.
21101 # We used to match only the files named `Makefile.in', but
21102 # some people rename them; so instead we look at the file content.
21103 # Grep'ing the first line is not enough: some people post-process
21104 # each Makefile.in and add a new line on top of each file to say so.
21105 # So let's grep whole file.
21106 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
mmentovai8c2a4de2006-09-20 16:20:15 +000021107 dirpart=`$as_dirname -- "$mf" ||
brynercb91a2f2006-08-25 21:14:45 +000021108$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21109 X"$mf" : 'X\(//\)[^/]' \| \
21110 X"$mf" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000021111 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000021112echo X"$mf" |
mmentovai8c2a4de2006-09-20 16:20:15 +000021113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21114 s//\1/
21115 q
21116 }
21117 /^X\(\/\/\)[^/].*/{
21118 s//\1/
21119 q
21120 }
21121 /^X\(\/\/\)$/{
21122 s//\1/
21123 q
21124 }
21125 /^X\(\/\).*/{
21126 s//\1/
21127 q
21128 }
21129 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +000021130 else
21131 continue
21132 fi
21133 # Extract the definition of DEPDIR, am__include, and am__quote
21134 # from the Makefile without running `make'.
21135 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21136 test -z "$DEPDIR" && continue
21137 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21138 test -z "am__include" && continue
21139 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21140 # When using ansi2knr, U may be empty or an underscore; expand it
21141 U=`sed -n 's/^U = //p' < "$mf"`
21142 # Find all dependency output files, they are included files with
21143 # $(DEPDIR) in their names. We invoke sed twice because it is the
21144 # simplest approach to changing $(DEPDIR) to its actual value in the
21145 # expansion.
21146 for file in `sed -n "
21147 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21148 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21149 # Make sure the directory exists.
21150 test -f "$dirpart/$file" && continue
mmentovai8c2a4de2006-09-20 16:20:15 +000021151 fdir=`$as_dirname -- "$file" ||
brynercb91a2f2006-08-25 21:14:45 +000021152$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21153 X"$file" : 'X\(//\)[^/]' \| \
21154 X"$file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000021155 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000021156echo X"$file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000021157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21158 s//\1/
21159 q
21160 }
21161 /^X\(\/\/\)[^/].*/{
21162 s//\1/
21163 q
21164 }
21165 /^X\(\/\/\)$/{
21166 s//\1/
21167 q
21168 }
21169 /^X\(\/\).*/{
21170 s//\1/
21171 q
21172 }
21173 s/.*/./; q'`
21174 { as_dir=$dirpart/$fdir
21175 case $as_dir in #(
21176 -*) as_dir=./$as_dir;;
21177 esac
21178 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
brynercb91a2f2006-08-25 21:14:45 +000021179 as_dirs=
mmentovai8c2a4de2006-09-20 16:20:15 +000021180 while :; do
21181 case $as_dir in #(
21182 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21183 *) as_qdir=$as_dir;;
21184 esac
21185 as_dirs="'$as_qdir' $as_dirs"
21186 as_dir=`$as_dirname -- "$as_dir" ||
brynercb91a2f2006-08-25 21:14:45 +000021187$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21188 X"$as_dir" : 'X\(//\)[^/]' \| \
21189 X"$as_dir" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000021190 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000021191echo X"$as_dir" |
mmentovai8c2a4de2006-09-20 16:20:15 +000021192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21193 s//\1/
21194 q
21195 }
21196 /^X\(\/\/\)[^/].*/{
21197 s//\1/
21198 q
21199 }
21200 /^X\(\/\/\)$/{
21201 s//\1/
21202 q
21203 }
21204 /^X\(\/\).*/{
21205 s//\1/
21206 q
21207 }
21208 s/.*/./; q'`
21209 test -d "$as_dir" && break
brynercb91a2f2006-08-25 21:14:45 +000021210 done
mmentovai8c2a4de2006-09-20 16:20:15 +000021211 test -z "$as_dirs" || eval "mkdir $as_dirs"
21212 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21213echo "$as_me: error: cannot create directory $as_dir" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000021214 { (exit 1); exit 1; }; }; }
brynercb91a2f2006-08-25 21:14:45 +000021215 # echo "creating $dirpart/$file"
21216 echo '# dummy' > "$dirpart/$file"
21217 done
21218done
21219 ;;
brynercb91a2f2006-08-25 21:14:45 +000021220
mmentovai8c2a4de2006-09-20 16:20:15 +000021221 esac
21222done # for ac_tag
21223
brynercb91a2f2006-08-25 21:14:45 +000021224
21225{ (exit 0); exit 0; }
21226_ACEOF
21227chmod +x $CONFIG_STATUS
21228ac_clean_files=$ac_clean_files_save
21229
21230
21231# configure is writing to config.log, and then calls config.status.
21232# config.status does its own redirection, appending to config.log.
21233# Unfortunately, on DOS this fails, as config.log is still kept open
21234# by configure, so config.status won't be able to write to it; its
21235# output is simply discarded. So we exec the FD to /dev/null,
21236# effectively closing config.log, so it can be properly (re)opened and
21237# appended to by config.status. When coming back to configure, we
21238# need to make the FD available again.
21239if test "$no_create" != yes; then
21240 ac_cs_success=:
21241 ac_config_status_args=
21242 test "$silent" = yes &&
21243 ac_config_status_args="$ac_config_status_args --quiet"
21244 exec 5>/dev/null
21245 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21246 exec 5>>config.log
21247 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21248 # would make configure fail if this is the last instruction.
21249 $ac_cs_success || { (exit 1); exit 1; }
21250fi
21251