blob: f774d0e8ef3c8a44a921fe49e376723d5b923ee9 [file] [log] [blame]
brynercb91a2f2006-08-25 21:14:45 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
mmentovaiaf3c43f2007-05-17 18:34:37 +00003# Generated by GNU Autoconf 2.61 for breakpad 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
mmentovaiaf3c43f2007-05-17 18:34:37 +000015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
brynercb91a2f2006-08-25 21:14:45 +000017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000023 setopt NO_GLOB_SUBST
24else
mmentovaiaf3c43f2007-05-17 18:34:37 +000025 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
brynercb91a2f2006-08-25 21:14:45 +000029fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000030
31
brynercb91a2f2006-08-25 21:14:45 +000032
brynercb91a2f2006-08-25 21:14:45 +000033
mmentovai8c2a4de2006-09-20 16:20:15 +000034# PATH needs CR
brynercb91a2f2006-08-25 21:14:45 +000035# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53fi
54
mmentovai8c2a4de2006-09-20 16:20:15 +000055# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
brynercb91a2f2006-08-25 21:14:45 +000061
mmentovai8c2a4de2006-09-20 16:20:15 +000062
63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000076for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
mmentovai8c2a4de2006-09-20 16:20:15 +000082IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +000083
mmentovai8c2a4de2006-09-20 16:20:15 +000084 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
brynercb91a2f2006-08-25 21:14:45 +0000114 fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121else
122 as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
161fi
162
163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
179
180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
187
188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
brynercb91a2f2006-08-25 21:14:45 +0000223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovaiaf3c43f2007-05-17 18:34:37 +0000224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
brynercb91a2f2006-08-25 21:14:45 +0000225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
mmentovai8c2a4de2006-09-20 16:20:15 +0000228 case $as_dir in
brynercb91a2f2006-08-25 21:14:45 +0000229 /*)
mmentovai8c2a4de2006-09-20 16:20:15 +0000230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
mmentovai8c2a4de2006-09-20 16:20:15 +0000242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
mmentovaiaf3c43f2007-05-17 18:34:37 +0000250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
mmentovai8c2a4de2006-09-20 16:20:15 +0000254fi
mmentovaiaf3c43f2007-05-17 18:34:37 +0000255
mmentovai8c2a4de2006-09-20 16:20:15 +0000256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
mmentovai8c2a4de2006-09-20 16:20:15 +0000263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
mmentovaiaf3c43f2007-05-17 18:34:37 +0000271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
mmentovai8c2a4de2006-09-20 16:20:15 +0000275fi
mmentovaiaf3c43f2007-05-17 18:34:37 +0000276
mmentovai8c2a4de2006-09-20 16:20:15 +0000277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
brynercb91a2f2006-08-25 21:14:45 +0000330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
brynercb91a2f2006-08-25 21:14:45 +0000332 test "x$as_lineno_1" != "x$as_lineno_2" &&
mmentovai8c2a4de2006-09-20 16:20:15 +0000333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
brynercb91a2f2006-08-25 21:14:45 +0000429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
mmentovai8c2a4de2006-09-20 16:20:15 +0000432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
brynercb91a2f2006-08-25 21:14:45 +0000437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mmentovai8c2a4de2006-09-20 16:20:15 +0000438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
brynercb91a2f2006-08-25 21:14:45 +0000444 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +0000445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
brynercb91a2f2006-08-25 21:14:45 +0000449 N
mmentovai8c2a4de2006-09-20 16:20:15 +0000450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
brynercb91a2f2006-08-25 21:14:45 +0000452 t loop
mmentovai8c2a4de2006-09-20 16:20:15 +0000453 s/-\n.*//
brynercb91a2f2006-08-25 21:14:45 +0000454 ' >$as_me.lineno &&
mmentovai8c2a4de2006-09-20 16:20:15 +0000455 chmod +x "$as_me.lineno" ||
brynercb91a2f2006-08-25 21:14:45 +0000456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
mmentovai8c2a4de2006-09-20 16:20:15 +0000461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
brynercb91a2f2006-08-25 21:14:45 +0000463 # Exit status is that of the last command.
464 exit
465}
466
467
mmentovai8c2a4de2006-09-20 16:20:15 +0000468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +0000483esac
484
mmentovai8c2a4de2006-09-20 16:20:15 +0000485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
brynercb91a2f2006-08-25 21:14:45 +0000487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +0000493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
brynercb91a2f2006-08-25 21:14:45 +0000499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +0000501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
brynercb91a2f2006-08-25 21:14:45 +0000507 as_ln_s='cp -p'
brynercb91a2f2006-08-25 21:14:45 +0000508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +0000515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
mmentovaiaf3c43f2007-05-17 18:34:37 +0000523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
mmentovai8c2a4de2006-09-20 16:20:15 +0000525else
mmentovaiaf3c43f2007-05-17 18:34:37 +0000526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
mmentovai8c2a4de2006-09-20 16:20:15 +0000543fi
mmentovaiaf3c43f2007-05-17 18:34:37 +0000544as_executable_p=$as_test_x
brynercb91a2f2006-08-25 21:14:45 +0000545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
brynercb91a2f2006-08-25 21:14:45 +0000553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584$*
585EOF
586 exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
mmentovai8c2a4de2006-09-20 16:20:15 +0000591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
brynercb91a2f2006-08-25 21:14:45 +0000592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
mmentovai8c2a4de2006-09-20 16:20:15 +0000598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
brynercb91a2f2006-08-25 21:14:45 +0000600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
mmentovai8c2a4de2006-09-20 16:20:15 +0000708exec 7<&0 </dev/null 6>&1
709
brynercb91a2f2006-08-25 21:14:45 +0000710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
brynercb91a2f2006-08-25 21:14:45 +0000715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
mmentovai8c2a4de2006-09-20 16:20:15 +0000719ac_clean_files=
brynercb91a2f2006-08-25 21:14:45 +0000720ac_config_libobj_dir=.
mmentovai8c2a4de2006-09-20 16:20:15 +0000721LIBOBJS=
brynercb91a2f2006-08-25 21:14:45 +0000722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
brynercb91a2f2006-08-25 21:14:45 +0000728# Identity of this package.
mmentovaie5dc6082007-02-14 19:51:05 +0000729PACKAGE_NAME='breakpad'
730PACKAGE_TARNAME='breakpad'
brynercb91a2f2006-08-25 21:14:45 +0000731PACKAGE_VERSION='0.1'
mmentovaie5dc6082007-02-14 19:51:05 +0000732PACKAGE_STRING='breakpad 0.1'
brynercb91a2f2006-08-25 21:14:45 +0000733PACKAGE_BUGREPORT='opensource@google.com'
734
735ac_unique_file="README"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
mmentovaiaf3c43f2007-05-17 18:34:37 +0000739#ifdef HAVE_SYS_TYPES_H
brynercb91a2f2006-08-25 21:14:45 +0000740# include <sys/types.h>
741#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000742#ifdef HAVE_SYS_STAT_H
brynercb91a2f2006-08-25 21:14:45 +0000743# include <sys/stat.h>
744#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000745#ifdef STDC_HEADERS
brynercb91a2f2006-08-25 21:14:45 +0000746# include <stdlib.h>
747# include <stddef.h>
748#else
mmentovaiaf3c43f2007-05-17 18:34:37 +0000749# ifdef HAVE_STDLIB_H
brynercb91a2f2006-08-25 21:14:45 +0000750# include <stdlib.h>
751# endif
752#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
brynercb91a2f2006-08-25 21:14:45 +0000755# include <memory.h>
756# endif
757# include <string.h>
758#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000759#ifdef HAVE_STRINGS_H
brynercb91a2f2006-08-25 21:14:45 +0000760# include <strings.h>
761#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000762#ifdef HAVE_INTTYPES_H
brynercb91a2f2006-08-25 21:14:45 +0000763# include <inttypes.h>
mmentovai8c2a4de2006-09-20 16:20:15 +0000764#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000765#ifdef HAVE_STDINT_H
mmentovai8c2a4de2006-09-20 16:20:15 +0000766# include <stdint.h>
brynercb91a2f2006-08-25 21:14:45 +0000767#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000768#ifdef HAVE_UNISTD_H
brynercb91a2f2006-08-25 21:14:45 +0000769# include <unistd.h>
770#endif"
771
mmentovai8c2a4de2006-09-20 16:20:15 +0000772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809INSTALL_PROGRAM
810INSTALL_SCRIPT
811INSTALL_DATA
mmentovaiaf3c43f2007-05-17 18:34:37 +0000812am__isrc
mmentovai8c2a4de2006-09-20 16:20:15 +0000813CYGPATH_W
814PACKAGE
815VERSION
816ACLOCAL
817AUTOCONF
818AUTOMAKE
819AUTOHEADER
820MAKEINFO
821install_sh
822STRIP
823INSTALL_STRIP_PROGRAM
824mkdir_p
825AWK
826SET_MAKE
827am__leading_dot
828AMTAR
829am__tar
830am__untar
831CC
832CFLAGS
833LDFLAGS
834CPPFLAGS
835ac_ct_CC
836EXEEXT
837OBJEXT
838DEPDIR
839am__include
840am__quote
841AMDEP_TRUE
842AMDEP_FALSE
843AMDEPBACKSLASH
844CCDEPMODE
845am__fastdepCC_TRUE
846am__fastdepCC_FALSE
847CPP
848CXX
849CXXFLAGS
850ac_ct_CXX
851CXXDEPMODE
852am__fastdepCXX_TRUE
853am__fastdepCXX_FALSE
854build
855build_cpu
856build_vendor
857build_os
858host
859host_cpu
860host_vendor
861host_os
ted.mielczarek1adb1842009-12-21 13:12:20 +0000862SED
mmentovai8c2a4de2006-09-20 16:20:15 +0000863GREP
864EGREP
865LN_S
866ECHO
867AR
868RANLIB
ted.mielczarek1adb1842009-12-21 13:12:20 +0000869DSYMUTIL
870NMEDIT
mmentovai8c2a4de2006-09-20 16:20:15 +0000871CXXCPP
872F77
873FFLAGS
874ac_ct_F77
875LIBTOOL
876LIBTOOL_DEPS
mmentovai0dbedc92006-09-25 21:16:15 +0000877SELFTEST_TRUE
878SELFTEST_FALSE
mmentovai8c2a4de2006-09-20 16:20:15 +0000879LIBOBJS
880LTLIBOBJS'
brynercb91a2f2006-08-25 21:14:45 +0000881ac_subst_files=''
mmentovai8c2a4de2006-09-20 16:20:15 +0000882 ac_precious_vars='build_alias
883host_alias
884target_alias
885CC
886CFLAGS
887LDFLAGS
mmentovaiaf3c43f2007-05-17 18:34:37 +0000888LIBS
mmentovai8c2a4de2006-09-20 16:20:15 +0000889CPPFLAGS
890CPP
891CXX
892CXXFLAGS
893CCC
894CXXCPP
895F77
896FFLAGS'
897
brynercb91a2f2006-08-25 21:14:45 +0000898
899# Initialize some variables set by options.
900ac_init_help=
901ac_init_version=false
902# The variables have the same names as the options, with
903# dashes changed to underlines.
904cache_file=/dev/null
905exec_prefix=NONE
906no_create=
907no_recursion=
908prefix=NONE
909program_prefix=NONE
910program_suffix=NONE
911program_transform_name=s,x,x,
912silent=
913site=
914srcdir=
915verbose=
916x_includes=NONE
917x_libraries=NONE
918
919# Installation directory options.
920# These are left unexpanded so users can "make install exec_prefix=/foo"
921# and all the variables that are supposed to be based on exec_prefix
922# by default will actually change.
923# Use braces instead of parens because sh, perl, etc. also accept them.
mmentovai8c2a4de2006-09-20 16:20:15 +0000924# (The list follows the same order as the GNU Coding Standards.)
brynercb91a2f2006-08-25 21:14:45 +0000925bindir='${exec_prefix}/bin'
926sbindir='${exec_prefix}/sbin'
927libexecdir='${exec_prefix}/libexec'
mmentovai8c2a4de2006-09-20 16:20:15 +0000928datarootdir='${prefix}/share'
929datadir='${datarootdir}'
brynercb91a2f2006-08-25 21:14:45 +0000930sysconfdir='${prefix}/etc'
931sharedstatedir='${prefix}/com'
932localstatedir='${prefix}/var'
brynercb91a2f2006-08-25 21:14:45 +0000933includedir='${prefix}/include'
934oldincludedir='/usr/include'
mmentovai8c2a4de2006-09-20 16:20:15 +0000935docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
936infodir='${datarootdir}/info'
937htmldir='${docdir}'
938dvidir='${docdir}'
939pdfdir='${docdir}'
940psdir='${docdir}'
941libdir='${exec_prefix}/lib'
942localedir='${datarootdir}/locale'
943mandir='${datarootdir}/man'
brynercb91a2f2006-08-25 21:14:45 +0000944
945ac_prev=
mmentovai8c2a4de2006-09-20 16:20:15 +0000946ac_dashdash=
brynercb91a2f2006-08-25 21:14:45 +0000947for ac_option
948do
949 # If the previous option needs an argument, assign it.
950 if test -n "$ac_prev"; then
mmentovai8c2a4de2006-09-20 16:20:15 +0000951 eval $ac_prev=\$ac_option
brynercb91a2f2006-08-25 21:14:45 +0000952 ac_prev=
953 continue
954 fi
955
mmentovai8c2a4de2006-09-20 16:20:15 +0000956 case $ac_option in
957 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958 *) ac_optarg=yes ;;
959 esac
brynercb91a2f2006-08-25 21:14:45 +0000960
961 # Accept the important Cygnus configure options, so we can diagnose typos.
962
mmentovai8c2a4de2006-09-20 16:20:15 +0000963 case $ac_dashdash$ac_option in
964 --)
965 ac_dashdash=yes ;;
brynercb91a2f2006-08-25 21:14:45 +0000966
967 -bindir | --bindir | --bindi | --bind | --bin | --bi)
968 ac_prev=bindir ;;
969 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970 bindir=$ac_optarg ;;
971
972 -build | --build | --buil | --bui | --bu)
973 ac_prev=build_alias ;;
974 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975 build_alias=$ac_optarg ;;
976
977 -cache-file | --cache-file | --cache-fil | --cache-fi \
978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979 ac_prev=cache_file ;;
980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982 cache_file=$ac_optarg ;;
983
984 --config-cache | -C)
985 cache_file=config.cache ;;
986
mmentovai8c2a4de2006-09-20 16:20:15 +0000987 -datadir | --datadir | --datadi | --datad)
brynercb91a2f2006-08-25 21:14:45 +0000988 ac_prev=datadir ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000989 -datadir=* | --datadir=* | --datadi=* | --datad=*)
brynercb91a2f2006-08-25 21:14:45 +0000990 datadir=$ac_optarg ;;
991
mmentovai8c2a4de2006-09-20 16:20:15 +0000992 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993 | --dataroo | --dataro | --datar)
994 ac_prev=datarootdir ;;
995 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997 datarootdir=$ac_optarg ;;
998
brynercb91a2f2006-08-25 21:14:45 +0000999 -disable-* | --disable-*)
1000 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001 # Reject names that are not valid shell variable names.
mmentovaiaf3c43f2007-05-17 18:34:37 +00001002 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
brynercb91a2f2006-08-25 21:14:45 +00001003 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1004 { (exit 1); exit 1; }; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00001005 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001006 eval enable_$ac_feature=no ;;
1007
1008 -docdir | --docdir | --docdi | --doc | --do)
1009 ac_prev=docdir ;;
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1012
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 ac_prev=dvidir ;;
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001017
1018 -enable-* | --enable-*)
1019 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
mmentovaiaf3c43f2007-05-17 18:34:37 +00001021 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
brynercb91a2f2006-08-25 21:14:45 +00001022 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023 { (exit 1); exit 1; }; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00001024 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001025 eval enable_$ac_feature=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001026
1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029 | --exec | --exe | --ex)
1030 ac_prev=exec_prefix ;;
1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033 | --exec=* | --exe=* | --ex=*)
1034 exec_prefix=$ac_optarg ;;
1035
1036 -gas | --gas | --ga | --g)
1037 # Obsolete; use --with-gas.
1038 with_gas=yes ;;
1039
1040 -help | --help | --hel | --he | -h)
1041 ac_init_help=long ;;
1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043 ac_init_help=recursive ;;
1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045 ac_init_help=short ;;
1046
1047 -host | --host | --hos | --ho)
1048 ac_prev=host_alias ;;
1049 -host=* | --host=* | --hos=* | --ho=*)
1050 host_alias=$ac_optarg ;;
1051
mmentovai8c2a4de2006-09-20 16:20:15 +00001052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053 ac_prev=htmldir ;;
1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055 | --ht=*)
1056 htmldir=$ac_optarg ;;
1057
brynercb91a2f2006-08-25 21:14:45 +00001058 -includedir | --includedir | --includedi | --included | --include \
1059 | --includ | --inclu | --incl | --inc)
1060 ac_prev=includedir ;;
1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062 | --includ=* | --inclu=* | --incl=* | --inc=*)
1063 includedir=$ac_optarg ;;
1064
1065 -infodir | --infodir | --infodi | --infod | --info | --inf)
1066 ac_prev=infodir ;;
1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068 infodir=$ac_optarg ;;
1069
1070 -libdir | --libdir | --libdi | --libd)
1071 ac_prev=libdir ;;
1072 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073 libdir=$ac_optarg ;;
1074
1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076 | --libexe | --libex | --libe)
1077 ac_prev=libexecdir ;;
1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079 | --libexe=* | --libex=* | --libe=*)
1080 libexecdir=$ac_optarg ;;
1081
mmentovai8c2a4de2006-09-20 16:20:15 +00001082 -localedir | --localedir | --localedi | --localed | --locale)
1083 ac_prev=localedir ;;
1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085 localedir=$ac_optarg ;;
1086
brynercb91a2f2006-08-25 21:14:45 +00001087 -localstatedir | --localstatedir | --localstatedi | --localstated \
mmentovai8c2a4de2006-09-20 16:20:15 +00001088 | --localstate | --localstat | --localsta | --localst | --locals)
brynercb91a2f2006-08-25 21:14:45 +00001089 ac_prev=localstatedir ;;
1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mmentovai8c2a4de2006-09-20 16:20:15 +00001091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
brynercb91a2f2006-08-25 21:14:45 +00001092 localstatedir=$ac_optarg ;;
1093
1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095 ac_prev=mandir ;;
1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097 mandir=$ac_optarg ;;
1098
1099 -nfp | --nfp | --nf)
1100 # Obsolete; use --without-fp.
1101 with_fp=no ;;
1102
1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104 | --no-cr | --no-c | -n)
1105 no_create=yes ;;
1106
1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109 no_recursion=yes ;;
1110
1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113 | --oldin | --oldi | --old | --ol | --o)
1114 ac_prev=oldincludedir ;;
1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118 oldincludedir=$ac_optarg ;;
1119
1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121 ac_prev=prefix ;;
1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123 prefix=$ac_optarg ;;
1124
1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126 | --program-pre | --program-pr | --program-p)
1127 ac_prev=program_prefix ;;
1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130 program_prefix=$ac_optarg ;;
1131
1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133 | --program-suf | --program-su | --program-s)
1134 ac_prev=program_suffix ;;
1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137 program_suffix=$ac_optarg ;;
1138
1139 -program-transform-name | --program-transform-name \
1140 | --program-transform-nam | --program-transform-na \
1141 | --program-transform-n | --program-transform- \
1142 | --program-transform | --program-transfor \
1143 | --program-transfo | --program-transf \
1144 | --program-trans | --program-tran \
1145 | --progr-tra | --program-tr | --program-t)
1146 ac_prev=program_transform_name ;;
1147 -program-transform-name=* | --program-transform-name=* \
1148 | --program-transform-nam=* | --program-transform-na=* \
1149 | --program-transform-n=* | --program-transform-=* \
1150 | --program-transform=* | --program-transfor=* \
1151 | --program-transfo=* | --program-transf=* \
1152 | --program-trans=* | --program-tran=* \
1153 | --progr-tra=* | --program-tr=* | --program-t=*)
1154 program_transform_name=$ac_optarg ;;
1155
mmentovai8c2a4de2006-09-20 16:20:15 +00001156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157 ac_prev=pdfdir ;;
1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159 pdfdir=$ac_optarg ;;
1160
1161 -psdir | --psdir | --psdi | --psd | --ps)
1162 ac_prev=psdir ;;
1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164 psdir=$ac_optarg ;;
1165
brynercb91a2f2006-08-25 21:14:45 +00001166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167 | -silent | --silent | --silen | --sile | --sil)
1168 silent=yes ;;
1169
1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171 ac_prev=sbindir ;;
1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173 | --sbi=* | --sb=*)
1174 sbindir=$ac_optarg ;;
1175
1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178 | --sharedst | --shareds | --shared | --share | --shar \
1179 | --sha | --sh)
1180 ac_prev=sharedstatedir ;;
1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184 | --sha=* | --sh=*)
1185 sharedstatedir=$ac_optarg ;;
1186
1187 -site | --site | --sit)
1188 ac_prev=site ;;
1189 -site=* | --site=* | --sit=*)
1190 site=$ac_optarg ;;
1191
1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193 ac_prev=srcdir ;;
1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195 srcdir=$ac_optarg ;;
1196
1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198 | --syscon | --sysco | --sysc | --sys | --sy)
1199 ac_prev=sysconfdir ;;
1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202 sysconfdir=$ac_optarg ;;
1203
1204 -target | --target | --targe | --targ | --tar | --ta | --t)
1205 ac_prev=target_alias ;;
1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207 target_alias=$ac_optarg ;;
1208
1209 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210 verbose=yes ;;
1211
1212 -version | --version | --versio | --versi | --vers | -V)
1213 ac_init_version=: ;;
1214
1215 -with-* | --with-*)
1216 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
mmentovaiaf3c43f2007-05-17 18:34:37 +00001218 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
brynercb91a2f2006-08-25 21:14:45 +00001219 { echo "$as_me: error: invalid package name: $ac_package" >&2
1220 { (exit 1); exit 1; }; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00001221 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001222 eval with_$ac_package=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001223
1224 -without-* | --without-*)
1225 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
mmentovaiaf3c43f2007-05-17 18:34:37 +00001227 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
brynercb91a2f2006-08-25 21:14:45 +00001228 { echo "$as_me: error: invalid package name: $ac_package" >&2
1229 { (exit 1); exit 1; }; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00001230 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001231 eval with_$ac_package=no ;;
brynercb91a2f2006-08-25 21:14:45 +00001232
1233 --x)
1234 # Obsolete; use --with-x.
1235 with_x=yes ;;
1236
1237 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238 | --x-incl | --x-inc | --x-in | --x-i)
1239 ac_prev=x_includes ;;
1240 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242 x_includes=$ac_optarg ;;
1243
1244 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246 ac_prev=x_libraries ;;
1247 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249 x_libraries=$ac_optarg ;;
1250
1251 -*) { echo "$as_me: error: unrecognized option: $ac_option
1252Try \`$0 --help' for more information." >&2
1253 { (exit 1); exit 1; }; }
1254 ;;
1255
1256 *=*)
1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00001262 eval $ac_envvar=\$ac_optarg
brynercb91a2f2006-08-25 21:14:45 +00001263 export $ac_envvar ;;
1264
1265 *)
1266 # FIXME: should be removed in autoconf 3.0.
1267 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1271 ;;
1272
1273 esac
1274done
1275
1276if test -n "$ac_prev"; then
1277 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278 { echo "$as_me: error: missing argument to $ac_option" >&2
1279 { (exit 1); exit 1; }; }
1280fi
1281
mmentovai8c2a4de2006-09-20 16:20:15 +00001282# Be sure to have absolute directory names.
1283for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
brynercb91a2f2006-08-25 21:14:45 +00001287do
mmentovai8c2a4de2006-09-20 16:20:15 +00001288 eval ac_val=\$$ac_var
brynercb91a2f2006-08-25 21:14:45 +00001289 case $ac_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
brynercb91a2f2006-08-25 21:14:45 +00001292 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001293 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1294 { (exit 1); exit 1; }; }
brynercb91a2f2006-08-25 21:14:45 +00001295done
1296
1297# There might be people who depend on the old broken behavior: `$host'
1298# used to hold the argument of --host etc.
1299# FIXME: To remove some day.
1300build=$build_alias
1301host=$host_alias
1302target=$target_alias
1303
1304# FIXME: To remove some day.
1305if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used." >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1311 cross_compiling=yes
1312 fi
1313fi
1314
1315ac_tool_prefix=
1316test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317
1318test "$silent" = yes && exec 6>/dev/null
1319
1320
mmentovai8c2a4de2006-09-20 16:20:15 +00001321ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322ac_ls_di=`ls -di .` &&
1323ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 { echo "$as_me: error: Working directory cannot be determined" >&2
1325 { (exit 1); exit 1; }; }
1326test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 { echo "$as_me: error: pwd does not report name of working directory" >&2
1328 { (exit 1); exit 1; }; }
1329
1330
brynercb91a2f2006-08-25 21:14:45 +00001331# Find the source files, if location was not specified.
1332if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00001334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$0" ||
brynercb91a2f2006-08-25 21:14:45 +00001336$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$0" : 'X\(//\)[^/]' \| \
1338 X"$0" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +00001339 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +00001340echo X"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +00001341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +00001358 srcdir=$ac_confdir
mmentovai8c2a4de2006-09-20 16:20:15 +00001359 if test ! -r "$srcdir/$ac_unique_file"; then
brynercb91a2f2006-08-25 21:14:45 +00001360 srcdir=..
1361 fi
1362else
1363 ac_srcdir_defaulted=no
1364fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001365if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
brynercb91a2f2006-08-25 21:14:45 +00001368 { (exit 1); exit 1; }; }
brynercb91a2f2006-08-25 21:14:45 +00001369fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001370ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371ac_abs_confdir=`(
1372 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
brynercb91a2f2006-08-25 21:14:45 +00001373 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00001374 pwd)`
1375# When building in place, set srcdir=.
1376if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 srcdir=.
1378fi
1379# Remove unnecessary trailing slashes from srcdir.
1380# Double slashes in file names in object file debugging info
1381# mess up M-x gdb in Emacs.
1382case $srcdir in
1383*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384esac
1385for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390done
brynercb91a2f2006-08-25 21:14:45 +00001391
1392#
1393# Report the --help message.
1394#
1395if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1398 cat <<_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001399\`configure' configures breakpad 0.1 to adapt to many kinds of systems.
brynercb91a2f2006-08-25 21:14:45 +00001400
1401Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1403To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404VAR=VALUE. See below for descriptions of some of the useful variables.
1405
1406Defaults for the options are specified in brackets.
1407
1408Configuration:
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418
brynercb91a2f2006-08-25 21:14:45 +00001419Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 [PREFIX]
1424
1425By default, \`make install' will install all the files in
1426\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428for instance \`--prefix=\$HOME'.
1429
1430For better control, use the options below.
1431
1432Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
brynercb91a2f2006-08-25 21:14:45 +00001436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
mmentovai8c2a4de2006-09-20 16:20:15 +00001442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
mmentovaie5dc6082007-02-14 19:51:05 +00001447 --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad]
mmentovai8c2a4de2006-09-20 16:20:15 +00001448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
brynercb91a2f2006-08-25 21:14:45 +00001452_ACEOF
1453
1454 cat <<\_ACEOF
1455
1456Program names:
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1460
1461System types:
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1464_ACEOF
1465fi
1466
1467if test -n "$ac_init_help"; then
1468 case $ac_init_help in
mmentovaie5dc6082007-02-14 19:51:05 +00001469 short | recursive ) echo "Configuration of breakpad 0.1:";;
brynercb91a2f2006-08-25 21:14:45 +00001470 esac
1471 cat <<\_ACEOF
1472
1473Optional Features:
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --disable-dependency-tracking speeds up one-time build
1477 --enable-dependency-tracking do not reject slow dependency extractors
mmentovai8c2a4de2006-09-20 16:20:15 +00001478 --enable-shared[=PKGS] build shared libraries [default=yes]
1479 --enable-static[=PKGS] build static libraries [default=yes]
brynercb91a2f2006-08-25 21:14:45 +00001480 --enable-fast-install[=PKGS]
1481 optimize for fast installation [default=yes]
1482 --disable-libtool-lock avoid locking (might break parallel builds)
mmentovai0dbedc92006-09-25 21:16:15 +00001483 --enable-selftest Run extra tests with "make check" (may conflict with
1484 optimizations) (default is no)
brynercb91a2f2006-08-25 21:14:45 +00001485
1486Optional Packages:
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1489 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1490 --with-pic try to use only PIC/non-PIC objects [default=use
1491 both]
mmentovai8c2a4de2006-09-20 16:20:15 +00001492 --with-tags[=TAGS] include additional configurations [automatic]
brynercb91a2f2006-08-25 21:14:45 +00001493
1494Some influential environment variables:
1495 CC C compiler command
1496 CFLAGS C compiler flags
1497 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1498 nonstandard directory <lib dir>
mmentovaiaf3c43f2007-05-17 18:34:37 +00001499 LIBS libraries to pass to the linker, e.g. -l<library>
mmentovai8c2a4de2006-09-20 16:20:15 +00001500 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1501 you have headers in a nonstandard directory <include dir>
brynercb91a2f2006-08-25 21:14:45 +00001502 CPP C preprocessor
1503 CXX C++ compiler command
1504 CXXFLAGS C++ compiler flags
1505 CXXCPP C++ preprocessor
mmentovai8c2a4de2006-09-20 16:20:15 +00001506 F77 Fortran 77 compiler command
1507 FFLAGS Fortran 77 compiler flags
brynercb91a2f2006-08-25 21:14:45 +00001508
1509Use these variables to override the choices made by `configure' or to help
1510it to find libraries and programs with nonstandard names/locations.
1511
1512Report bugs to <opensource@google.com>.
1513_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001514ac_status=$?
brynercb91a2f2006-08-25 21:14:45 +00001515fi
1516
1517if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
brynercb91a2f2006-08-25 21:14:45 +00001519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
mmentovai8c2a4de2006-09-20 16:20:15 +00001520 test -d "$ac_dir" || continue
brynercb91a2f2006-08-25 21:14:45 +00001521 ac_builddir=.
1522
mmentovai8c2a4de2006-09-20 16:20:15 +00001523case "$ac_dir" in
1524.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525*)
brynercb91a2f2006-08-25 21:14:45 +00001526 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001527 # A ".." for each directory in $ac_dir_suffix.
1528 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1529 case $ac_top_builddir_sub in
1530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532 esac ;;
1533esac
1534ac_abs_top_builddir=$ac_pwd
1535ac_abs_builddir=$ac_pwd$ac_dir_suffix
1536# for backward compatibility:
1537ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00001538
1539case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00001540 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00001541 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00001542 ac_top_srcdir=$ac_top_builddir_sub
1543 ac_abs_top_srcdir=$ac_pwd ;;
1544 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00001545 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00001546 ac_top_srcdir=$srcdir
1547 ac_abs_top_srcdir=$srcdir ;;
1548 *) # Relative name.
1549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550 ac_top_srcdir=$ac_top_build_prefix$srcdir
1551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00001552esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001553ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00001554
mmentovai8c2a4de2006-09-20 16:20:15 +00001555 cd "$ac_dir" || { ac_status=$?; continue; }
1556 # Check for guested configure.
1557 if test -f "$ac_srcdir/configure.gnu"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560 elif test -f "$ac_srcdir/configure"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure" --help=recursive
brynercb91a2f2006-08-25 21:14:45 +00001563 else
1564 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mmentovai8c2a4de2006-09-20 16:20:15 +00001565 fi || ac_status=$?
1566 cd "$ac_pwd" || { ac_status=$?; break; }
brynercb91a2f2006-08-25 21:14:45 +00001567 done
1568fi
1569
mmentovai8c2a4de2006-09-20 16:20:15 +00001570test -n "$ac_init_help" && exit $ac_status
brynercb91a2f2006-08-25 21:14:45 +00001571if $ac_init_version; then
1572 cat <<\_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001573breakpad configure 0.1
mmentovaiaf3c43f2007-05-17 18:34:37 +00001574generated by GNU Autoconf 2.61
brynercb91a2f2006-08-25 21:14:45 +00001575
mmentovai8c2a4de2006-09-20 16:20:15 +00001576Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15772002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00001578This configure script is free software; the Free Software Foundation
1579gives unlimited permission to copy, distribute and modify it.
1580_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001581 exit
brynercb91a2f2006-08-25 21:14:45 +00001582fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001583cat >config.log <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00001584This file contains any messages produced by compilers while
1585running configure, to aid debugging if configure makes a mistake.
1586
mmentovaie5dc6082007-02-14 19:51:05 +00001587It was created by breakpad $as_me 0.1, which was
mmentovaiaf3c43f2007-05-17 18:34:37 +00001588generated by GNU Autoconf 2.61. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00001589
1590 $ $0 $@
1591
1592_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001593exec 5>>config.log
brynercb91a2f2006-08-25 21:14:45 +00001594{
1595cat <<_ASUNAME
1596## --------- ##
1597## Platform. ##
1598## --------- ##
1599
1600hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1601uname -m = `(uname -m) 2>/dev/null || echo unknown`
1602uname -r = `(uname -r) 2>/dev/null || echo unknown`
1603uname -s = `(uname -s) 2>/dev/null || echo unknown`
1604uname -v = `(uname -v) 2>/dev/null || echo unknown`
1605
1606/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1607/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1608
1609/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1610/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1611/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mmentovai8c2a4de2006-09-20 16:20:15 +00001612/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
brynercb91a2f2006-08-25 21:14:45 +00001613/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1614/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1615/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1616
1617_ASUNAME
1618
1619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620for as_dir in $PATH
1621do
1622 IFS=$as_save_IFS
1623 test -z "$as_dir" && as_dir=.
1624 echo "PATH: $as_dir"
1625done
mmentovai8c2a4de2006-09-20 16:20:15 +00001626IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00001627
1628} >&5
1629
1630cat >&5 <<_ACEOF
1631
1632
1633## ----------- ##
1634## Core tests. ##
1635## ----------- ##
1636
1637_ACEOF
1638
1639
1640# Keep a trace of the command line.
1641# Strip out --no-create and --no-recursion so they do not pile up.
1642# Strip out --silent because we don't want to record it for future runs.
1643# Also quote any args containing shell meta-characters.
1644# Make two passes to allow for proper duplicate-argument suppression.
1645ac_configure_args=
1646ac_configure_args0=
1647ac_configure_args1=
brynercb91a2f2006-08-25 21:14:45 +00001648ac_must_keep_next=false
1649for ac_pass in 1 2
1650do
1651 for ac_arg
1652 do
1653 case $ac_arg in
1654 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1655 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1656 | -silent | --silent | --silen | --sile | --sil)
1657 continue ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001658 *\'*)
brynercb91a2f2006-08-25 21:14:45 +00001659 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1660 esac
1661 case $ac_pass in
1662 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1663 2)
1664 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1665 if test $ac_must_keep_next = true; then
1666 ac_must_keep_next=false # Got value, back to normal.
1667 else
1668 case $ac_arg in
1669 *=* | --config-cache | -C | -disable-* | --disable-* \
1670 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1671 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1672 | -with-* | --with-* | -without-* | --without-* | --x)
1673 case "$ac_configure_args0 " in
1674 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1675 esac
1676 ;;
1677 -* ) ac_must_keep_next=true ;;
1678 esac
1679 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001680 ac_configure_args="$ac_configure_args '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00001681 ;;
1682 esac
1683 done
1684done
1685$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1686$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1687
1688# When interrupted or exit'd, cleanup temporary files, and complete
1689# config.log. We remove comments because anyway the quotes in there
1690# would cause problems or look ugly.
mmentovai8c2a4de2006-09-20 16:20:15 +00001691# WARNING: Use '\'' to represent an apostrophe within the trap.
1692# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
brynercb91a2f2006-08-25 21:14:45 +00001693trap 'exit_status=$?
1694 # Save into config.log some information that might help in debugging.
1695 {
1696 echo
1697
1698 cat <<\_ASBOX
1699## ---------------- ##
1700## Cache variables. ##
1701## ---------------- ##
1702_ASBOX
1703 echo
1704 # The following way of writing the cache mishandles newlines in values,
mmentovai8c2a4de2006-09-20 16:20:15 +00001705(
1706 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1707 eval ac_val=\$$ac_var
1708 case $ac_val in #(
1709 *${as_nl}*)
1710 case $ac_var in #(
1711 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1712echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1713 esac
1714 case $ac_var in #(
1715 _ | IFS | as_nl) ;; #(
1716 *) $as_unset $ac_var ;;
1717 esac ;;
1718 esac
1719 done
brynercb91a2f2006-08-25 21:14:45 +00001720 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00001721 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1722 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +00001723 sed -n \
mmentovai8c2a4de2006-09-20 16:20:15 +00001724 "s/'\''/'\''\\\\'\'''\''/g;
1725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1726 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00001727 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00001728 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00001729 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001730 esac |
1731 sort
1732)
brynercb91a2f2006-08-25 21:14:45 +00001733 echo
1734
1735 cat <<\_ASBOX
1736## ----------------- ##
1737## Output variables. ##
1738## ----------------- ##
1739_ASBOX
1740 echo
1741 for ac_var in $ac_subst_vars
1742 do
mmentovai8c2a4de2006-09-20 16:20:15 +00001743 eval ac_val=\$$ac_var
1744 case $ac_val in
1745 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746 esac
1747 echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00001748 done | sort
1749 echo
1750
1751 if test -n "$ac_subst_files"; then
1752 cat <<\_ASBOX
mmentovai8c2a4de2006-09-20 16:20:15 +00001753## ------------------- ##
1754## File substitutions. ##
1755## ------------------- ##
brynercb91a2f2006-08-25 21:14:45 +00001756_ASBOX
1757 echo
1758 for ac_var in $ac_subst_files
1759 do
mmentovai8c2a4de2006-09-20 16:20:15 +00001760 eval ac_val=\$$ac_var
1761 case $ac_val in
1762 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1763 esac
1764 echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00001765 done | sort
1766 echo
1767 fi
1768
1769 if test -s confdefs.h; then
1770 cat <<\_ASBOX
1771## ----------- ##
1772## confdefs.h. ##
1773## ----------- ##
1774_ASBOX
1775 echo
mmentovai8c2a4de2006-09-20 16:20:15 +00001776 cat confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00001777 echo
1778 fi
1779 test "$ac_signal" != 0 &&
1780 echo "$as_me: caught signal $ac_signal"
1781 echo "$as_me: exit $exit_status"
1782 } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00001783 rm -f core *.core core.conftest.* &&
1784 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
brynercb91a2f2006-08-25 21:14:45 +00001785 exit $exit_status
mmentovai8c2a4de2006-09-20 16:20:15 +00001786' 0
brynercb91a2f2006-08-25 21:14:45 +00001787for ac_signal in 1 2 13 15; do
1788 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1789done
1790ac_signal=0
1791
1792# confdefs.h avoids OS command line length limits that DEFS can exceed.
mmentovai8c2a4de2006-09-20 16:20:15 +00001793rm -f -r conftest* confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00001794
1795# Predefined preprocessor variables.
1796
1797cat >>confdefs.h <<_ACEOF
1798#define PACKAGE_NAME "$PACKAGE_NAME"
1799_ACEOF
1800
1801
1802cat >>confdefs.h <<_ACEOF
1803#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1804_ACEOF
1805
1806
1807cat >>confdefs.h <<_ACEOF
1808#define PACKAGE_VERSION "$PACKAGE_VERSION"
1809_ACEOF
1810
1811
1812cat >>confdefs.h <<_ACEOF
1813#define PACKAGE_STRING "$PACKAGE_STRING"
1814_ACEOF
1815
1816
1817cat >>confdefs.h <<_ACEOF
1818#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1819_ACEOF
1820
1821
1822# Let the site file select an alternate cache file if it wants to.
1823# Prefer explicitly selected file to automatically selected ones.
mmentovai8c2a4de2006-09-20 16:20:15 +00001824if test -n "$CONFIG_SITE"; then
1825 set x "$CONFIG_SITE"
1826elif test "x$prefix" != xNONE; then
1827 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1828else
1829 set x "$ac_default_prefix/share/config.site" \
1830 "$ac_default_prefix/etc/config.site"
brynercb91a2f2006-08-25 21:14:45 +00001831fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001832shift
1833for ac_site_file
1834do
brynercb91a2f2006-08-25 21:14:45 +00001835 if test -r "$ac_site_file"; then
1836 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1837echo "$as_me: loading site script $ac_site_file" >&6;}
1838 sed 's/^/| /' "$ac_site_file" >&5
1839 . "$ac_site_file"
1840 fi
1841done
1842
1843if test -r "$cache_file"; then
1844 # Some versions of bash will fail to source /dev/null (special
1845 # files actually), so we avoid doing that.
1846 if test -f "$cache_file"; then
1847 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1848echo "$as_me: loading cache $cache_file" >&6;}
1849 case $cache_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00001850 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1851 *) . "./$cache_file";;
brynercb91a2f2006-08-25 21:14:45 +00001852 esac
1853 fi
1854else
1855 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1856echo "$as_me: creating cache $cache_file" >&6;}
1857 >$cache_file
1858fi
1859
1860# Check that the precious variables saved in the cache have kept the same
1861# value.
1862ac_cache_corrupted=false
mmentovai8c2a4de2006-09-20 16:20:15 +00001863for ac_var in $ac_precious_vars; do
brynercb91a2f2006-08-25 21:14:45 +00001864 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1865 eval ac_new_set=\$ac_env_${ac_var}_set
mmentovai8c2a4de2006-09-20 16:20:15 +00001866 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1867 eval ac_new_val=\$ac_env_${ac_var}_value
brynercb91a2f2006-08-25 21:14:45 +00001868 case $ac_old_set,$ac_new_set in
1869 set,)
1870 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1871echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1872 ac_cache_corrupted=: ;;
1873 ,set)
1874 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1875echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1876 ac_cache_corrupted=: ;;
1877 ,);;
1878 *)
1879 if test "x$ac_old_val" != "x$ac_new_val"; then
1880 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1881echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1882 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1883echo "$as_me: former value: $ac_old_val" >&2;}
1884 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1885echo "$as_me: current value: $ac_new_val" >&2;}
1886 ac_cache_corrupted=:
1887 fi;;
1888 esac
1889 # Pass precious variables to config.status.
1890 if test "$ac_new_set" = set; then
1891 case $ac_new_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001892 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00001893 *) ac_arg=$ac_var=$ac_new_val ;;
1894 esac
1895 case " $ac_configure_args " in
1896 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1897 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1898 esac
1899 fi
1900done
1901if $ac_cache_corrupted; then
1902 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1903echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1904 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1905echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1906 { (exit 1); exit 1; }; }
1907fi
1908
mmentovai8c2a4de2006-09-20 16:20:15 +00001909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
brynercb91a2f2006-08-25 21:14:45 +00001933ac_ext=c
1934ac_cpp='$CPP $CPPFLAGS'
1935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1937ac_compiler_gnu=$ac_cv_c_compiler_gnu
1938
1939
1940
brynercb91a2f2006-08-25 21:14:45 +00001941ac_aux_dir=
mmentovai8c2a4de2006-09-20 16:20:15 +00001942for ac_dir in autotools "$srcdir"/autotools; do
1943 if test -f "$ac_dir/install-sh"; then
brynercb91a2f2006-08-25 21:14:45 +00001944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/install-sh -c"
1946 break
mmentovai8c2a4de2006-09-20 16:20:15 +00001947 elif test -f "$ac_dir/install.sh"; then
brynercb91a2f2006-08-25 21:14:45 +00001948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/install.sh -c"
1950 break
mmentovai8c2a4de2006-09-20 16:20:15 +00001951 elif test -f "$ac_dir/shtool"; then
brynercb91a2f2006-08-25 21:14:45 +00001952 ac_aux_dir=$ac_dir
1953 ac_install_sh="$ac_aux_dir/shtool install -c"
1954 break
1955 fi
1956done
1957if test -z "$ac_aux_dir"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00001958 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&5
1959echo "$as_me: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00001960 { (exit 1); exit 1; }; }
1961fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001962
1963# These three variables are undocumented and unsupported,
1964# and are intended to be withdrawn in a future Autoconf release.
1965# They can cause serious problems if a builder's source tree is in a directory
1966# whose full name contains unusual characters.
1967ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1968ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1969ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1970
brynercb91a2f2006-08-25 21:14:45 +00001971
mmentovai425d2562006-08-30 20:05:05 +00001972
mmentovaiaf3c43f2007-05-17 18:34:37 +00001973am__api_version='1.10'
1974
brynercb91a2f2006-08-25 21:14:45 +00001975# Find a good install program. We prefer a C program (faster),
1976# so one script is as good as another. But avoid the broken or
1977# incompatible versions:
1978# SysV /etc/install, /usr/sbin/install
1979# SunOS /usr/etc/install
1980# IRIX /sbin/install
1981# AIX /bin/install
1982# AmigaOS /C/install, which installs bootblocks on floppy discs
1983# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1984# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1985# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1986# OS/2's system install, which has a completely different semantic
1987# ./install, which can be erroneously created by make from ./install.sh.
mmentovai8c2a4de2006-09-20 16:20:15 +00001988{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1989echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00001990if test -z "$INSTALL"; then
1991if test "${ac_cv_path_install+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1993else
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995for as_dir in $PATH
1996do
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 # Account for people who put trailing slashes in PATH elements.
2000case $as_dir/ in
2001 ./ | .// | /cC/* | \
2002 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2003 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2004 /usr/ucb/* ) ;;
2005 *)
2006 # OSF1 and SCO ODT 3.0 have their own names for install.
2007 # Don't use installbsd from OSF since it installs stuff as root
2008 # by default.
2009 for ac_prog in ginstall scoinst install; do
2010 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002011 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002012 if test $ac_prog = install &&
2013 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2014 # AIX install. It has an incompatible calling convention.
2015 :
2016 elif test $ac_prog = install &&
2017 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2018 # program-specific install script used by HP pwplus--don't use.
2019 :
2020 else
2021 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2022 break 3
2023 fi
2024 fi
2025 done
2026 done
2027 ;;
2028esac
2029done
mmentovai8c2a4de2006-09-20 16:20:15 +00002030IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002031
2032
2033fi
2034 if test "${ac_cv_path_install+set}" = set; then
2035 INSTALL=$ac_cv_path_install
2036 else
mmentovai8c2a4de2006-09-20 16:20:15 +00002037 # As a last resort, use the slow shell script. Don't cache a
2038 # value for INSTALL within a source directory, because that will
brynercb91a2f2006-08-25 21:14:45 +00002039 # break other packages using the cache if that directory is
mmentovai8c2a4de2006-09-20 16:20:15 +00002040 # removed, or if the value is a relative name.
brynercb91a2f2006-08-25 21:14:45 +00002041 INSTALL=$ac_install_sh
2042 fi
2043fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002044{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2045echo "${ECHO_T}$INSTALL" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002046
2047# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2048# It thinks the first close brace ends the variable substitution.
2049test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2050
2051test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2052
2053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2054
mmentovai8c2a4de2006-09-20 16:20:15 +00002055{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2056echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002057# Just in case
2058sleep 1
2059echo timestamp > conftest.file
2060# Do `set' in a subshell so we don't clobber the current shell's
2061# arguments. Must try -L first in case configure is actually a
2062# symlink; some systems play weird games with the mod time of symlinks
2063# (eg FreeBSD returns the mod time of the symlink's containing
2064# directory).
2065if (
2066 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2067 if test "$*" = "X"; then
2068 # -L didn't work.
2069 set X `ls -t $srcdir/configure conftest.file`
2070 fi
2071 rm -f conftest.file
2072 if test "$*" != "X $srcdir/configure conftest.file" \
2073 && test "$*" != "X conftest.file $srcdir/configure"; then
2074
2075 # If neither matched, then we have a broken ls. This can happen
2076 # if, for instance, CONFIG_SHELL is bash and it inherits a
2077 # broken ls alias from the environment. This has actually
2078 # happened. Such a system could not be considered "sane".
2079 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2080alias in your environment" >&5
2081echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2082alias in your environment" >&2;}
2083 { (exit 1); exit 1; }; }
2084 fi
2085
2086 test "$2" = conftest.file
2087 )
2088then
2089 # Ok.
2090 :
2091else
2092 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2093Check your system clock" >&5
2094echo "$as_me: error: newly created file is older than distributed files!
2095Check your system clock" >&2;}
2096 { (exit 1); exit 1; }; }
2097fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002098{ echo "$as_me:$LINENO: result: yes" >&5
2099echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002100test "$program_prefix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002101 program_transform_name="s&^&$program_prefix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002102# Use a double $ so make ignores it.
2103test "$program_suffix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002104 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002105# Double any \ or $. echo might interpret backslashes.
2106# By default was `s,x,x', remove it if useless.
2107cat <<\_ACEOF >conftest.sed
2108s/[\\$]/&&/g;s/;s,x,x,$//
2109_ACEOF
2110program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
mmentovai8c2a4de2006-09-20 16:20:15 +00002111rm -f conftest.sed
brynercb91a2f2006-08-25 21:14:45 +00002112
2113# expand $ac_aux_dir to an absolute path
2114am_aux_dir=`cd $ac_aux_dir && pwd`
2115
2116test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2117# Use eval to expand $SHELL
2118if eval "$MISSING --run true"; then
2119 am_missing_run="$MISSING --run "
2120else
2121 am_missing_run=
2122 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2123echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2124fi
2125
mmentovaiaf3c43f2007-05-17 18:34:37 +00002126{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2127echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2128if test -z "$MKDIR_P"; then
2129 if test "${ac_cv_path_mkdir+set}" = set; then
2130 echo $ECHO_N "(cached) $ECHO_C" >&6
brynercb91a2f2006-08-25 21:14:45 +00002131else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2134do
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
2137 for ac_prog in mkdir gmkdir; do
2138 for ac_exec_ext in '' $ac_executable_extensions; do
2139 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2140 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2141 'mkdir (GNU coreutils) '* | \
2142 'mkdir (coreutils) '* | \
2143 'mkdir (fileutils) '4.1*)
2144 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2145 break 3;;
2146 esac
2147 done
2148 done
2149done
2150IFS=$as_save_IFS
2151
2152fi
2153
2154 if test "${ac_cv_path_mkdir+set}" = set; then
2155 MKDIR_P="$ac_cv_path_mkdir -p"
brynercb91a2f2006-08-25 21:14:45 +00002156 else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002157 # As a last resort, use the slow shell script. Don't cache a
2158 # value for MKDIR_P within a source directory, because that will
2159 # break other packages using the cache if that directory is
2160 # removed, or if the value is a relative name.
2161 test -d ./--version && rmdir ./--version
2162 MKDIR_P="$ac_install_sh -d"
brynercb91a2f2006-08-25 21:14:45 +00002163 fi
2164fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00002165{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2166echo "${ECHO_T}$MKDIR_P" >&6; }
2167
2168mkdir_p="$MKDIR_P"
2169case $mkdir_p in
2170 [\\/$]* | ?:[\\/]*) ;;
2171 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2172esac
brynercb91a2f2006-08-25 21:14:45 +00002173
2174for ac_prog in gawk mawk nawk awk
2175do
2176 # Extract the first word of "$ac_prog", so it can be a program name with args.
2177set dummy $ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002178{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002180if test "${ac_cv_prog_AWK+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182else
2183 if test -n "$AWK"; then
2184 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2185else
2186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187for as_dir in $PATH
2188do
2189 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002193 ac_cv_prog_AWK="$ac_prog"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 break 2
2196 fi
2197done
2198done
mmentovai8c2a4de2006-09-20 16:20:15 +00002199IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002200
2201fi
2202fi
2203AWK=$ac_cv_prog_AWK
2204if test -n "$AWK"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002205 { echo "$as_me:$LINENO: result: $AWK" >&5
2206echo "${ECHO_T}$AWK" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002207else
mmentovai8c2a4de2006-09-20 16:20:15 +00002208 { echo "$as_me:$LINENO: result: no" >&5
2209echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002210fi
2211
mmentovai8c2a4de2006-09-20 16:20:15 +00002212
brynercb91a2f2006-08-25 21:14:45 +00002213 test -n "$AWK" && break
2214done
2215
mmentovai8c2a4de2006-09-20 16:20:15 +00002216{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2217echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2218set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2219if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221else
2222 cat >conftest.make <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002223SHELL = /bin/sh
brynercb91a2f2006-08-25 21:14:45 +00002224all:
mmentovai8c2a4de2006-09-20 16:20:15 +00002225 @echo '@@@%%%=$(MAKE)=@@@%%%'
brynercb91a2f2006-08-25 21:14:45 +00002226_ACEOF
2227# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
mmentovai8c2a4de2006-09-20 16:20:15 +00002228case `${MAKE-make} -f conftest.make 2>/dev/null` in
2229 *@@@%%%=?*=@@@%%%*)
2230 eval ac_cv_prog_make_${ac_make}_set=yes;;
2231 *)
2232 eval ac_cv_prog_make_${ac_make}_set=no;;
2233esac
brynercb91a2f2006-08-25 21:14:45 +00002234rm -f conftest.make
2235fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002236if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2237 { echo "$as_me:$LINENO: result: yes" >&5
2238echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002239 SET_MAKE=
2240else
mmentovai8c2a4de2006-09-20 16:20:15 +00002241 { echo "$as_me:$LINENO: result: no" >&5
2242echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002243 SET_MAKE="MAKE=${MAKE-make}"
2244fi
2245
2246rm -rf .tst 2>/dev/null
2247mkdir .tst 2>/dev/null
2248if test -d .tst; then
2249 am__leading_dot=.
2250else
2251 am__leading_dot=_
2252fi
2253rmdir .tst 2>/dev/null
2254
mmentovaiaf3c43f2007-05-17 18:34:37 +00002255if test "`cd $srcdir && pwd`" != "`pwd`"; then
2256 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2257 # is not polluted with repeated "-I."
2258 am__isrc=' -I$(srcdir)'
2259 # test to see if srcdir already configured
2260 if test -f $srcdir/config.status; then
2261 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
brynercb91a2f2006-08-25 21:14:45 +00002262echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2263 { (exit 1); exit 1; }; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002264 fi
brynercb91a2f2006-08-25 21:14:45 +00002265fi
2266
2267# test whether we have cygpath
2268if test -z "$CYGPATH_W"; then
2269 if (cygpath --version) >/dev/null 2>/dev/null; then
2270 CYGPATH_W='cygpath -w'
2271 else
2272 CYGPATH_W=echo
2273 fi
2274fi
2275
2276
2277# Define the identity of the package.
mmentovaie5dc6082007-02-14 19:51:05 +00002278 PACKAGE='breakpad'
brynercb91a2f2006-08-25 21:14:45 +00002279 VERSION='0.1'
2280
2281
2282cat >>confdefs.h <<_ACEOF
2283#define PACKAGE "$PACKAGE"
2284_ACEOF
2285
2286
2287cat >>confdefs.h <<_ACEOF
2288#define VERSION "$VERSION"
2289_ACEOF
2290
2291# Some tools Automake needs.
2292
2293ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2294
2295
2296AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2297
2298
2299AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2300
2301
2302AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2303
2304
2305MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2306
mmentovaiaf3c43f2007-05-17 18:34:37 +00002307install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
brynercb91a2f2006-08-25 21:14:45 +00002308
2309# Installed binaries are usually stripped using `strip' when the user
2310# run `make install-strip'. However `strip' might not be the right
2311# tool to use in cross-compilation environments, therefore Automake
2312# will honor the `STRIP' environment variable to overrule this program.
2313if test "$cross_compiling" != no; then
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2316set dummy ${ac_tool_prefix}strip; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002317{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002319if test "${ac_cv_prog_STRIP+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321else
2322 if test -n "$STRIP"; then
2323 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2324else
2325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326for as_dir in $PATH
2327do
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002332 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 break 2
2335 fi
2336done
2337done
mmentovai8c2a4de2006-09-20 16:20:15 +00002338IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002339
2340fi
2341fi
2342STRIP=$ac_cv_prog_STRIP
2343if test -n "$STRIP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002344 { echo "$as_me:$LINENO: result: $STRIP" >&5
2345echo "${ECHO_T}$STRIP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002346else
mmentovai8c2a4de2006-09-20 16:20:15 +00002347 { echo "$as_me:$LINENO: result: no" >&5
2348echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002349fi
2350
mmentovai8c2a4de2006-09-20 16:20:15 +00002351
brynercb91a2f2006-08-25 21:14:45 +00002352fi
2353if test -z "$ac_cv_prog_STRIP"; then
2354 ac_ct_STRIP=$STRIP
2355 # Extract the first word of "strip", so it can be a program name with args.
2356set dummy strip; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002357{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002359if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2361else
2362 if test -n "$ac_ct_STRIP"; then
2363 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2364else
2365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366for as_dir in $PATH
2367do
2368 IFS=$as_save_IFS
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002372 ac_cv_prog_ac_ct_STRIP="strip"
2373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 break 2
2375 fi
2376done
2377done
mmentovai8c2a4de2006-09-20 16:20:15 +00002378IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002379
brynercb91a2f2006-08-25 21:14:45 +00002380fi
2381fi
2382ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2383if test -n "$ac_ct_STRIP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002384 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2385echo "${ECHO_T}$ac_ct_STRIP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002386else
mmentovai8c2a4de2006-09-20 16:20:15 +00002387 { echo "$as_me:$LINENO: result: no" >&5
2388echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002389fi
2390
mmentovai8c2a4de2006-09-20 16:20:15 +00002391 if test "x$ac_ct_STRIP" = x; then
2392 STRIP=":"
2393 else
2394 case $cross_compiling:$ac_tool_warned in
2395yes:)
2396{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2397whose name does not start with the host triplet. If you think this
2398configuration is useful to you, please write to autoconf@gnu.org." >&5
2399echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2400whose name does not start with the host triplet. If you think this
2401configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2402ac_tool_warned=yes ;;
2403esac
2404 STRIP=$ac_ct_STRIP
2405 fi
brynercb91a2f2006-08-25 21:14:45 +00002406else
2407 STRIP="$ac_cv_prog_STRIP"
2408fi
2409
2410fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00002411INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
brynercb91a2f2006-08-25 21:14:45 +00002412
2413# We need awk for the "check" target. The system "awk" is bad on
2414# some platforms.
2415# Always define AMTAR for backward compatibility.
2416
2417AMTAR=${AMTAR-"${am_missing_run}tar"}
2418
mmentovaidb3342a2006-12-05 22:52:28 +00002419
2420{ echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2421echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
2422# Loop over all known methods to create a tar archive until one works.
2423_am_tools='gnutar plaintar pax cpio none'
2424_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2425# Do not fold the above two line into one, because Tru64 sh and
2426# Solaris sh will not grok spaces in the rhs of `-'.
2427for _am_tool in $_am_tools
2428do
2429 case $_am_tool in
2430 gnutar)
2431 for _am_tar in tar gnutar gtar;
2432 do
2433 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2434 ($_am_tar --version) >&5 2>&5
2435 ac_status=$?
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } && break
2438 done
2439 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2440 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2441 am__untar="$_am_tar -xf -"
2442 ;;
2443 plaintar)
2444 # Must skip GNU tar: if it does not support --format= it doesn't create
2445 # ustar tarball either.
2446 (tar --version) >/dev/null 2>&1 && continue
2447 am__tar='tar chf - "$$tardir"'
2448 am__tar_='tar chf - "$tardir"'
2449 am__untar='tar xf -'
2450 ;;
2451 pax)
2452 am__tar='pax -L -x ustar -w "$$tardir"'
2453 am__tar_='pax -L -x ustar -w "$tardir"'
2454 am__untar='pax -r'
2455 ;;
2456 cpio)
2457 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2458 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2459 am__untar='cpio -i -H ustar -d'
2460 ;;
2461 none)
2462 am__tar=false
2463 am__tar_=false
2464 am__untar=false
2465 ;;
2466 esac
2467
2468 # If the value was cached, stop now. We just wanted to have am__tar
2469 # and am__untar set.
2470 test -n "${am_cv_prog_tar_ustar}" && break
2471
2472 # tar/untar a dummy directory, and stop if the command works
2473 rm -rf conftest.dir
2474 mkdir conftest.dir
2475 echo GrepMe > conftest.dir/file
2476 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2477 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }
2481 rm -rf conftest.dir
2482 if test -s conftest.tar; then
2483 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2484 ($am__untar <conftest.tar) >&5 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }
2488 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2489 fi
2490done
2491rm -rf conftest.dir
2492
2493if test "${am_cv_prog_tar_ustar+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2495else
2496 am_cv_prog_tar_ustar=$_am_tool
2497fi
2498
2499{ echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2500echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002501
2502
2503
2504
2505
mmentovai8c2a4de2006-09-20 16:20:15 +00002506ac_config_headers="$ac_config_headers src/config.h"
brynercb91a2f2006-08-25 21:14:45 +00002507
2508
brynercb91a2f2006-08-25 21:14:45 +00002509ac_ext=c
2510ac_cpp='$CPP $CPPFLAGS'
2511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514if test -n "$ac_tool_prefix"; then
2515 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2516set dummy ${ac_tool_prefix}gcc; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002517{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002519if test "${ac_cv_prog_CC+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2521else
2522 if test -n "$CC"; then
2523 ac_cv_prog_CC="$CC" # Let the user override the test.
2524else
2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH
2527do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002532 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 break 2
2535 fi
2536done
2537done
mmentovai8c2a4de2006-09-20 16:20:15 +00002538IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002539
2540fi
2541fi
2542CC=$ac_cv_prog_CC
2543if test -n "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002544 { echo "$as_me:$LINENO: result: $CC" >&5
2545echo "${ECHO_T}$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002546else
mmentovai8c2a4de2006-09-20 16:20:15 +00002547 { echo "$as_me:$LINENO: result: no" >&5
2548echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002549fi
2550
mmentovai8c2a4de2006-09-20 16:20:15 +00002551
brynercb91a2f2006-08-25 21:14:45 +00002552fi
2553if test -z "$ac_cv_prog_CC"; then
2554 ac_ct_CC=$CC
2555 # Extract the first word of "gcc", so it can be a program name with args.
2556set dummy gcc; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002557{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002559if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2561else
2562 if test -n "$ac_ct_CC"; then
2563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2564else
2565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566for as_dir in $PATH
2567do
2568 IFS=$as_save_IFS
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002572 ac_cv_prog_ac_ct_CC="gcc"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 break 2
2575 fi
2576done
2577done
mmentovai8c2a4de2006-09-20 16:20:15 +00002578IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002579
2580fi
2581fi
2582ac_ct_CC=$ac_cv_prog_ac_ct_CC
2583if test -n "$ac_ct_CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002584 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2585echo "${ECHO_T}$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002586else
mmentovai8c2a4de2006-09-20 16:20:15 +00002587 { echo "$as_me:$LINENO: result: no" >&5
2588echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002589fi
2590
mmentovai8c2a4de2006-09-20 16:20:15 +00002591 if test "x$ac_ct_CC" = x; then
2592 CC=""
2593 else
2594 case $cross_compiling:$ac_tool_warned in
2595yes:)
2596{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2597whose name does not start with the host triplet. If you think this
2598configuration is useful to you, please write to autoconf@gnu.org." >&5
2599echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2600whose name does not start with the host triplet. If you think this
2601configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2602ac_tool_warned=yes ;;
2603esac
2604 CC=$ac_ct_CC
2605 fi
brynercb91a2f2006-08-25 21:14:45 +00002606else
2607 CC="$ac_cv_prog_CC"
2608fi
2609
2610if test -z "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002611 if test -n "$ac_tool_prefix"; then
2612 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
brynercb91a2f2006-08-25 21:14:45 +00002613set dummy ${ac_tool_prefix}cc; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002616if test "${ac_cv_prog_CC+set}" = set; then
2617 echo $ECHO_N "(cached) $ECHO_C" >&6
2618else
2619 if test -n "$CC"; then
2620 ac_cv_prog_CC="$CC" # Let the user override the test.
2621else
2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623for as_dir in $PATH
2624do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002629 ac_cv_prog_CC="${ac_tool_prefix}cc"
2630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 break 2
2632 fi
2633done
2634done
mmentovai8c2a4de2006-09-20 16:20:15 +00002635IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002636
2637fi
2638fi
2639CC=$ac_cv_prog_CC
2640if test -n "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002641 { echo "$as_me:$LINENO: result: $CC" >&5
2642echo "${ECHO_T}$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002643else
mmentovai8c2a4de2006-09-20 16:20:15 +00002644 { echo "$as_me:$LINENO: result: no" >&5
2645echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002646fi
2647
mmentovai8c2a4de2006-09-20 16:20:15 +00002648
brynercb91a2f2006-08-25 21:14:45 +00002649 fi
brynercb91a2f2006-08-25 21:14:45 +00002650fi
2651if test -z "$CC"; then
2652 # Extract the first word of "cc", so it can be a program name with args.
2653set dummy cc; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002654{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002656if test "${ac_cv_prog_CC+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2658else
2659 if test -n "$CC"; then
2660 ac_cv_prog_CC="$CC" # Let the user override the test.
2661else
2662 ac_prog_rejected=no
2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664for as_dir in $PATH
2665do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002670 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2671 ac_prog_rejected=yes
2672 continue
2673 fi
2674 ac_cv_prog_CC="cc"
2675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 break 2
2677 fi
2678done
2679done
mmentovai8c2a4de2006-09-20 16:20:15 +00002680IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002681
2682if test $ac_prog_rejected = yes; then
2683 # We found a bogon in the path, so make sure we never use it.
2684 set dummy $ac_cv_prog_CC
2685 shift
2686 if test $# != 0; then
2687 # We chose a different compiler from the bogus one.
2688 # However, it has the same basename, so the bogon will be chosen
2689 # first if we set CC to just the basename; use the full file name.
2690 shift
2691 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2692 fi
2693fi
2694fi
2695fi
2696CC=$ac_cv_prog_CC
2697if test -n "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002698 { echo "$as_me:$LINENO: result: $CC" >&5
2699echo "${ECHO_T}$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002700else
mmentovai8c2a4de2006-09-20 16:20:15 +00002701 { echo "$as_me:$LINENO: result: no" >&5
2702echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002703fi
2704
mmentovai8c2a4de2006-09-20 16:20:15 +00002705
brynercb91a2f2006-08-25 21:14:45 +00002706fi
2707if test -z "$CC"; then
2708 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002709 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00002710 do
2711 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2712set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002713{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002715if test "${ac_cv_prog_CC+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717else
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC="$CC" # Let the user override the test.
2720else
2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH
2723do
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002728 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2731 fi
2732done
2733done
mmentovai8c2a4de2006-09-20 16:20:15 +00002734IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002735
2736fi
2737fi
2738CC=$ac_cv_prog_CC
2739if test -n "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002740 { echo "$as_me:$LINENO: result: $CC" >&5
2741echo "${ECHO_T}$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002742else
mmentovai8c2a4de2006-09-20 16:20:15 +00002743 { echo "$as_me:$LINENO: result: no" >&5
2744echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002745fi
2746
mmentovai8c2a4de2006-09-20 16:20:15 +00002747
brynercb91a2f2006-08-25 21:14:45 +00002748 test -n "$CC" && break
2749 done
2750fi
2751if test -z "$CC"; then
2752 ac_ct_CC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00002753 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00002754do
2755 # Extract the first word of "$ac_prog", so it can be a program name with args.
2756set dummy $ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002757{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002759if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2761else
2762 if test -n "$ac_ct_CC"; then
2763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2764else
2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766for as_dir in $PATH
2767do
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002772 ac_cv_prog_ac_ct_CC="$ac_prog"
2773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 break 2
2775 fi
2776done
2777done
mmentovai8c2a4de2006-09-20 16:20:15 +00002778IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002779
2780fi
2781fi
2782ac_ct_CC=$ac_cv_prog_ac_ct_CC
2783if test -n "$ac_ct_CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002784 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2785echo "${ECHO_T}$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002786else
mmentovai8c2a4de2006-09-20 16:20:15 +00002787 { echo "$as_me:$LINENO: result: no" >&5
2788echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002789fi
2790
mmentovai8c2a4de2006-09-20 16:20:15 +00002791
brynercb91a2f2006-08-25 21:14:45 +00002792 test -n "$ac_ct_CC" && break
2793done
2794
mmentovai8c2a4de2006-09-20 16:20:15 +00002795 if test "x$ac_ct_CC" = x; then
2796 CC=""
2797 else
2798 case $cross_compiling:$ac_tool_warned in
2799yes:)
2800{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2801whose name does not start with the host triplet. If you think this
2802configuration is useful to you, please write to autoconf@gnu.org." >&5
2803echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2804whose name does not start with the host triplet. If you think this
2805configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2806ac_tool_warned=yes ;;
2807esac
2808 CC=$ac_ct_CC
2809 fi
brynercb91a2f2006-08-25 21:14:45 +00002810fi
2811
2812fi
2813
2814
2815test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2816See \`config.log' for more details." >&5
2817echo "$as_me: error: no acceptable C compiler found in \$PATH
2818See \`config.log' for more details." >&2;}
2819 { (exit 1); exit 1; }; }
2820
2821# Provide some information about the compiler.
mmentovai8c2a4de2006-09-20 16:20:15 +00002822echo "$as_me:$LINENO: checking for C compiler version" >&5
brynercb91a2f2006-08-25 21:14:45 +00002823ac_compiler=`set X $ac_compile; echo $2`
mmentovai8c2a4de2006-09-20 16:20:15 +00002824{ (ac_try="$ac_compiler --version >&5"
2825case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2828esac
2829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_compiler --version >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }
mmentovai8c2a4de2006-09-20 16:20:15 +00002834{ (ac_try="$ac_compiler -v >&5"
2835case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838esac
2839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840 (eval "$ac_compiler -v >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }
mmentovai8c2a4de2006-09-20 16:20:15 +00002844{ (ac_try="$ac_compiler -V >&5"
2845case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848esac
2849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_compiler -V >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002851 ac_status=$?
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }
2854
2855cat >conftest.$ac_ext <<_ACEOF
2856/* confdefs.h. */
2857_ACEOF
2858cat confdefs.h >>conftest.$ac_ext
2859cat >>conftest.$ac_ext <<_ACEOF
2860/* end confdefs.h. */
2861
2862int
2863main ()
2864{
2865
2866 ;
2867 return 0;
2868}
2869_ACEOF
2870ac_clean_files_save=$ac_clean_files
2871ac_clean_files="$ac_clean_files a.out a.exe b.out"
2872# Try to create an executable without -o first, disregard a.out.
2873# It will help us diagnose broken compilers, and finding out an intuition
2874# of exeext.
mmentovai8c2a4de2006-09-20 16:20:15 +00002875{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2876echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002877ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
mmentovai8c2a4de2006-09-20 16:20:15 +00002878#
2879# List of possible output files, starting from the most likely.
2880# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2881# only as a last resort. b.out is created by i960 compilers.
2882ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2883#
2884# The IRIX 6 linker writes into existing files which may not be
2885# executable, retaining their permissions. Remove them first so a
2886# subsequent execution test works.
2887ac_rmfiles=
2888for ac_file in $ac_files
2889do
2890 case $ac_file in
2891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2892 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2893 esac
2894done
2895rm -f $ac_rmfiles
2896
2897if { (ac_try="$ac_link_default"
2898case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901esac
2902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903 (eval "$ac_link_default") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002907 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2908# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2909# in a Makefile. We should not override ac_cv_exeext if it was cached,
2910# so that the user can short-circuit this test for compilers unknown to
2911# Autoconf.
mmentovaiaf3c43f2007-05-17 18:34:37 +00002912for ac_file in $ac_files ''
brynercb91a2f2006-08-25 21:14:45 +00002913do
2914 test -f "$ac_file" || continue
2915 case $ac_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
brynercb91a2f2006-08-25 21:14:45 +00002917 ;;
2918 [ab].out )
2919 # We found the default executable, but exeext='' is most
2920 # certainly right.
2921 break;;
2922 *.* )
mmentovai8c2a4de2006-09-20 16:20:15 +00002923 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2924 then :; else
2925 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2926 fi
2927 # We set ac_cv_exeext here because the later test for it is not
2928 # safe: cross compilers may not add the suffix if given an `-o'
2929 # argument, so we may need to know it at that point already.
2930 # Even if this section looks crufty: it has the advantage of
2931 # actually working.
brynercb91a2f2006-08-25 21:14:45 +00002932 break;;
2933 * )
2934 break;;
2935 esac
2936done
mmentovai8c2a4de2006-09-20 16:20:15 +00002937test "$ac_cv_exeext" = no && ac_cv_exeext=
2938
brynercb91a2f2006-08-25 21:14:45 +00002939else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002940 ac_file=''
2941fi
2942
2943{ echo "$as_me:$LINENO: result: $ac_file" >&5
2944echo "${ECHO_T}$ac_file" >&6; }
2945if test -z "$ac_file"; then
brynercb91a2f2006-08-25 21:14:45 +00002946 echo "$as_me: failed program was:" >&5
2947sed 's/^/| /' conftest.$ac_ext >&5
2948
2949{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2950See \`config.log' for more details." >&5
2951echo "$as_me: error: C compiler cannot create executables
2952See \`config.log' for more details." >&2;}
2953 { (exit 77); exit 77; }; }
2954fi
2955
2956ac_exeext=$ac_cv_exeext
brynercb91a2f2006-08-25 21:14:45 +00002957
mmentovai8c2a4de2006-09-20 16:20:15 +00002958# Check that the compiler produces executables we can run. If not, either
brynercb91a2f2006-08-25 21:14:45 +00002959# the compiler is broken, or we cross compile.
mmentovai8c2a4de2006-09-20 16:20:15 +00002960{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2961echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002962# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2963# If not cross compiling, check that we can run a simple program.
2964if test "$cross_compiling" != yes; then
2965 if { ac_try='./$ac_file'
mmentovai8c2a4de2006-09-20 16:20:15 +00002966 { (case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969esac
2970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; }; then
2975 cross_compiling=no
2976 else
2977 if test "$cross_compiling" = maybe; then
2978 cross_compiling=yes
2979 else
2980 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2981If you meant to cross compile, use \`--host'.
2982See \`config.log' for more details." >&5
2983echo "$as_me: error: cannot run C compiled programs.
2984If you meant to cross compile, use \`--host'.
2985See \`config.log' for more details." >&2;}
2986 { (exit 1); exit 1; }; }
2987 fi
2988 fi
2989fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002990{ echo "$as_me:$LINENO: result: yes" >&5
2991echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002992
2993rm -f a.out a.exe conftest$ac_cv_exeext b.out
2994ac_clean_files=$ac_clean_files_save
mmentovai8c2a4de2006-09-20 16:20:15 +00002995# Check that the compiler produces executables we can run. If not, either
brynercb91a2f2006-08-25 21:14:45 +00002996# the compiler is broken, or we cross compile.
mmentovai8c2a4de2006-09-20 16:20:15 +00002997{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2998echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2999{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3000echo "${ECHO_T}$cross_compiling" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003001
mmentovai8c2a4de2006-09-20 16:20:15 +00003002{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3003echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3004if { (ac_try="$ac_link"
3005case "(($ac_try" in
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3008esac
3009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }; then
3014 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3015# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3016# work properly (i.e., refer to `conftest.exe'), while it won't with
3017# `rm'.
3018for ac_file in conftest.exe conftest conftest.*; do
3019 test -f "$ac_file" || continue
3020 case $ac_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00003021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003022 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
brynercb91a2f2006-08-25 21:14:45 +00003023 break;;
3024 * ) break;;
3025 esac
3026done
3027else
3028 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3029See \`config.log' for more details." >&5
3030echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3031See \`config.log' for more details." >&2;}
3032 { (exit 1); exit 1; }; }
3033fi
3034
3035rm -f conftest$ac_cv_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00003036{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3037echo "${ECHO_T}$ac_cv_exeext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003038
3039rm -f conftest.$ac_ext
3040EXEEXT=$ac_cv_exeext
3041ac_exeext=$EXEEXT
mmentovai8c2a4de2006-09-20 16:20:15 +00003042{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3043echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003044if test "${ac_cv_objext+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3046else
3047 cat >conftest.$ac_ext <<_ACEOF
3048/* confdefs.h. */
3049_ACEOF
3050cat confdefs.h >>conftest.$ac_ext
3051cat >>conftest.$ac_ext <<_ACEOF
3052/* end confdefs.h. */
3053
3054int
3055main ()
3056{
3057
3058 ;
3059 return 0;
3060}
3061_ACEOF
3062rm -f conftest.o conftest.obj
mmentovai8c2a4de2006-09-20 16:20:15 +00003063if { (ac_try="$ac_compile"
3064case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067esac
3068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_compile") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003070 ac_status=$?
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003073 for ac_file in conftest.o conftest.obj conftest.*; do
3074 test -f "$ac_file" || continue;
brynercb91a2f2006-08-25 21:14:45 +00003075 case $ac_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00003076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003077 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3078 break;;
3079 esac
3080done
3081else
3082 echo "$as_me: failed program was:" >&5
3083sed 's/^/| /' conftest.$ac_ext >&5
3084
3085{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3086See \`config.log' for more details." >&5
3087echo "$as_me: error: cannot compute suffix of object files: cannot compile
3088See \`config.log' for more details." >&2;}
3089 { (exit 1); exit 1; }; }
3090fi
3091
3092rm -f conftest.$ac_cv_objext conftest.$ac_ext
3093fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003094{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3095echo "${ECHO_T}$ac_cv_objext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003096OBJEXT=$ac_cv_objext
3097ac_objext=$OBJEXT
mmentovai8c2a4de2006-09-20 16:20:15 +00003098{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3099echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003100if test "${ac_cv_c_compiler_gnu+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3102else
3103 cat >conftest.$ac_ext <<_ACEOF
3104/* confdefs.h. */
3105_ACEOF
3106cat confdefs.h >>conftest.$ac_ext
3107cat >>conftest.$ac_ext <<_ACEOF
3108/* end confdefs.h. */
3109
3110int
3111main ()
3112{
3113#ifndef __GNUC__
3114 choke me
3115#endif
3116
3117 ;
3118 return 0;
3119}
3120_ACEOF
3121rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00003122if { (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
brynercb91a2f2006-08-25 21:14:45 +00003129 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
mmentovaiaf3c43f2007-05-17 18:34:37 +00003134 (exit $ac_status); } && {
3135 test -z "$ac_c_werror_flag" ||
3136 test ! -s conftest.err
3137 } && test -s conftest.$ac_objext; then
brynercb91a2f2006-08-25 21:14:45 +00003138 ac_compiler_gnu=yes
3139else
3140 echo "$as_me: failed program was:" >&5
3141sed 's/^/| /' conftest.$ac_ext >&5
3142
mmentovai8c2a4de2006-09-20 16:20:15 +00003143 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00003144fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003145
3146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003147ac_cv_c_compiler_gnu=$ac_compiler_gnu
3148
3149fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003150{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3151echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003152GCC=`test $ac_compiler_gnu = yes && echo yes`
3153ac_test_CFLAGS=${CFLAGS+set}
3154ac_save_CFLAGS=$CFLAGS
mmentovai8c2a4de2006-09-20 16:20:15 +00003155{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3156echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003157if test "${ac_cv_prog_cc_g+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159else
mmentovai8c2a4de2006-09-20 16:20:15 +00003160 ac_save_c_werror_flag=$ac_c_werror_flag
3161 ac_c_werror_flag=yes
3162 ac_cv_prog_cc_g=no
3163 CFLAGS="-g"
3164 cat >conftest.$ac_ext <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00003165/* confdefs.h. */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
3169/* end confdefs.h. */
3170
3171int
3172main ()
3173{
3174
3175 ;
3176 return 0;
3177}
3178_ACEOF
3179rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00003180if { (ac_try="$ac_compile"
3181case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184esac
3185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003187 ac_status=$?
3188 grep -v '^ *+' conftest.er1 >conftest.err
3189 rm -f conftest.er1
3190 cat conftest.err >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00003192 (exit $ac_status); } && {
3193 test -z "$ac_c_werror_flag" ||
3194 test ! -s conftest.err
3195 } && test -s conftest.$ac_objext; then
brynercb91a2f2006-08-25 21:14:45 +00003196 ac_cv_prog_cc_g=yes
3197else
3198 echo "$as_me: failed program was:" >&5
3199sed 's/^/| /' conftest.$ac_ext >&5
3200
mmentovai8c2a4de2006-09-20 16:20:15 +00003201 CFLAGS=""
3202 cat >conftest.$ac_ext <<_ACEOF
3203/* confdefs.h. */
3204_ACEOF
3205cat confdefs.h >>conftest.$ac_ext
3206cat >>conftest.$ac_ext <<_ACEOF
3207/* end confdefs.h. */
3208
3209int
3210main ()
3211{
3212
3213 ;
3214 return 0;
3215}
3216_ACEOF
3217rm -f conftest.$ac_objext
3218if { (ac_try="$ac_compile"
3219case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222esac
3223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224 (eval "$ac_compile") 2>conftest.er1
3225 ac_status=$?
3226 grep -v '^ *+' conftest.er1 >conftest.err
3227 rm -f conftest.er1
3228 cat conftest.err >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00003230 (exit $ac_status); } && {
3231 test -z "$ac_c_werror_flag" ||
3232 test ! -s conftest.err
3233 } && test -s conftest.$ac_objext; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003234 :
3235else
3236 echo "$as_me: failed program was:" >&5
3237sed 's/^/| /' conftest.$ac_ext >&5
3238
3239 ac_c_werror_flag=$ac_save_c_werror_flag
3240 CFLAGS="-g"
3241 cat >conftest.$ac_ext <<_ACEOF
3242/* confdefs.h. */
3243_ACEOF
3244cat confdefs.h >>conftest.$ac_ext
3245cat >>conftest.$ac_ext <<_ACEOF
3246/* end confdefs.h. */
3247
3248int
3249main ()
3250{
3251
3252 ;
3253 return 0;
3254}
3255_ACEOF
3256rm -f conftest.$ac_objext
3257if { (ac_try="$ac_compile"
3258case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261esac
3262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263 (eval "$ac_compile") 2>conftest.er1
3264 ac_status=$?
3265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00003269 (exit $ac_status); } && {
3270 test -z "$ac_c_werror_flag" ||
3271 test ! -s conftest.err
3272 } && test -s conftest.$ac_objext; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003273 ac_cv_prog_cc_g=yes
3274else
3275 echo "$as_me: failed program was:" >&5
3276sed 's/^/| /' conftest.$ac_ext >&5
3277
3278
brynercb91a2f2006-08-25 21:14:45 +00003279fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003280
3281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003282fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003283
3284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285fi
3286
3287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288 ac_c_werror_flag=$ac_save_c_werror_flag
3289fi
3290{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3291echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003292if test "$ac_test_CFLAGS" = set; then
3293 CFLAGS=$ac_save_CFLAGS
3294elif test $ac_cv_prog_cc_g = yes; then
3295 if test "$GCC" = yes; then
3296 CFLAGS="-g -O2"
3297 else
3298 CFLAGS="-g"
3299 fi
3300else
3301 if test "$GCC" = yes; then
3302 CFLAGS="-O2"
3303 else
3304 CFLAGS=
3305 fi
3306fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003307{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3308echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3309if test "${ac_cv_prog_cc_c89+set}" = set; then
brynercb91a2f2006-08-25 21:14:45 +00003310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311else
mmentovai8c2a4de2006-09-20 16:20:15 +00003312 ac_cv_prog_cc_c89=no
brynercb91a2f2006-08-25 21:14:45 +00003313ac_save_CC=$CC
3314cat >conftest.$ac_ext <<_ACEOF
3315/* confdefs.h. */
3316_ACEOF
3317cat confdefs.h >>conftest.$ac_ext
3318cat >>conftest.$ac_ext <<_ACEOF
3319/* end confdefs.h. */
3320#include <stdarg.h>
3321#include <stdio.h>
3322#include <sys/types.h>
3323#include <sys/stat.h>
3324/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3325struct buf { int x; };
3326FILE * (*rcsopen) (struct buf *, struct stat *, int);
3327static char *e (p, i)
3328 char **p;
3329 int i;
3330{
3331 return p[i];
3332}
3333static char *f (char * (*g) (char **, int), char **p, ...)
3334{
3335 char *s;
3336 va_list v;
3337 va_start (v,p);
3338 s = g (p, va_arg (v,int));
3339 va_end (v);
3340 return s;
3341}
3342
3343/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3344 function prototypes and stuff, but not '\xHH' hex character constants.
3345 These don't provoke an error unfortunately, instead are silently treated
mmentovai8c2a4de2006-09-20 16:20:15 +00003346 as 'x'. The following induces an error, until -std is added to get
brynercb91a2f2006-08-25 21:14:45 +00003347 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3348 array size at least. It's necessary to write '\x00'==0 to get something
mmentovai8c2a4de2006-09-20 16:20:15 +00003349 that's true only with -std. */
brynercb91a2f2006-08-25 21:14:45 +00003350int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3351
mmentovai8c2a4de2006-09-20 16:20:15 +00003352/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3353 inside strings and character constants. */
3354#define FOO(x) 'x'
3355int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3356
brynercb91a2f2006-08-25 21:14:45 +00003357int test (int i, double x);
3358struct s1 {int (*f) (int a);};
3359struct s2 {int (*f) (double a);};
3360int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3361int argc;
3362char **argv;
3363int
3364main ()
3365{
3366return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3367 ;
3368 return 0;
3369}
3370_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003371for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3372 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
brynercb91a2f2006-08-25 21:14:45 +00003373do
3374 CC="$ac_save_CC $ac_arg"
3375 rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00003376if { (ac_try="$ac_compile"
3377case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380esac
3381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003383 ac_status=$?
3384 grep -v '^ *+' conftest.er1 >conftest.err
3385 rm -f conftest.er1
3386 cat conftest.err >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00003388 (exit $ac_status); } && {
3389 test -z "$ac_c_werror_flag" ||
3390 test ! -s conftest.err
3391 } && test -s conftest.$ac_objext; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003392 ac_cv_prog_cc_c89=$ac_arg
brynercb91a2f2006-08-25 21:14:45 +00003393else
3394 echo "$as_me: failed program was:" >&5
3395sed 's/^/| /' conftest.$ac_ext >&5
3396
mmentovai8c2a4de2006-09-20 16:20:15 +00003397
brynercb91a2f2006-08-25 21:14:45 +00003398fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003399
3400rm -f core conftest.err conftest.$ac_objext
3401 test "x$ac_cv_prog_cc_c89" != "xno" && break
brynercb91a2f2006-08-25 21:14:45 +00003402done
mmentovai8c2a4de2006-09-20 16:20:15 +00003403rm -f conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003404CC=$ac_save_CC
3405
3406fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003407# AC_CACHE_VAL
3408case "x$ac_cv_prog_cc_c89" in
3409 x)
3410 { echo "$as_me:$LINENO: result: none needed" >&5
3411echo "${ECHO_T}none needed" >&6; } ;;
3412 xno)
3413 { echo "$as_me:$LINENO: result: unsupported" >&5
3414echo "${ECHO_T}unsupported" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003415 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00003416 CC="$CC $ac_cv_prog_cc_c89"
3417 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3418echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003419esac
3420
brynercb91a2f2006-08-25 21:14:45 +00003421
brynercb91a2f2006-08-25 21:14:45 +00003422ac_ext=c
3423ac_cpp='$CPP $CPPFLAGS'
3424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426ac_compiler_gnu=$ac_cv_c_compiler_gnu
3427DEPDIR="${am__leading_dot}deps"
3428
mmentovai8c2a4de2006-09-20 16:20:15 +00003429ac_config_commands="$ac_config_commands depfiles"
brynercb91a2f2006-08-25 21:14:45 +00003430
3431
3432am_make=${MAKE-make}
3433cat > confinc << 'END'
3434am__doit:
3435 @echo done
3436.PHONY: am__doit
3437END
3438# If we don't find an include directive, just comment out the code.
mmentovai8c2a4de2006-09-20 16:20:15 +00003439{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3440echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003441am__include="#"
3442am__quote=
3443_am_result=none
3444# First try GNU make style include.
3445echo "include confinc" > confmf
3446# We grep out `Entering directory' and `Leaving directory'
3447# messages which can occur if `w' ends up in MAKEFLAGS.
3448# In particular we don't look at `^make:' because GNU make might
3449# be invoked under some other name (usually "gmake"), in which
3450# case it prints its new name instead of `make'.
3451if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3452 am__include=include
3453 am__quote=
3454 _am_result=GNU
3455fi
3456# Now try BSD make style include.
3457if test "$am__include" = "#"; then
3458 echo '.include "confinc"' > confmf
3459 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3460 am__include=.include
3461 am__quote="\""
3462 _am_result=BSD
3463 fi
3464fi
3465
3466
mmentovai8c2a4de2006-09-20 16:20:15 +00003467{ echo "$as_me:$LINENO: result: $_am_result" >&5
3468echo "${ECHO_T}$_am_result" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003469rm -f confinc confmf
3470
mmentovai8c2a4de2006-09-20 16:20:15 +00003471# Check whether --enable-dependency-tracking was given.
brynercb91a2f2006-08-25 21:14:45 +00003472if test "${enable_dependency_tracking+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003473 enableval=$enable_dependency_tracking;
3474fi
brynercb91a2f2006-08-25 21:14:45 +00003475
brynercb91a2f2006-08-25 21:14:45 +00003476if test "x$enable_dependency_tracking" != xno; then
3477 am_depcomp="$ac_aux_dir/depcomp"
3478 AMDEPBACKSLASH='\'
3479fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00003480 if test "x$enable_dependency_tracking" != xno; then
brynercb91a2f2006-08-25 21:14:45 +00003481 AMDEP_TRUE=
3482 AMDEP_FALSE='#'
3483else
3484 AMDEP_TRUE='#'
3485 AMDEP_FALSE=
3486fi
3487
3488
3489
brynercb91a2f2006-08-25 21:14:45 +00003490depcc="$CC" am_compiler_list=
3491
mmentovai8c2a4de2006-09-20 16:20:15 +00003492{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3493echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003494if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3496else
3497 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3498 # We make a subdir and do the tests there. Otherwise we can end up
3499 # making bogus files that we don't know about and never remove. For
3500 # instance it was reported that on HP-UX the gcc test will end up
3501 # making a dummy file named `D' -- because `-MD' means `put the output
3502 # in D'.
3503 mkdir conftest.dir
3504 # Copy depcomp to subdir because otherwise we won't find it if we're
3505 # using a relative directory.
3506 cp "$am_depcomp" conftest.dir
3507 cd conftest.dir
3508 # We will build objects and dependencies in a subdirectory because
3509 # it helps to detect inapplicable dependency modes. For instance
3510 # both Tru64's cc and ICC support -MD to output dependencies as a
3511 # side effect of compilation, but ICC will put the dependencies in
3512 # the current directory while Tru64 will put them in the object
3513 # directory.
3514 mkdir sub
3515
3516 am_cv_CC_dependencies_compiler_type=none
3517 if test "$am_compiler_list" = ""; then
3518 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3519 fi
3520 for depmode in $am_compiler_list; do
3521 # Setup a source with many dependencies, because some compilers
3522 # like to wrap large dependency lists on column 80 (with \), and
3523 # we should not choose a depcomp mode which is confused by this.
3524 #
3525 # We need to recreate these files for each test, as the compiler may
3526 # overwrite some of them when testing with obscure command lines.
3527 # This happens at least with the AIX C compiler.
3528 : > sub/conftest.c
3529 for i in 1 2 3 4 5 6; do
3530 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3531 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3532 # Solaris 8's {/usr,}/bin/sh.
3533 touch sub/conftst$i.h
3534 done
3535 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3536
3537 case $depmode in
3538 nosideeffect)
3539 # after this tag, mechanisms are not by side-effect, so they'll
3540 # only be used when explicitly requested
3541 if test "x$enable_dependency_tracking" = xyes; then
3542 continue
3543 else
3544 break
3545 fi
3546 ;;
3547 none) break ;;
3548 esac
3549 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3550 # mode. It turns out that the SunPro C++ compiler does not properly
3551 # handle `-M -o', and we need to detect this.
3552 if depmode=$depmode \
3553 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3554 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3555 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3556 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00003557 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00003558 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3559 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3560 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3561 # icc doesn't choke on unknown options, it will just issue warnings
3562 # or remarks (even with -Werror). So we grep stderr for any message
3563 # that says an option was ignored or not supported.
3564 # When given -MP, icc 7.0 and 7.1 complain thusly:
3565 # icc: Command line warning: ignoring option '-M'; no argument required
3566 # The diagnosis changed in icc 8.0:
3567 # icc: Command line remark: option '-MP' not supported
3568 if (grep 'ignoring option' conftest.err ||
3569 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3570 am_cv_CC_dependencies_compiler_type=$depmode
3571 break
3572 fi
3573 fi
3574 done
3575
3576 cd ..
3577 rm -rf conftest.dir
3578else
3579 am_cv_CC_dependencies_compiler_type=none
3580fi
3581
3582fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003583{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3584echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003585CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3586
mmentovaiaf3c43f2007-05-17 18:34:37 +00003587 if
brynercb91a2f2006-08-25 21:14:45 +00003588 test "x$enable_dependency_tracking" != xno \
3589 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3590 am__fastdepCC_TRUE=
3591 am__fastdepCC_FALSE='#'
3592else
3593 am__fastdepCC_TRUE='#'
3594 am__fastdepCC_FALSE=
3595fi
3596
3597
3598ac_ext=c
3599ac_cpp='$CPP $CPPFLAGS'
3600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3602ac_compiler_gnu=$ac_cv_c_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00003603{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3604echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003605# On Suns, sometimes $CPP names a directory.
3606if test -n "$CPP" && test -d "$CPP"; then
3607 CPP=
3608fi
3609if test -z "$CPP"; then
3610 if test "${ac_cv_prog_CPP+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3612else
3613 # Double quotes because CPP needs to be expanded
3614 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3615 do
3616 ac_preproc_ok=false
3617for ac_c_preproc_warn_flag in '' yes
3618do
3619 # Use a header file that comes with gcc, so configuring glibc
3620 # with a fresh cross-compiler works.
3621 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3622 # <limits.h> exists even on freestanding compilers.
3623 # On the NeXT, cc -E runs the code through the compiler's parser,
3624 # not just through cpp. "Syntax error" is here to catch this case.
3625 cat >conftest.$ac_ext <<_ACEOF
3626/* confdefs.h. */
3627_ACEOF
3628cat confdefs.h >>conftest.$ac_ext
3629cat >>conftest.$ac_ext <<_ACEOF
3630/* end confdefs.h. */
3631#ifdef __STDC__
3632# include <limits.h>
3633#else
3634# include <assert.h>
3635#endif
3636 Syntax error
3637_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003638if { (ac_try="$ac_cpp conftest.$ac_ext"
3639case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642esac
3643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003645 ac_status=$?
3646 grep -v '^ *+' conftest.er1 >conftest.err
3647 rm -f conftest.er1
3648 cat conftest.err >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00003650 (exit $ac_status); } >/dev/null && {
3651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3652 test ! -s conftest.err
3653 }; then
brynercb91a2f2006-08-25 21:14:45 +00003654 :
3655else
3656 echo "$as_me: failed program was:" >&5
3657sed 's/^/| /' conftest.$ac_ext >&5
3658
3659 # Broken: fails on valid input.
3660continue
3661fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003662
brynercb91a2f2006-08-25 21:14:45 +00003663rm -f conftest.err conftest.$ac_ext
3664
mmentovai8c2a4de2006-09-20 16:20:15 +00003665 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00003666 # can be detected and how.
3667 cat >conftest.$ac_ext <<_ACEOF
3668/* confdefs.h. */
3669_ACEOF
3670cat confdefs.h >>conftest.$ac_ext
3671cat >>conftest.$ac_ext <<_ACEOF
3672/* end confdefs.h. */
3673#include <ac_nonexistent.h>
3674_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003675if { (ac_try="$ac_cpp conftest.$ac_ext"
3676case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679esac
3680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00003687 (exit $ac_status); } >/dev/null && {
3688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 }; then
brynercb91a2f2006-08-25 21:14:45 +00003691 # Broken: success on invalid input.
3692continue
3693else
3694 echo "$as_me: failed program was:" >&5
3695sed 's/^/| /' conftest.$ac_ext >&5
3696
3697 # Passes both tests.
3698ac_preproc_ok=:
3699break
3700fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003701
brynercb91a2f2006-08-25 21:14:45 +00003702rm -f conftest.err conftest.$ac_ext
3703
3704done
3705# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3706rm -f conftest.err conftest.$ac_ext
3707if $ac_preproc_ok; then
3708 break
3709fi
3710
3711 done
3712 ac_cv_prog_CPP=$CPP
3713
3714fi
3715 CPP=$ac_cv_prog_CPP
3716else
3717 ac_cv_prog_CPP=$CPP
3718fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003719{ echo "$as_me:$LINENO: result: $CPP" >&5
3720echo "${ECHO_T}$CPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003721ac_preproc_ok=false
3722for ac_c_preproc_warn_flag in '' yes
3723do
3724 # Use a header file that comes with gcc, so configuring glibc
3725 # with a fresh cross-compiler works.
3726 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3727 # <limits.h> exists even on freestanding compilers.
3728 # On the NeXT, cc -E runs the code through the compiler's parser,
3729 # not just through cpp. "Syntax error" is here to catch this case.
3730 cat >conftest.$ac_ext <<_ACEOF
3731/* confdefs.h. */
3732_ACEOF
3733cat confdefs.h >>conftest.$ac_ext
3734cat >>conftest.$ac_ext <<_ACEOF
3735/* end confdefs.h. */
3736#ifdef __STDC__
3737# include <limits.h>
3738#else
3739# include <assert.h>
3740#endif
3741 Syntax error
3742_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003743if { (ac_try="$ac_cpp conftest.$ac_ext"
3744case "(($ac_try" in
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3747esac
3748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003750 ac_status=$?
3751 grep -v '^ *+' conftest.er1 >conftest.err
3752 rm -f conftest.er1
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00003755 (exit $ac_status); } >/dev/null && {
3756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3757 test ! -s conftest.err
3758 }; then
brynercb91a2f2006-08-25 21:14:45 +00003759 :
3760else
3761 echo "$as_me: failed program was:" >&5
3762sed 's/^/| /' conftest.$ac_ext >&5
3763
3764 # Broken: fails on valid input.
3765continue
3766fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003767
brynercb91a2f2006-08-25 21:14:45 +00003768rm -f conftest.err conftest.$ac_ext
3769
mmentovai8c2a4de2006-09-20 16:20:15 +00003770 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00003771 # can be detected and how.
3772 cat >conftest.$ac_ext <<_ACEOF
3773/* confdefs.h. */
3774_ACEOF
3775cat confdefs.h >>conftest.$ac_ext
3776cat >>conftest.$ac_ext <<_ACEOF
3777/* end confdefs.h. */
3778#include <ac_nonexistent.h>
3779_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003780if { (ac_try="$ac_cpp conftest.$ac_ext"
3781case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784esac
3785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003787 ac_status=$?
3788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00003792 (exit $ac_status); } >/dev/null && {
3793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3794 test ! -s conftest.err
3795 }; then
brynercb91a2f2006-08-25 21:14:45 +00003796 # Broken: success on invalid input.
3797continue
3798else
3799 echo "$as_me: failed program was:" >&5
3800sed 's/^/| /' conftest.$ac_ext >&5
3801
3802 # Passes both tests.
3803ac_preproc_ok=:
3804break
3805fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003806
brynercb91a2f2006-08-25 21:14:45 +00003807rm -f conftest.err conftest.$ac_ext
3808
3809done
3810# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3811rm -f conftest.err conftest.$ac_ext
3812if $ac_preproc_ok; then
3813 :
3814else
3815 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3816See \`config.log' for more details." >&5
3817echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3818See \`config.log' for more details." >&2;}
3819 { (exit 1); exit 1; }; }
3820fi
3821
3822ac_ext=c
3823ac_cpp='$CPP $CPPFLAGS'
3824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827
mmentovai8c2a4de2006-09-20 16:20:15 +00003828ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00003829ac_cpp='$CXXCPP $CPPFLAGS'
3830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00003833if test -z "$CXX"; then
3834 if test -n "$CCC"; then
3835 CXX=$CCC
3836 else
3837 if test -n "$ac_tool_prefix"; then
3838 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 +00003839 do
3840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3841set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00003842{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003844if test "${ac_cv_prog_CXX+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846else
3847 if test -n "$CXX"; then
3848 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3849else
3850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851for as_dir in $PATH
3852do
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
3855 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003857 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 break 2
3860 fi
3861done
3862done
mmentovai8c2a4de2006-09-20 16:20:15 +00003863IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003864
3865fi
3866fi
3867CXX=$ac_cv_prog_CXX
3868if test -n "$CXX"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003869 { echo "$as_me:$LINENO: result: $CXX" >&5
3870echo "${ECHO_T}$CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003871else
mmentovai8c2a4de2006-09-20 16:20:15 +00003872 { echo "$as_me:$LINENO: result: no" >&5
3873echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003874fi
3875
mmentovai8c2a4de2006-09-20 16:20:15 +00003876
brynercb91a2f2006-08-25 21:14:45 +00003877 test -n "$CXX" && break
3878 done
3879fi
3880if test -z "$CXX"; then
3881 ac_ct_CXX=$CXX
mmentovai8c2a4de2006-09-20 16:20:15 +00003882 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 +00003883do
3884 # Extract the first word of "$ac_prog", so it can be a program name with args.
3885set dummy $ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00003886{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003888if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890else
3891 if test -n "$ac_ct_CXX"; then
3892 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3893else
3894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895for as_dir in $PATH
3896do
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003901 ac_cv_prog_ac_ct_CXX="$ac_prog"
3902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 break 2
3904 fi
3905done
3906done
mmentovai8c2a4de2006-09-20 16:20:15 +00003907IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003908
3909fi
3910fi
3911ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3912if test -n "$ac_ct_CXX"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003913 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3914echo "${ECHO_T}$ac_ct_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003915else
mmentovai8c2a4de2006-09-20 16:20:15 +00003916 { echo "$as_me:$LINENO: result: no" >&5
3917echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003918fi
3919
mmentovai8c2a4de2006-09-20 16:20:15 +00003920
brynercb91a2f2006-08-25 21:14:45 +00003921 test -n "$ac_ct_CXX" && break
3922done
brynercb91a2f2006-08-25 21:14:45 +00003923
mmentovai8c2a4de2006-09-20 16:20:15 +00003924 if test "x$ac_ct_CXX" = x; then
3925 CXX="g++"
3926 else
3927 case $cross_compiling:$ac_tool_warned in
3928yes:)
3929{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3930whose name does not start with the host triplet. If you think this
3931configuration is useful to you, please write to autoconf@gnu.org." >&5
3932echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3933whose name does not start with the host triplet. If you think this
3934configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3935ac_tool_warned=yes ;;
3936esac
3937 CXX=$ac_ct_CXX
3938 fi
brynercb91a2f2006-08-25 21:14:45 +00003939fi
3940
mmentovai8c2a4de2006-09-20 16:20:15 +00003941 fi
3942fi
brynercb91a2f2006-08-25 21:14:45 +00003943# Provide some information about the compiler.
mmentovai8c2a4de2006-09-20 16:20:15 +00003944echo "$as_me:$LINENO: checking for C++ compiler version" >&5
brynercb91a2f2006-08-25 21:14:45 +00003945ac_compiler=`set X $ac_compile; echo $2`
mmentovai8c2a4de2006-09-20 16:20:15 +00003946{ (ac_try="$ac_compiler --version >&5"
3947case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950esac
3951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3952 (eval "$ac_compiler --version >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }
mmentovai8c2a4de2006-09-20 16:20:15 +00003956{ (ac_try="$ac_compiler -v >&5"
3957case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960esac
3961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_compiler -v >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }
mmentovai8c2a4de2006-09-20 16:20:15 +00003966{ (ac_try="$ac_compiler -V >&5"
3967case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3970esac
3971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972 (eval "$ac_compiler -V >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }
3976
mmentovai8c2a4de2006-09-20 16:20:15 +00003977{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3978echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003979if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3981else
3982 cat >conftest.$ac_ext <<_ACEOF
3983/* confdefs.h. */
3984_ACEOF
3985cat confdefs.h >>conftest.$ac_ext
3986cat >>conftest.$ac_ext <<_ACEOF
3987/* end confdefs.h. */
3988
3989int
3990main ()
3991{
3992#ifndef __GNUC__
3993 choke me
3994#endif
3995
3996 ;
3997 return 0;
3998}
3999_ACEOF
4000rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00004001if { (ac_try="$ac_compile"
4002case "(($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_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00004008 ac_status=$?
4009 grep -v '^ *+' conftest.er1 >conftest.err
4010 rm -f conftest.er1
4011 cat conftest.err >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00004013 (exit $ac_status); } && {
4014 test -z "$ac_cxx_werror_flag" ||
4015 test ! -s conftest.err
4016 } && test -s conftest.$ac_objext; then
brynercb91a2f2006-08-25 21:14:45 +00004017 ac_compiler_gnu=yes
4018else
4019 echo "$as_me: failed program was:" >&5
4020sed 's/^/| /' conftest.$ac_ext >&5
4021
mmentovai8c2a4de2006-09-20 16:20:15 +00004022 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00004023fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004024
4025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004026ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4027
4028fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004029{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4030echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004031GXX=`test $ac_compiler_gnu = yes && echo yes`
4032ac_test_CXXFLAGS=${CXXFLAGS+set}
4033ac_save_CXXFLAGS=$CXXFLAGS
mmentovai8c2a4de2006-09-20 16:20:15 +00004034{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4035echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004036if test "${ac_cv_prog_cxx_g+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038else
mmentovai8c2a4de2006-09-20 16:20:15 +00004039 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4040 ac_cxx_werror_flag=yes
4041 ac_cv_prog_cxx_g=no
4042 CXXFLAGS="-g"
4043 cat >conftest.$ac_ext <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00004044/* confdefs.h. */
4045_ACEOF
4046cat confdefs.h >>conftest.$ac_ext
4047cat >>conftest.$ac_ext <<_ACEOF
4048/* end confdefs.h. */
4049
4050int
4051main ()
4052{
4053
4054 ;
4055 return 0;
4056}
4057_ACEOF
4058rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00004059if { (ac_try="$ac_compile"
4060case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063esac
4064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00004066 ac_status=$?
4067 grep -v '^ *+' conftest.er1 >conftest.err
4068 rm -f conftest.er1
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00004071 (exit $ac_status); } && {
4072 test -z "$ac_cxx_werror_flag" ||
4073 test ! -s conftest.err
4074 } && test -s conftest.$ac_objext; then
brynercb91a2f2006-08-25 21:14:45 +00004075 ac_cv_prog_cxx_g=yes
4076else
4077 echo "$as_me: failed program was:" >&5
4078sed 's/^/| /' conftest.$ac_ext >&5
4079
mmentovai8c2a4de2006-09-20 16:20:15 +00004080 CXXFLAGS=""
4081 cat >conftest.$ac_ext <<_ACEOF
4082/* confdefs.h. */
4083_ACEOF
4084cat confdefs.h >>conftest.$ac_ext
4085cat >>conftest.$ac_ext <<_ACEOF
4086/* end confdefs.h. */
4087
4088int
4089main ()
4090{
4091
4092 ;
4093 return 0;
4094}
4095_ACEOF
4096rm -f conftest.$ac_objext
4097if { (ac_try="$ac_compile"
4098case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101esac
4102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103 (eval "$ac_compile") 2>conftest.er1
4104 ac_status=$?
4105 grep -v '^ *+' conftest.er1 >conftest.err
4106 rm -f conftest.er1
4107 cat conftest.err >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00004109 (exit $ac_status); } && {
4110 test -z "$ac_cxx_werror_flag" ||
4111 test ! -s conftest.err
4112 } && test -s conftest.$ac_objext; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004113 :
4114else
4115 echo "$as_me: failed program was:" >&5
4116sed 's/^/| /' conftest.$ac_ext >&5
4117
4118 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4119 CXXFLAGS="-g"
4120 cat >conftest.$ac_ext <<_ACEOF
4121/* confdefs.h. */
4122_ACEOF
4123cat confdefs.h >>conftest.$ac_ext
4124cat >>conftest.$ac_ext <<_ACEOF
4125/* end confdefs.h. */
4126
4127int
4128main ()
4129{
4130
4131 ;
4132 return 0;
4133}
4134_ACEOF
4135rm -f conftest.$ac_objext
4136if { (ac_try="$ac_compile"
4137case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140esac
4141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_compile") 2>conftest.er1
4143 ac_status=$?
4144 grep -v '^ *+' conftest.er1 >conftest.err
4145 rm -f conftest.er1
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00004148 (exit $ac_status); } && {
4149 test -z "$ac_cxx_werror_flag" ||
4150 test ! -s conftest.err
4151 } && test -s conftest.$ac_objext; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004152 ac_cv_prog_cxx_g=yes
4153else
4154 echo "$as_me: failed program was:" >&5
4155sed 's/^/| /' conftest.$ac_ext >&5
4156
4157
brynercb91a2f2006-08-25 21:14:45 +00004158fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004159
4160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004161fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004162
4163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164fi
4165
4166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4168fi
4169{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4170echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004171if test "$ac_test_CXXFLAGS" = set; then
4172 CXXFLAGS=$ac_save_CXXFLAGS
4173elif test $ac_cv_prog_cxx_g = yes; then
4174 if test "$GXX" = yes; then
4175 CXXFLAGS="-g -O2"
4176 else
4177 CXXFLAGS="-g"
4178 fi
4179else
4180 if test "$GXX" = yes; then
4181 CXXFLAGS="-O2"
4182 else
4183 CXXFLAGS=
4184 fi
4185fi
brynercb91a2f2006-08-25 21:14:45 +00004186ac_ext=c
4187ac_cpp='$CPP $CPPFLAGS'
4188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190ac_compiler_gnu=$ac_cv_c_compiler_gnu
4191
4192depcc="$CXX" am_compiler_list=
4193
mmentovai8c2a4de2006-09-20 16:20:15 +00004194{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4195echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004196if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4198else
4199 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4200 # We make a subdir and do the tests there. Otherwise we can end up
4201 # making bogus files that we don't know about and never remove. For
4202 # instance it was reported that on HP-UX the gcc test will end up
4203 # making a dummy file named `D' -- because `-MD' means `put the output
4204 # in D'.
4205 mkdir conftest.dir
4206 # Copy depcomp to subdir because otherwise we won't find it if we're
4207 # using a relative directory.
4208 cp "$am_depcomp" conftest.dir
4209 cd conftest.dir
4210 # We will build objects and dependencies in a subdirectory because
4211 # it helps to detect inapplicable dependency modes. For instance
4212 # both Tru64's cc and ICC support -MD to output dependencies as a
4213 # side effect of compilation, but ICC will put the dependencies in
4214 # the current directory while Tru64 will put them in the object
4215 # directory.
4216 mkdir sub
4217
4218 am_cv_CXX_dependencies_compiler_type=none
4219 if test "$am_compiler_list" = ""; then
4220 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4221 fi
4222 for depmode in $am_compiler_list; do
4223 # Setup a source with many dependencies, because some compilers
4224 # like to wrap large dependency lists on column 80 (with \), and
4225 # we should not choose a depcomp mode which is confused by this.
4226 #
4227 # We need to recreate these files for each test, as the compiler may
4228 # overwrite some of them when testing with obscure command lines.
4229 # This happens at least with the AIX C compiler.
4230 : > sub/conftest.c
4231 for i in 1 2 3 4 5 6; do
4232 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4233 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4234 # Solaris 8's {/usr,}/bin/sh.
4235 touch sub/conftst$i.h
4236 done
4237 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4238
4239 case $depmode in
4240 nosideeffect)
4241 # after this tag, mechanisms are not by side-effect, so they'll
4242 # only be used when explicitly requested
4243 if test "x$enable_dependency_tracking" = xyes; then
4244 continue
4245 else
4246 break
4247 fi
4248 ;;
4249 none) break ;;
4250 esac
4251 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4252 # mode. It turns out that the SunPro C++ compiler does not properly
4253 # handle `-M -o', and we need to detect this.
4254 if depmode=$depmode \
4255 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4256 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4257 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4258 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00004259 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004260 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4261 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4262 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4263 # icc doesn't choke on unknown options, it will just issue warnings
4264 # or remarks (even with -Werror). So we grep stderr for any message
4265 # that says an option was ignored or not supported.
4266 # When given -MP, icc 7.0 and 7.1 complain thusly:
4267 # icc: Command line warning: ignoring option '-M'; no argument required
4268 # The diagnosis changed in icc 8.0:
4269 # icc: Command line remark: option '-MP' not supported
4270 if (grep 'ignoring option' conftest.err ||
4271 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4272 am_cv_CXX_dependencies_compiler_type=$depmode
4273 break
4274 fi
4275 fi
4276 done
4277
4278 cd ..
4279 rm -rf conftest.dir
4280else
4281 am_cv_CXX_dependencies_compiler_type=none
4282fi
4283
4284fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004285{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4286echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004287CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4288
mmentovaiaf3c43f2007-05-17 18:34:37 +00004289 if
brynercb91a2f2006-08-25 21:14:45 +00004290 test "x$enable_dependency_tracking" != xno \
4291 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4292 am__fastdepCXX_TRUE=
4293 am__fastdepCXX_FALSE='#'
4294else
4295 am__fastdepCXX_TRUE='#'
4296 am__fastdepCXX_FALSE=
4297fi
4298
4299
4300
mmentovai8c2a4de2006-09-20 16:20:15 +00004301# Check whether --enable-shared was given.
brynercb91a2f2006-08-25 21:14:45 +00004302if test "${enable_shared+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004303 enableval=$enable_shared; p=${PACKAGE-default}
brynercb91a2f2006-08-25 21:14:45 +00004304 case $enableval in
4305 yes) enable_shared=yes ;;
4306 no) enable_shared=no ;;
4307 *)
4308 enable_shared=no
4309 # Look at the argument we got. We use all the common list separators.
4310 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4311 for pkg in $enableval; do
4312 IFS="$lt_save_ifs"
4313 if test "X$pkg" = "X$p"; then
4314 enable_shared=yes
4315 fi
4316 done
4317 IFS="$lt_save_ifs"
4318 ;;
4319 esac
4320else
4321 enable_shared=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00004322fi
brynercb91a2f2006-08-25 21:14:45 +00004323
mmentovai8c2a4de2006-09-20 16:20:15 +00004324
4325# Check whether --enable-static was given.
brynercb91a2f2006-08-25 21:14:45 +00004326if test "${enable_static+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004327 enableval=$enable_static; p=${PACKAGE-default}
brynercb91a2f2006-08-25 21:14:45 +00004328 case $enableval in
4329 yes) enable_static=yes ;;
4330 no) enable_static=no ;;
4331 *)
4332 enable_static=no
4333 # Look at the argument we got. We use all the common list separators.
4334 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4335 for pkg in $enableval; do
4336 IFS="$lt_save_ifs"
4337 if test "X$pkg" = "X$p"; then
4338 enable_static=yes
4339 fi
4340 done
4341 IFS="$lt_save_ifs"
4342 ;;
4343 esac
4344else
4345 enable_static=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00004346fi
brynercb91a2f2006-08-25 21:14:45 +00004347
mmentovai8c2a4de2006-09-20 16:20:15 +00004348
4349# Check whether --enable-fast-install was given.
brynercb91a2f2006-08-25 21:14:45 +00004350if test "${enable_fast_install+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004351 enableval=$enable_fast_install; p=${PACKAGE-default}
brynercb91a2f2006-08-25 21:14:45 +00004352 case $enableval in
4353 yes) enable_fast_install=yes ;;
4354 no) enable_fast_install=no ;;
4355 *)
4356 enable_fast_install=no
4357 # Look at the argument we got. We use all the common list separators.
4358 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4359 for pkg in $enableval; do
4360 IFS="$lt_save_ifs"
4361 if test "X$pkg" = "X$p"; then
4362 enable_fast_install=yes
4363 fi
4364 done
4365 IFS="$lt_save_ifs"
4366 ;;
4367 esac
4368else
4369 enable_fast_install=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00004370fi
4371
brynercb91a2f2006-08-25 21:14:45 +00004372
4373# Make sure we can run config.sub.
mmentovai8c2a4de2006-09-20 16:20:15 +00004374$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4375 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4376echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00004377 { (exit 1); exit 1; }; }
4378
mmentovai8c2a4de2006-09-20 16:20:15 +00004379{ echo "$as_me:$LINENO: checking build system type" >&5
4380echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004381if test "${ac_cv_build+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383else
mmentovai8c2a4de2006-09-20 16:20:15 +00004384 ac_build_alias=$build_alias
4385test "x$ac_build_alias" = x &&
4386 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4387test "x$ac_build_alias" = x &&
brynercb91a2f2006-08-25 21:14:45 +00004388 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4389echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4390 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004391ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4392 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4393echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00004394 { (exit 1); exit 1; }; }
4395
4396fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004397{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4398echo "${ECHO_T}$ac_cv_build" >&6; }
4399case $ac_cv_build in
4400*-*-*) ;;
4401*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4402echo "$as_me: error: invalid value of canonical build" >&2;}
4403 { (exit 1); exit 1; }; };;
4404esac
brynercb91a2f2006-08-25 21:14:45 +00004405build=$ac_cv_build
mmentovai8c2a4de2006-09-20 16:20:15 +00004406ac_save_IFS=$IFS; IFS='-'
4407set x $ac_cv_build
4408shift
4409build_cpu=$1
4410build_vendor=$2
4411shift; shift
4412# Remember, the first character of IFS is used to create $*,
4413# except with old shells:
4414build_os=$*
4415IFS=$ac_save_IFS
4416case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
brynercb91a2f2006-08-25 21:14:45 +00004417
4418
mmentovai8c2a4de2006-09-20 16:20:15 +00004419{ echo "$as_me:$LINENO: checking host system type" >&5
4420echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004421if test "${ac_cv_host+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4423else
mmentovai8c2a4de2006-09-20 16:20:15 +00004424 if test "x$host_alias" = x; then
4425 ac_cv_host=$ac_cv_build
4426else
4427 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4428 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4429echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00004430 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004431fi
brynercb91a2f2006-08-25 21:14:45 +00004432
4433fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004434{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4435echo "${ECHO_T}$ac_cv_host" >&6; }
4436case $ac_cv_host in
4437*-*-*) ;;
4438*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4439echo "$as_me: error: invalid value of canonical host" >&2;}
4440 { (exit 1); exit 1; }; };;
4441esac
brynercb91a2f2006-08-25 21:14:45 +00004442host=$ac_cv_host
mmentovai8c2a4de2006-09-20 16:20:15 +00004443ac_save_IFS=$IFS; IFS='-'
4444set x $ac_cv_host
4445shift
4446host_cpu=$1
4447host_vendor=$2
4448shift; shift
4449# Remember, the first character of IFS is used to create $*,
4450# except with old shells:
4451host_os=$*
4452IFS=$ac_save_IFS
4453case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
brynercb91a2f2006-08-25 21:14:45 +00004454
4455
mmentovai8c2a4de2006-09-20 16:20:15 +00004456{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4457echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004458if test "${lt_cv_path_SED+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460else
4461 # Loop through the user's path and test for sed and gsed.
4462# Then use that list of sed's as ones to test for truncation.
4463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464for as_dir in $PATH
4465do
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
4468 for lt_ac_prog in sed gsed; do
4469 for ac_exec_ext in '' $ac_executable_extensions; do
ted.mielczarek1adb1842009-12-21 13:12:20 +00004470 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00004471 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4472 fi
4473 done
4474 done
4475done
ted.mielczarek1adb1842009-12-21 13:12:20 +00004476IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00004477lt_ac_max=0
4478lt_ac_count=0
4479# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4480# along with /bin/sed that truncates output.
4481for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
mmentovai8c2a4de2006-09-20 16:20:15 +00004482 test ! -f $lt_ac_sed && continue
brynercb91a2f2006-08-25 21:14:45 +00004483 cat /dev/null > conftest.in
4484 lt_ac_count=0
4485 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4486 # Check for GNU sed and select it if it is found.
4487 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4488 lt_cv_path_SED=$lt_ac_sed
4489 break
4490 fi
4491 while true; do
4492 cat conftest.in conftest.in >conftest.tmp
4493 mv conftest.tmp conftest.in
4494 cp conftest.in conftest.nl
4495 echo >>conftest.nl
4496 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4497 cmp -s conftest.out conftest.nl || break
4498 # 10000 chars as input seems more than enough
4499 test $lt_ac_count -gt 10 && break
4500 lt_ac_count=`expr $lt_ac_count + 1`
4501 if test $lt_ac_count -gt $lt_ac_max; then
4502 lt_ac_max=$lt_ac_count
4503 lt_cv_path_SED=$lt_ac_sed
4504 fi
4505 done
4506done
brynercb91a2f2006-08-25 21:14:45 +00004507
4508fi
4509
mmentovai8c2a4de2006-09-20 16:20:15 +00004510SED=$lt_cv_path_SED
ted.mielczarek1adb1842009-12-21 13:12:20 +00004511
mmentovai8c2a4de2006-09-20 16:20:15 +00004512{ echo "$as_me:$LINENO: result: $SED" >&5
4513echo "${ECHO_T}$SED" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004514
mmentovai8c2a4de2006-09-20 16:20:15 +00004515{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4516echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4517if test "${ac_cv_path_GREP+set}" = set; then
brynercb91a2f2006-08-25 21:14:45 +00004518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519else
mmentovai8c2a4de2006-09-20 16:20:15 +00004520 # Extract the first word of "grep ggrep" to use in msg output
4521if test -z "$GREP"; then
4522set dummy grep ggrep; ac_prog_name=$2
4523if test "${ac_cv_path_GREP+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525else
4526 ac_path_GREP_found=false
4527# Loop through the user's path and test for each of PROGNAME-LIST
4528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4530do
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_prog in grep ggrep; do
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
mmentovaiaf3c43f2007-05-17 18:34:37 +00004536 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
mmentovai8c2a4de2006-09-20 16:20:15 +00004537 # Check for GNU ac_path_GREP and select it if it is found.
4538 # Check for GNU $ac_path_GREP
4539case `"$ac_path_GREP" --version 2>&1` in
4540*GNU*)
4541 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4542*)
4543 ac_count=0
4544 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4545 while :
4546 do
4547 cat "conftest.in" "conftest.in" >"conftest.tmp"
4548 mv "conftest.tmp" "conftest.in"
4549 cp "conftest.in" "conftest.nl"
4550 echo 'GREP' >> "conftest.nl"
4551 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4552 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4553 ac_count=`expr $ac_count + 1`
4554 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4555 # Best one so far, save it but keep looking for a better one
4556 ac_cv_path_GREP="$ac_path_GREP"
4557 ac_path_GREP_max=$ac_count
brynercb91a2f2006-08-25 21:14:45 +00004558 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004559 # 10*(2^10) chars as input seems more than enough
4560 test $ac_count -gt 10 && break
4561 done
4562 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4563esac
4564
4565
4566 $ac_path_GREP_found && break 3
4567 done
4568done
4569
4570done
4571IFS=$as_save_IFS
4572
4573
brynercb91a2f2006-08-25 21:14:45 +00004574fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004575
4576GREP="$ac_cv_path_GREP"
4577if test -z "$GREP"; then
4578 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4579echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4580 { (exit 1); exit 1; }; }
4581fi
4582
4583else
4584 ac_cv_path_GREP=$GREP
4585fi
4586
4587
4588fi
4589{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4590echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4591 GREP="$ac_cv_path_GREP"
4592
4593
4594{ echo "$as_me:$LINENO: checking for egrep" >&5
4595echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4596if test "${ac_cv_path_EGREP+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598else
4599 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4600 then ac_cv_path_EGREP="$GREP -E"
4601 else
4602 # Extract the first word of "egrep" to use in msg output
4603if test -z "$EGREP"; then
4604set dummy egrep; ac_prog_name=$2
4605if test "${ac_cv_path_EGREP+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4607else
4608 ac_path_EGREP_found=false
4609# Loop through the user's path and test for each of PROGNAME-LIST
4610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4612do
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_prog in egrep; do
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
mmentovaiaf3c43f2007-05-17 18:34:37 +00004618 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
mmentovai8c2a4de2006-09-20 16:20:15 +00004619 # Check for GNU ac_path_EGREP and select it if it is found.
4620 # Check for GNU $ac_path_EGREP
4621case `"$ac_path_EGREP" --version 2>&1` in
4622*GNU*)
4623 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4624*)
4625 ac_count=0
4626 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4627 while :
4628 do
4629 cat "conftest.in" "conftest.in" >"conftest.tmp"
4630 mv "conftest.tmp" "conftest.in"
4631 cp "conftest.in" "conftest.nl"
4632 echo 'EGREP' >> "conftest.nl"
4633 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4635 ac_count=`expr $ac_count + 1`
4636 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4637 # Best one so far, save it but keep looking for a better one
4638 ac_cv_path_EGREP="$ac_path_EGREP"
4639 ac_path_EGREP_max=$ac_count
4640 fi
4641 # 10*(2^10) chars as input seems more than enough
4642 test $ac_count -gt 10 && break
4643 done
4644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4645esac
4646
4647
4648 $ac_path_EGREP_found && break 3
4649 done
4650done
4651
4652done
4653IFS=$as_save_IFS
4654
4655
4656fi
4657
4658EGREP="$ac_cv_path_EGREP"
4659if test -z "$EGREP"; then
4660 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4661echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4662 { (exit 1); exit 1; }; }
4663fi
4664
4665else
4666 ac_cv_path_EGREP=$EGREP
4667fi
4668
4669
4670 fi
4671fi
4672{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4673echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4674 EGREP="$ac_cv_path_EGREP"
brynercb91a2f2006-08-25 21:14:45 +00004675
4676
4677
mmentovai8c2a4de2006-09-20 16:20:15 +00004678# Check whether --with-gnu-ld was given.
brynercb91a2f2006-08-25 21:14:45 +00004679if test "${with_gnu_ld+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004680 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +00004681else
4682 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +00004683fi
4684
brynercb91a2f2006-08-25 21:14:45 +00004685ac_prog=ld
4686if test "$GCC" = yes; then
4687 # Check if gcc -print-prog-name=ld gives a path.
mmentovai8c2a4de2006-09-20 16:20:15 +00004688 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4689echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004690 case $host in
4691 *-*-mingw*)
4692 # gcc leaves a trailing carriage return which upsets mingw
4693 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4694 *)
4695 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4696 esac
4697 case $ac_prog in
4698 # Accept absolute paths.
4699 [\\/]* | ?:[\\/]*)
4700 re_direlt='/[^/][^/]*/\.\./'
4701 # Canonicalize the pathname of ld
4702 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4703 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4704 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4705 done
4706 test -z "$LD" && LD="$ac_prog"
4707 ;;
4708 "")
4709 # If it fails, then pretend we aren't using GCC.
4710 ac_prog=ld
4711 ;;
4712 *)
4713 # If it is relative, then search for the first ld in PATH.
4714 with_gnu_ld=unknown
4715 ;;
4716 esac
4717elif test "$with_gnu_ld" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004718 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4719echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004720else
mmentovai8c2a4de2006-09-20 16:20:15 +00004721 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4722echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004723fi
4724if test "${lt_cv_path_LD+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4726else
4727 if test -z "$LD"; then
4728 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4729 for ac_dir in $PATH; do
4730 IFS="$lt_save_ifs"
4731 test -z "$ac_dir" && ac_dir=.
4732 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4733 lt_cv_path_LD="$ac_dir/$ac_prog"
4734 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +00004735 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004736 # Break only if it was the GNU/non-GNU ld that we prefer.
4737 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4738 *GNU* | *'with BFD'*)
4739 test "$with_gnu_ld" != no && break
4740 ;;
4741 *)
4742 test "$with_gnu_ld" != yes && break
4743 ;;
4744 esac
4745 fi
4746 done
4747 IFS="$lt_save_ifs"
4748else
4749 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4750fi
4751fi
4752
4753LD="$lt_cv_path_LD"
4754if test -n "$LD"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004755 { echo "$as_me:$LINENO: result: $LD" >&5
4756echo "${ECHO_T}$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004757else
mmentovai8c2a4de2006-09-20 16:20:15 +00004758 { echo "$as_me:$LINENO: result: no" >&5
4759echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004760fi
4761test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4762echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4763 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004764{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4765echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004766if test "${lt_cv_prog_gnu_ld+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768else
mmentovai8c2a4de2006-09-20 16:20:15 +00004769 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004770case `$LD -v 2>&1 </dev/null` in
4771*GNU* | *'with BFD'*)
4772 lt_cv_prog_gnu_ld=yes
4773 ;;
4774*)
4775 lt_cv_prog_gnu_ld=no
4776 ;;
4777esac
4778fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004779{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4780echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004781with_gnu_ld=$lt_cv_prog_gnu_ld
4782
4783
mmentovai8c2a4de2006-09-20 16:20:15 +00004784{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4785echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004786if test "${lt_cv_ld_reload_flag+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4788else
4789 lt_cv_ld_reload_flag='-r'
4790fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004791{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4792echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004793reload_flag=$lt_cv_ld_reload_flag
4794case $reload_flag in
4795"" | " "*) ;;
4796*) reload_flag=" $reload_flag" ;;
4797esac
4798reload_cmds='$LD$reload_flag -o $output$reload_objs'
mmentovai8c2a4de2006-09-20 16:20:15 +00004799case $host_os in
4800 darwin*)
4801 if test "$GCC" = yes; then
4802 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4803 else
4804 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4805 fi
4806 ;;
4807esac
brynercb91a2f2006-08-25 21:14:45 +00004808
mmentovai8c2a4de2006-09-20 16:20:15 +00004809{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4810echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004811if test "${lt_cv_path_NM+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4813else
4814 if test -n "$NM"; then
4815 # Let the user override the test.
4816 lt_cv_path_NM="$NM"
4817else
mmentovai8c2a4de2006-09-20 16:20:15 +00004818 lt_nm_to_check="${ac_tool_prefix}nm"
4819 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4820 lt_nm_to_check="$lt_nm_to_check nm"
4821 fi
4822 for lt_tmp_nm in $lt_nm_to_check; do
4823 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4824 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4825 IFS="$lt_save_ifs"
4826 test -z "$ac_dir" && ac_dir=.
4827 tmp_nm="$ac_dir/$lt_tmp_nm"
4828 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4829 # Check to see if the nm accepts a BSD-compat flag.
4830 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4831 # nm: unknown option "B" ignored
4832 # Tru64's nm complains that /dev/null is an invalid object file
4833 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4834 */dev/null* | *'Invalid file or object type'*)
4835 lt_cv_path_NM="$tmp_nm -B"
brynercb91a2f2006-08-25 21:14:45 +00004836 break
4837 ;;
4838 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00004839 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4840 */dev/null*)
4841 lt_cv_path_NM="$tmp_nm -p"
4842 break
4843 ;;
4844 *)
4845 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4846 continue # so that we can try to find one that supports BSD flags
4847 ;;
4848 esac
brynercb91a2f2006-08-25 21:14:45 +00004849 ;;
4850 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00004851 fi
4852 done
4853 IFS="$lt_save_ifs"
brynercb91a2f2006-08-25 21:14:45 +00004854 done
brynercb91a2f2006-08-25 21:14:45 +00004855 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4856fi
4857fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004858{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4859echo "${ECHO_T}$lt_cv_path_NM" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004860NM="$lt_cv_path_NM"
4861
mmentovai8c2a4de2006-09-20 16:20:15 +00004862{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4863echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004864LN_S=$as_ln_s
4865if test "$LN_S" = "ln -s"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004866 { echo "$as_me:$LINENO: result: yes" >&5
4867echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004868else
mmentovai8c2a4de2006-09-20 16:20:15 +00004869 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4870echo "${ECHO_T}no, using $LN_S" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004871fi
4872
ted.mielczarek1adb1842009-12-21 13:12:20 +00004873{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4874echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004875if test "${lt_cv_deplibs_check_method+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4877else
4878 lt_cv_file_magic_cmd='$MAGIC_CMD'
4879lt_cv_file_magic_test_file=
4880lt_cv_deplibs_check_method='unknown'
4881# Need to set the preceding variable on all platforms that support
4882# interlibrary dependencies.
4883# 'none' -- dependencies not supported.
4884# `unknown' -- same as none, but documents that we really don't know.
4885# 'pass_all' -- all dependencies passed with no checks.
4886# 'test_compile' -- check by making test program.
4887# 'file_magic [[regex]]' -- check by looking for files in library path
4888# which responds to the $file_magic_cmd with a given extended regex.
4889# If you have `file' or equivalent on your system and you're not sure
4890# whether `pass_all' will *always* work, you probably want this one.
4891
4892case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +00004893aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +00004894 lt_cv_deplibs_check_method=pass_all
4895 ;;
4896
4897beos*)
4898 lt_cv_deplibs_check_method=pass_all
4899 ;;
4900
mmentovai8c2a4de2006-09-20 16:20:15 +00004901bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00004902 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4903 lt_cv_file_magic_cmd='/usr/bin/file -L'
4904 lt_cv_file_magic_test_file=/shlib/libc.so
4905 ;;
4906
4907cygwin*)
4908 # func_win32_libid is a shell function defined in ltmain.sh
4909 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4910 lt_cv_file_magic_cmd='func_win32_libid'
4911 ;;
4912
4913mingw* | pw32*)
4914 # Base MSYS/MinGW do not provide the 'file' command needed by
ted.mielczarek1adb1842009-12-21 13:12:20 +00004915 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4916 # unless we find 'file', for example because we are cross-compiling.
4917 if ( file / ) >/dev/null 2>&1; then
4918 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4919 lt_cv_file_magic_cmd='func_win32_libid'
4920 else
4921 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4922 lt_cv_file_magic_cmd='$OBJDUMP -f'
4923 fi
brynercb91a2f2006-08-25 21:14:45 +00004924 ;;
4925
4926darwin* | rhapsody*)
4927 lt_cv_deplibs_check_method=pass_all
4928 ;;
4929
ted.mielczarek1adb1842009-12-21 13:12:20 +00004930freebsd* | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +00004931 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4932 case $host_cpu in
4933 i*86 )
4934 # Not sure whether the presence of OpenBSD here was a mistake.
4935 # Let's accept both of them until this is cleared up.
mmentovai8c2a4de2006-09-20 16:20:15 +00004936 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 +00004937 lt_cv_file_magic_cmd=/usr/bin/file
4938 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4939 ;;
4940 esac
4941 else
4942 lt_cv_deplibs_check_method=pass_all
4943 fi
4944 ;;
4945
4946gnu*)
4947 lt_cv_deplibs_check_method=pass_all
4948 ;;
4949
4950hpux10.20* | hpux11*)
4951 lt_cv_file_magic_cmd=/usr/bin/file
mmentovai8c2a4de2006-09-20 16:20:15 +00004952 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00004953 ia64*)
4954 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4955 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4956 ;;
4957 hppa*64*)
4958 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]'
4959 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4960 ;;
4961 *)
4962 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4963 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4964 ;;
4965 esac
4966 ;;
4967
ted.mielczarek1adb1842009-12-21 13:12:20 +00004968interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00004969 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4970 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4971 ;;
4972
brynercb91a2f2006-08-25 21:14:45 +00004973irix5* | irix6* | nonstopux*)
4974 case $LD in
4975 *-32|*"-32 ") libmagic=32-bit;;
4976 *-n32|*"-n32 ") libmagic=N32;;
4977 *-64|*"-64 ") libmagic=64-bit;;
4978 *) libmagic=never-match;;
4979 esac
4980 lt_cv_deplibs_check_method=pass_all
4981 ;;
4982
4983# This must be Linux ELF.
ted.mielczarek1adb1842009-12-21 13:12:20 +00004984linux* | k*bsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +00004985 lt_cv_deplibs_check_method=pass_all
4986 ;;
4987
mmentovai8c2a4de2006-09-20 16:20:15 +00004988netbsd*)
brynercb91a2f2006-08-25 21:14:45 +00004989 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4991 else
4992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4993 fi
4994 ;;
4995
4996newos6*)
4997 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4998 lt_cv_file_magic_cmd=/usr/bin/file
4999 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5000 ;;
5001
5002nto-qnx*)
5003 lt_cv_deplibs_check_method=unknown
5004 ;;
5005
5006openbsd*)
brynercb91a2f2006-08-25 21:14:45 +00005007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005009 else
mmentovai8c2a4de2006-09-20 16:20:15 +00005010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005011 fi
5012 ;;
5013
5014osf3* | osf4* | osf5*)
5015 lt_cv_deplibs_check_method=pass_all
5016 ;;
5017
ted.mielczarek1adb1842009-12-21 13:12:20 +00005018rdos*)
5019 lt_cv_deplibs_check_method=pass_all
5020 ;;
5021
brynercb91a2f2006-08-25 21:14:45 +00005022solaris*)
5023 lt_cv_deplibs_check_method=pass_all
5024 ;;
5025
mmentovai8c2a4de2006-09-20 16:20:15 +00005026sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00005027 case $host_vendor in
5028 motorola)
5029 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]'
5030 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5031 ;;
5032 ncr)
5033 lt_cv_deplibs_check_method=pass_all
5034 ;;
5035 sequent)
5036 lt_cv_file_magic_cmd='/bin/file'
5037 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5038 ;;
5039 sni)
5040 lt_cv_file_magic_cmd='/bin/file'
5041 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5042 lt_cv_file_magic_test_file=/lib/libc.so
5043 ;;
5044 siemens)
5045 lt_cv_deplibs_check_method=pass_all
5046 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005047 pc)
5048 lt_cv_deplibs_check_method=pass_all
5049 ;;
brynercb91a2f2006-08-25 21:14:45 +00005050 esac
5051 ;;
5052
mmentovai8c2a4de2006-09-20 16:20:15 +00005053sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
brynercb91a2f2006-08-25 21:14:45 +00005054 lt_cv_deplibs_check_method=pass_all
5055 ;;
5056esac
5057
5058fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005059{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5060echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005061file_magic_cmd=$lt_cv_file_magic_cmd
5062deplibs_check_method=$lt_cv_deplibs_check_method
5063test -z "$deplibs_check_method" && deplibs_check_method=unknown
5064
5065
5066
5067
5068# If no C compiler was specified, use CC.
5069LTCC=${LTCC-"$CC"}
5070
mmentovai8c2a4de2006-09-20 16:20:15 +00005071# If no C compiler flags were specified, use CFLAGS.
5072LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5073
brynercb91a2f2006-08-25 21:14:45 +00005074# Allow CC to be a program name with arguments.
5075compiler=$CC
5076
5077
mmentovai8c2a4de2006-09-20 16:20:15 +00005078# Check whether --enable-libtool-lock was given.
brynercb91a2f2006-08-25 21:14:45 +00005079if test "${enable_libtool_lock+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005080 enableval=$enable_libtool_lock;
5081fi
brynercb91a2f2006-08-25 21:14:45 +00005082
brynercb91a2f2006-08-25 21:14:45 +00005083test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5084
5085# Some flags need to be propagated to the compiler or linker for good
5086# libtool support.
5087case $host in
5088ia64-*-hpux*)
5089 # Find out which ABI we are using.
5090 echo 'int i;' > conftest.$ac_ext
5091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5092 (eval $ac_compile) 2>&5
5093 ac_status=$?
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; then
5096 case `/usr/bin/file conftest.$ac_objext` in
5097 *ELF-32*)
5098 HPUX_IA64_MODE="32"
5099 ;;
5100 *ELF-64*)
5101 HPUX_IA64_MODE="64"
5102 ;;
5103 esac
5104 fi
5105 rm -rf conftest*
5106 ;;
5107*-*-irix6*)
5108 # Find out which ABI we are using.
ted.mielczarek1adb1842009-12-21 13:12:20 +00005109 echo '#line 5109 "configure"' > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5111 (eval $ac_compile) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; then
5115 if test "$lt_cv_prog_gnu_ld" = yes; then
5116 case `/usr/bin/file conftest.$ac_objext` in
5117 *32-bit*)
5118 LD="${LD-ld} -melf32bsmip"
5119 ;;
5120 *N32*)
5121 LD="${LD-ld} -melf32bmipn32"
5122 ;;
5123 *64-bit*)
5124 LD="${LD-ld} -melf64bmip"
5125 ;;
5126 esac
5127 else
5128 case `/usr/bin/file conftest.$ac_objext` in
5129 *32-bit*)
5130 LD="${LD-ld} -32"
5131 ;;
5132 *N32*)
5133 LD="${LD-ld} -n32"
5134 ;;
5135 *64-bit*)
5136 LD="${LD-ld} -64"
5137 ;;
5138 esac
5139 fi
5140 fi
5141 rm -rf conftest*
5142 ;;
5143
ted.mielczarek1adb1842009-12-21 13:12:20 +00005144x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5145s390*-*linux*|sparc*-*linux*)
brynercb91a2f2006-08-25 21:14:45 +00005146 # Find out which ABI we are using.
5147 echo 'int i;' > conftest.$ac_ext
5148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5149 (eval $ac_compile) 2>&5
5150 ac_status=$?
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005153 case `/usr/bin/file conftest.o` in
brynercb91a2f2006-08-25 21:14:45 +00005154 *32-bit*)
5155 case $host in
ted.mielczarek1adb1842009-12-21 13:12:20 +00005156 x86_64-*kfreebsd*-gnu)
5157 LD="${LD-ld} -m elf_i386_fbsd"
5158 ;;
brynercb91a2f2006-08-25 21:14:45 +00005159 x86_64-*linux*)
5160 LD="${LD-ld} -m elf_i386"
5161 ;;
5162 ppc64-*linux*|powerpc64-*linux*)
5163 LD="${LD-ld} -m elf32ppclinux"
5164 ;;
5165 s390x-*linux*)
5166 LD="${LD-ld} -m elf_s390"
5167 ;;
5168 sparc64-*linux*)
5169 LD="${LD-ld} -m elf32_sparc"
5170 ;;
5171 esac
5172 ;;
5173 *64-bit*)
5174 case $host in
ted.mielczarek1adb1842009-12-21 13:12:20 +00005175 x86_64-*kfreebsd*-gnu)
5176 LD="${LD-ld} -m elf_x86_64_fbsd"
5177 ;;
brynercb91a2f2006-08-25 21:14:45 +00005178 x86_64-*linux*)
5179 LD="${LD-ld} -m elf_x86_64"
5180 ;;
5181 ppc*-*linux*|powerpc*-*linux*)
5182 LD="${LD-ld} -m elf64ppc"
5183 ;;
5184 s390*-*linux*)
5185 LD="${LD-ld} -m elf64_s390"
5186 ;;
5187 sparc*-*linux*)
5188 LD="${LD-ld} -m elf64_sparc"
5189 ;;
5190 esac
5191 ;;
5192 esac
5193 fi
5194 rm -rf conftest*
5195 ;;
5196
5197*-*-sco3.2v5*)
5198 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5199 SAVE_CFLAGS="$CFLAGS"
5200 CFLAGS="$CFLAGS -belf"
mmentovai8c2a4de2006-09-20 16:20:15 +00005201 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5202echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005203if test "${lt_cv_cc_needs_belf+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205else
5206 ac_ext=c
5207ac_cpp='$CPP $CPPFLAGS'
5208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210ac_compiler_gnu=$ac_cv_c_compiler_gnu
5211
5212 cat >conftest.$ac_ext <<_ACEOF
5213/* confdefs.h. */
5214_ACEOF
5215cat confdefs.h >>conftest.$ac_ext
5216cat >>conftest.$ac_ext <<_ACEOF
5217/* end confdefs.h. */
5218
5219int
5220main ()
5221{
5222
5223 ;
5224 return 0;
5225}
5226_ACEOF
5227rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00005228if { (ac_try="$ac_link"
5229case "(($ac_try" in
5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231 *) ac_try_echo=$ac_try;;
5232esac
5233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5234 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005235 ac_status=$?
5236 grep -v '^ *+' conftest.er1 >conftest.err
5237 rm -f conftest.er1
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00005240 (exit $ac_status); } && {
5241 test -z "$ac_c_werror_flag" ||
5242 test ! -s conftest.err
5243 } && test -s conftest$ac_exeext &&
5244 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +00005245 lt_cv_cc_needs_belf=yes
5246else
5247 echo "$as_me: failed program was:" >&5
5248sed 's/^/| /' conftest.$ac_ext >&5
5249
mmentovai8c2a4de2006-09-20 16:20:15 +00005250 lt_cv_cc_needs_belf=no
brynercb91a2f2006-08-25 21:14:45 +00005251fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005252
mmentovaiaf3c43f2007-05-17 18:34:37 +00005253rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +00005254 conftest$ac_exeext conftest.$ac_ext
5255 ac_ext=c
5256ac_cpp='$CPP $CPPFLAGS'
5257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259ac_compiler_gnu=$ac_cv_c_compiler_gnu
5260
5261fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005262{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5263echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005264 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5265 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5266 CFLAGS="$SAVE_CFLAGS"
5267 fi
5268 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005269sparc*-*solaris*)
5270 # Find out which ABI we are using.
5271 echo 'int i;' > conftest.$ac_ext
5272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5273 (eval $ac_compile) 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; then
5277 case `/usr/bin/file conftest.o` in
5278 *64-bit*)
5279 case $lt_cv_prog_gnu_ld in
5280 yes*) LD="${LD-ld} -m elf64_sparc" ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +00005281 *)
5282 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5283 LD="${LD-ld} -64"
5284 fi
5285 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005286 esac
5287 ;;
5288 esac
5289 fi
5290 rm -rf conftest*
5291 ;;
5292
brynercb91a2f2006-08-25 21:14:45 +00005293
5294esac
5295
5296need_locks="$enable_libtool_lock"
5297
5298
5299
mmentovai8c2a4de2006-09-20 16:20:15 +00005300{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5301echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005302if test "${ac_cv_header_stdc+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5304else
5305 cat >conftest.$ac_ext <<_ACEOF
5306/* confdefs.h. */
5307_ACEOF
5308cat confdefs.h >>conftest.$ac_ext
5309cat >>conftest.$ac_ext <<_ACEOF
5310/* end confdefs.h. */
5311#include <stdlib.h>
5312#include <stdarg.h>
5313#include <string.h>
5314#include <float.h>
5315
5316int
5317main ()
5318{
5319
5320 ;
5321 return 0;
5322}
5323_ACEOF
5324rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00005325if { (ac_try="$ac_compile"
5326case "(($ac_try" in
5327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5328 *) ac_try_echo=$ac_try;;
5329esac
5330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5331 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005332 ac_status=$?
5333 grep -v '^ *+' conftest.er1 >conftest.err
5334 rm -f conftest.er1
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00005337 (exit $ac_status); } && {
5338 test -z "$ac_c_werror_flag" ||
5339 test ! -s conftest.err
5340 } && test -s conftest.$ac_objext; then
brynercb91a2f2006-08-25 21:14:45 +00005341 ac_cv_header_stdc=yes
5342else
5343 echo "$as_me: failed program was:" >&5
5344sed 's/^/| /' conftest.$ac_ext >&5
5345
mmentovai8c2a4de2006-09-20 16:20:15 +00005346 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +00005347fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005348
5349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005350
5351if test $ac_cv_header_stdc = yes; then
5352 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5353 cat >conftest.$ac_ext <<_ACEOF
5354/* confdefs.h. */
5355_ACEOF
5356cat confdefs.h >>conftest.$ac_ext
5357cat >>conftest.$ac_ext <<_ACEOF
5358/* end confdefs.h. */
5359#include <string.h>
5360
5361_ACEOF
5362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5363 $EGREP "memchr" >/dev/null 2>&1; then
5364 :
5365else
5366 ac_cv_header_stdc=no
5367fi
5368rm -f conftest*
5369
5370fi
5371
5372if test $ac_cv_header_stdc = yes; then
5373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5374 cat >conftest.$ac_ext <<_ACEOF
5375/* confdefs.h. */
5376_ACEOF
5377cat confdefs.h >>conftest.$ac_ext
5378cat >>conftest.$ac_ext <<_ACEOF
5379/* end confdefs.h. */
5380#include <stdlib.h>
5381
5382_ACEOF
5383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5384 $EGREP "free" >/dev/null 2>&1; then
5385 :
5386else
5387 ac_cv_header_stdc=no
5388fi
5389rm -f conftest*
5390
5391fi
5392
5393if test $ac_cv_header_stdc = yes; then
5394 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5395 if test "$cross_compiling" = yes; then
5396 :
5397else
5398 cat >conftest.$ac_ext <<_ACEOF
5399/* confdefs.h. */
5400_ACEOF
5401cat confdefs.h >>conftest.$ac_ext
5402cat >>conftest.$ac_ext <<_ACEOF
5403/* end confdefs.h. */
5404#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +00005405#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +00005406#if ((' ' & 0x0FF) == 0x020)
5407# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5408# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5409#else
5410# define ISLOWER(c) \
5411 (('a' <= (c) && (c) <= 'i') \
5412 || ('j' <= (c) && (c) <= 'r') \
5413 || ('s' <= (c) && (c) <= 'z'))
5414# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5415#endif
5416
5417#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5418int
5419main ()
5420{
5421 int i;
5422 for (i = 0; i < 256; i++)
5423 if (XOR (islower (i), ISLOWER (i))
5424 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +00005425 return 2;
5426 return 0;
brynercb91a2f2006-08-25 21:14:45 +00005427}
5428_ACEOF
5429rm -f conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00005430if { (ac_try="$ac_link"
5431case "(($ac_try" in
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5434esac
5435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5436 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00005440 { (case "(($ac_try" in
5441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442 *) ac_try_echo=$ac_try;;
5443esac
5444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5445 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005446 ac_status=$?
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; }; then
5449 :
5450else
5451 echo "$as_me: program exited with status $ac_status" >&5
5452echo "$as_me: failed program was:" >&5
5453sed 's/^/| /' conftest.$ac_ext >&5
5454
5455( exit $ac_status )
5456ac_cv_header_stdc=no
5457fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005458rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5459fi
5460
5461
brynercb91a2f2006-08-25 21:14:45 +00005462fi
5463fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005464{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5465echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005466if test $ac_cv_header_stdc = yes; then
5467
5468cat >>confdefs.h <<\_ACEOF
5469#define STDC_HEADERS 1
5470_ACEOF
5471
5472fi
5473
5474# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5485 inttypes.h stdint.h unistd.h
5486do
5487as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mmentovai8c2a4de2006-09-20 16:20:15 +00005488{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
brynercb91a2f2006-08-25 21:14:45 +00005491 echo $ECHO_N "(cached) $ECHO_C" >&6
5492else
5493 cat >conftest.$ac_ext <<_ACEOF
5494/* confdefs.h. */
5495_ACEOF
5496cat confdefs.h >>conftest.$ac_ext
5497cat >>conftest.$ac_ext <<_ACEOF
5498/* end confdefs.h. */
5499$ac_includes_default
5500
5501#include <$ac_header>
5502_ACEOF
5503rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00005504if { (ac_try="$ac_compile"
5505case "(($ac_try" in
5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507 *) ac_try_echo=$ac_try;;
5508esac
5509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005511 ac_status=$?
5512 grep -v '^ *+' conftest.er1 >conftest.err
5513 rm -f conftest.er1
5514 cat conftest.err >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00005516 (exit $ac_status); } && {
5517 test -z "$ac_c_werror_flag" ||
5518 test ! -s conftest.err
5519 } && test -s conftest.$ac_objext; then
brynercb91a2f2006-08-25 21:14:45 +00005520 eval "$as_ac_Header=yes"
5521else
5522 echo "$as_me: failed program was:" >&5
5523sed 's/^/| /' conftest.$ac_ext >&5
5524
mmentovai8c2a4de2006-09-20 16:20:15 +00005525 eval "$as_ac_Header=no"
brynercb91a2f2006-08-25 21:14:45 +00005526fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005527
5528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005529fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005530ac_res=`eval echo '${'$as_ac_Header'}'`
5531 { echo "$as_me:$LINENO: result: $ac_res" >&5
5532echo "${ECHO_T}$ac_res" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005533if test `eval echo '${'$as_ac_Header'}'` = yes; then
5534 cat >>confdefs.h <<_ACEOF
5535#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5536_ACEOF
5537
5538fi
5539
5540done
5541
5542
5543
5544for ac_header in dlfcn.h
5545do
5546as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mmentovai8c2a4de2006-09-20 16:20:15 +00005547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
brynercb91a2f2006-08-25 21:14:45 +00005551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005553ac_res=`eval echo '${'$as_ac_Header'}'`
5554 { echo "$as_me:$LINENO: result: $ac_res" >&5
5555echo "${ECHO_T}$ac_res" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005556else
5557 # Is the header compilable?
mmentovai8c2a4de2006-09-20 16:20:15 +00005558{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5559echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005560cat >conftest.$ac_ext <<_ACEOF
5561/* confdefs.h. */
5562_ACEOF
5563cat confdefs.h >>conftest.$ac_ext
5564cat >>conftest.$ac_ext <<_ACEOF
5565/* end confdefs.h. */
5566$ac_includes_default
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
mmentovaiaf3c43f2007-05-17 18:34:37 +00005582 (exit $ac_status); } && {
5583 test -z "$ac_c_werror_flag" ||
5584 test ! -s conftest.err
5585 } && test -s conftest.$ac_objext; then
brynercb91a2f2006-08-25 21:14:45 +00005586 ac_header_compiler=yes
5587else
5588 echo "$as_me: failed program was:" >&5
5589sed 's/^/| /' conftest.$ac_ext >&5
5590
mmentovai8c2a4de2006-09-20 16:20:15 +00005591 ac_header_compiler=no
brynercb91a2f2006-08-25 21:14:45 +00005592fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005593
5594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5595{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5596echo "${ECHO_T}$ac_header_compiler" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005597
5598# Is the header present?
mmentovai8c2a4de2006-09-20 16:20:15 +00005599{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5600echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005601cat >conftest.$ac_ext <<_ACEOF
5602/* confdefs.h. */
5603_ACEOF
5604cat confdefs.h >>conftest.$ac_ext
5605cat >>conftest.$ac_ext <<_ACEOF
5606/* end confdefs.h. */
5607#include <$ac_header>
5608_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005609if { (ac_try="$ac_cpp conftest.$ac_ext"
5610case "(($ac_try" in
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5613esac
5614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005616 ac_status=$?
5617 grep -v '^ *+' conftest.er1 >conftest.err
5618 rm -f conftest.er1
5619 cat conftest.err >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00005621 (exit $ac_status); } >/dev/null && {
5622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5623 test ! -s conftest.err
5624 }; then
brynercb91a2f2006-08-25 21:14:45 +00005625 ac_header_preproc=yes
5626else
5627 echo "$as_me: failed program was:" >&5
5628sed 's/^/| /' conftest.$ac_ext >&5
5629
5630 ac_header_preproc=no
5631fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005632
brynercb91a2f2006-08-25 21:14:45 +00005633rm -f conftest.err conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00005634{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5635echo "${ECHO_T}$ac_header_preproc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005636
5637# So? What about this header?
5638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5639 yes:no: )
5640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5644 ac_header_preproc=yes
5645 ;;
5646 no:yes:* )
5647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5650echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5654echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00005659 ( cat <<\_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00005660## ------------------------------------ ##
5661## Report this to opensource@google.com ##
5662## ------------------------------------ ##
5663_ASBOX
mmentovai8c2a4de2006-09-20 16:20:15 +00005664 ) | sed "s/^/$as_me: WARNING: /" >&2
brynercb91a2f2006-08-25 21:14:45 +00005665 ;;
5666esac
mmentovai8c2a4de2006-09-20 16:20:15 +00005667{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
brynercb91a2f2006-08-25 21:14:45 +00005670 echo $ECHO_N "(cached) $ECHO_C" >&6
5671else
5672 eval "$as_ac_Header=\$ac_header_preproc"
5673fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005674ac_res=`eval echo '${'$as_ac_Header'}'`
5675 { echo "$as_me:$LINENO: result: $ac_res" >&5
5676echo "${ECHO_T}$ac_res" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005677
5678fi
5679if test `eval echo '${'$as_ac_Header'}'` = yes; then
5680 cat >>confdefs.h <<_ACEOF
5681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5682_ACEOF
5683
5684fi
5685
5686done
5687
mmentovai8c2a4de2006-09-20 16:20:15 +00005688
5689
5690if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5691 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5692 (test "X$CXX" != "Xg++"))) ; then
5693 ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00005694ac_cpp='$CXXCPP $CPPFLAGS'
5695ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5696ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5697ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00005698{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5699echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005700if test -z "$CXXCPP"; then
5701 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5703else
5704 # Double quotes because CXXCPP needs to be expanded
5705 for CXXCPP in "$CXX -E" "/lib/cpp"
5706 do
5707 ac_preproc_ok=false
5708for ac_cxx_preproc_warn_flag in '' yes
5709do
5710 # Use a header file that comes with gcc, so configuring glibc
5711 # with a fresh cross-compiler works.
5712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5713 # <limits.h> exists even on freestanding compilers.
5714 # On the NeXT, cc -E runs the code through the compiler's parser,
5715 # not just through cpp. "Syntax error" is here to catch this case.
5716 cat >conftest.$ac_ext <<_ACEOF
5717/* confdefs.h. */
5718_ACEOF
5719cat confdefs.h >>conftest.$ac_ext
5720cat >>conftest.$ac_ext <<_ACEOF
5721/* end confdefs.h. */
5722#ifdef __STDC__
5723# include <limits.h>
5724#else
5725# include <assert.h>
5726#endif
5727 Syntax error
5728_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005729if { (ac_try="$ac_cpp conftest.$ac_ext"
5730case "(($ac_try" in
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5733esac
5734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005736 ac_status=$?
5737 grep -v '^ *+' conftest.er1 >conftest.err
5738 rm -f conftest.er1
5739 cat conftest.err >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00005741 (exit $ac_status); } >/dev/null && {
5742 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5743 test ! -s conftest.err
5744 }; then
brynercb91a2f2006-08-25 21:14:45 +00005745 :
5746else
5747 echo "$as_me: failed program was:" >&5
5748sed 's/^/| /' conftest.$ac_ext >&5
5749
5750 # Broken: fails on valid input.
5751continue
5752fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005753
brynercb91a2f2006-08-25 21:14:45 +00005754rm -f conftest.err conftest.$ac_ext
5755
mmentovai8c2a4de2006-09-20 16:20:15 +00005756 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00005757 # can be detected and how.
5758 cat >conftest.$ac_ext <<_ACEOF
5759/* confdefs.h. */
5760_ACEOF
5761cat confdefs.h >>conftest.$ac_ext
5762cat >>conftest.$ac_ext <<_ACEOF
5763/* end confdefs.h. */
5764#include <ac_nonexistent.h>
5765_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005766if { (ac_try="$ac_cpp conftest.$ac_ext"
5767case "(($ac_try" in
5768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769 *) ac_try_echo=$ac_try;;
5770esac
5771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005773 ac_status=$?
5774 grep -v '^ *+' conftest.er1 >conftest.err
5775 rm -f conftest.er1
5776 cat conftest.err >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00005778 (exit $ac_status); } >/dev/null && {
5779 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5780 test ! -s conftest.err
5781 }; then
brynercb91a2f2006-08-25 21:14:45 +00005782 # Broken: success on invalid input.
5783continue
5784else
5785 echo "$as_me: failed program was:" >&5
5786sed 's/^/| /' conftest.$ac_ext >&5
5787
5788 # Passes both tests.
5789ac_preproc_ok=:
5790break
5791fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005792
brynercb91a2f2006-08-25 21:14:45 +00005793rm -f conftest.err conftest.$ac_ext
5794
5795done
5796# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5797rm -f conftest.err conftest.$ac_ext
5798if $ac_preproc_ok; then
5799 break
5800fi
5801
5802 done
5803 ac_cv_prog_CXXCPP=$CXXCPP
5804
5805fi
5806 CXXCPP=$ac_cv_prog_CXXCPP
5807else
5808 ac_cv_prog_CXXCPP=$CXXCPP
5809fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005810{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5811echo "${ECHO_T}$CXXCPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005812ac_preproc_ok=false
5813for ac_cxx_preproc_warn_flag in '' yes
5814do
5815 # Use a header file that comes with gcc, so configuring glibc
5816 # with a fresh cross-compiler works.
5817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5818 # <limits.h> exists even on freestanding compilers.
5819 # On the NeXT, cc -E runs the code through the compiler's parser,
5820 # not just through cpp. "Syntax error" is here to catch this case.
5821 cat >conftest.$ac_ext <<_ACEOF
5822/* confdefs.h. */
5823_ACEOF
5824cat confdefs.h >>conftest.$ac_ext
5825cat >>conftest.$ac_ext <<_ACEOF
5826/* end confdefs.h. */
5827#ifdef __STDC__
5828# include <limits.h>
5829#else
5830# include <assert.h>
5831#endif
5832 Syntax error
5833_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005834if { (ac_try="$ac_cpp conftest.$ac_ext"
5835case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838esac
5839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00005846 (exit $ac_status); } >/dev/null && {
5847 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5848 test ! -s conftest.err
5849 }; then
brynercb91a2f2006-08-25 21:14:45 +00005850 :
5851else
5852 echo "$as_me: failed program was:" >&5
5853sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 # Broken: fails on valid input.
5856continue
5857fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005858
brynercb91a2f2006-08-25 21:14:45 +00005859rm -f conftest.err conftest.$ac_ext
5860
mmentovai8c2a4de2006-09-20 16:20:15 +00005861 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00005862 # can be detected and how.
5863 cat >conftest.$ac_ext <<_ACEOF
5864/* confdefs.h. */
5865_ACEOF
5866cat confdefs.h >>conftest.$ac_ext
5867cat >>conftest.$ac_ext <<_ACEOF
5868/* end confdefs.h. */
5869#include <ac_nonexistent.h>
5870_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005871if { (ac_try="$ac_cpp conftest.$ac_ext"
5872case "(($ac_try" in
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5875esac
5876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005878 ac_status=$?
5879 grep -v '^ *+' conftest.er1 >conftest.err
5880 rm -f conftest.er1
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00005883 (exit $ac_status); } >/dev/null && {
5884 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5885 test ! -s conftest.err
5886 }; then
brynercb91a2f2006-08-25 21:14:45 +00005887 # Broken: success on invalid input.
5888continue
5889else
5890 echo "$as_me: failed program was:" >&5
5891sed 's/^/| /' conftest.$ac_ext >&5
5892
5893 # Passes both tests.
5894ac_preproc_ok=:
5895break
5896fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005897
brynercb91a2f2006-08-25 21:14:45 +00005898rm -f conftest.err conftest.$ac_ext
5899
5900done
5901# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5902rm -f conftest.err conftest.$ac_ext
5903if $ac_preproc_ok; then
5904 :
5905else
5906 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5907See \`config.log' for more details." >&5
5908echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5909See \`config.log' for more details." >&2;}
5910 { (exit 1); exit 1; }; }
5911fi
5912
mmentovai8c2a4de2006-09-20 16:20:15 +00005913ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00005914ac_cpp='$CXXCPP $CPPFLAGS'
5915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5918
mmentovai8c2a4de2006-09-20 16:20:15 +00005919fi
5920
5921
5922ac_ext=f
5923ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5924ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5925ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5926if test -n "$ac_tool_prefix"; then
mmentovaiaf3c43f2007-05-17 18:34:37 +00005927 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
mmentovai8c2a4de2006-09-20 16:20:15 +00005928 do
5929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5930set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5931{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5933if test "${ac_cv_prog_F77+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5935else
5936 if test -n "$F77"; then
5937 ac_cv_prog_F77="$F77" # Let the user override the test.
5938else
5939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940for as_dir in $PATH
5941do
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00005945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005946 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 break 2
5949 fi
5950done
5951done
5952IFS=$as_save_IFS
5953
5954fi
5955fi
5956F77=$ac_cv_prog_F77
5957if test -n "$F77"; then
5958 { echo "$as_me:$LINENO: result: $F77" >&5
5959echo "${ECHO_T}$F77" >&6; }
5960else
5961 { echo "$as_me:$LINENO: result: no" >&5
5962echo "${ECHO_T}no" >&6; }
5963fi
5964
5965
5966 test -n "$F77" && break
5967 done
5968fi
5969if test -z "$F77"; then
5970 ac_ct_F77=$F77
mmentovaiaf3c43f2007-05-17 18:34:37 +00005971 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
mmentovai8c2a4de2006-09-20 16:20:15 +00005972do
5973 # Extract the first word of "$ac_prog", so it can be a program name with args.
5974set dummy $ac_prog; ac_word=$2
5975{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5977if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5979else
5980 if test -n "$ac_ct_F77"; then
5981 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5982else
5983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984for as_dir in $PATH
5985do
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00005989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005990 ac_cv_prog_ac_ct_F77="$ac_prog"
5991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 break 2
5993 fi
5994done
5995done
5996IFS=$as_save_IFS
5997
5998fi
5999fi
6000ac_ct_F77=$ac_cv_prog_ac_ct_F77
6001if test -n "$ac_ct_F77"; then
6002 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6003echo "${ECHO_T}$ac_ct_F77" >&6; }
6004else
6005 { echo "$as_me:$LINENO: result: no" >&5
6006echo "${ECHO_T}no" >&6; }
6007fi
6008
6009
6010 test -n "$ac_ct_F77" && break
6011done
6012
6013 if test "x$ac_ct_F77" = x; then
6014 F77=""
6015 else
6016 case $cross_compiling:$ac_tool_warned in
6017yes:)
6018{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6019whose name does not start with the host triplet. If you think this
6020configuration is useful to you, please write to autoconf@gnu.org." >&5
6021echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6022whose name does not start with the host triplet. If you think this
6023configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6024ac_tool_warned=yes ;;
6025esac
6026 F77=$ac_ct_F77
6027 fi
6028fi
6029
6030
6031# Provide some information about the compiler.
6032echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6033ac_compiler=`set X $ac_compile; echo $2`
6034{ (ac_try="$ac_compiler --version >&5"
6035case "(($ac_try" in
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6038esac
6039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_compiler --version >&5") 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }
6044{ (ac_try="$ac_compiler -v >&5"
6045case "(($ac_try" in
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6048esac
6049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_compiler -v >&5") 2>&5
6051 ac_status=$?
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }
6054{ (ac_try="$ac_compiler -V >&5"
6055case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6058esac
6059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_compiler -V >&5") 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }
6064rm -f a.out
6065
6066# If we don't use `.F' as extension, the preprocessor is not run on the
6067# input file. (Note that this only needs to work for GNU compilers.)
6068ac_save_ext=$ac_ext
6069ac_ext=F
6070{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6071echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6072if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6074else
6075 cat >conftest.$ac_ext <<_ACEOF
6076 program main
6077#ifndef __GNUC__
6078 choke me
6079#endif
6080
6081 end
6082_ACEOF
6083rm -f conftest.$ac_objext
6084if { (ac_try="$ac_compile"
6085case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6088esac
6089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_compile") 2>conftest.er1
6091 ac_status=$?
6092 grep -v '^ *+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00006096 (exit $ac_status); } && {
6097 test -z "$ac_f77_werror_flag" ||
6098 test ! -s conftest.err
6099 } && test -s conftest.$ac_objext; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006100 ac_compiler_gnu=yes
6101else
6102 echo "$as_me: failed program was:" >&5
6103sed 's/^/| /' conftest.$ac_ext >&5
6104
6105 ac_compiler_gnu=no
6106fi
6107
6108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6110
6111fi
6112{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6113echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6114ac_ext=$ac_save_ext
6115ac_test_FFLAGS=${FFLAGS+set}
6116ac_save_FFLAGS=$FFLAGS
6117FFLAGS=
6118{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6119echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6120if test "${ac_cv_prog_f77_g+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122else
6123 FFLAGS=-g
6124cat >conftest.$ac_ext <<_ACEOF
6125 program main
6126
6127 end
6128_ACEOF
6129rm -f conftest.$ac_objext
6130if { (ac_try="$ac_compile"
6131case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6134esac
6135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_compile") 2>conftest.er1
6137 ac_status=$?
6138 grep -v '^ *+' conftest.er1 >conftest.err
6139 rm -f conftest.er1
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00006142 (exit $ac_status); } && {
6143 test -z "$ac_f77_werror_flag" ||
6144 test ! -s conftest.err
6145 } && test -s conftest.$ac_objext; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006146 ac_cv_prog_f77_g=yes
6147else
6148 echo "$as_me: failed program was:" >&5
6149sed 's/^/| /' conftest.$ac_ext >&5
6150
6151 ac_cv_prog_f77_g=no
6152fi
6153
6154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155
6156fi
6157{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6158echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6159if test "$ac_test_FFLAGS" = set; then
6160 FFLAGS=$ac_save_FFLAGS
6161elif test $ac_cv_prog_f77_g = yes; then
6162 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6163 FFLAGS="-g -O2"
6164 else
6165 FFLAGS="-g"
6166 fi
6167else
6168 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6169 FFLAGS="-O2"
6170 else
6171 FFLAGS=
6172 fi
6173fi
6174
6175G77=`test $ac_compiler_gnu = yes && echo yes`
6176ac_ext=c
6177ac_cpp='$CPP $CPPFLAGS'
6178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180ac_compiler_gnu=$ac_cv_c_compiler_gnu
brynercb91a2f2006-08-25 21:14:45 +00006181
6182
6183
6184# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
brynercb91a2f2006-08-25 21:14:45 +00006185# find the maximum length of command line arguments
mmentovai8c2a4de2006-09-20 16:20:15 +00006186{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6187echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006188if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190else
6191 i=0
6192 teststring="ABCD"
6193
6194 case $build_os in
6195 msdosdjgpp*)
6196 # On DJGPP, this test can blow up pretty badly due to problems in libc
6197 # (any single argument exceeding 2000 bytes causes a buffer overrun
6198 # during glob expansion). Even if it were fixed, the result of this
6199 # check would be larger than it should be.
6200 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6201 ;;
6202
6203 gnu*)
6204 # Under GNU Hurd, this test is not required because there is
6205 # no limit to the length of command line arguments.
6206 # Libtool will interpret -1 as no limit whatsoever
6207 lt_cv_sys_max_cmd_len=-1;
6208 ;;
6209
6210 cygwin* | mingw*)
6211 # On Win9x/ME, this test blows up -- it succeeds, but takes
6212 # about 5 minutes as the teststring grows exponentially.
6213 # Worse, since 9x/ME are not pre-emptively multitasking,
6214 # you end up with a "frozen" computer, even though with patience
6215 # the test eventually succeeds (with a max line length of 256k).
6216 # Instead, let's just punt: use the minimum linelength reported by
6217 # all of the supported platforms: 8192 (on NT/2K/XP).
6218 lt_cv_sys_max_cmd_len=8192;
6219 ;;
6220
6221 amigaos*)
6222 # On AmigaOS with pdksh, this test takes hours, literally.
6223 # So we just punt and use a minimum line length of 8192.
6224 lt_cv_sys_max_cmd_len=8192;
6225 ;;
6226
mmentovai8c2a4de2006-09-20 16:20:15 +00006227 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6228 # This has been around since 386BSD, at least. Likely further.
6229 if test -x /sbin/sysctl; then
6230 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6231 elif test -x /usr/sbin/sysctl; then
6232 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6233 else
6234 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6235 fi
6236 # And add a safety zone
6237 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6239 ;;
6240
6241 interix*)
6242 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6243 lt_cv_sys_max_cmd_len=196608
6244 ;;
6245
6246 osf*)
6247 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6248 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6249 # nice to cause kernel panics so lets avoid the loop below.
6250 # First set a reasonable default.
6251 lt_cv_sys_max_cmd_len=16384
6252 #
6253 if test -x /sbin/sysconfig; then
6254 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6255 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6256 esac
6257 fi
6258 ;;
6259 sco3.2v5*)
6260 lt_cv_sys_max_cmd_len=102400
6261 ;;
6262 sysv5* | sco5v6* | sysv4.2uw2*)
6263 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6264 if test -n "$kargmax"; then
6265 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6266 else
6267 lt_cv_sys_max_cmd_len=32768
6268 fi
6269 ;;
6270 *)
ted.mielczarek1adb1842009-12-21 13:12:20 +00006271 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6272 if test -n "$lt_cv_sys_max_cmd_len"; then
6273 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6275 else
6276 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6277 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
brynercb91a2f2006-08-25 21:14:45 +00006278 = "XX$teststring") >/dev/null 2>&1 &&
ted.mielczarek1adb1842009-12-21 13:12:20 +00006279 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6280 lt_cv_sys_max_cmd_len=$new_result &&
6281 test $i != 17 # 1/2 MB should be enough
6282 do
6283 i=`expr $i + 1`
6284 teststring=$teststring$teststring
6285 done
6286 teststring=
6287 # Add a significant safety factor because C++ compilers can tack on massive
6288 # amounts of additional arguments before passing them to the linker.
6289 # It appears as though 1/2 is a usable value.
6290 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6291 fi
brynercb91a2f2006-08-25 21:14:45 +00006292 ;;
6293 esac
6294
6295fi
6296
6297if test -n $lt_cv_sys_max_cmd_len ; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006298 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6299echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006300else
mmentovai8c2a4de2006-09-20 16:20:15 +00006301 { echo "$as_me:$LINENO: result: none" >&5
6302echo "${ECHO_T}none" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006303fi
6304
6305
6306
6307
ted.mielczarek1adb1842009-12-21 13:12:20 +00006308
brynercb91a2f2006-08-25 21:14:45 +00006309# Check for command to grab the raw symbol name followed by C symbol from nm.
mmentovai8c2a4de2006-09-20 16:20:15 +00006310{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6311echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006312if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6314else
6315
6316# These are sane defaults that work on at least a few old systems.
6317# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6318
6319# Character class describing NM global symbol codes.
6320symcode='[BCDEGRST]'
6321
6322# Regexp to match symbols that can be accessed directly from C.
6323sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6324
brynercb91a2f2006-08-25 21:14:45 +00006325# Transform an extracted symbol line into a proper C declaration
6326lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6327
6328# Transform an extracted symbol line into symbol name and symbol address
6329lt_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'"
6330
6331# Define system-specific variables.
6332case $host_os in
6333aix*)
6334 symcode='[BCDT]'
6335 ;;
6336cygwin* | mingw* | pw32*)
6337 symcode='[ABCDGISTW]'
6338 ;;
6339hpux*) # Its linker distinguishes data from code symbols
6340 if test "$host_cpu" = ia64; then
6341 symcode='[ABCDEGRST]'
6342 fi
6343 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6344 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'"
6345 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +00006346linux* | k*bsd*-gnu)
mmentovai8c2a4de2006-09-20 16:20:15 +00006347 if test "$host_cpu" = ia64; then
6348 symcode='[ABCDGIRSTW]'
6349 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6350 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'"
6351 fi
6352 ;;
brynercb91a2f2006-08-25 21:14:45 +00006353irix* | nonstopux*)
6354 symcode='[BCDEGRST]'
6355 ;;
6356osf*)
6357 symcode='[BCDEGQRST]'
6358 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006359solaris*)
brynercb91a2f2006-08-25 21:14:45 +00006360 symcode='[BDRT]'
6361 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006362sco3.2v5*)
6363 symcode='[DT]'
6364 ;;
6365sysv4.2uw2*)
6366 symcode='[DT]'
6367 ;;
6368sysv5* | sco5v6* | unixware* | OpenUNIX*)
6369 symcode='[ABDT]'
6370 ;;
brynercb91a2f2006-08-25 21:14:45 +00006371sysv4)
6372 symcode='[DFNSTU]'
6373 ;;
6374esac
6375
6376# Handle CRLF in mingw tool chain
6377opt_cr=
6378case $build_os in
6379mingw*)
6380 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6381 ;;
6382esac
6383
6384# If we're using GNU nm, then use its standard symbol codes.
6385case `$NM -V 2>&1` in
6386*GNU* | *'with BFD'*)
6387 symcode='[ABCDGIRSTW]' ;;
6388esac
6389
6390# Try without a prefix undercore, then with it.
6391for ac_symprfx in "" "_"; do
6392
mmentovai8c2a4de2006-09-20 16:20:15 +00006393 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6394 symxfrm="\\1 $ac_symprfx\\2 \\2"
6395
brynercb91a2f2006-08-25 21:14:45 +00006396 # Write the raw and C identifiers.
mmentovai8c2a4de2006-09-20 16:20:15 +00006397 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 +00006398
6399 # Check to see that the pipe works correctly.
6400 pipe_works=no
6401
6402 rm -f conftest*
6403 cat > conftest.$ac_ext <<EOF
6404#ifdef __cplusplus
6405extern "C" {
6406#endif
6407char nm_test_var;
6408void nm_test_func(){}
6409#ifdef __cplusplus
6410}
6411#endif
6412int main(){nm_test_var='a';nm_test_func();return(0);}
6413EOF
6414
6415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6416 (eval $ac_compile) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; then
6420 # Now try to grab the symbols.
6421 nlist=conftest.nm
6422 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6423 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } && test -s "$nlist"; then
6427 # Try sorting and uniquifying the output.
6428 if sort "$nlist" | uniq > "$nlist"T; then
6429 mv -f "$nlist"T "$nlist"
6430 else
6431 rm -f "$nlist"T
6432 fi
6433
6434 # Make sure that we snagged all the symbols we need.
6435 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6436 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6437 cat <<EOF > conftest.$ac_ext
6438#ifdef __cplusplus
6439extern "C" {
6440#endif
6441
6442EOF
6443 # Now generate the symbol file.
6444 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6445
6446 cat <<EOF >> conftest.$ac_ext
6447#if defined (__STDC__) && __STDC__
6448# define lt_ptr_t void *
6449#else
6450# define lt_ptr_t char *
6451# define const
6452#endif
6453
6454/* The mapping between symbol names and symbols. */
6455const struct {
6456 const char *name;
6457 lt_ptr_t address;
6458}
6459lt_preloaded_symbols[] =
6460{
6461EOF
6462 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6463 cat <<\EOF >> conftest.$ac_ext
6464 {0, (lt_ptr_t) 0}
6465};
6466
6467#ifdef __cplusplus
6468}
6469#endif
6470EOF
6471 # Now try linking the two files.
6472 mv conftest.$ac_objext conftstm.$ac_objext
6473 lt_save_LIBS="$LIBS"
6474 lt_save_CFLAGS="$CFLAGS"
6475 LIBS="conftstm.$ac_objext"
6476 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6478 (eval $ac_link) 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6482 pipe_works=yes
6483 fi
6484 LIBS="$lt_save_LIBS"
6485 CFLAGS="$lt_save_CFLAGS"
6486 else
6487 echo "cannot find nm_test_func in $nlist" >&5
6488 fi
6489 else
6490 echo "cannot find nm_test_var in $nlist" >&5
6491 fi
6492 else
6493 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6494 fi
6495 else
6496 echo "$progname: failed program was:" >&5
6497 cat conftest.$ac_ext >&5
6498 fi
ted.mielczarek1adb1842009-12-21 13:12:20 +00006499 rm -rf conftest* conftst*
brynercb91a2f2006-08-25 21:14:45 +00006500
6501 # Do not use the global_symbol_pipe unless it works.
6502 if test "$pipe_works" = yes; then
6503 break
6504 else
6505 lt_cv_sys_global_symbol_pipe=
6506 fi
6507done
6508
6509fi
6510
6511if test -z "$lt_cv_sys_global_symbol_pipe"; then
6512 lt_cv_sys_global_symbol_to_cdecl=
6513fi
6514if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006515 { echo "$as_me:$LINENO: result: failed" >&5
6516echo "${ECHO_T}failed" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006517else
mmentovai8c2a4de2006-09-20 16:20:15 +00006518 { echo "$as_me:$LINENO: result: ok" >&5
6519echo "${ECHO_T}ok" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006520fi
6521
mmentovai8c2a4de2006-09-20 16:20:15 +00006522{ echo "$as_me:$LINENO: checking for objdir" >&5
6523echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006524if test "${lt_cv_objdir+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526else
6527 rm -f .libs 2>/dev/null
6528mkdir .libs 2>/dev/null
6529if test -d .libs; then
6530 lt_cv_objdir=.libs
6531else
6532 # MS-DOS does not allow filenames that begin with a dot.
6533 lt_cv_objdir=_libs
6534fi
6535rmdir .libs 2>/dev/null
6536fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006537{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6538echo "${ECHO_T}$lt_cv_objdir" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006539objdir=$lt_cv_objdir
6540
6541
6542
6543
6544
6545case $host_os in
6546aix3*)
6547 # AIX sometimes has problems with the GCC collect2 program. For some
6548 # reason, if we set the COLLECT_NAMES environment variable, the problems
6549 # vanish in a puff of smoke.
6550 if test "X${COLLECT_NAMES+set}" != Xset; then
6551 COLLECT_NAMES=
6552 export COLLECT_NAMES
6553 fi
6554 ;;
6555esac
6556
6557# Sed substitution that helps us do robust quoting. It backslashifies
6558# metacharacters that are still active within double-quoted strings.
mmentovai8c2a4de2006-09-20 16:20:15 +00006559Xsed='sed -e 1s/^X//'
brynercb91a2f2006-08-25 21:14:45 +00006560sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6561
6562# Same as above, but do not quote variable references.
6563double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6564
6565# Sed substitution to delay expansion of an escaped shell variable in a
6566# double_quote_subst'ed string.
6567delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6568
6569# Sed substitution to avoid accidental globbing in evaled expressions
6570no_glob_subst='s/\*/\\\*/g'
6571
6572# Constants:
6573rm="rm -f"
6574
6575# Global variables:
6576default_ofile=libtool
6577can_build_shared=yes
6578
mmentovai8c2a4de2006-09-20 16:20:15 +00006579# All known linkers require a `.a' archive for static linking (except MSVC,
brynercb91a2f2006-08-25 21:14:45 +00006580# which needs '.lib').
6581libext=a
6582ltmain="$ac_aux_dir/ltmain.sh"
6583ofile="$default_ofile"
6584with_gnu_ld="$lt_cv_prog_gnu_ld"
6585
6586if test -n "$ac_tool_prefix"; then
6587 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6588set dummy ${ac_tool_prefix}ar; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006589{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006591if test "${ac_cv_prog_AR+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6593else
6594 if test -n "$AR"; then
6595 ac_cv_prog_AR="$AR" # Let the user override the test.
6596else
6597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598for as_dir in $PATH
6599do
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00006603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00006604 ac_cv_prog_AR="${ac_tool_prefix}ar"
6605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 break 2
6607 fi
6608done
6609done
mmentovai8c2a4de2006-09-20 16:20:15 +00006610IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006611
6612fi
6613fi
6614AR=$ac_cv_prog_AR
6615if test -n "$AR"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006616 { echo "$as_me:$LINENO: result: $AR" >&5
6617echo "${ECHO_T}$AR" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006618else
mmentovai8c2a4de2006-09-20 16:20:15 +00006619 { echo "$as_me:$LINENO: result: no" >&5
6620echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006621fi
6622
mmentovai8c2a4de2006-09-20 16:20:15 +00006623
brynercb91a2f2006-08-25 21:14:45 +00006624fi
6625if test -z "$ac_cv_prog_AR"; then
6626 ac_ct_AR=$AR
6627 # Extract the first word of "ar", so it can be a program name with args.
6628set dummy ar; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006631if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6633else
6634 if test -n "$ac_ct_AR"; then
6635 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6636else
6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638for as_dir in $PATH
6639do
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00006643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00006644 ac_cv_prog_ac_ct_AR="ar"
6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6647 fi
6648done
6649done
mmentovai8c2a4de2006-09-20 16:20:15 +00006650IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006651
brynercb91a2f2006-08-25 21:14:45 +00006652fi
6653fi
6654ac_ct_AR=$ac_cv_prog_ac_ct_AR
6655if test -n "$ac_ct_AR"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006656 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6657echo "${ECHO_T}$ac_ct_AR" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006658else
mmentovai8c2a4de2006-09-20 16:20:15 +00006659 { echo "$as_me:$LINENO: result: no" >&5
6660echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006661fi
6662
mmentovai8c2a4de2006-09-20 16:20:15 +00006663 if test "x$ac_ct_AR" = x; then
6664 AR="false"
6665 else
6666 case $cross_compiling:$ac_tool_warned in
6667yes:)
6668{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6669whose name does not start with the host triplet. If you think this
6670configuration is useful to you, please write to autoconf@gnu.org." >&5
6671echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6672whose name does not start with the host triplet. If you think this
6673configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6674ac_tool_warned=yes ;;
6675esac
6676 AR=$ac_ct_AR
6677 fi
brynercb91a2f2006-08-25 21:14:45 +00006678else
6679 AR="$ac_cv_prog_AR"
6680fi
6681
6682if test -n "$ac_tool_prefix"; then
6683 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6684set dummy ${ac_tool_prefix}ranlib; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006685{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006687if test "${ac_cv_prog_RANLIB+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6689else
6690 if test -n "$RANLIB"; then
6691 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6692else
6693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694for as_dir in $PATH
6695do
6696 IFS=$as_save_IFS
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00006699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00006700 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 break 2
6703 fi
6704done
6705done
mmentovai8c2a4de2006-09-20 16:20:15 +00006706IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006707
6708fi
6709fi
6710RANLIB=$ac_cv_prog_RANLIB
6711if test -n "$RANLIB"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006712 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6713echo "${ECHO_T}$RANLIB" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006714else
mmentovai8c2a4de2006-09-20 16:20:15 +00006715 { echo "$as_me:$LINENO: result: no" >&5
6716echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006717fi
6718
mmentovai8c2a4de2006-09-20 16:20:15 +00006719
brynercb91a2f2006-08-25 21:14:45 +00006720fi
6721if test -z "$ac_cv_prog_RANLIB"; then
6722 ac_ct_RANLIB=$RANLIB
6723 # Extract the first word of "ranlib", so it can be a program name with args.
6724set dummy ranlib; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006725{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006727if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6729else
6730 if test -n "$ac_ct_RANLIB"; then
6731 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6732else
6733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734for as_dir in $PATH
6735do
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00006739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00006740 ac_cv_prog_ac_ct_RANLIB="ranlib"
6741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6743 fi
6744done
6745done
mmentovai8c2a4de2006-09-20 16:20:15 +00006746IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006747
brynercb91a2f2006-08-25 21:14:45 +00006748fi
6749fi
6750ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6751if test -n "$ac_ct_RANLIB"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006752 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6753echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006754else
mmentovai8c2a4de2006-09-20 16:20:15 +00006755 { echo "$as_me:$LINENO: result: no" >&5
6756echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006757fi
6758
mmentovai8c2a4de2006-09-20 16:20:15 +00006759 if test "x$ac_ct_RANLIB" = x; then
6760 RANLIB=":"
6761 else
6762 case $cross_compiling:$ac_tool_warned in
6763yes:)
6764{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6765whose name does not start with the host triplet. If you think this
6766configuration is useful to you, please write to autoconf@gnu.org." >&5
6767echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6768whose name does not start with the host triplet. If you think this
6769configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6770ac_tool_warned=yes ;;
6771esac
6772 RANLIB=$ac_ct_RANLIB
6773 fi
brynercb91a2f2006-08-25 21:14:45 +00006774else
6775 RANLIB="$ac_cv_prog_RANLIB"
6776fi
6777
6778if test -n "$ac_tool_prefix"; then
6779 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6780set dummy ${ac_tool_prefix}strip; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006781{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006783if test "${ac_cv_prog_STRIP+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6785else
6786 if test -n "$STRIP"; then
6787 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6788else
6789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790for as_dir in $PATH
6791do
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00006795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00006796 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 break 2
6799 fi
6800done
6801done
mmentovai8c2a4de2006-09-20 16:20:15 +00006802IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006803
6804fi
6805fi
6806STRIP=$ac_cv_prog_STRIP
6807if test -n "$STRIP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006808 { echo "$as_me:$LINENO: result: $STRIP" >&5
6809echo "${ECHO_T}$STRIP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006810else
mmentovai8c2a4de2006-09-20 16:20:15 +00006811 { echo "$as_me:$LINENO: result: no" >&5
6812echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006813fi
6814
mmentovai8c2a4de2006-09-20 16:20:15 +00006815
brynercb91a2f2006-08-25 21:14:45 +00006816fi
6817if test -z "$ac_cv_prog_STRIP"; then
6818 ac_ct_STRIP=$STRIP
6819 # Extract the first word of "strip", so it can be a program name with args.
6820set dummy strip; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006823if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825else
6826 if test -n "$ac_ct_STRIP"; then
6827 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6828else
6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00006835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00006836 ac_cv_prog_ac_ct_STRIP="strip"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840done
6841done
mmentovai8c2a4de2006-09-20 16:20:15 +00006842IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006843
brynercb91a2f2006-08-25 21:14:45 +00006844fi
6845fi
6846ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6847if test -n "$ac_ct_STRIP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006848 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6849echo "${ECHO_T}$ac_ct_STRIP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006850else
mmentovai8c2a4de2006-09-20 16:20:15 +00006851 { echo "$as_me:$LINENO: result: no" >&5
6852echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006853fi
6854
mmentovai8c2a4de2006-09-20 16:20:15 +00006855 if test "x$ac_ct_STRIP" = x; then
6856 STRIP=":"
6857 else
6858 case $cross_compiling:$ac_tool_warned in
6859yes:)
6860{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6861whose name does not start with the host triplet. If you think this
6862configuration is useful to you, please write to autoconf@gnu.org." >&5
6863echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6864whose name does not start with the host triplet. If you think this
6865configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6866ac_tool_warned=yes ;;
6867esac
6868 STRIP=$ac_ct_STRIP
6869 fi
brynercb91a2f2006-08-25 21:14:45 +00006870else
6871 STRIP="$ac_cv_prog_STRIP"
6872fi
6873
6874
6875old_CC="$CC"
6876old_CFLAGS="$CFLAGS"
6877
6878# Set sane defaults for various variables
6879test -z "$AR" && AR=ar
6880test -z "$AR_FLAGS" && AR_FLAGS=cru
6881test -z "$AS" && AS=as
6882test -z "$CC" && CC=cc
6883test -z "$LTCC" && LTCC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00006884test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
brynercb91a2f2006-08-25 21:14:45 +00006885test -z "$DLLTOOL" && DLLTOOL=dlltool
6886test -z "$LD" && LD=ld
6887test -z "$LN_S" && LN_S="ln -s"
6888test -z "$MAGIC_CMD" && MAGIC_CMD=file
6889test -z "$NM" && NM=nm
6890test -z "$SED" && SED=sed
6891test -z "$OBJDUMP" && OBJDUMP=objdump
6892test -z "$RANLIB" && RANLIB=:
6893test -z "$STRIP" && STRIP=:
6894test -z "$ac_objext" && ac_objext=o
6895
6896# Determine commands to create old-style static archives.
ted.mielczarek1adb1842009-12-21 13:12:20 +00006897old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
brynercb91a2f2006-08-25 21:14:45 +00006898old_postinstall_cmds='chmod 644 $oldlib'
6899old_postuninstall_cmds=
6900
6901if test -n "$RANLIB"; then
6902 case $host_os in
6903 openbsd*)
mmentovai8c2a4de2006-09-20 16:20:15 +00006904 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
brynercb91a2f2006-08-25 21:14:45 +00006905 ;;
6906 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00006907 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
brynercb91a2f2006-08-25 21:14:45 +00006908 ;;
6909 esac
6910 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6911fi
6912
mmentovai8c2a4de2006-09-20 16:20:15 +00006913for cc_temp in $compiler""; do
6914 case $cc_temp in
6915 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6916 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6917 \-*) ;;
6918 *) break;;
6919 esac
6920done
6921cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6922
6923
brynercb91a2f2006-08-25 21:14:45 +00006924# Only perform the check for file, if the check method requires it
6925case $deplibs_check_method in
6926file_magic*)
6927 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006928 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6929echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006930if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6932else
6933 case $MAGIC_CMD in
6934[\\/*] | ?:[\\/]*)
6935 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6936 ;;
6937*)
6938 lt_save_MAGIC_CMD="$MAGIC_CMD"
6939 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6940 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6941 for ac_dir in $ac_dummy; do
6942 IFS="$lt_save_ifs"
6943 test -z "$ac_dir" && ac_dir=.
6944 if test -f $ac_dir/${ac_tool_prefix}file; then
6945 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6946 if test -n "$file_magic_test_file"; then
6947 case $deplibs_check_method in
6948 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00006949 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00006950 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6951 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6952 $EGREP "$file_magic_regex" > /dev/null; then
6953 :
6954 else
6955 cat <<EOF 1>&2
6956
6957*** Warning: the command libtool uses to detect shared libraries,
6958*** $file_magic_cmd, produces output that libtool cannot recognize.
6959*** The result is that libtool may fail to recognize shared libraries
6960*** as such. This will affect the creation of libtool libraries that
6961*** depend on shared libraries, but programs linked with such libtool
6962*** libraries will work regardless of this problem. Nevertheless, you
6963*** may want to report the problem to your system manager and/or to
6964*** bug-libtool@gnu.org
6965
6966EOF
6967 fi ;;
6968 esac
6969 fi
6970 break
6971 fi
6972 done
6973 IFS="$lt_save_ifs"
6974 MAGIC_CMD="$lt_save_MAGIC_CMD"
6975 ;;
6976esac
6977fi
6978
6979MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6980if test -n "$MAGIC_CMD"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006981 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6982echo "${ECHO_T}$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006983else
mmentovai8c2a4de2006-09-20 16:20:15 +00006984 { echo "$as_me:$LINENO: result: no" >&5
6985echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006986fi
6987
6988if test -z "$lt_cv_path_MAGIC_CMD"; then
6989 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006990 { echo "$as_me:$LINENO: checking for file" >&5
6991echo $ECHO_N "checking for file... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006992if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994else
6995 case $MAGIC_CMD in
6996[\\/*] | ?:[\\/]*)
6997 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6998 ;;
6999*)
7000 lt_save_MAGIC_CMD="$MAGIC_CMD"
7001 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7002 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7003 for ac_dir in $ac_dummy; do
7004 IFS="$lt_save_ifs"
7005 test -z "$ac_dir" && ac_dir=.
7006 if test -f $ac_dir/file; then
7007 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7008 if test -n "$file_magic_test_file"; then
7009 case $deplibs_check_method in
7010 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00007011 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00007012 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7013 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7014 $EGREP "$file_magic_regex" > /dev/null; then
7015 :
7016 else
7017 cat <<EOF 1>&2
7018
7019*** Warning: the command libtool uses to detect shared libraries,
7020*** $file_magic_cmd, produces output that libtool cannot recognize.
7021*** The result is that libtool may fail to recognize shared libraries
7022*** as such. This will affect the creation of libtool libraries that
7023*** depend on shared libraries, but programs linked with such libtool
7024*** libraries will work regardless of this problem. Nevertheless, you
7025*** may want to report the problem to your system manager and/or to
7026*** bug-libtool@gnu.org
7027
7028EOF
7029 fi ;;
7030 esac
7031 fi
7032 break
7033 fi
7034 done
7035 IFS="$lt_save_ifs"
7036 MAGIC_CMD="$lt_save_MAGIC_CMD"
7037 ;;
7038esac
7039fi
7040
7041MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7042if test -n "$MAGIC_CMD"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007043 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7044echo "${ECHO_T}$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007045else
mmentovai8c2a4de2006-09-20 16:20:15 +00007046 { echo "$as_me:$LINENO: result: no" >&5
7047echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007048fi
7049
7050 else
7051 MAGIC_CMD=:
7052 fi
7053fi
7054
7055 fi
7056 ;;
7057esac
7058
ted.mielczarek1adb1842009-12-21 13:12:20 +00007059
7060 case $host_os in
7061 rhapsody* | darwin*)
7062 if test -n "$ac_tool_prefix"; then
7063 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7064set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7065{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7067if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7069else
7070 if test -n "$DSYMUTIL"; then
7071 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7072else
7073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074for as_dir in $PATH
7075do
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 break 2
7083 fi
7084done
7085done
7086IFS=$as_save_IFS
7087
7088fi
7089fi
7090DSYMUTIL=$ac_cv_prog_DSYMUTIL
7091if test -n "$DSYMUTIL"; then
7092 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7093echo "${ECHO_T}$DSYMUTIL" >&6; }
7094else
7095 { echo "$as_me:$LINENO: result: no" >&5
7096echo "${ECHO_T}no" >&6; }
7097fi
7098
7099
7100fi
7101if test -z "$ac_cv_prog_DSYMUTIL"; then
7102 ac_ct_DSYMUTIL=$DSYMUTIL
7103 # Extract the first word of "dsymutil", so it can be a program name with args.
7104set dummy dsymutil; ac_word=$2
7105{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109else
7110 if test -n "$ac_ct_DSYMUTIL"; then
7111 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7112else
7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7123 fi
7124done
7125done
7126IFS=$as_save_IFS
7127
7128fi
7129fi
7130ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7131if test -n "$ac_ct_DSYMUTIL"; then
7132 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7133echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7134else
7135 { echo "$as_me:$LINENO: result: no" >&5
7136echo "${ECHO_T}no" >&6; }
7137fi
7138
7139 if test "x$ac_ct_DSYMUTIL" = x; then
7140 DSYMUTIL=":"
7141 else
7142 case $cross_compiling:$ac_tool_warned in
7143yes:)
7144{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7145whose name does not start with the host triplet. If you think this
7146configuration is useful to you, please write to autoconf@gnu.org." >&5
7147echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7148whose name does not start with the host triplet. If you think this
7149configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7150ac_tool_warned=yes ;;
7151esac
7152 DSYMUTIL=$ac_ct_DSYMUTIL
7153 fi
7154else
7155 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7156fi
7157
7158 if test -n "$ac_tool_prefix"; then
7159 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7160set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7161{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163if test "${ac_cv_prog_NMEDIT+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165else
7166 if test -n "$NMEDIT"; then
7167 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7168else
7169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170for as_dir in $PATH
7171do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7179 fi
7180done
7181done
7182IFS=$as_save_IFS
7183
7184fi
7185fi
7186NMEDIT=$ac_cv_prog_NMEDIT
7187if test -n "$NMEDIT"; then
7188 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7189echo "${ECHO_T}$NMEDIT" >&6; }
7190else
7191 { echo "$as_me:$LINENO: result: no" >&5
7192echo "${ECHO_T}no" >&6; }
7193fi
7194
7195
7196fi
7197if test -z "$ac_cv_prog_NMEDIT"; then
7198 ac_ct_NMEDIT=$NMEDIT
7199 # Extract the first word of "nmedit", so it can be a program name with args.
7200set dummy nmedit; ac_word=$2
7201{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7203if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7205else
7206 if test -n "$ac_ct_NMEDIT"; then
7207 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7208else
7209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210for as_dir in $PATH
7211do
7212 IFS=$as_save_IFS
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7216 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 break 2
7219 fi
7220done
7221done
7222IFS=$as_save_IFS
7223
7224fi
7225fi
7226ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7227if test -n "$ac_ct_NMEDIT"; then
7228 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7229echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7230else
7231 { echo "$as_me:$LINENO: result: no" >&5
7232echo "${ECHO_T}no" >&6; }
7233fi
7234
7235 if test "x$ac_ct_NMEDIT" = x; then
7236 NMEDIT=":"
7237 else
7238 case $cross_compiling:$ac_tool_warned in
7239yes:)
7240{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7241whose name does not start with the host triplet. If you think this
7242configuration is useful to you, please write to autoconf@gnu.org." >&5
7243echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7244whose name does not start with the host triplet. If you think this
7245configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7246ac_tool_warned=yes ;;
7247esac
7248 NMEDIT=$ac_ct_NMEDIT
7249 fi
7250else
7251 NMEDIT="$ac_cv_prog_NMEDIT"
7252fi
7253
7254
7255 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7256echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7257if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7259else
7260 lt_cv_apple_cc_single_mod=no
7261 if test -z "${LT_MULTI_MODULE}"; then
7262 # By default we will add the -single_module flag. You can override
7263 # by either setting the environment variable LT_MULTI_MODULE
7264 # non-empty at configure time, or by adding -multi_module to the
7265 # link flags.
7266 echo "int foo(void){return 1;}" > conftest.c
7267 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7268 -dynamiclib ${wl}-single_module conftest.c
7269 if test -f libconftest.dylib; then
7270 lt_cv_apple_cc_single_mod=yes
7271 rm -rf libconftest.dylib*
7272 fi
7273 rm conftest.c
7274 fi
7275fi
7276{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7277echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7278 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7279echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7280if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282else
7283 lt_cv_ld_exported_symbols_list=no
7284 save_LDFLAGS=$LDFLAGS
7285 echo "_main" > conftest.sym
7286 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7287 cat >conftest.$ac_ext <<_ACEOF
7288/* confdefs.h. */
7289_ACEOF
7290cat confdefs.h >>conftest.$ac_ext
7291cat >>conftest.$ac_ext <<_ACEOF
7292/* end confdefs.h. */
7293
7294int
7295main ()
7296{
7297
7298 ;
7299 return 0;
7300}
7301_ACEOF
7302rm -f conftest.$ac_objext conftest$ac_exeext
7303if { (ac_try="$ac_link"
7304case "(($ac_try" in
7305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7306 *) ac_try_echo=$ac_try;;
7307esac
7308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7309 (eval "$ac_link") 2>conftest.er1
7310 ac_status=$?
7311 grep -v '^ *+' conftest.er1 >conftest.err
7312 rm -f conftest.er1
7313 cat conftest.err >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } && {
7316 test -z "$ac_c_werror_flag" ||
7317 test ! -s conftest.err
7318 } && test -s conftest$ac_exeext &&
7319 $as_test_x conftest$ac_exeext; then
7320 lt_cv_ld_exported_symbols_list=yes
7321else
7322 echo "$as_me: failed program was:" >&5
7323sed 's/^/| /' conftest.$ac_ext >&5
7324
7325 lt_cv_ld_exported_symbols_list=no
7326fi
7327
7328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7329 conftest$ac_exeext conftest.$ac_ext
7330 LDFLAGS="$save_LDFLAGS"
7331
7332fi
7333{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7334echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7335 case $host_os in
7336 rhapsody* | darwin1.[0123])
7337 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7338 darwin1.*)
7339 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7340 darwin*)
7341 # if running on 10.5 or later, the deployment target defaults
7342 # to the OS version, if on x86, and 10.4, the deployment
7343 # target defaults to 10.4. Don't you love it?
7344 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7345 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7346 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7347 10.[012]*)
7348 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7349 10.*)
7350 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7351 esac
7352 ;;
7353 esac
7354 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7355 _lt_dar_single_mod='$single_module'
7356 fi
7357 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7358 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7359 else
7360 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7361 fi
7362 if test "$DSYMUTIL" != ":"; then
7363 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7364 else
7365 _lt_dsymutil=
7366 fi
7367 ;;
7368 esac
7369
7370
brynercb91a2f2006-08-25 21:14:45 +00007371enable_dlopen=no
7372enable_win32_dll=no
7373
mmentovai8c2a4de2006-09-20 16:20:15 +00007374# Check whether --enable-libtool-lock was given.
brynercb91a2f2006-08-25 21:14:45 +00007375if test "${enable_libtool_lock+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007376 enableval=$enable_libtool_lock;
7377fi
brynercb91a2f2006-08-25 21:14:45 +00007378
brynercb91a2f2006-08-25 21:14:45 +00007379test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7380
7381
mmentovai8c2a4de2006-09-20 16:20:15 +00007382# Check whether --with-pic was given.
brynercb91a2f2006-08-25 21:14:45 +00007383if test "${with_pic+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007384 withval=$with_pic; pic_mode="$withval"
brynercb91a2f2006-08-25 21:14:45 +00007385else
7386 pic_mode=default
mmentovai8c2a4de2006-09-20 16:20:15 +00007387fi
7388
brynercb91a2f2006-08-25 21:14:45 +00007389test -z "$pic_mode" && pic_mode=default
7390
7391# Use C for the default configuration in the libtool script
7392tagname=
7393lt_save_CC="$CC"
7394ac_ext=c
7395ac_cpp='$CPP $CPPFLAGS'
7396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7398ac_compiler_gnu=$ac_cv_c_compiler_gnu
7399
7400
7401# Source file extension for C test sources.
7402ac_ext=c
7403
7404# Object file extension for compiled C test sources.
7405objext=o
7406objext=$objext
7407
7408# Code to be used in simple compile tests
ted.mielczarek1adb1842009-12-21 13:12:20 +00007409lt_simple_compile_test_code="int some_variable = 0;"
brynercb91a2f2006-08-25 21:14:45 +00007410
7411# Code to be used in simple link tests
ted.mielczarek1adb1842009-12-21 13:12:20 +00007412lt_simple_link_test_code='int main(){return(0);}'
brynercb91a2f2006-08-25 21:14:45 +00007413
7414
7415# If no C compiler was specified, use CC.
7416LTCC=${LTCC-"$CC"}
7417
mmentovai8c2a4de2006-09-20 16:20:15 +00007418# If no C compiler flags were specified, use CFLAGS.
7419LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7420
brynercb91a2f2006-08-25 21:14:45 +00007421# Allow CC to be a program name with arguments.
7422compiler=$CC
7423
7424
mmentovai8c2a4de2006-09-20 16:20:15 +00007425# save warnings/boilerplate of simple test code
7426ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00007427echo "$lt_simple_compile_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00007428eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7429_lt_compiler_boilerplate=`cat conftest.err`
7430$rm conftest*
brynercb91a2f2006-08-25 21:14:45 +00007431
mmentovai8c2a4de2006-09-20 16:20:15 +00007432ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00007433echo "$lt_simple_link_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00007434eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7435_lt_linker_boilerplate=`cat conftest.err`
ted.mielczarek1adb1842009-12-21 13:12:20 +00007436$rm -r conftest*
brynercb91a2f2006-08-25 21:14:45 +00007437
7438
7439
7440lt_prog_compiler_no_builtin_flag=
7441
7442if test "$GCC" = yes; then
7443 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7444
7445
mmentovai8c2a4de2006-09-20 16:20:15 +00007446{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7447echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007448if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7450else
7451 lt_cv_prog_compiler_rtti_exceptions=no
7452 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00007453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00007454 lt_compiler_flag="-fno-rtti -fno-exceptions"
7455 # Insert the option either (1) after the last *FLAGS variable, or
7456 # (2) before a word containing "conftest.", or (3) at the end.
7457 # Note that $ac_compile itself does not contain backslashes and begins
7458 # with a dollar sign (not a hyphen), so the echo should work correctly.
7459 # The option is referenced via a variable to avoid confusing sed.
7460 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00007461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00007462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7463 -e 's:$: $lt_compiler_flag:'`
ted.mielczarek1adb1842009-12-21 13:12:20 +00007464 (eval echo "\"\$as_me:7464: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00007465 (eval "$lt_compile" 2>conftest.err)
7466 ac_status=$?
7467 cat conftest.err >&5
ted.mielczarek1adb1842009-12-21 13:12:20 +00007468 echo "$as_me:7468: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00007469 if (exit $ac_status) && test -s "$ac_outfile"; then
7470 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00007471 # So say no if there are warnings other than the usual output.
7472 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7474 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00007475 lt_cv_prog_compiler_rtti_exceptions=yes
7476 fi
7477 fi
7478 $rm conftest*
7479
7480fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007481{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7482echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007483
7484if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7485 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7486else
7487 :
7488fi
7489
7490fi
7491
7492lt_prog_compiler_wl=
7493lt_prog_compiler_pic=
7494lt_prog_compiler_static=
7495
mmentovai8c2a4de2006-09-20 16:20:15 +00007496{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7497echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007498
7499 if test "$GCC" = yes; then
7500 lt_prog_compiler_wl='-Wl,'
7501 lt_prog_compiler_static='-static'
7502
7503 case $host_os in
7504 aix*)
7505 # All AIX code is PIC.
7506 if test "$host_cpu" = ia64; then
7507 # AIX 5 now supports IA64 processor
7508 lt_prog_compiler_static='-Bstatic'
7509 fi
7510 ;;
7511
7512 amigaos*)
7513 # FIXME: we need at least 68020 code to build shared libraries, but
7514 # adding the `-m68020' flag to GCC prevents building anything better,
7515 # like `-m68040'.
7516 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7517 ;;
7518
ted.mielczarek1adb1842009-12-21 13:12:20 +00007519 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
brynercb91a2f2006-08-25 21:14:45 +00007520 # PIC is the default for these OSes.
7521 ;;
7522
ted.mielczarek1adb1842009-12-21 13:12:20 +00007523 mingw* | cygwin* | pw32* | os2*)
brynercb91a2f2006-08-25 21:14:45 +00007524 # This hack is so that the source file can tell whether it is being
7525 # built for inclusion in a dll (and should export symbols for example).
ted.mielczarek1adb1842009-12-21 13:12:20 +00007526 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7527 # (--disable-auto-import) libraries
brynercb91a2f2006-08-25 21:14:45 +00007528 lt_prog_compiler_pic='-DDLL_EXPORT'
7529 ;;
7530
7531 darwin* | rhapsody*)
7532 # PIC is the default on this platform
7533 # Common symbols not allowed in MH_DYLIB files
7534 lt_prog_compiler_pic='-fno-common'
7535 ;;
7536
ted.mielczarek1adb1842009-12-21 13:12:20 +00007537 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00007538 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7539 # Instead, we relocate shared libraries at runtime.
7540 ;;
7541
brynercb91a2f2006-08-25 21:14:45 +00007542 msdosdjgpp*)
7543 # Just because we use GCC doesn't mean we suddenly get shared libraries
7544 # on systems that don't support them.
7545 lt_prog_compiler_can_build_shared=no
7546 enable_shared=no
7547 ;;
7548
7549 sysv4*MP*)
7550 if test -d /usr/nec; then
7551 lt_prog_compiler_pic=-Kconform_pic
7552 fi
7553 ;;
7554
7555 hpux*)
7556 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7557 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +00007558 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00007559 hppa*64*|ia64*)
7560 # +Z the default
7561 ;;
7562 *)
7563 lt_prog_compiler_pic='-fPIC'
7564 ;;
7565 esac
7566 ;;
7567
7568 *)
7569 lt_prog_compiler_pic='-fPIC'
7570 ;;
7571 esac
7572 else
7573 # PORTME Check for flag to pass linker flags through the system compiler.
7574 case $host_os in
7575 aix*)
7576 lt_prog_compiler_wl='-Wl,'
7577 if test "$host_cpu" = ia64; then
7578 # AIX 5 now supports IA64 processor
7579 lt_prog_compiler_static='-Bstatic'
7580 else
7581 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7582 fi
7583 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007584 darwin*)
7585 # PIC is the default on this platform
7586 # Common symbols not allowed in MH_DYLIB files
7587 case $cc_basename in
7588 xlc*)
7589 lt_prog_compiler_pic='-qnocommon'
7590 lt_prog_compiler_wl='-Wl,'
7591 ;;
7592 esac
7593 ;;
brynercb91a2f2006-08-25 21:14:45 +00007594
ted.mielczarek1adb1842009-12-21 13:12:20 +00007595 mingw* | cygwin* | pw32* | os2*)
brynercb91a2f2006-08-25 21:14:45 +00007596 # This hack is so that the source file can tell whether it is being
7597 # built for inclusion in a dll (and should export symbols for example).
7598 lt_prog_compiler_pic='-DDLL_EXPORT'
7599 ;;
7600
7601 hpux9* | hpux10* | hpux11*)
7602 lt_prog_compiler_wl='-Wl,'
7603 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7604 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +00007605 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00007606 hppa*64*|ia64*)
7607 # +Z the default
7608 ;;
7609 *)
7610 lt_prog_compiler_pic='+Z'
7611 ;;
7612 esac
7613 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7614 lt_prog_compiler_static='${wl}-a ${wl}archive'
7615 ;;
7616
7617 irix5* | irix6* | nonstopux*)
7618 lt_prog_compiler_wl='-Wl,'
7619 # PIC (with -KPIC) is the default.
7620 lt_prog_compiler_static='-non_shared'
7621 ;;
7622
7623 newsos6)
7624 lt_prog_compiler_pic='-KPIC'
7625 lt_prog_compiler_static='-Bstatic'
7626 ;;
7627
ted.mielczarek1adb1842009-12-21 13:12:20 +00007628 linux* | k*bsd*-gnu)
mmentovai8c2a4de2006-09-20 16:20:15 +00007629 case $cc_basename in
brynercb91a2f2006-08-25 21:14:45 +00007630 icc* | ecc*)
7631 lt_prog_compiler_wl='-Wl,'
7632 lt_prog_compiler_pic='-KPIC'
7633 lt_prog_compiler_static='-static'
7634 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007635 pgcc* | pgf77* | pgf90* | pgf95*)
7636 # Portland Group compilers (*not* the Pentium gcc compiler,
7637 # which looks to be a dead project)
7638 lt_prog_compiler_wl='-Wl,'
7639 lt_prog_compiler_pic='-fpic'
7640 lt_prog_compiler_static='-Bstatic'
7641 ;;
brynercb91a2f2006-08-25 21:14:45 +00007642 ccc*)
7643 lt_prog_compiler_wl='-Wl,'
7644 # All Alpha code is PIC.
7645 lt_prog_compiler_static='-non_shared'
7646 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +00007647 *)
7648 case `$CC -V 2>&1 | sed 5q` in
7649 *Sun\ C*)
7650 # Sun C 5.9
7651 lt_prog_compiler_pic='-KPIC'
7652 lt_prog_compiler_static='-Bstatic'
7653 lt_prog_compiler_wl='-Wl,'
7654 ;;
7655 *Sun\ F*)
7656 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7657 lt_prog_compiler_pic='-KPIC'
7658 lt_prog_compiler_static='-Bstatic'
7659 lt_prog_compiler_wl=''
7660 ;;
7661 esac
7662 ;;
brynercb91a2f2006-08-25 21:14:45 +00007663 esac
7664 ;;
7665
7666 osf3* | osf4* | osf5*)
7667 lt_prog_compiler_wl='-Wl,'
7668 # All OSF/1 code is PIC.
7669 lt_prog_compiler_static='-non_shared'
7670 ;;
7671
ted.mielczarek1adb1842009-12-21 13:12:20 +00007672 rdos*)
7673 lt_prog_compiler_static='-non_shared'
7674 ;;
7675
brynercb91a2f2006-08-25 21:14:45 +00007676 solaris*)
brynercb91a2f2006-08-25 21:14:45 +00007677 lt_prog_compiler_pic='-KPIC'
7678 lt_prog_compiler_static='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +00007679 case $cc_basename in
7680 f77* | f90* | f95*)
7681 lt_prog_compiler_wl='-Qoption ld ';;
7682 *)
7683 lt_prog_compiler_wl='-Wl,';;
7684 esac
brynercb91a2f2006-08-25 21:14:45 +00007685 ;;
7686
7687 sunos4*)
7688 lt_prog_compiler_wl='-Qoption ld '
7689 lt_prog_compiler_pic='-PIC'
7690 lt_prog_compiler_static='-Bstatic'
7691 ;;
7692
mmentovai8c2a4de2006-09-20 16:20:15 +00007693 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00007694 lt_prog_compiler_wl='-Wl,'
7695 lt_prog_compiler_pic='-KPIC'
7696 lt_prog_compiler_static='-Bstatic'
7697 ;;
7698
7699 sysv4*MP*)
7700 if test -d /usr/nec ;then
7701 lt_prog_compiler_pic='-Kconform_pic'
7702 lt_prog_compiler_static='-Bstatic'
7703 fi
7704 ;;
7705
mmentovai8c2a4de2006-09-20 16:20:15 +00007706 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7707 lt_prog_compiler_wl='-Wl,'
7708 lt_prog_compiler_pic='-KPIC'
7709 lt_prog_compiler_static='-Bstatic'
7710 ;;
7711
7712 unicos*)
7713 lt_prog_compiler_wl='-Wl,'
7714 lt_prog_compiler_can_build_shared=no
7715 ;;
7716
brynercb91a2f2006-08-25 21:14:45 +00007717 uts4*)
7718 lt_prog_compiler_pic='-pic'
7719 lt_prog_compiler_static='-Bstatic'
7720 ;;
7721
7722 *)
7723 lt_prog_compiler_can_build_shared=no
7724 ;;
7725 esac
7726 fi
7727
mmentovai8c2a4de2006-09-20 16:20:15 +00007728{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7729echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007730
7731#
7732# Check to make sure the PIC flag actually works.
7733#
7734if test -n "$lt_prog_compiler_pic"; then
7735
mmentovai8c2a4de2006-09-20 16:20:15 +00007736{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7737echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
ted.mielczarek1adb1842009-12-21 13:12:20 +00007738if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
brynercb91a2f2006-08-25 21:14:45 +00007739 echo $ECHO_N "(cached) $ECHO_C" >&6
7740else
ted.mielczarek1adb1842009-12-21 13:12:20 +00007741 lt_cv_prog_compiler_pic_works=no
brynercb91a2f2006-08-25 21:14:45 +00007742 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00007743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00007744 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7745 # Insert the option either (1) after the last *FLAGS variable, or
7746 # (2) before a word containing "conftest.", or (3) at the end.
7747 # Note that $ac_compile itself does not contain backslashes and begins
7748 # with a dollar sign (not a hyphen), so the echo should work correctly.
7749 # The option is referenced via a variable to avoid confusing sed.
7750 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00007751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00007752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7753 -e 's:$: $lt_compiler_flag:'`
ted.mielczarek1adb1842009-12-21 13:12:20 +00007754 (eval echo "\"\$as_me:7754: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00007755 (eval "$lt_compile" 2>conftest.err)
7756 ac_status=$?
7757 cat conftest.err >&5
ted.mielczarek1adb1842009-12-21 13:12:20 +00007758 echo "$as_me:7758: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00007759 if (exit $ac_status) && test -s "$ac_outfile"; then
7760 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00007761 # So say no if there are warnings other than the usual output.
7762 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7764 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00007765 lt_cv_prog_compiler_pic_works=yes
brynercb91a2f2006-08-25 21:14:45 +00007766 fi
7767 fi
7768 $rm conftest*
7769
7770fi
ted.mielczarek1adb1842009-12-21 13:12:20 +00007771{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7772echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007773
ted.mielczarek1adb1842009-12-21 13:12:20 +00007774if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
brynercb91a2f2006-08-25 21:14:45 +00007775 case $lt_prog_compiler_pic in
7776 "" | " "*) ;;
7777 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7778 esac
7779else
7780 lt_prog_compiler_pic=
7781 lt_prog_compiler_can_build_shared=no
7782fi
7783
7784fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007785case $host_os in
brynercb91a2f2006-08-25 21:14:45 +00007786 # For platforms which do not support PIC, -DPIC is meaningless:
7787 *djgpp*)
7788 lt_prog_compiler_pic=
7789 ;;
7790 *)
7791 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7792 ;;
7793esac
7794
mmentovai8c2a4de2006-09-20 16:20:15 +00007795#
7796# Check to make sure the static flag actually works.
7797#
7798wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7799{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7800echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
ted.mielczarek1adb1842009-12-21 13:12:20 +00007801if test "${lt_cv_prog_compiler_static_works+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007802 echo $ECHO_N "(cached) $ECHO_C" >&6
7803else
ted.mielczarek1adb1842009-12-21 13:12:20 +00007804 lt_cv_prog_compiler_static_works=no
mmentovai8c2a4de2006-09-20 16:20:15 +00007805 save_LDFLAGS="$LDFLAGS"
7806 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ted.mielczarek1adb1842009-12-21 13:12:20 +00007807 echo "$lt_simple_link_test_code" > conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00007808 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7809 # The linker can only warn and ignore the option if not recognized
7810 # So say no if there are warnings
7811 if test -s conftest.err; then
7812 # Append any errors to the config.log.
7813 cat conftest.err 1>&5
7814 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7816 if diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00007817 lt_cv_prog_compiler_static_works=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00007818 fi
7819 else
ted.mielczarek1adb1842009-12-21 13:12:20 +00007820 lt_cv_prog_compiler_static_works=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00007821 fi
7822 fi
ted.mielczarek1adb1842009-12-21 13:12:20 +00007823 $rm -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +00007824 LDFLAGS="$save_LDFLAGS"
7825
7826fi
ted.mielczarek1adb1842009-12-21 13:12:20 +00007827{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7828echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00007829
ted.mielczarek1adb1842009-12-21 13:12:20 +00007830if test x"$lt_cv_prog_compiler_static_works" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007831 :
7832else
7833 lt_prog_compiler_static=
7834fi
7835
7836
7837{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7838echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007839if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841else
7842 lt_cv_prog_compiler_c_o=no
7843 $rm -r conftest 2>/dev/null
7844 mkdir conftest
7845 cd conftest
7846 mkdir out
ted.mielczarek1adb1842009-12-21 13:12:20 +00007847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00007848
7849 lt_compiler_flag="-o out/conftest2.$ac_objext"
7850 # Insert the option either (1) after the last *FLAGS variable, or
7851 # (2) before a word containing "conftest.", or (3) at the end.
7852 # Note that $ac_compile itself does not contain backslashes and begins
7853 # with a dollar sign (not a hyphen), so the echo should work correctly.
7854 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00007855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00007856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7857 -e 's:$: $lt_compiler_flag:'`
ted.mielczarek1adb1842009-12-21 13:12:20 +00007858 (eval echo "\"\$as_me:7858: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00007859 (eval "$lt_compile" 2>out/conftest.err)
7860 ac_status=$?
7861 cat out/conftest.err >&5
ted.mielczarek1adb1842009-12-21 13:12:20 +00007862 echo "$as_me:7862: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00007863 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7864 then
7865 # The compiler can only warn and ignore the option if not recognized
7866 # So say no if there are warnings
mmentovai8c2a4de2006-09-20 16:20:15 +00007867 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7868 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7869 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00007870 lt_cv_prog_compiler_c_o=yes
7871 fi
7872 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007873 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +00007874 $rm conftest*
7875 # SGI C++ compiler will create directory out/ii_files/ for
7876 # template instantiation
7877 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7878 $rm out/* && rmdir out
7879 cd ..
7880 rmdir conftest
7881 $rm conftest*
7882
7883fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007884{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7885echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007886
7887
7888hard_links="nottested"
7889if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7890 # do not overwrite the value of need_locks provided by the user
mmentovai8c2a4de2006-09-20 16:20:15 +00007891 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7892echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007893 hard_links=yes
7894 $rm conftest*
7895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7896 touch conftest.a
7897 ln conftest.a conftest.b 2>&5 || hard_links=no
7898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mmentovai8c2a4de2006-09-20 16:20:15 +00007899 { echo "$as_me:$LINENO: result: $hard_links" >&5
7900echo "${ECHO_T}$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007901 if test "$hard_links" = no; then
7902 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7903echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7904 need_locks=warn
7905 fi
7906else
7907 need_locks=no
7908fi
7909
mmentovai8c2a4de2006-09-20 16:20:15 +00007910{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7911echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007912
7913 runpath_var=
7914 allow_undefined_flag=
7915 enable_shared_with_static_runtimes=no
7916 archive_cmds=
7917 archive_expsym_cmds=
7918 old_archive_From_new_cmds=
7919 old_archive_from_expsyms_cmds=
7920 export_dynamic_flag_spec=
7921 whole_archive_flag_spec=
7922 thread_safe_flag_spec=
7923 hardcode_libdir_flag_spec=
7924 hardcode_libdir_flag_spec_ld=
7925 hardcode_libdir_separator=
7926 hardcode_direct=no
7927 hardcode_minus_L=no
7928 hardcode_shlibpath_var=unsupported
7929 link_all_deplibs=unknown
7930 hardcode_automatic=no
7931 module_cmds=
7932 module_expsym_cmds=
7933 always_export_symbols=no
7934 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7935 # include_expsyms should be a list of space-separated symbols to be *always*
7936 # included in the symbol list
7937 include_expsyms=
7938 # exclude_expsyms can be an extended regexp of symbols to exclude
7939 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7940 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7941 # as well as any symbol that contains `d'.
ted.mielczarek1adb1842009-12-21 13:12:20 +00007942 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
brynercb91a2f2006-08-25 21:14:45 +00007943 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7944 # platforms (ab)use it in PIC code, but their linkers get confused if
7945 # the symbol is explicitly referenced. Since portable code cannot
7946 # rely on this symbol name, it's probably fine to never include it in
7947 # preloaded symbol tables.
ted.mielczarek1adb1842009-12-21 13:12:20 +00007948 # Exclude shared library initialization/finalization symbols.
brynercb91a2f2006-08-25 21:14:45 +00007949 extract_expsyms_cmds=
mmentovai8c2a4de2006-09-20 16:20:15 +00007950 # Just being paranoid about ensuring that cc_basename is set.
7951 for cc_temp in $compiler""; do
7952 case $cc_temp in
7953 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7954 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7955 \-*) ;;
7956 *) break;;
7957 esac
7958done
7959cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +00007960
7961 case $host_os in
7962 cygwin* | mingw* | pw32*)
7963 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7964 # When not using gcc, we currently assume that we are using
7965 # Microsoft Visual C++.
7966 if test "$GCC" != yes; then
7967 with_gnu_ld=no
7968 fi
7969 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007970 interix*)
7971 # we just hope/assume this is gcc and not c89 (= MSVC++)
7972 with_gnu_ld=yes
7973 ;;
brynercb91a2f2006-08-25 21:14:45 +00007974 openbsd*)
7975 with_gnu_ld=no
7976 ;;
7977 esac
7978
7979 ld_shlibs=yes
7980 if test "$with_gnu_ld" = yes; then
7981 # If archive_cmds runs LD, not CC, wlarc should be empty
7982 wlarc='${wl}'
7983
mmentovai8c2a4de2006-09-20 16:20:15 +00007984 # Set some defaults for GNU ld with shared library support. These
7985 # are reset later if shared libraries are not supported. Putting them
7986 # here allows them to be overridden if necessary.
7987 runpath_var=LD_RUN_PATH
7988 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7989 export_dynamic_flag_spec='${wl}--export-dynamic'
7990 # ancient GNU ld didn't support --whole-archive et. al.
7991 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7992 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7993 else
7994 whole_archive_flag_spec=
7995 fi
7996 supports_anon_versioning=no
7997 case `$LD -v 2>/dev/null` in
7998 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7999 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8000 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8001 *\ 2.11.*) ;; # other 2.11 versions
8002 *) supports_anon_versioning=yes ;;
8003 esac
8004
brynercb91a2f2006-08-25 21:14:45 +00008005 # See if GNU ld supports shared libraries.
8006 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +00008007 aix[3-9]*)
brynercb91a2f2006-08-25 21:14:45 +00008008 # On AIX/PPC, the GNU linker is very broken
8009 if test "$host_cpu" != ia64; then
8010 ld_shlibs=no
8011 cat <<EOF 1>&2
8012
8013*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8014*** to be unable to reliably create shared libraries on AIX.
8015*** Therefore, libtool is disabling shared libraries support. If you
8016*** really care for shared libraries, you may want to modify your PATH
8017*** so that a non-GNU linker is found, and then restart.
8018
8019EOF
8020 fi
8021 ;;
8022
8023 amigaos*)
8024 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)'
8025 hardcode_libdir_flag_spec='-L$libdir'
8026 hardcode_minus_L=yes
8027
8028 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8029 # that the semantics of dynamic libraries on AmigaOS, at least up
8030 # to version 4, is to share data among multiple programs linked
8031 # with the same dynamic library. Since this doesn't match the
8032 # behavior of shared libraries on other platforms, we can't use
8033 # them.
8034 ld_shlibs=no
8035 ;;
8036
8037 beos*)
8038 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8039 allow_undefined_flag=unsupported
8040 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8041 # support --undefined. This deserves some investigation. FIXME
8042 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8043 else
8044 ld_shlibs=no
8045 fi
8046 ;;
8047
8048 cygwin* | mingw* | pw32*)
8049 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8050 # as there is no search path for DLLs.
8051 hardcode_libdir_flag_spec='-L$libdir'
8052 allow_undefined_flag=unsupported
8053 always_export_symbols=no
8054 enable_shared_with_static_runtimes=yes
ted.mielczarek1adb1842009-12-21 13:12:20 +00008055 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +00008056
8057 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008058 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 +00008059 # If the export-symbols file already is a .def file (1st line
8060 # is EXPORTS), use it as is; otherwise, prepend...
8061 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8062 cp $export_symbols $output_objdir/$soname.def;
8063 else
8064 echo EXPORTS > $output_objdir/$soname.def;
8065 cat $export_symbols >> $output_objdir/$soname.def;
8066 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +00008067 $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 +00008068 else
8069 ld_shlibs=no
8070 fi
8071 ;;
8072
ted.mielczarek1adb1842009-12-21 13:12:20 +00008073 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008074 hardcode_direct=no
8075 hardcode_shlibpath_var=no
8076 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8077 export_dynamic_flag_spec='${wl}-E'
8078 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8079 # Instead, shared libraries are loaded at an image base (0x10000000 by
8080 # default) and relocated if they conflict, which is a slow very memory
8081 # consuming and fragmenting process. To avoid this, we pick a random,
8082 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8083 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8084 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8085 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'
8086 ;;
8087
ted.mielczarek1adb1842009-12-21 13:12:20 +00008088 gnu* | linux* | k*bsd*-gnu)
mmentovai8c2a4de2006-09-20 16:20:15 +00008089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8090 tmp_addflag=
8091 case $cc_basename,$host_cpu in
8092 pgcc*) # Portland Group C compiler
8093 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'
8094 tmp_addflag=' $pic_flag'
8095 ;;
8096 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8097 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'
8098 tmp_addflag=' $pic_flag -Mnomain' ;;
8099 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8100 tmp_addflag=' -i_dynamic' ;;
8101 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8102 tmp_addflag=' -i_dynamic -nofor_main' ;;
8103 ifc* | ifort*) # Intel Fortran compiler
8104 tmp_addflag=' -nofor_main' ;;
8105 esac
ted.mielczarek1adb1842009-12-21 13:12:20 +00008106 case `$CC -V 2>&1 | sed 5q` in
8107 *Sun\ C*) # Sun C 5.9
8108 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8109 tmp_sharedflag='-G' ;;
8110 *Sun\ F*) # Sun Fortran 8.3
8111 tmp_sharedflag='-G' ;;
8112 *)
8113 tmp_sharedflag='-shared' ;;
8114 esac
8115 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
mmentovai8c2a4de2006-09-20 16:20:15 +00008116
8117 if test $supports_anon_versioning = yes; then
8118 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8119 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8120 $echo "local: *; };" >> $output_objdir/$libname.ver~
ted.mielczarek1adb1842009-12-21 13:12:20 +00008121 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
mmentovai8c2a4de2006-09-20 16:20:15 +00008122 fi
8123 else
8124 ld_shlibs=no
8125 fi
8126 ;;
8127
8128 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +00008129 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8130 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8131 wlarc=
8132 else
8133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8134 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8135 fi
8136 ;;
8137
mmentovai8c2a4de2006-09-20 16:20:15 +00008138 solaris*)
brynercb91a2f2006-08-25 21:14:45 +00008139 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8140 ld_shlibs=no
8141 cat <<EOF 1>&2
8142
8143*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8144*** create shared libraries on Solaris systems. Therefore, libtool
8145*** is disabling shared libraries support. We urge you to upgrade GNU
8146*** binutils to release 2.9.1 or newer. Another option is to modify
8147*** your PATH or compiler configuration so that the native linker is
8148*** used, and then restart.
8149
8150EOF
8151 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8153 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8154 else
8155 ld_shlibs=no
8156 fi
8157 ;;
8158
mmentovai8c2a4de2006-09-20 16:20:15 +00008159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8160 case `$LD -v 2>&1` in
8161 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8162 ld_shlibs=no
8163 cat <<_LT_EOF 1>&2
8164
8165*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8166*** reliably create shared libraries on SCO systems. Therefore, libtool
8167*** is disabling shared libraries support. We urge you to upgrade GNU
8168*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8169*** your PATH or compiler configuration so that the native linker is
8170*** used, and then restart.
8171
8172_LT_EOF
8173 ;;
8174 *)
8175 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8176 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8178 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8179 else
8180 ld_shlibs=no
8181 fi
8182 ;;
8183 esac
8184 ;;
8185
brynercb91a2f2006-08-25 21:14:45 +00008186 sunos4*)
8187 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8188 wlarc=
8189 hardcode_direct=yes
8190 hardcode_shlibpath_var=no
8191 ;;
8192
brynercb91a2f2006-08-25 21:14:45 +00008193 *)
8194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8195 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8196 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8197 else
8198 ld_shlibs=no
8199 fi
8200 ;;
8201 esac
8202
mmentovai8c2a4de2006-09-20 16:20:15 +00008203 if test "$ld_shlibs" = no; then
8204 runpath_var=
8205 hardcode_libdir_flag_spec=
8206 export_dynamic_flag_spec=
8207 whole_archive_flag_spec=
brynercb91a2f2006-08-25 21:14:45 +00008208 fi
8209 else
8210 # PORTME fill in a description of your system's linker (not GNU ld)
8211 case $host_os in
8212 aix3*)
8213 allow_undefined_flag=unsupported
8214 always_export_symbols=yes
8215 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'
8216 # Note: this linker hardcodes the directories in LIBPATH if there
8217 # are no directories specified by -L.
8218 hardcode_minus_L=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008219 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +00008220 # Neither direct hardcoding nor static linking is supported with a
8221 # broken collect2.
8222 hardcode_direct=unsupported
8223 fi
8224 ;;
8225
ted.mielczarek1adb1842009-12-21 13:12:20 +00008226 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +00008227 if test "$host_cpu" = ia64; then
8228 # On IA64, the linker does run time linking by default, so we don't
8229 # have to do anything special.
8230 aix_use_runtimelinking=no
8231 exp_sym_flag='-Bexport'
8232 no_entry_flag=""
8233 else
8234 # If we're using GNU nm, then we don't want the "-C" option.
8235 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8236 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8237 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'
8238 else
8239 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'
8240 fi
8241 aix_use_runtimelinking=no
8242
8243 # Test if we are trying to use run time linking or normal
8244 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8245 # need to do runtime linking.
ted.mielczarek1adb1842009-12-21 13:12:20 +00008246 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
brynercb91a2f2006-08-25 21:14:45 +00008247 for ld_flag in $LDFLAGS; do
8248 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8249 aix_use_runtimelinking=yes
8250 break
8251 fi
8252 done
mmentovai8c2a4de2006-09-20 16:20:15 +00008253 ;;
brynercb91a2f2006-08-25 21:14:45 +00008254 esac
8255
8256 exp_sym_flag='-bexport'
8257 no_entry_flag='-bnoentry'
8258 fi
8259
8260 # When large executables or shared objects are built, AIX ld can
8261 # have problems creating the table of contents. If linking a library
8262 # or program results in "error TOC overflow" add -mminimal-toc to
8263 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8264 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8265
8266 archive_cmds=''
8267 hardcode_direct=yes
8268 hardcode_libdir_separator=':'
8269 link_all_deplibs=yes
8270
8271 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008272 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +00008273 # We only want to do this on AIX 4.2 and lower, the check
8274 # below for broken collect2 doesn't work under 4.3+
8275 collect2name=`${CC} -print-prog-name=collect2`
8276 if test -f "$collect2name" && \
8277 strings "$collect2name" | grep resolve_lib_name >/dev/null
8278 then
8279 # We have reworked collect2
ted.mielczarek1adb1842009-12-21 13:12:20 +00008280 :
brynercb91a2f2006-08-25 21:14:45 +00008281 else
8282 # We have old collect2
8283 hardcode_direct=unsupported
8284 # It fails to find uninstalled libraries when the uninstalled
8285 # path is not listed in the libpath. Setting hardcode_minus_L
8286 # to unsupported forces relinking
8287 hardcode_minus_L=yes
8288 hardcode_libdir_flag_spec='-L$libdir'
8289 hardcode_libdir_separator=
8290 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008291 ;;
brynercb91a2f2006-08-25 21:14:45 +00008292 esac
8293 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +00008294 if test "$aix_use_runtimelinking" = yes; then
8295 shared_flag="$shared_flag "'${wl}-G'
8296 fi
brynercb91a2f2006-08-25 21:14:45 +00008297 else
8298 # not using gcc
8299 if test "$host_cpu" = ia64; then
8300 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8301 # chokes on -Wl,-G. The following line is correct:
8302 shared_flag='-G'
8303 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008304 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +00008305 shared_flag='${wl}-G'
8306 else
8307 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +00008308 fi
brynercb91a2f2006-08-25 21:14:45 +00008309 fi
8310 fi
8311
8312 # It seems that -bexpall does not export symbols beginning with
8313 # underscore (_), so it is better to generate a list of symbols to export.
8314 always_export_symbols=yes
8315 if test "$aix_use_runtimelinking" = yes; then
8316 # Warning - without using the other runtime loading flags (-brtl),
8317 # -berok will link without error, but may produce a broken library.
8318 allow_undefined_flag='-berok'
8319 # Determine the default libpath from the value encoded in an empty executable.
8320 cat >conftest.$ac_ext <<_ACEOF
8321/* confdefs.h. */
8322_ACEOF
8323cat confdefs.h >>conftest.$ac_ext
8324cat >>conftest.$ac_ext <<_ACEOF
8325/* end confdefs.h. */
8326
8327int
8328main ()
8329{
8330
8331 ;
8332 return 0;
8333}
8334_ACEOF
8335rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00008336if { (ac_try="$ac_link"
8337case "(($ac_try" in
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8340esac
8341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00008343 ac_status=$?
8344 grep -v '^ *+' conftest.er1 >conftest.err
8345 rm -f conftest.er1
8346 cat conftest.err >&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00008348 (exit $ac_status); } && {
8349 test -z "$ac_c_werror_flag" ||
8350 test ! -s conftest.err
8351 } && test -s conftest$ac_exeext &&
8352 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +00008353
ted.mielczarek1adb1842009-12-21 13:12:20 +00008354lt_aix_libpath_sed='
8355 /Import File Strings/,/^$/ {
8356 /^0/ {
8357 s/^0 *\(.*\)$/\1/
8358 p
8359 }
8360 }'
8361aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +00008362# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +00008363if test -z "$aix_libpath"; then
8364 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8365fi
brynercb91a2f2006-08-25 21:14:45 +00008366else
8367 echo "$as_me: failed program was:" >&5
8368sed 's/^/| /' conftest.$ac_ext >&5
8369
mmentovai8c2a4de2006-09-20 16:20:15 +00008370
brynercb91a2f2006-08-25 21:14:45 +00008371fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008372
mmentovaiaf3c43f2007-05-17 18:34:37 +00008373rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +00008374 conftest$ac_exeext conftest.$ac_ext
8375if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8376
8377 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
mmentovai8c2a4de2006-09-20 16:20:15 +00008378 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 +00008379 else
8380 if test "$host_cpu" = ia64; then
8381 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8382 allow_undefined_flag="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +00008383 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 +00008384 else
8385 # Determine the default libpath from the value encoded in an empty executable.
8386 cat >conftest.$ac_ext <<_ACEOF
8387/* confdefs.h. */
8388_ACEOF
8389cat confdefs.h >>conftest.$ac_ext
8390cat >>conftest.$ac_ext <<_ACEOF
8391/* end confdefs.h. */
8392
8393int
8394main ()
8395{
8396
8397 ;
8398 return 0;
8399}
8400_ACEOF
8401rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00008402if { (ac_try="$ac_link"
8403case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8406esac
8407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00008409 ac_status=$?
8410 grep -v '^ *+' conftest.er1 >conftest.err
8411 rm -f conftest.er1
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00008414 (exit $ac_status); } && {
8415 test -z "$ac_c_werror_flag" ||
8416 test ! -s conftest.err
8417 } && test -s conftest$ac_exeext &&
8418 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +00008419
ted.mielczarek1adb1842009-12-21 13:12:20 +00008420lt_aix_libpath_sed='
8421 /Import File Strings/,/^$/ {
8422 /^0/ {
8423 s/^0 *\(.*\)$/\1/
8424 p
8425 }
8426 }'
8427aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +00008428# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +00008429if test -z "$aix_libpath"; then
8430 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8431fi
brynercb91a2f2006-08-25 21:14:45 +00008432else
8433 echo "$as_me: failed program was:" >&5
8434sed 's/^/| /' conftest.$ac_ext >&5
8435
mmentovai8c2a4de2006-09-20 16:20:15 +00008436
brynercb91a2f2006-08-25 21:14:45 +00008437fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008438
mmentovaiaf3c43f2007-05-17 18:34:37 +00008439rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +00008440 conftest$ac_exeext conftest.$ac_ext
8441if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8442
8443 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8444 # Warning - without using the other run time loading flags,
8445 # -berok will link without error, but may produce a broken library.
8446 no_undefined_flag=' ${wl}-bernotok'
8447 allow_undefined_flag=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +00008448 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +00008449 whole_archive_flag_spec='$convenience'
brynercb91a2f2006-08-25 21:14:45 +00008450 archive_cmds_need_lc=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008451 # This is similar to how AIX traditionally builds its shared libraries.
8452 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 +00008453 fi
8454 fi
8455 ;;
8456
8457 amigaos*)
8458 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)'
8459 hardcode_libdir_flag_spec='-L$libdir'
8460 hardcode_minus_L=yes
8461 # see comment about different semantics on the GNU ld section
8462 ld_shlibs=no
8463 ;;
8464
mmentovai8c2a4de2006-09-20 16:20:15 +00008465 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00008466 export_dynamic_flag_spec=-rdynamic
8467 ;;
8468
8469 cygwin* | mingw* | pw32*)
8470 # When not using gcc, we currently assume that we are using
8471 # Microsoft Visual C++.
8472 # hardcode_libdir_flag_spec is actually meaningless, as there is
8473 # no search path for DLLs.
8474 hardcode_libdir_flag_spec=' '
8475 allow_undefined_flag=unsupported
8476 # Tell ltmain to make .lib files, not .a files.
8477 libext=lib
8478 # Tell ltmain to make .dll files, not .so files.
8479 shrext_cmds=".dll"
8480 # FIXME: Setting linknames here is a bad hack.
8481 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8482 # The linker will automatically build a .lib file if we build a DLL.
8483 old_archive_From_new_cmds='true'
8484 # FIXME: Should let the user specify the lib program.
ted.mielczarek1adb1842009-12-21 13:12:20 +00008485 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
brynercb91a2f2006-08-25 21:14:45 +00008486 fix_srcfile_path='`cygpath -w "$srcfile"`'
8487 enable_shared_with_static_runtimes=yes
8488 ;;
8489
8490 darwin* | rhapsody*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008491 case $host_os in
8492 rhapsody* | darwin1.[012])
8493 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8494 ;;
8495 *) # Darwin 1.3 on
8496 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8497 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8498 else
8499 case ${MACOSX_DEPLOYMENT_TARGET} in
8500 10.[012])
8501 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8502 ;;
8503 10.*)
8504 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8505 ;;
8506 esac
8507 fi
8508 ;;
brynerd5e66382006-09-08 02:35:53 +00008509 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00008510 archive_cmds_need_lc=no
brynercb91a2f2006-08-25 21:14:45 +00008511 hardcode_direct=no
8512 hardcode_automatic=yes
8513 hardcode_shlibpath_var=unsupported
mmentovai8c2a4de2006-09-20 16:20:15 +00008514 whole_archive_flag_spec=''
brynercb91a2f2006-08-25 21:14:45 +00008515 link_all_deplibs=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008516 if test "$GCC" = yes ; then
8517 output_verbose_link_cmd='echo'
ted.mielczarek1adb1842009-12-21 13:12:20 +00008518 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8519 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8520 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8521 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
brynercb91a2f2006-08-25 21:14:45 +00008522 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008523 case $cc_basename in
8524 xlc*)
8525 output_verbose_link_cmd='echo'
ted.mielczarek1adb1842009-12-21 13:12:20 +00008526 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
mmentovai8c2a4de2006-09-20 16:20:15 +00008527 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8528 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ted.mielczarek1adb1842009-12-21 13:12:20 +00008529 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
mmentovai8c2a4de2006-09-20 16:20:15 +00008530 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}'
8531 ;;
8532 *)
8533 ld_shlibs=no
8534 ;;
8535 esac
brynercb91a2f2006-08-25 21:14:45 +00008536 fi
8537 ;;
8538
8539 dgux*)
8540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8541 hardcode_libdir_flag_spec='-L$libdir'
8542 hardcode_shlibpath_var=no
8543 ;;
8544
8545 freebsd1*)
8546 ld_shlibs=no
8547 ;;
8548
8549 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8550 # support. Future versions do this automatically, but an explicit c++rt0.o
8551 # does not break anything, and helps significantly (at the cost of a little
8552 # extra space).
8553 freebsd2.2*)
8554 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8555 hardcode_libdir_flag_spec='-R$libdir'
8556 hardcode_direct=yes
8557 hardcode_shlibpath_var=no
8558 ;;
8559
8560 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8561 freebsd2*)
8562 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8563 hardcode_direct=yes
8564 hardcode_minus_L=yes
8565 hardcode_shlibpath_var=no
8566 ;;
8567
8568 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ted.mielczarek1adb1842009-12-21 13:12:20 +00008569 freebsd* | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +00008570 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8571 hardcode_libdir_flag_spec='-R$libdir'
8572 hardcode_direct=yes
8573 hardcode_shlibpath_var=no
8574 ;;
8575
8576 hpux9*)
8577 if test "$GCC" = yes; then
8578 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'
8579 else
8580 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'
8581 fi
8582 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8583 hardcode_libdir_separator=:
8584 hardcode_direct=yes
8585
8586 # hardcode_minus_L: Not really in the search PATH,
8587 # but as the default location of the library.
8588 hardcode_minus_L=yes
8589 export_dynamic_flag_spec='${wl}-E'
8590 ;;
8591
mmentovai8c2a4de2006-09-20 16:20:15 +00008592 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +00008593 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008594 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8595 else
8596 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8597 fi
8598 if test "$with_gnu_ld" = no; then
8599 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8600 hardcode_libdir_separator=:
8601
8602 hardcode_direct=yes
8603 export_dynamic_flag_spec='${wl}-E'
8604
8605 # hardcode_minus_L: Not really in the search PATH,
8606 # but as the default location of the library.
8607 hardcode_minus_L=yes
8608 fi
8609 ;;
8610
8611 hpux11*)
8612 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8613 case $host_cpu in
8614 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +00008615 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8616 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008617 ia64*)
8618 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8619 ;;
brynercb91a2f2006-08-25 21:14:45 +00008620 *)
8621 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8622 ;;
8623 esac
8624 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008625 case $host_cpu in
8626 hppa*64*)
8627 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8628 ;;
8629 ia64*)
8630 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +00008631 ;;
8632 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00008633 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 +00008634 ;;
8635 esac
8636 fi
8637 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008638 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8639 hardcode_libdir_separator=:
brynerd5e66382006-09-08 02:35:53 +00008640
mmentovai8c2a4de2006-09-20 16:20:15 +00008641 case $host_cpu in
8642 hppa*64*|ia64*)
8643 hardcode_libdir_flag_spec_ld='+b $libdir'
8644 hardcode_direct=no
8645 hardcode_shlibpath_var=no
brynerd5e66382006-09-08 02:35:53 +00008646 ;;
brynercb91a2f2006-08-25 21:14:45 +00008647 *)
brynercb91a2f2006-08-25 21:14:45 +00008648 hardcode_direct=yes
8649 export_dynamic_flag_spec='${wl}-E'
8650
8651 # hardcode_minus_L: Not really in the search PATH,
8652 # but as the default location of the library.
8653 hardcode_minus_L=yes
8654 ;;
8655 esac
8656 fi
8657 ;;
8658
8659 irix5* | irix6* | nonstopux*)
8660 if test "$GCC" = yes; then
8661 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'
8662 else
8663 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'
8664 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8665 fi
8666 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8667 hardcode_libdir_separator=:
8668 link_all_deplibs=yes
8669 ;;
8670
mmentovai8c2a4de2006-09-20 16:20:15 +00008671 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +00008672 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8674 else
8675 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8676 fi
8677 hardcode_libdir_flag_spec='-R$libdir'
8678 hardcode_direct=yes
8679 hardcode_shlibpath_var=no
8680 ;;
8681
8682 newsos6)
8683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8684 hardcode_direct=yes
8685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8686 hardcode_libdir_separator=:
8687 hardcode_shlibpath_var=no
8688 ;;
8689
8690 openbsd*)
ted.mielczarek1adb1842009-12-21 13:12:20 +00008691 if test -f /usr/libexec/ld.so; then
8692 hardcode_direct=yes
8693 hardcode_shlibpath_var=no
8694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8695 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8696 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8697 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8698 export_dynamic_flag_spec='${wl}-E'
8699 else
8700 case $host_os in
8701 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8703 hardcode_libdir_flag_spec='-R$libdir'
8704 ;;
8705 *)
8706 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8707 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8708 ;;
8709 esac
8710 fi
brynercb91a2f2006-08-25 21:14:45 +00008711 else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008712 ld_shlibs=no
brynercb91a2f2006-08-25 21:14:45 +00008713 fi
8714 ;;
8715
8716 os2*)
8717 hardcode_libdir_flag_spec='-L$libdir'
8718 hardcode_minus_L=yes
8719 allow_undefined_flag=unsupported
8720 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'
8721 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8722 ;;
8723
8724 osf3*)
8725 if test "$GCC" = yes; then
8726 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8727 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'
8728 else
8729 allow_undefined_flag=' -expect_unresolved \*'
8730 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'
8731 fi
8732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8733 hardcode_libdir_separator=:
8734 ;;
8735
8736 osf4* | osf5*) # as osf3* with the addition of -msym flag
8737 if test "$GCC" = yes; then
8738 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8739 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'
8740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741 else
8742 allow_undefined_flag=' -expect_unresolved \*'
8743 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'
8744 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 +00008745 $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 +00008746
8747 # Both c and cxx compiler support -rpath directly
8748 hardcode_libdir_flag_spec='-rpath $libdir'
8749 fi
8750 hardcode_libdir_separator=:
8751 ;;
8752
brynercb91a2f2006-08-25 21:14:45 +00008753 solaris*)
8754 no_undefined_flag=' -z text'
8755 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008756 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +00008757 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8758 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8759 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8760 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008761 wlarc=''
brynercb91a2f2006-08-25 21:14:45 +00008762 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8763 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8764 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8765 fi
8766 hardcode_libdir_flag_spec='-R$libdir'
8767 hardcode_shlibpath_var=no
8768 case $host_os in
8769 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008770 *)
ted.mielczarek1adb1842009-12-21 13:12:20 +00008771 # The compiler driver will combine and reorder linker options,
8772 # but understands `-z linker_flag'. GCC discards it without `$wl',
8773 # but is careful enough not to reorder.
mmentovai8c2a4de2006-09-20 16:20:15 +00008774 # Supported since Solaris 2.6 (maybe 2.5.1?)
ted.mielczarek1adb1842009-12-21 13:12:20 +00008775 if test "$GCC" = yes; then
8776 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8777 else
8778 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8779 fi
8780 ;;
brynercb91a2f2006-08-25 21:14:45 +00008781 esac
8782 link_all_deplibs=yes
8783 ;;
8784
8785 sunos4*)
8786 if test "x$host_vendor" = xsequent; then
8787 # Use $CC to link under sequent, because it throws in some extra .o
8788 # files that make .init and .fini sections work.
8789 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8790 else
8791 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8792 fi
8793 hardcode_libdir_flag_spec='-L$libdir'
8794 hardcode_direct=yes
8795 hardcode_minus_L=yes
8796 hardcode_shlibpath_var=no
8797 ;;
8798
8799 sysv4)
8800 case $host_vendor in
8801 sni)
8802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8803 hardcode_direct=yes # is this really true???
8804 ;;
8805 siemens)
8806 ## LD is ld it makes a PLAMLIB
8807 ## CC just makes a GrossModule.
8808 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8809 reload_cmds='$CC -r -o $output$reload_objs'
8810 hardcode_direct=no
8811 ;;
8812 motorola)
8813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8814 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8815 ;;
8816 esac
8817 runpath_var='LD_RUN_PATH'
8818 hardcode_shlibpath_var=no
8819 ;;
8820
8821 sysv4.3*)
8822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8823 hardcode_shlibpath_var=no
8824 export_dynamic_flag_spec='-Bexport'
8825 ;;
8826
8827 sysv4*MP*)
8828 if test -d /usr/nec; then
8829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8830 hardcode_shlibpath_var=no
8831 runpath_var=LD_RUN_PATH
8832 hardcode_runpath_var=yes
8833 ld_shlibs=yes
8834 fi
8835 ;;
8836
ted.mielczarek1adb1842009-12-21 13:12:20 +00008837 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008838 no_undefined_flag='${wl}-z,text'
8839 archive_cmds_need_lc=no
brynercb91a2f2006-08-25 21:14:45 +00008840 hardcode_shlibpath_var=no
mmentovai8c2a4de2006-09-20 16:20:15 +00008841 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +00008842
mmentovai3261e8b2006-09-06 02:56:44 +00008843 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008844 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8845 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00008846 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008847 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8848 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00008849 fi
brynerd5e66382006-09-08 02:35:53 +00008850 ;;
8851
mmentovai8c2a4de2006-09-20 16:20:15 +00008852 sysv5* | sco3.2v5* | sco5v6*)
8853 # Note: We can NOT use -z defs as we might desire, because we do not
8854 # link with -lc, and that would cause any symbols used from libc to
8855 # always be unresolved, which means just about no library would
8856 # ever link correctly. If we're not using GNU ld we use -z text
8857 # though, which does catch some bad symbols but isn't as heavy-handed
8858 # as -z defs.
8859 no_undefined_flag='${wl}-z,text'
8860 allow_undefined_flag='${wl}-z,nodefs'
8861 archive_cmds_need_lc=no
brynerd5e66382006-09-08 02:35:53 +00008862 hardcode_shlibpath_var=no
mmentovai8c2a4de2006-09-20 16:20:15 +00008863 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8864 hardcode_libdir_separator=':'
8865 link_all_deplibs=yes
8866 export_dynamic_flag_spec='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +00008867 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +00008868
8869 if test "$GCC" = yes; then
8870 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8871 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8872 else
8873 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8874 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8875 fi
brynercb91a2f2006-08-25 21:14:45 +00008876 ;;
8877
8878 uts4*)
8879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8880 hardcode_libdir_flag_spec='-L$libdir'
8881 hardcode_shlibpath_var=no
8882 ;;
8883
8884 *)
8885 ld_shlibs=no
8886 ;;
8887 esac
8888 fi
8889
mmentovai8c2a4de2006-09-20 16:20:15 +00008890{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8891echo "${ECHO_T}$ld_shlibs" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008892test "$ld_shlibs" = no && can_build_shared=no
8893
brynercb91a2f2006-08-25 21:14:45 +00008894#
8895# Do we need to explicitly link libc?
8896#
8897case "x$archive_cmds_need_lc" in
8898x|xyes)
8899 # Assume -lc should be added
8900 archive_cmds_need_lc=yes
8901
8902 if test "$enable_shared" = yes && test "$GCC" = yes; then
8903 case $archive_cmds in
8904 *'~'*)
8905 # FIXME: we may have to deal with multi-command sequences.
8906 ;;
8907 '$CC '*)
8908 # Test whether the compiler implicitly links with -lc since on some
8909 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8910 # to ld, don't add -lc before -lgcc.
mmentovai8c2a4de2006-09-20 16:20:15 +00008911 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8912echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008913 $rm conftest*
ted.mielczarek1adb1842009-12-21 13:12:20 +00008914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008915
8916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8917 (eval $ac_compile) 2>&5
8918 ac_status=$?
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } 2>conftest.err; then
8921 soname=conftest
8922 lib=conftest
8923 libobjs=conftest.$ac_objext
8924 deplibs=
8925 wl=$lt_prog_compiler_wl
mmentovai8c2a4de2006-09-20 16:20:15 +00008926 pic_flag=$lt_prog_compiler_pic
brynercb91a2f2006-08-25 21:14:45 +00008927 compiler_flags=-v
8928 linker_flags=-v
8929 verstring=
8930 output_objdir=.
8931 libname=conftest
8932 lt_save_allow_undefined_flag=$allow_undefined_flag
8933 allow_undefined_flag=
8934 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8935 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8936 ac_status=$?
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); }
8939 then
8940 archive_cmds_need_lc=no
8941 else
8942 archive_cmds_need_lc=yes
8943 fi
8944 allow_undefined_flag=$lt_save_allow_undefined_flag
8945 else
8946 cat conftest.err 1>&5
8947 fi
8948 $rm conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +00008949 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8950echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008951 ;;
8952 esac
8953 fi
8954 ;;
8955esac
8956
mmentovai8c2a4de2006-09-20 16:20:15 +00008957{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8958echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008959library_names_spec=
8960libname_spec='lib$name'
8961soname_spec=
8962shrext_cmds=".so"
8963postinstall_cmds=
8964postuninstall_cmds=
8965finish_cmds=
8966finish_eval=
8967shlibpath_var=
8968shlibpath_overrides_runpath=unknown
8969version_type=none
8970dynamic_linker="$host_os ld.so"
8971sys_lib_dlsearch_path_spec="/lib /usr/lib"
ted.mielczarek1adb1842009-12-21 13:12:20 +00008972
brynercb91a2f2006-08-25 21:14:45 +00008973if test "$GCC" = yes; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00008974 case $host_os in
8975 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8976 *) lt_awk_arg="/^libraries:/" ;;
8977 esac
8978 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8979 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
brynercb91a2f2006-08-25 21:14:45 +00008980 # if the path contains ";" then we assume it to be the separator
8981 # otherwise default to the standard path separator (i.e. ":") - it is
8982 # assumed that no part of a normal pathname contains ";" but that should
8983 # okay in the real world where ";" in dirpaths is itself problematic.
ted.mielczarek1adb1842009-12-21 13:12:20 +00008984 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +00008985 else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008986 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +00008987 fi
ted.mielczarek1adb1842009-12-21 13:12:20 +00008988 # Ok, now we have the path, separated by spaces, we can step through it
8989 # and add multilib dir if necessary.
8990 lt_tmp_lt_search_path_spec=
8991 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8992 for lt_sys_path in $lt_search_path_spec; do
8993 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8994 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8995 else
8996 test -d "$lt_sys_path" && \
8997 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8998 fi
8999 done
9000 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9001BEGIN {RS=" "; FS="/|\n";} {
9002 lt_foo="";
9003 lt_count=0;
9004 for (lt_i = NF; lt_i > 0; lt_i--) {
9005 if ($lt_i != "" && $lt_i != ".") {
9006 if ($lt_i == "..") {
9007 lt_count++;
9008 } else {
9009 if (lt_count == 0) {
9010 lt_foo="/" $lt_i lt_foo;
9011 } else {
9012 lt_count--;
9013 }
9014 }
9015 }
9016 }
9017 if (lt_foo != "") { lt_freq[lt_foo]++; }
9018 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9019}'`
9020 sys_lib_search_path_spec=`echo $lt_search_path_spec`
brynercb91a2f2006-08-25 21:14:45 +00009021else
9022 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9023fi
9024need_lib_prefix=unknown
9025hardcode_into_libs=no
9026
9027# when you set need_version to no, make sure it does not cause -set_version
9028# flags to be left without arguments
9029need_version=unknown
9030
9031case $host_os in
9032aix3*)
9033 version_type=linux
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9035 shlibpath_var=LIBPATH
9036
9037 # AIX 3 has no versioning support, so we append a major version to the name.
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 ;;
9040
ted.mielczarek1adb1842009-12-21 13:12:20 +00009041aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +00009042 version_type=linux
9043 need_lib_prefix=no
9044 need_version=no
9045 hardcode_into_libs=yes
9046 if test "$host_cpu" = ia64; then
9047 # AIX 5 supports IA64
9048 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 else
9051 # With GCC up to 2.95.x, collect2 would create an import file
9052 # for dependence libraries. The import file would start with
9053 # the line `#! .'. This would cause the generated library to
9054 # depend on `.', always an invalid library. This was fixed in
9055 # development snapshots of GCC prior to 3.0.
9056 case $host_os in
9057 aix4 | aix4.[01] | aix4.[01].*)
9058 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9059 echo ' yes '
9060 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9061 :
9062 else
9063 can_build_shared=no
9064 fi
9065 ;;
9066 esac
9067 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9068 # soname into executable. Probably we can add versioning support to
9069 # collect2, so additional links can be useful in future.
9070 if test "$aix_use_runtimelinking" = yes; then
9071 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9072 # instead of lib<name>.a to let people know that these are not
9073 # typical AIX shared libraries.
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075 else
9076 # We preserve .a as extension for shared libraries through AIX4.2
9077 # and later when we are not doing run time linking.
9078 library_names_spec='${libname}${release}.a $libname.a'
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 fi
9081 shlibpath_var=LIBPATH
9082 fi
9083 ;;
9084
9085amigaos*)
9086 library_names_spec='$libname.ixlibrary $libname.a'
9087 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9088 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'
9089 ;;
9090
9091beos*)
9092 library_names_spec='${libname}${shared_ext}'
9093 dynamic_linker="$host_os ld.so"
9094 shlibpath_var=LIBRARY_PATH
9095 ;;
9096
mmentovai8c2a4de2006-09-20 16:20:15 +00009097bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00009098 version_type=linux
9099 need_version=no
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101 soname_spec='${libname}${release}${shared_ext}$major'
9102 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9103 shlibpath_var=LD_LIBRARY_PATH
9104 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9105 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9106 # the default ld.so.conf also contains /usr/contrib/lib and
9107 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9108 # libtool to hard-code these into programs
9109 ;;
9110
9111cygwin* | mingw* | pw32*)
9112 version_type=windows
9113 shrext_cmds=".dll"
9114 need_version=no
9115 need_lib_prefix=no
9116
9117 case $GCC,$host_os in
9118 yes,cygwin* | yes,mingw* | yes,pw32*)
9119 library_names_spec='$libname.dll.a'
9120 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9121 postinstall_cmds='base_file=`basename \${file}`~
9122 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9123 dldir=$destdir/`dirname \$dlpath`~
9124 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +00009125 $install_prog $dir/$dlname \$dldir/$dlname~
9126 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +00009127 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9128 dlpath=$dir/\$dldll~
9129 $rm \$dlpath'
9130 shlibpath_overrides_runpath=yes
9131
9132 case $host_os in
9133 cygwin*)
9134 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9135 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9136 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9137 ;;
9138 mingw*)
9139 # MinGW DLLs use traditional 'lib' prefix
9140 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9141 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9142 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9143 # It is most probably a Windows format PATH printed by
9144 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9145 # path with ; separators, and with drive letters. We can handle the
9146 # drive letters (cygwin fileutils understands them), so leave them,
9147 # especially as we might pass files found there to a mingw objdump,
9148 # which wouldn't understand a cygwinified path. Ahh.
9149 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9150 else
9151 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9152 fi
9153 ;;
9154 pw32*)
9155 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +00009156 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 +00009157 ;;
9158 esac
9159 ;;
9160
9161 *)
9162 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9163 ;;
9164 esac
9165 dynamic_linker='Win32 ld.exe'
9166 # FIXME: first we should search . and the directory the executable is in
9167 shlibpath_var=PATH
9168 ;;
9169
9170darwin* | rhapsody*)
9171 dynamic_linker="$host_os dyld"
9172 version_type=darwin
9173 need_lib_prefix=no
9174 need_version=no
9175 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9176 soname_spec='${libname}${release}${major}$shared_ext'
9177 shlibpath_overrides_runpath=yes
9178 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +00009179 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ted.mielczarek1adb1842009-12-21 13:12:20 +00009180
9181 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
brynercb91a2f2006-08-25 21:14:45 +00009182 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9183 ;;
9184
9185dgux*)
9186 version_type=linux
9187 need_lib_prefix=no
9188 need_version=no
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 ;;
9193
9194freebsd1*)
9195 dynamic_linker=no
9196 ;;
9197
mmentovai8c2a4de2006-09-20 16:20:15 +00009198freebsd* | dragonfly*)
9199 # DragonFly does not have aout. When/if they implement a new
9200 # versioning mechanism, adjust this.
9201 if test -x /usr/bin/objformat; then
9202 objformat=`/usr/bin/objformat`
9203 else
9204 case $host_os in
9205 freebsd[123]*) objformat=aout ;;
9206 *) objformat=elf ;;
9207 esac
9208 fi
brynercb91a2f2006-08-25 21:14:45 +00009209 version_type=freebsd-$objformat
9210 case $version_type in
9211 freebsd-elf*)
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9213 need_version=no
9214 need_lib_prefix=no
9215 ;;
9216 freebsd-*)
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9218 need_version=yes
9219 ;;
9220 esac
9221 shlibpath_var=LD_LIBRARY_PATH
9222 case $host_os in
9223 freebsd2*)
9224 shlibpath_overrides_runpath=yes
9225 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009226 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +00009227 shlibpath_overrides_runpath=yes
9228 hardcode_into_libs=yes
9229 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009230 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9231 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +00009232 shlibpath_overrides_runpath=no
9233 hardcode_into_libs=yes
9234 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +00009235 *) # from 4.6 on, and DragonFly
mmentovai8c2a4de2006-09-20 16:20:15 +00009236 shlibpath_overrides_runpath=yes
9237 hardcode_into_libs=yes
9238 ;;
brynercb91a2f2006-08-25 21:14:45 +00009239 esac
9240 ;;
9241
9242gnu*)
9243 version_type=linux
9244 need_lib_prefix=no
9245 need_version=no
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9247 soname_spec='${libname}${release}${shared_ext}$major'
9248 shlibpath_var=LD_LIBRARY_PATH
9249 hardcode_into_libs=yes
9250 ;;
9251
9252hpux9* | hpux10* | hpux11*)
9253 # Give a soname corresponding to the major version so that dld.sl refuses to
9254 # link against other versions.
9255 version_type=sunos
9256 need_lib_prefix=no
9257 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009258 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00009259 ia64*)
9260 shrext_cmds='.so'
9261 hardcode_into_libs=yes
9262 dynamic_linker="$host_os dld.so"
9263 shlibpath_var=LD_LIBRARY_PATH
9264 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266 soname_spec='${libname}${release}${shared_ext}$major'
9267 if test "X$HPUX_IA64_MODE" = X32; then
9268 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9269 else
9270 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9271 fi
9272 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9273 ;;
9274 hppa*64*)
9275 shrext_cmds='.sl'
9276 hardcode_into_libs=yes
9277 dynamic_linker="$host_os dld.sl"
9278 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9279 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9281 soname_spec='${libname}${release}${shared_ext}$major'
9282 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9283 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9284 ;;
9285 *)
9286 shrext_cmds='.sl'
9287 dynamic_linker="$host_os dld.sl"
9288 shlibpath_var=SHLIB_PATH
9289 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 ;;
9293 esac
9294 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9295 postinstall_cmds='chmod 555 $lib'
9296 ;;
9297
ted.mielczarek1adb1842009-12-21 13:12:20 +00009298interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00009299 version_type=linux
9300 need_lib_prefix=no
9301 need_version=no
9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9303 soname_spec='${libname}${release}${shared_ext}$major'
9304 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9305 shlibpath_var=LD_LIBRARY_PATH
9306 shlibpath_overrides_runpath=no
9307 hardcode_into_libs=yes
9308 ;;
9309
brynercb91a2f2006-08-25 21:14:45 +00009310irix5* | irix6* | nonstopux*)
9311 case $host_os in
9312 nonstopux*) version_type=nonstopux ;;
9313 *)
9314 if test "$lt_cv_prog_gnu_ld" = yes; then
9315 version_type=linux
9316 else
9317 version_type=irix
9318 fi ;;
9319 esac
9320 need_lib_prefix=no
9321 need_version=no
9322 soname_spec='${libname}${release}${shared_ext}$major'
9323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9324 case $host_os in
9325 irix5* | nonstopux*)
9326 libsuff= shlibsuff=
9327 ;;
9328 *)
9329 case $LD in # libtool.m4 will add one of these switches to LD
9330 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9331 libsuff= shlibsuff= libmagic=32-bit;;
9332 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9333 libsuff=32 shlibsuff=N32 libmagic=N32;;
9334 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9335 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9336 *) libsuff= shlibsuff= libmagic=never-match;;
9337 esac
9338 ;;
9339 esac
9340 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9341 shlibpath_overrides_runpath=no
9342 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9343 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9344 hardcode_into_libs=yes
9345 ;;
9346
9347# No shared lib support for Linux oldld, aout, or coff.
9348linux*oldld* | linux*aout* | linux*coff*)
9349 dynamic_linker=no
9350 ;;
9351
9352# This must be Linux ELF.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009353linux* | k*bsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +00009354 version_type=linux
9355 need_lib_prefix=no
9356 need_version=no
9357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9358 soname_spec='${libname}${release}${shared_ext}$major'
9359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9360 shlibpath_var=LD_LIBRARY_PATH
9361 shlibpath_overrides_runpath=no
9362 # This implies no fast_install, which is unacceptable.
9363 # Some rework will be needed to allow for fast_install
9364 # before this can be enabled.
9365 hardcode_into_libs=yes
9366
9367 # Append ld.so.conf contents to the search path
9368 if test -f /etc/ld.so.conf; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00009369 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
brynercb91a2f2006-08-25 21:14:45 +00009370 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9371 fi
9372
9373 # We used to test for /lib/ld.so.1 and disable shared libraries on
9374 # powerpc, because MkLinux only supported shared libraries with the
9375 # GNU dynamic linker. Since this was broken with cross compilers,
9376 # most powerpc-linux boxes support dynamic linking these days and
9377 # people can always --disable-shared, the test was removed, and we
9378 # assume the GNU/Linux dynamic linker is in use.
9379 dynamic_linker='GNU/Linux ld.so'
9380 ;;
9381
brynercb91a2f2006-08-25 21:14:45 +00009382netbsd*)
9383 version_type=sunos
9384 need_lib_prefix=no
9385 need_version=no
9386 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9389 dynamic_linker='NetBSD (a.out) ld.so'
9390 else
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9392 soname_spec='${libname}${release}${shared_ext}$major'
9393 dynamic_linker='NetBSD ld.elf_so'
9394 fi
9395 shlibpath_var=LD_LIBRARY_PATH
9396 shlibpath_overrides_runpath=yes
9397 hardcode_into_libs=yes
9398 ;;
9399
9400newsos6)
9401 version_type=linux
9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9403 shlibpath_var=LD_LIBRARY_PATH
9404 shlibpath_overrides_runpath=yes
9405 ;;
9406
9407nto-qnx*)
9408 version_type=linux
9409 need_lib_prefix=no
9410 need_version=no
9411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9412 soname_spec='${libname}${release}${shared_ext}$major'
9413 shlibpath_var=LD_LIBRARY_PATH
9414 shlibpath_overrides_runpath=yes
9415 ;;
9416
9417openbsd*)
9418 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +00009419 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +00009420 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009421 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9422 case $host_os in
9423 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9424 *) need_version=no ;;
9425 esac
brynercb91a2f2006-08-25 21:14:45 +00009426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9428 shlibpath_var=LD_LIBRARY_PATH
9429 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9430 case $host_os in
9431 openbsd2.[89] | openbsd2.[89].*)
9432 shlibpath_overrides_runpath=no
9433 ;;
9434 *)
9435 shlibpath_overrides_runpath=yes
9436 ;;
9437 esac
9438 else
9439 shlibpath_overrides_runpath=yes
9440 fi
9441 ;;
9442
9443os2*)
9444 libname_spec='$name'
9445 shrext_cmds=".dll"
9446 need_lib_prefix=no
9447 library_names_spec='$libname${shared_ext} $libname.a'
9448 dynamic_linker='OS/2 ld.exe'
9449 shlibpath_var=LIBPATH
9450 ;;
9451
9452osf3* | osf4* | osf5*)
9453 version_type=osf
9454 need_lib_prefix=no
9455 need_version=no
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458 shlibpath_var=LD_LIBRARY_PATH
9459 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9460 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9461 ;;
9462
ted.mielczarek1adb1842009-12-21 13:12:20 +00009463rdos*)
9464 dynamic_linker=no
9465 ;;
9466
brynercb91a2f2006-08-25 21:14:45 +00009467solaris*)
9468 version_type=linux
9469 need_lib_prefix=no
9470 need_version=no
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9472 soname_spec='${libname}${release}${shared_ext}$major'
9473 shlibpath_var=LD_LIBRARY_PATH
9474 shlibpath_overrides_runpath=yes
9475 hardcode_into_libs=yes
9476 # ldd complains unless libraries are executable
9477 postinstall_cmds='chmod +x $lib'
9478 ;;
9479
9480sunos4*)
9481 version_type=sunos
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9483 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9484 shlibpath_var=LD_LIBRARY_PATH
9485 shlibpath_overrides_runpath=yes
9486 if test "$with_gnu_ld" = yes; then
9487 need_lib_prefix=no
9488 fi
9489 need_version=yes
9490 ;;
9491
mmentovai8c2a4de2006-09-20 16:20:15 +00009492sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00009493 version_type=linux
9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9495 soname_spec='${libname}${release}${shared_ext}$major'
9496 shlibpath_var=LD_LIBRARY_PATH
9497 case $host_vendor in
9498 sni)
9499 shlibpath_overrides_runpath=no
9500 need_lib_prefix=no
9501 export_dynamic_flag_spec='${wl}-Blargedynsym'
9502 runpath_var=LD_RUN_PATH
9503 ;;
9504 siemens)
9505 need_lib_prefix=no
9506 ;;
9507 motorola)
9508 need_lib_prefix=no
9509 need_version=no
9510 shlibpath_overrides_runpath=no
9511 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9512 ;;
9513 esac
9514 ;;
9515
9516sysv4*MP*)
9517 if test -d /usr/nec ;then
9518 version_type=linux
9519 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9520 soname_spec='$libname${shared_ext}.$major'
9521 shlibpath_var=LD_LIBRARY_PATH
9522 fi
9523 ;;
9524
mmentovai8c2a4de2006-09-20 16:20:15 +00009525sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9526 version_type=freebsd-elf
9527 need_lib_prefix=no
9528 need_version=no
9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9530 soname_spec='${libname}${release}${shared_ext}$major'
9531 shlibpath_var=LD_LIBRARY_PATH
9532 hardcode_into_libs=yes
9533 if test "$with_gnu_ld" = yes; then
9534 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9535 shlibpath_overrides_runpath=no
9536 else
9537 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9538 shlibpath_overrides_runpath=yes
9539 case $host_os in
9540 sco3.2v5*)
9541 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9542 ;;
9543 esac
9544 fi
9545 sys_lib_dlsearch_path_spec='/usr/lib'
9546 ;;
9547
brynercb91a2f2006-08-25 21:14:45 +00009548uts4*)
9549 version_type=linux
9550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551 soname_spec='${libname}${release}${shared_ext}$major'
9552 shlibpath_var=LD_LIBRARY_PATH
9553 ;;
9554
9555*)
9556 dynamic_linker=no
9557 ;;
9558esac
mmentovai8c2a4de2006-09-20 16:20:15 +00009559{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9560echo "${ECHO_T}$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009561test "$dynamic_linker" = no && can_build_shared=no
9562
ted.mielczarek1adb1842009-12-21 13:12:20 +00009563if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9565else
9566 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9567fi
9568
9569sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9570if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9571 echo $ECHO_N "(cached) $ECHO_C" >&6
9572else
9573 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9574fi
9575
9576sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9577
mmentovai8c2a4de2006-09-20 16:20:15 +00009578variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9579if test "$GCC" = yes; then
9580 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9581fi
9582
9583{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9584echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009585hardcode_action=
9586if test -n "$hardcode_libdir_flag_spec" || \
mmentovai8c2a4de2006-09-20 16:20:15 +00009587 test -n "$runpath_var" || \
9588 test "X$hardcode_automatic" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +00009589
9590 # We can hardcode non-existant directories.
9591 if test "$hardcode_direct" != no &&
9592 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9593 # have to relink, otherwise we might link with an installed library
9594 # when we should be linking with a yet-to-be-installed one
9595 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9596 test "$hardcode_minus_L" != no; then
9597 # Linking always hardcodes the temporary library directory.
9598 hardcode_action=relink
9599 else
9600 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9601 hardcode_action=immediate
9602 fi
9603else
9604 # We cannot hardcode anything, or else we can only hardcode existing
9605 # directories.
9606 hardcode_action=unsupported
9607fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009608{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9609echo "${ECHO_T}$hardcode_action" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009610
9611if test "$hardcode_action" = relink; then
9612 # Fast installation is not supported
9613 enable_fast_install=no
9614elif test "$shlibpath_overrides_runpath" = yes ||
9615 test "$enable_shared" = no; then
9616 # Fast installation is not necessary
9617 enable_fast_install=needless
9618fi
9619
9620striplib=
9621old_striplib=
mmentovai8c2a4de2006-09-20 16:20:15 +00009622{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9623echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009624if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9625 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9626 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
mmentovai8c2a4de2006-09-20 16:20:15 +00009627 { echo "$as_me:$LINENO: result: yes" >&5
9628echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009629else
9630# FIXME - insert some real tests, host_os isn't really good enough
9631 case $host_os in
9632 darwin*)
9633 if test -n "$STRIP" ; then
9634 striplib="$STRIP -x"
ted.mielczarek1adb1842009-12-21 13:12:20 +00009635 old_striplib="$STRIP -S"
mmentovai8c2a4de2006-09-20 16:20:15 +00009636 { echo "$as_me:$LINENO: result: yes" >&5
9637echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009638 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009639 { echo "$as_me:$LINENO: result: no" >&5
9640echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009641fi
9642 ;;
9643 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00009644 { echo "$as_me:$LINENO: result: no" >&5
9645echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009646 ;;
9647 esac
9648fi
9649
9650if test "x$enable_dlopen" != xyes; then
9651 enable_dlopen=unknown
9652 enable_dlopen_self=unknown
9653 enable_dlopen_self_static=unknown
9654else
9655 lt_cv_dlopen=no
9656 lt_cv_dlopen_libs=
9657
9658 case $host_os in
9659 beos*)
9660 lt_cv_dlopen="load_add_on"
9661 lt_cv_dlopen_libs=
9662 lt_cv_dlopen_self=yes
9663 ;;
9664
9665 mingw* | pw32*)
9666 lt_cv_dlopen="LoadLibrary"
9667 lt_cv_dlopen_libs=
9668 ;;
9669
9670 cygwin*)
9671 lt_cv_dlopen="dlopen"
9672 lt_cv_dlopen_libs=
9673 ;;
9674
9675 darwin*)
9676 # if libdl is installed we need to link against it
mmentovai8c2a4de2006-09-20 16:20:15 +00009677 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9678echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009679if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9680 echo $ECHO_N "(cached) $ECHO_C" >&6
9681else
9682 ac_check_lib_save_LIBS=$LIBS
9683LIBS="-ldl $LIBS"
9684cat >conftest.$ac_ext <<_ACEOF
9685/* confdefs.h. */
9686_ACEOF
9687cat confdefs.h >>conftest.$ac_ext
9688cat >>conftest.$ac_ext <<_ACEOF
9689/* end confdefs.h. */
9690
mmentovai8c2a4de2006-09-20 16:20:15 +00009691/* Override any GCC internal prototype to avoid an error.
9692 Use char because int might match the return type of a GCC
9693 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009694#ifdef __cplusplus
9695extern "C"
9696#endif
brynercb91a2f2006-08-25 21:14:45 +00009697char dlopen ();
9698int
9699main ()
9700{
mmentovai8c2a4de2006-09-20 16:20:15 +00009701return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +00009702 ;
9703 return 0;
9704}
9705_ACEOF
9706rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009707if { (ac_try="$ac_link"
9708case "(($ac_try" in
9709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710 *) ac_try_echo=$ac_try;;
9711esac
9712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009714 ac_status=$?
9715 grep -v '^ *+' conftest.er1 >conftest.err
9716 rm -f conftest.er1
9717 cat conftest.err >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00009719 (exit $ac_status); } && {
9720 test -z "$ac_c_werror_flag" ||
9721 test ! -s conftest.err
9722 } && test -s conftest$ac_exeext &&
9723 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +00009724 ac_cv_lib_dl_dlopen=yes
9725else
9726 echo "$as_me: failed program was:" >&5
9727sed 's/^/| /' conftest.$ac_ext >&5
9728
mmentovai8c2a4de2006-09-20 16:20:15 +00009729 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +00009730fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009731
mmentovaiaf3c43f2007-05-17 18:34:37 +00009732rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +00009733 conftest$ac_exeext conftest.$ac_ext
9734LIBS=$ac_check_lib_save_LIBS
9735fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009736{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9737echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009738if test $ac_cv_lib_dl_dlopen = yes; then
9739 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9740else
9741
9742 lt_cv_dlopen="dyld"
9743 lt_cv_dlopen_libs=
9744 lt_cv_dlopen_self=yes
9745
9746fi
9747
9748 ;;
9749
9750 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00009751 { echo "$as_me:$LINENO: checking for shl_load" >&5
9752echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009753if test "${ac_cv_func_shl_load+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9755else
9756 cat >conftest.$ac_ext <<_ACEOF
9757/* confdefs.h. */
9758_ACEOF
9759cat confdefs.h >>conftest.$ac_ext
9760cat >>conftest.$ac_ext <<_ACEOF
9761/* end confdefs.h. */
9762/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9764#define shl_load innocuous_shl_load
9765
9766/* System header to define __stub macros and hopefully few prototypes,
9767 which can conflict with char shl_load (); below.
9768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9769 <limits.h> exists even on freestanding compilers. */
9770
9771#ifdef __STDC__
9772# include <limits.h>
9773#else
9774# include <assert.h>
9775#endif
9776
9777#undef shl_load
9778
mmentovai8c2a4de2006-09-20 16:20:15 +00009779/* Override any GCC internal prototype to avoid an error.
9780 Use char because int might match the return type of a GCC
9781 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009782#ifdef __cplusplus
9783extern "C"
brynercb91a2f2006-08-25 21:14:45 +00009784#endif
brynercb91a2f2006-08-25 21:14:45 +00009785char shl_load ();
9786/* The GNU C library defines this for functions which it implements
9787 to always fail with ENOSYS. Some functions are actually named
9788 something starting with __ and the normal name is an alias. */
mmentovai8c2a4de2006-09-20 16:20:15 +00009789#if defined __stub_shl_load || defined __stub___shl_load
brynercb91a2f2006-08-25 21:14:45 +00009790choke me
brynercb91a2f2006-08-25 21:14:45 +00009791#endif
9792
9793int
9794main ()
9795{
mmentovai8c2a4de2006-09-20 16:20:15 +00009796return shl_load ();
brynercb91a2f2006-08-25 21:14:45 +00009797 ;
9798 return 0;
9799}
9800_ACEOF
9801rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009802if { (ac_try="$ac_link"
9803case "(($ac_try" in
9804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805 *) ac_try_echo=$ac_try;;
9806esac
9807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009809 ac_status=$?
9810 grep -v '^ *+' conftest.er1 >conftest.err
9811 rm -f conftest.er1
9812 cat conftest.err >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00009814 (exit $ac_status); } && {
9815 test -z "$ac_c_werror_flag" ||
9816 test ! -s conftest.err
9817 } && test -s conftest$ac_exeext &&
9818 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +00009819 ac_cv_func_shl_load=yes
9820else
9821 echo "$as_me: failed program was:" >&5
9822sed 's/^/| /' conftest.$ac_ext >&5
9823
mmentovai8c2a4de2006-09-20 16:20:15 +00009824 ac_cv_func_shl_load=no
brynercb91a2f2006-08-25 21:14:45 +00009825fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009826
mmentovaiaf3c43f2007-05-17 18:34:37 +00009827rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +00009828 conftest$ac_exeext conftest.$ac_ext
9829fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009830{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9831echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009832if test $ac_cv_func_shl_load = yes; then
9833 lt_cv_dlopen="shl_load"
9834else
mmentovai8c2a4de2006-09-20 16:20:15 +00009835 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9836echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009837if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9839else
9840 ac_check_lib_save_LIBS=$LIBS
9841LIBS="-ldld $LIBS"
9842cat >conftest.$ac_ext <<_ACEOF
9843/* confdefs.h. */
9844_ACEOF
9845cat confdefs.h >>conftest.$ac_ext
9846cat >>conftest.$ac_ext <<_ACEOF
9847/* end confdefs.h. */
9848
mmentovai8c2a4de2006-09-20 16:20:15 +00009849/* Override any GCC internal prototype to avoid an error.
9850 Use char because int might match the return type of a GCC
9851 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009852#ifdef __cplusplus
9853extern "C"
9854#endif
brynercb91a2f2006-08-25 21:14:45 +00009855char shl_load ();
9856int
9857main ()
9858{
mmentovai8c2a4de2006-09-20 16:20:15 +00009859return shl_load ();
brynercb91a2f2006-08-25 21:14:45 +00009860 ;
9861 return 0;
9862}
9863_ACEOF
9864rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009865if { (ac_try="$ac_link"
9866case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9869esac
9870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009872 ac_status=$?
9873 grep -v '^ *+' conftest.er1 >conftest.err
9874 rm -f conftest.er1
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00009877 (exit $ac_status); } && {
9878 test -z "$ac_c_werror_flag" ||
9879 test ! -s conftest.err
9880 } && test -s conftest$ac_exeext &&
9881 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +00009882 ac_cv_lib_dld_shl_load=yes
9883else
9884 echo "$as_me: failed program was:" >&5
9885sed 's/^/| /' conftest.$ac_ext >&5
9886
mmentovai8c2a4de2006-09-20 16:20:15 +00009887 ac_cv_lib_dld_shl_load=no
brynercb91a2f2006-08-25 21:14:45 +00009888fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009889
mmentovaiaf3c43f2007-05-17 18:34:37 +00009890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +00009891 conftest$ac_exeext conftest.$ac_ext
9892LIBS=$ac_check_lib_save_LIBS
9893fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009894{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9895echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009896if test $ac_cv_lib_dld_shl_load = yes; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00009897 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
brynercb91a2f2006-08-25 21:14:45 +00009898else
mmentovai8c2a4de2006-09-20 16:20:15 +00009899 { echo "$as_me:$LINENO: checking for dlopen" >&5
9900echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009901if test "${ac_cv_func_dlopen+set}" = set; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9903else
9904 cat >conftest.$ac_ext <<_ACEOF
9905/* confdefs.h. */
9906_ACEOF
9907cat confdefs.h >>conftest.$ac_ext
9908cat >>conftest.$ac_ext <<_ACEOF
9909/* end confdefs.h. */
9910/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9912#define dlopen innocuous_dlopen
9913
9914/* System header to define __stub macros and hopefully few prototypes,
9915 which can conflict with char dlopen (); below.
9916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9917 <limits.h> exists even on freestanding compilers. */
9918
9919#ifdef __STDC__
9920# include <limits.h>
9921#else
9922# include <assert.h>
9923#endif
9924
9925#undef dlopen
9926
mmentovai8c2a4de2006-09-20 16:20:15 +00009927/* Override any GCC internal prototype to avoid an error.
9928 Use char because int might match the return type of a GCC
9929 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009930#ifdef __cplusplus
9931extern "C"
brynercb91a2f2006-08-25 21:14:45 +00009932#endif
brynercb91a2f2006-08-25 21:14:45 +00009933char dlopen ();
9934/* The GNU C library defines this for functions which it implements
9935 to always fail with ENOSYS. Some functions are actually named
9936 something starting with __ and the normal name is an alias. */
mmentovai8c2a4de2006-09-20 16:20:15 +00009937#if defined __stub_dlopen || defined __stub___dlopen
brynercb91a2f2006-08-25 21:14:45 +00009938choke me
brynercb91a2f2006-08-25 21:14:45 +00009939#endif
9940
9941int
9942main ()
9943{
mmentovai8c2a4de2006-09-20 16:20:15 +00009944return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +00009945 ;
9946 return 0;
9947}
9948_ACEOF
9949rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009950if { (ac_try="$ac_link"
9951case "(($ac_try" in
9952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953 *) ac_try_echo=$ac_try;;
9954esac
9955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009957 ac_status=$?
9958 grep -v '^ *+' conftest.er1 >conftest.err
9959 rm -f conftest.er1
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00009962 (exit $ac_status); } && {
9963 test -z "$ac_c_werror_flag" ||
9964 test ! -s conftest.err
9965 } && test -s conftest$ac_exeext &&
9966 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +00009967 ac_cv_func_dlopen=yes
9968else
9969 echo "$as_me: failed program was:" >&5
9970sed 's/^/| /' conftest.$ac_ext >&5
9971
mmentovai8c2a4de2006-09-20 16:20:15 +00009972 ac_cv_func_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +00009973fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009974
mmentovaiaf3c43f2007-05-17 18:34:37 +00009975rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +00009976 conftest$ac_exeext conftest.$ac_ext
9977fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009978{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9979echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009980if test $ac_cv_func_dlopen = yes; then
9981 lt_cv_dlopen="dlopen"
9982else
mmentovai8c2a4de2006-09-20 16:20:15 +00009983 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9984echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009985if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9987else
9988 ac_check_lib_save_LIBS=$LIBS
9989LIBS="-ldl $LIBS"
9990cat >conftest.$ac_ext <<_ACEOF
9991/* confdefs.h. */
9992_ACEOF
9993cat confdefs.h >>conftest.$ac_ext
9994cat >>conftest.$ac_ext <<_ACEOF
9995/* end confdefs.h. */
9996
mmentovai8c2a4de2006-09-20 16:20:15 +00009997/* Override any GCC internal prototype to avoid an error.
9998 Use char because int might match the return type of a GCC
9999 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010000#ifdef __cplusplus
10001extern "C"
10002#endif
brynercb91a2f2006-08-25 21:14:45 +000010003char dlopen ();
10004int
10005main ()
10006{
mmentovai8c2a4de2006-09-20 16:20:15 +000010007return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000010008 ;
10009 return 0;
10010}
10011_ACEOF
10012rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000010013if { (ac_try="$ac_link"
10014case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10017esac
10018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000010020 ac_status=$?
10021 grep -v '^ *+' conftest.er1 >conftest.err
10022 rm -f conftest.er1
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000010025 (exit $ac_status); } && {
10026 test -z "$ac_c_werror_flag" ||
10027 test ! -s conftest.err
10028 } && test -s conftest$ac_exeext &&
10029 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +000010030 ac_cv_lib_dl_dlopen=yes
10031else
10032 echo "$as_me: failed program was:" >&5
10033sed 's/^/| /' conftest.$ac_ext >&5
10034
mmentovai8c2a4de2006-09-20 16:20:15 +000010035 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000010036fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010037
mmentovaiaf3c43f2007-05-17 18:34:37 +000010038rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +000010039 conftest$ac_exeext conftest.$ac_ext
10040LIBS=$ac_check_lib_save_LIBS
10041fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010042{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10043echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010044if test $ac_cv_lib_dl_dlopen = yes; then
10045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10046else
mmentovai8c2a4de2006-09-20 16:20:15 +000010047 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10048echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010049if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10051else
10052 ac_check_lib_save_LIBS=$LIBS
10053LIBS="-lsvld $LIBS"
10054cat >conftest.$ac_ext <<_ACEOF
10055/* confdefs.h. */
10056_ACEOF
10057cat confdefs.h >>conftest.$ac_ext
10058cat >>conftest.$ac_ext <<_ACEOF
10059/* end confdefs.h. */
10060
mmentovai8c2a4de2006-09-20 16:20:15 +000010061/* Override any GCC internal prototype to avoid an error.
10062 Use char because int might match the return type of a GCC
10063 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010064#ifdef __cplusplus
10065extern "C"
10066#endif
brynercb91a2f2006-08-25 21:14:45 +000010067char dlopen ();
10068int
10069main ()
10070{
mmentovai8c2a4de2006-09-20 16:20:15 +000010071return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000010072 ;
10073 return 0;
10074}
10075_ACEOF
10076rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000010077if { (ac_try="$ac_link"
10078case "(($ac_try" in
10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10081esac
10082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000010084 ac_status=$?
10085 grep -v '^ *+' conftest.er1 >conftest.err
10086 rm -f conftest.er1
10087 cat conftest.err >&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000010089 (exit $ac_status); } && {
10090 test -z "$ac_c_werror_flag" ||
10091 test ! -s conftest.err
10092 } && test -s conftest$ac_exeext &&
10093 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +000010094 ac_cv_lib_svld_dlopen=yes
10095else
10096 echo "$as_me: failed program was:" >&5
10097sed 's/^/| /' conftest.$ac_ext >&5
10098
mmentovai8c2a4de2006-09-20 16:20:15 +000010099 ac_cv_lib_svld_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000010100fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010101
mmentovaiaf3c43f2007-05-17 18:34:37 +000010102rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +000010103 conftest$ac_exeext conftest.$ac_ext
10104LIBS=$ac_check_lib_save_LIBS
10105fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010106{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10107echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010108if test $ac_cv_lib_svld_dlopen = yes; then
10109 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10110else
mmentovai8c2a4de2006-09-20 16:20:15 +000010111 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10112echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010113if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10115else
10116 ac_check_lib_save_LIBS=$LIBS
10117LIBS="-ldld $LIBS"
10118cat >conftest.$ac_ext <<_ACEOF
10119/* confdefs.h. */
10120_ACEOF
10121cat confdefs.h >>conftest.$ac_ext
10122cat >>conftest.$ac_ext <<_ACEOF
10123/* end confdefs.h. */
10124
mmentovai8c2a4de2006-09-20 16:20:15 +000010125/* Override any GCC internal prototype to avoid an error.
10126 Use char because int might match the return type of a GCC
10127 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010128#ifdef __cplusplus
10129extern "C"
10130#endif
brynercb91a2f2006-08-25 21:14:45 +000010131char dld_link ();
10132int
10133main ()
10134{
mmentovai8c2a4de2006-09-20 16:20:15 +000010135return dld_link ();
brynercb91a2f2006-08-25 21:14:45 +000010136 ;
10137 return 0;
10138}
10139_ACEOF
10140rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000010141if { (ac_try="$ac_link"
10142case "(($ac_try" in
10143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10144 *) ac_try_echo=$ac_try;;
10145esac
10146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000010148 ac_status=$?
10149 grep -v '^ *+' conftest.er1 >conftest.err
10150 rm -f conftest.er1
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000010153 (exit $ac_status); } && {
10154 test -z "$ac_c_werror_flag" ||
10155 test ! -s conftest.err
10156 } && test -s conftest$ac_exeext &&
10157 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +000010158 ac_cv_lib_dld_dld_link=yes
10159else
10160 echo "$as_me: failed program was:" >&5
10161sed 's/^/| /' conftest.$ac_ext >&5
10162
mmentovai8c2a4de2006-09-20 16:20:15 +000010163 ac_cv_lib_dld_dld_link=no
brynercb91a2f2006-08-25 21:14:45 +000010164fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010165
mmentovaiaf3c43f2007-05-17 18:34:37 +000010166rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +000010167 conftest$ac_exeext conftest.$ac_ext
10168LIBS=$ac_check_lib_save_LIBS
10169fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010170{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10171echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010172if test $ac_cv_lib_dld_dld_link = yes; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000010173 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
brynercb91a2f2006-08-25 21:14:45 +000010174fi
10175
10176
10177fi
10178
10179
10180fi
10181
10182
10183fi
10184
10185
10186fi
10187
10188
10189fi
10190
10191 ;;
10192 esac
10193
10194 if test "x$lt_cv_dlopen" != xno; then
10195 enable_dlopen=yes
10196 else
10197 enable_dlopen=no
10198 fi
10199
10200 case $lt_cv_dlopen in
10201 dlopen)
10202 save_CPPFLAGS="$CPPFLAGS"
10203 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10204
10205 save_LDFLAGS="$LDFLAGS"
mmentovai8c2a4de2006-09-20 16:20:15 +000010206 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
brynercb91a2f2006-08-25 21:14:45 +000010207
10208 save_LIBS="$LIBS"
10209 LIBS="$lt_cv_dlopen_libs $LIBS"
10210
mmentovai8c2a4de2006-09-20 16:20:15 +000010211 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10212echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010213if test "${lt_cv_dlopen_self+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10215else
10216 if test "$cross_compiling" = yes; then :
10217 lt_cv_dlopen_self=cross
10218else
10219 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10220 lt_status=$lt_dlunknown
10221 cat > conftest.$ac_ext <<EOF
ted.mielczarek1adb1842009-12-21 13:12:20 +000010222#line 10222 "configure"
brynercb91a2f2006-08-25 21:14:45 +000010223#include "confdefs.h"
10224
10225#if HAVE_DLFCN_H
10226#include <dlfcn.h>
10227#endif
10228
10229#include <stdio.h>
10230
10231#ifdef RTLD_GLOBAL
10232# define LT_DLGLOBAL RTLD_GLOBAL
10233#else
10234# ifdef DL_GLOBAL
10235# define LT_DLGLOBAL DL_GLOBAL
10236# else
10237# define LT_DLGLOBAL 0
10238# endif
10239#endif
10240
10241/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10242 find out it does not work in some platform. */
10243#ifndef LT_DLLAZY_OR_NOW
10244# ifdef RTLD_LAZY
10245# define LT_DLLAZY_OR_NOW RTLD_LAZY
10246# else
10247# ifdef DL_LAZY
10248# define LT_DLLAZY_OR_NOW DL_LAZY
10249# else
10250# ifdef RTLD_NOW
10251# define LT_DLLAZY_OR_NOW RTLD_NOW
10252# else
10253# ifdef DL_NOW
10254# define LT_DLLAZY_OR_NOW DL_NOW
10255# else
10256# define LT_DLLAZY_OR_NOW 0
10257# endif
10258# endif
10259# endif
10260# endif
10261#endif
10262
10263#ifdef __cplusplus
10264extern "C" void exit (int);
10265#endif
10266
10267void fnord() { int i=42;}
10268int main ()
10269{
10270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10271 int status = $lt_dlunknown;
10272
10273 if (self)
10274 {
10275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10276 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10277 /* dlclose (self); */
10278 }
mmentovai8c2a4de2006-09-20 16:20:15 +000010279 else
10280 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000010281
10282 exit (status);
10283}
10284EOF
10285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10286 (eval $ac_link) 2>&5
10287 ac_status=$?
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010290 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000010291 lt_status=$?
10292 case x$lt_status in
10293 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10294 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010295 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
brynercb91a2f2006-08-25 21:14:45 +000010296 esac
10297 else :
10298 # compilation failed
10299 lt_cv_dlopen_self=no
10300 fi
10301fi
10302rm -fr conftest*
10303
10304
10305fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010306{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10307echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010308
10309 if test "x$lt_cv_dlopen_self" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010310 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10311 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10312echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010313if test "${lt_cv_dlopen_self_static+set}" = set; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10315else
10316 if test "$cross_compiling" = yes; then :
10317 lt_cv_dlopen_self_static=cross
10318else
10319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10320 lt_status=$lt_dlunknown
10321 cat > conftest.$ac_ext <<EOF
ted.mielczarek1adb1842009-12-21 13:12:20 +000010322#line 10322 "configure"
brynercb91a2f2006-08-25 21:14:45 +000010323#include "confdefs.h"
10324
10325#if HAVE_DLFCN_H
10326#include <dlfcn.h>
10327#endif
10328
10329#include <stdio.h>
10330
10331#ifdef RTLD_GLOBAL
10332# define LT_DLGLOBAL RTLD_GLOBAL
10333#else
10334# ifdef DL_GLOBAL
10335# define LT_DLGLOBAL DL_GLOBAL
10336# else
10337# define LT_DLGLOBAL 0
10338# endif
10339#endif
10340
10341/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10342 find out it does not work in some platform. */
10343#ifndef LT_DLLAZY_OR_NOW
10344# ifdef RTLD_LAZY
10345# define LT_DLLAZY_OR_NOW RTLD_LAZY
10346# else
10347# ifdef DL_LAZY
10348# define LT_DLLAZY_OR_NOW DL_LAZY
10349# else
10350# ifdef RTLD_NOW
10351# define LT_DLLAZY_OR_NOW RTLD_NOW
10352# else
10353# ifdef DL_NOW
10354# define LT_DLLAZY_OR_NOW DL_NOW
10355# else
10356# define LT_DLLAZY_OR_NOW 0
10357# endif
10358# endif
10359# endif
10360# endif
10361#endif
10362
10363#ifdef __cplusplus
10364extern "C" void exit (int);
10365#endif
10366
10367void fnord() { int i=42;}
10368int main ()
10369{
10370 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10371 int status = $lt_dlunknown;
10372
10373 if (self)
10374 {
10375 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10376 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10377 /* dlclose (self); */
10378 }
mmentovai8c2a4de2006-09-20 16:20:15 +000010379 else
10380 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000010381
10382 exit (status);
10383}
10384EOF
10385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10386 (eval $ac_link) 2>&5
10387 ac_status=$?
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010390 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000010391 lt_status=$?
10392 case x$lt_status in
10393 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10394 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010395 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
brynercb91a2f2006-08-25 21:14:45 +000010396 esac
10397 else :
10398 # compilation failed
10399 lt_cv_dlopen_self_static=no
10400 fi
10401fi
10402rm -fr conftest*
10403
10404
10405fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010406{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10407echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010408 fi
10409
10410 CPPFLAGS="$save_CPPFLAGS"
10411 LDFLAGS="$save_LDFLAGS"
10412 LIBS="$save_LIBS"
10413 ;;
10414 esac
10415
10416 case $lt_cv_dlopen_self in
10417 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10418 *) enable_dlopen_self=unknown ;;
10419 esac
10420
10421 case $lt_cv_dlopen_self_static in
10422 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10423 *) enable_dlopen_self_static=unknown ;;
10424 esac
10425fi
10426
10427
mmentovai8c2a4de2006-09-20 16:20:15 +000010428# Report which library types will actually be built
10429{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10430echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10431{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10432echo "${ECHO_T}$can_build_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010433
mmentovai8c2a4de2006-09-20 16:20:15 +000010434{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10435echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010436test "$can_build_shared" = "no" && enable_shared=no
10437
10438# On AIX, shared libraries and static libraries use the same namespace, and
10439# are all built from PIC.
mmentovai8c2a4de2006-09-20 16:20:15 +000010440case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000010441aix3*)
10442 test "$enable_shared" = yes && enable_static=no
10443 if test -n "$RANLIB"; then
10444 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10445 postinstall_cmds='$RANLIB $lib'
10446 fi
10447 ;;
10448
ted.mielczarek1adb1842009-12-21 13:12:20 +000010449aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000010450 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10451 test "$enable_shared" = yes && enable_static=no
10452 fi
brynercb91a2f2006-08-25 21:14:45 +000010453 ;;
10454esac
mmentovai8c2a4de2006-09-20 16:20:15 +000010455{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10456echo "${ECHO_T}$enable_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010457
mmentovai8c2a4de2006-09-20 16:20:15 +000010458{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10459echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010460# Make sure either enable_shared or enable_static is yes.
10461test "$enable_shared" = yes || enable_static=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000010462{ echo "$as_me:$LINENO: result: $enable_static" >&5
10463echo "${ECHO_T}$enable_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010464
10465# The else clause should only fire when bootstrapping the
10466# libtool distribution, otherwise you forgot to ship ltmain.sh
10467# with your package, and you will get complaints that there are
10468# no rules to generate ltmain.sh.
10469if test -f "$ltmain"; then
10470 # See if we are running on zsh, and set the options which allow our commands through
10471 # without removal of \ escapes.
10472 if test -n "${ZSH_VERSION+set}" ; then
10473 setopt NO_GLOB_SUBST
10474 fi
10475 # Now quote all the things that may contain metacharacters while being
10476 # careful not to overquote the AC_SUBSTed values. We take copies of the
10477 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000010478 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000010479 SED SHELL STRIP \
10480 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10481 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10482 deplibs_check_method reload_flag reload_cmds need_locks \
10483 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10484 lt_cv_sys_global_symbol_to_c_name_address \
10485 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10486 old_postinstall_cmds old_postuninstall_cmds \
10487 compiler \
10488 CC \
10489 LD \
10490 lt_prog_compiler_wl \
10491 lt_prog_compiler_pic \
10492 lt_prog_compiler_static \
10493 lt_prog_compiler_no_builtin_flag \
10494 export_dynamic_flag_spec \
10495 thread_safe_flag_spec \
10496 whole_archive_flag_spec \
10497 enable_shared_with_static_runtimes \
10498 old_archive_cmds \
10499 old_archive_from_new_cmds \
10500 predep_objects \
10501 postdep_objects \
10502 predeps \
10503 postdeps \
10504 compiler_lib_search_path \
ted.mielczarek1adb1842009-12-21 13:12:20 +000010505 compiler_lib_search_dirs \
brynercb91a2f2006-08-25 21:14:45 +000010506 archive_cmds \
10507 archive_expsym_cmds \
10508 postinstall_cmds \
10509 postuninstall_cmds \
10510 old_archive_from_expsyms_cmds \
10511 allow_undefined_flag \
10512 no_undefined_flag \
10513 export_symbols_cmds \
10514 hardcode_libdir_flag_spec \
10515 hardcode_libdir_flag_spec_ld \
10516 hardcode_libdir_separator \
10517 hardcode_automatic \
10518 module_cmds \
10519 module_expsym_cmds \
10520 lt_cv_prog_compiler_c_o \
ted.mielczarek1adb1842009-12-21 13:12:20 +000010521 fix_srcfile_path \
brynercb91a2f2006-08-25 21:14:45 +000010522 exclude_expsyms \
10523 include_expsyms; do
10524
10525 case $var in
10526 old_archive_cmds | \
10527 old_archive_from_new_cmds | \
10528 archive_cmds | \
10529 archive_expsym_cmds | \
10530 module_cmds | \
10531 module_expsym_cmds | \
10532 old_archive_from_expsyms_cmds | \
10533 export_symbols_cmds | \
10534 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10535 postinstall_cmds | postuninstall_cmds | \
10536 old_postinstall_cmds | old_postuninstall_cmds | \
10537 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10538 # Double-quote double-evaled strings.
10539 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10540 ;;
10541 *)
10542 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10543 ;;
10544 esac
10545 done
10546
10547 case $lt_echo in
10548 *'\$0 --fallback-echo"')
10549 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10550 ;;
10551 esac
10552
10553cfgfile="${ofile}T"
10554 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10555 $rm -f "$cfgfile"
10556 { echo "$as_me:$LINENO: creating $ofile" >&5
10557echo "$as_me: creating $ofile" >&6;}
10558
10559 cat <<__EOF__ >> "$cfgfile"
10560#! $SHELL
10561
10562# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10563# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10564# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10565#
ted.mielczarek1adb1842009-12-21 13:12:20 +000010566# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
brynercb91a2f2006-08-25 21:14:45 +000010567# Free Software Foundation, Inc.
10568#
10569# This file is part of GNU Libtool:
10570# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10571#
10572# This program is free software; you can redistribute it and/or modify
10573# it under the terms of the GNU General Public License as published by
10574# the Free Software Foundation; either version 2 of the License, or
10575# (at your option) any later version.
10576#
10577# This program is distributed in the hope that it will be useful, but
10578# WITHOUT ANY WARRANTY; without even the implied warranty of
10579# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10580# General Public License for more details.
10581#
10582# You should have received a copy of the GNU General Public License
10583# along with this program; if not, write to the Free Software
mmentovai8c2a4de2006-09-20 16:20:15 +000010584# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
brynercb91a2f2006-08-25 21:14:45 +000010585#
10586# As a special exception to the GNU General Public License, if you
10587# distribute this file as part of a program that contains a
10588# configuration script generated by Autoconf, you may include it under
10589# the same distribution terms that you use for the rest of that program.
10590
10591# A sed program that does not truncate output.
10592SED=$lt_SED
10593
10594# Sed that helps us avoid accidentally triggering echo(1) options like -n.
mmentovai8c2a4de2006-09-20 16:20:15 +000010595Xsed="$SED -e 1s/^X//"
brynercb91a2f2006-08-25 21:14:45 +000010596
10597# The HP-UX ksh and POSIX shell print the target directory to stdout
10598# if CDPATH is set.
mmentovai8c2a4de2006-09-20 16:20:15 +000010599(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
brynercb91a2f2006-08-25 21:14:45 +000010600
10601# The names of the tagged configurations supported by this script.
10602available_tags=
10603
10604# ### BEGIN LIBTOOL CONFIG
10605
10606# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10607
10608# Shell to use when invoking shell scripts.
10609SHELL=$lt_SHELL
10610
10611# Whether or not to build shared libraries.
10612build_libtool_libs=$enable_shared
10613
10614# Whether or not to build static libraries.
10615build_old_libs=$enable_static
10616
10617# Whether or not to add -lc for building shared libraries.
10618build_libtool_need_lc=$archive_cmds_need_lc
10619
10620# Whether or not to disallow shared libs when runtime libs are static
10621allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10622
10623# Whether or not to optimize for fast installation.
10624fast_install=$enable_fast_install
10625
10626# The host system.
10627host_alias=$host_alias
10628host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000010629host_os=$host_os
10630
10631# The build system.
10632build_alias=$build_alias
10633build=$build
10634build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000010635
10636# An echo program that does not interpret backslashes.
10637echo=$lt_echo
10638
10639# The archiver.
10640AR=$lt_AR
10641AR_FLAGS=$lt_AR_FLAGS
10642
10643# A C compiler.
10644LTCC=$lt_LTCC
10645
mmentovai8c2a4de2006-09-20 16:20:15 +000010646# LTCC compiler flags.
10647LTCFLAGS=$lt_LTCFLAGS
10648
brynercb91a2f2006-08-25 21:14:45 +000010649# A language-specific compiler.
10650CC=$lt_compiler
10651
10652# Is the compiler the GNU C compiler?
10653with_gcc=$GCC
10654
10655# An ERE matcher.
10656EGREP=$lt_EGREP
10657
10658# The linker used to build libraries.
10659LD=$lt_LD
10660
10661# Whether we need hard or soft links.
10662LN_S=$lt_LN_S
10663
10664# A BSD-compatible nm program.
10665NM=$lt_NM
10666
10667# A symbol stripping program
10668STRIP=$lt_STRIP
10669
10670# Used to examine libraries when file_magic_cmd begins "file"
10671MAGIC_CMD=$MAGIC_CMD
10672
10673# Used on cygwin: DLL creation program.
10674DLLTOOL="$DLLTOOL"
10675
10676# Used on cygwin: object dumper.
10677OBJDUMP="$OBJDUMP"
10678
10679# Used on cygwin: assembler.
10680AS="$AS"
10681
10682# The name of the directory that contains temporary libtool files.
10683objdir=$objdir
10684
10685# How to create reloadable object files.
10686reload_flag=$lt_reload_flag
10687reload_cmds=$lt_reload_cmds
10688
10689# How to pass a linker flag through the compiler.
10690wl=$lt_lt_prog_compiler_wl
10691
10692# Object file suffix (normally "o").
10693objext="$ac_objext"
10694
10695# Old archive suffix (normally "a").
10696libext="$libext"
10697
10698# Shared library suffix (normally ".so").
10699shrext_cmds='$shrext_cmds'
10700
10701# Executable file suffix (normally "").
10702exeext="$exeext"
10703
10704# Additional compiler flags for building library objects.
10705pic_flag=$lt_lt_prog_compiler_pic
10706pic_mode=$pic_mode
10707
10708# What is the maximum length of a command?
10709max_cmd_len=$lt_cv_sys_max_cmd_len
10710
10711# Does compiler simultaneously support -c and -o options?
10712compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10713
mmentovai8c2a4de2006-09-20 16:20:15 +000010714# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000010715need_locks=$lt_need_locks
10716
10717# Do we need the lib prefix for modules?
10718need_lib_prefix=$need_lib_prefix
10719
10720# Do we need a version for libraries?
10721need_version=$need_version
10722
10723# Whether dlopen is supported.
10724dlopen_support=$enable_dlopen
10725
10726# Whether dlopen of programs is supported.
10727dlopen_self=$enable_dlopen_self
10728
10729# Whether dlopen of statically linked programs is supported.
10730dlopen_self_static=$enable_dlopen_self_static
10731
10732# Compiler flag to prevent dynamic linking.
10733link_static_flag=$lt_lt_prog_compiler_static
10734
10735# Compiler flag to turn off builtin functions.
10736no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10737
10738# Compiler flag to allow reflexive dlopens.
10739export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10740
10741# Compiler flag to generate shared objects directly from archives.
10742whole_archive_flag_spec=$lt_whole_archive_flag_spec
10743
10744# Compiler flag to generate thread-safe objects.
10745thread_safe_flag_spec=$lt_thread_safe_flag_spec
10746
10747# Library versioning type.
10748version_type=$version_type
10749
10750# Format of library name prefix.
10751libname_spec=$lt_libname_spec
10752
10753# List of archive names. First name is the real one, the rest are links.
10754# The last name is the one that the linker finds with -lNAME.
10755library_names_spec=$lt_library_names_spec
10756
10757# The coded name of the library, if different from the real name.
10758soname_spec=$lt_soname_spec
10759
10760# Commands used to build and install an old-style archive.
10761RANLIB=$lt_RANLIB
10762old_archive_cmds=$lt_old_archive_cmds
10763old_postinstall_cmds=$lt_old_postinstall_cmds
10764old_postuninstall_cmds=$lt_old_postuninstall_cmds
10765
10766# Create an old-style archive from a shared archive.
10767old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10768
10769# Create a temporary old-style archive to link instead of a shared archive.
10770old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10771
10772# Commands used to build and install a shared archive.
10773archive_cmds=$lt_archive_cmds
10774archive_expsym_cmds=$lt_archive_expsym_cmds
10775postinstall_cmds=$lt_postinstall_cmds
10776postuninstall_cmds=$lt_postuninstall_cmds
10777
10778# Commands used to build a loadable module (assumed same as above if empty)
10779module_cmds=$lt_module_cmds
10780module_expsym_cmds=$lt_module_expsym_cmds
10781
10782# Commands to strip libraries.
10783old_striplib=$lt_old_striplib
10784striplib=$lt_striplib
10785
10786# Dependencies to place before the objects being linked to create a
10787# shared library.
10788predep_objects=$lt_predep_objects
10789
10790# Dependencies to place after the objects being linked to create a
10791# shared library.
10792postdep_objects=$lt_postdep_objects
10793
10794# Dependencies to place before the objects being linked to create a
10795# shared library.
10796predeps=$lt_predeps
10797
10798# Dependencies to place after the objects being linked to create a
10799# shared library.
10800postdeps=$lt_postdeps
10801
ted.mielczarek1adb1842009-12-21 13:12:20 +000010802# The directories searched by this compiler when creating a shared
10803# library
10804compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10805
brynercb91a2f2006-08-25 21:14:45 +000010806# The library search path used internally by the compiler when linking
10807# a shared library.
10808compiler_lib_search_path=$lt_compiler_lib_search_path
10809
10810# Method to check whether dependent libraries are shared objects.
10811deplibs_check_method=$lt_deplibs_check_method
10812
10813# Command to use when deplibs_check_method == file_magic.
10814file_magic_cmd=$lt_file_magic_cmd
10815
10816# Flag that allows shared libraries with undefined symbols to be built.
10817allow_undefined_flag=$lt_allow_undefined_flag
10818
10819# Flag that forces no undefined symbols.
10820no_undefined_flag=$lt_no_undefined_flag
10821
10822# Commands used to finish a libtool library installation in a directory.
10823finish_cmds=$lt_finish_cmds
10824
10825# Same as above, but a single script fragment to be evaled but not shown.
10826finish_eval=$lt_finish_eval
10827
10828# Take the output of nm and produce a listing of raw symbols and C names.
10829global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10830
10831# Transform the output of nm in a proper C declaration
10832global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10833
10834# Transform the output of nm in a C name address pair
10835global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10836
10837# This is the shared library runtime path variable.
10838runpath_var=$runpath_var
10839
10840# This is the shared library path variable.
10841shlibpath_var=$shlibpath_var
10842
10843# Is shlibpath searched before the hard-coded library search path?
10844shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10845
10846# How to hardcode a shared library path into an executable.
10847hardcode_action=$hardcode_action
10848
10849# Whether we should hardcode library paths into libraries.
10850hardcode_into_libs=$hardcode_into_libs
10851
10852# Flag to hardcode \$libdir into a binary during linking.
10853# This must work even if \$libdir does not exist.
10854hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10855
10856# If ld is used when linking, flag to hardcode \$libdir into
10857# a binary during linking. This must work even if \$libdir does
10858# not exist.
10859hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10860
10861# Whether we need a single -rpath flag with a separated argument.
10862hardcode_libdir_separator=$lt_hardcode_libdir_separator
10863
10864# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10865# resulting binary.
10866hardcode_direct=$hardcode_direct
10867
10868# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10869# resulting binary.
10870hardcode_minus_L=$hardcode_minus_L
10871
10872# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10873# the resulting binary.
10874hardcode_shlibpath_var=$hardcode_shlibpath_var
10875
10876# Set to yes if building a shared library automatically hardcodes DIR into the library
10877# and all subsequent libraries and executables linked against it.
10878hardcode_automatic=$hardcode_automatic
10879
10880# Variables whose values should be saved in libtool wrapper scripts and
10881# restored at relink time.
10882variables_saved_for_relink="$variables_saved_for_relink"
10883
10884# Whether libtool must link a program against all its dependency libraries.
10885link_all_deplibs=$link_all_deplibs
10886
10887# Compile-time system search path for libraries
10888sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10889
10890# Run-time system search path for libraries
10891sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10892
10893# Fix the shell variable \$srcfile for the compiler.
ted.mielczarek1adb1842009-12-21 13:12:20 +000010894fix_srcfile_path=$lt_fix_srcfile_path
brynercb91a2f2006-08-25 21:14:45 +000010895
10896# Set to yes if exported symbols are required.
10897always_export_symbols=$always_export_symbols
10898
10899# The commands to list exported symbols.
10900export_symbols_cmds=$lt_export_symbols_cmds
10901
10902# The commands to extract the exported symbol list from a shared archive.
10903extract_expsyms_cmds=$lt_extract_expsyms_cmds
10904
10905# Symbols that should not be listed in the preloaded symbols.
10906exclude_expsyms=$lt_exclude_expsyms
10907
10908# Symbols that must always be exported.
10909include_expsyms=$lt_include_expsyms
10910
10911# ### END LIBTOOL CONFIG
10912
10913__EOF__
10914
10915
10916 case $host_os in
10917 aix3*)
10918 cat <<\EOF >> "$cfgfile"
10919
10920# AIX sometimes has problems with the GCC collect2 program. For some
10921# reason, if we set the COLLECT_NAMES environment variable, the problems
10922# vanish in a puff of smoke.
10923if test "X${COLLECT_NAMES+set}" != Xset; then
10924 COLLECT_NAMES=
10925 export COLLECT_NAMES
10926fi
10927EOF
10928 ;;
10929 esac
10930
10931 # We use sed instead of cat because bash on DJGPP gets confused if
10932 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10933 # text mode, it properly converts lines to CR/LF. This bash problem
10934 # is reportedly fixed, but why not run on old versions too?
10935 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10936
10937 mv -f "$cfgfile" "$ofile" || \
10938 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10939 chmod +x "$ofile"
10940
10941else
10942 # If there is no Makefile yet, we rely on a make rule to execute
10943 # `config.status --recheck' to rerun these tests and create the
10944 # libtool script then.
10945 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10946 if test -f "$ltmain_in"; then
10947 test -f Makefile && make "$ltmain"
10948 fi
10949fi
10950
10951
10952ac_ext=c
10953ac_cpp='$CPP $CPPFLAGS'
10954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10956ac_compiler_gnu=$ac_cv_c_compiler_gnu
10957
10958CC="$lt_save_CC"
10959
10960
mmentovai8c2a4de2006-09-20 16:20:15 +000010961# Check whether --with-tags was given.
brynercb91a2f2006-08-25 21:14:45 +000010962if test "${with_tags+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010963 withval=$with_tags; tagnames="$withval"
10964fi
10965
brynercb91a2f2006-08-25 21:14:45 +000010966
10967if test -f "$ltmain" && test -n "$tagnames"; then
10968 if test ! -f "${ofile}"; then
10969 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10970echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10971 fi
10972
10973 if test -z "$LTCC"; then
10974 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10975 if test -z "$LTCC"; then
10976 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10977echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10978 else
10979 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10980echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10981 fi
10982 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010983 if test -z "$LTCFLAGS"; then
10984 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10985 fi
brynercb91a2f2006-08-25 21:14:45 +000010986
10987 # Extract list of available tagged configurations in $ofile.
10988 # Note that this assumes the entire list is on one line.
10989 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10990
10991 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10992 for tagname in $tagnames; do
10993 IFS="$lt_save_ifs"
10994 # Check whether tagname contains only valid characters
10995 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10996 "") ;;
10997 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10998echo "$as_me: error: invalid tag name: $tagname" >&2;}
10999 { (exit 1); exit 1; }; }
11000 ;;
11001 esac
11002
11003 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11004 then
11005 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11006echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11007 { (exit 1); exit 1; }; }
11008 fi
11009
11010 # Update the list of available tags.
11011 if test -n "$tagname"; then
11012 echo appending configuration tag \"$tagname\" to $ofile
11013
11014 case $tagname in
11015 CXX)
mmentovai8c2a4de2006-09-20 16:20:15 +000011016 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11017 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11018 (test "X$CXX" != "Xg++"))) ; then
11019 ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000011020ac_cpp='$CXXCPP $CPPFLAGS'
11021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11022ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11023ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11024
11025
11026
11027
11028archive_cmds_need_lc_CXX=no
11029allow_undefined_flag_CXX=
11030always_export_symbols_CXX=no
11031archive_expsym_cmds_CXX=
11032export_dynamic_flag_spec_CXX=
11033hardcode_direct_CXX=no
11034hardcode_libdir_flag_spec_CXX=
11035hardcode_libdir_flag_spec_ld_CXX=
11036hardcode_libdir_separator_CXX=
11037hardcode_minus_L_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011038hardcode_shlibpath_var_CXX=unsupported
brynercb91a2f2006-08-25 21:14:45 +000011039hardcode_automatic_CXX=no
11040module_cmds_CXX=
11041module_expsym_cmds_CXX=
11042link_all_deplibs_CXX=unknown
11043old_archive_cmds_CXX=$old_archive_cmds
11044no_undefined_flag_CXX=
11045whole_archive_flag_spec_CXX=
11046enable_shared_with_static_runtimes_CXX=no
11047
11048# Dependencies to place before and after the object being linked:
11049predep_objects_CXX=
11050postdep_objects_CXX=
11051predeps_CXX=
11052postdeps_CXX=
11053compiler_lib_search_path_CXX=
ted.mielczarek1adb1842009-12-21 13:12:20 +000011054compiler_lib_search_dirs_CXX=
brynercb91a2f2006-08-25 21:14:45 +000011055
11056# Source file extension for C++ test sources.
mmentovai8c2a4de2006-09-20 16:20:15 +000011057ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000011058
11059# Object file extension for compiled C++ test sources.
11060objext=o
11061objext_CXX=$objext
11062
11063# Code to be used in simple compile tests
ted.mielczarek1adb1842009-12-21 13:12:20 +000011064lt_simple_compile_test_code="int some_variable = 0;"
brynercb91a2f2006-08-25 21:14:45 +000011065
11066# Code to be used in simple link tests
ted.mielczarek1adb1842009-12-21 13:12:20 +000011067lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
brynercb91a2f2006-08-25 21:14:45 +000011068
11069# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11070
11071# If no C compiler was specified, use CC.
11072LTCC=${LTCC-"$CC"}
11073
mmentovai8c2a4de2006-09-20 16:20:15 +000011074# If no C compiler flags were specified, use CFLAGS.
11075LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11076
brynercb91a2f2006-08-25 21:14:45 +000011077# Allow CC to be a program name with arguments.
11078compiler=$CC
11079
11080
mmentovai8c2a4de2006-09-20 16:20:15 +000011081# save warnings/boilerplate of simple test code
11082ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000011083echo "$lt_simple_compile_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000011084eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11085_lt_compiler_boilerplate=`cat conftest.err`
11086$rm conftest*
11087
11088ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000011089echo "$lt_simple_link_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000011090eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11091_lt_linker_boilerplate=`cat conftest.err`
ted.mielczarek1adb1842009-12-21 13:12:20 +000011092$rm -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000011093
11094
brynercb91a2f2006-08-25 21:14:45 +000011095# Allow CC to be a program name with arguments.
11096lt_save_CC=$CC
11097lt_save_LD=$LD
11098lt_save_GCC=$GCC
11099GCC=$GXX
11100lt_save_with_gnu_ld=$with_gnu_ld
11101lt_save_path_LD=$lt_cv_path_LD
11102if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11103 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11104else
mmentovai8c2a4de2006-09-20 16:20:15 +000011105 $as_unset lt_cv_prog_gnu_ld
brynercb91a2f2006-08-25 21:14:45 +000011106fi
11107if test -n "${lt_cv_path_LDCXX+set}"; then
11108 lt_cv_path_LD=$lt_cv_path_LDCXX
11109else
mmentovai8c2a4de2006-09-20 16:20:15 +000011110 $as_unset lt_cv_path_LD
brynercb91a2f2006-08-25 21:14:45 +000011111fi
11112test -z "${LDCXX+set}" || LD=$LDCXX
11113CC=${CXX-"c++"}
11114compiler=$CC
11115compiler_CXX=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +000011116for cc_temp in $compiler""; do
11117 case $cc_temp in
11118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11120 \-*) ;;
11121 *) break;;
11122 esac
11123done
11124cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11125
brynercb91a2f2006-08-25 21:14:45 +000011126
11127# We don't want -fno-exception wen compiling C++ code, so set the
11128# no_builtin_flag separately
11129if test "$GXX" = yes; then
11130 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11131else
11132 lt_prog_compiler_no_builtin_flag_CXX=
11133fi
11134
11135if test "$GXX" = yes; then
11136 # Set up default GNU C++ configuration
11137
11138
mmentovai8c2a4de2006-09-20 16:20:15 +000011139# Check whether --with-gnu-ld was given.
brynercb91a2f2006-08-25 21:14:45 +000011140if test "${with_gnu_ld+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011141 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +000011142else
11143 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011144fi
11145
brynercb91a2f2006-08-25 21:14:45 +000011146ac_prog=ld
11147if test "$GCC" = yes; then
11148 # Check if gcc -print-prog-name=ld gives a path.
mmentovai8c2a4de2006-09-20 16:20:15 +000011149 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11150echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011151 case $host in
11152 *-*-mingw*)
11153 # gcc leaves a trailing carriage return which upsets mingw
11154 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11155 *)
11156 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11157 esac
11158 case $ac_prog in
11159 # Accept absolute paths.
11160 [\\/]* | ?:[\\/]*)
11161 re_direlt='/[^/][^/]*/\.\./'
11162 # Canonicalize the pathname of ld
11163 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11164 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11165 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11166 done
11167 test -z "$LD" && LD="$ac_prog"
11168 ;;
11169 "")
11170 # If it fails, then pretend we aren't using GCC.
11171 ac_prog=ld
11172 ;;
11173 *)
11174 # If it is relative, then search for the first ld in PATH.
11175 with_gnu_ld=unknown
11176 ;;
11177 esac
11178elif test "$with_gnu_ld" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011179 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11180echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011181else
mmentovai8c2a4de2006-09-20 16:20:15 +000011182 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11183echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011184fi
11185if test "${lt_cv_path_LD+set}" = set; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11187else
11188 if test -z "$LD"; then
11189 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11190 for ac_dir in $PATH; do
11191 IFS="$lt_save_ifs"
11192 test -z "$ac_dir" && ac_dir=.
11193 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11194 lt_cv_path_LD="$ac_dir/$ac_prog"
11195 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +000011196 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011197 # Break only if it was the GNU/non-GNU ld that we prefer.
11198 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11199 *GNU* | *'with BFD'*)
11200 test "$with_gnu_ld" != no && break
11201 ;;
11202 *)
11203 test "$with_gnu_ld" != yes && break
11204 ;;
11205 esac
11206 fi
11207 done
11208 IFS="$lt_save_ifs"
11209else
11210 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11211fi
11212fi
11213
11214LD="$lt_cv_path_LD"
11215if test -n "$LD"; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011216 { echo "$as_me:$LINENO: result: $LD" >&5
11217echo "${ECHO_T}$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011218else
mmentovai8c2a4de2006-09-20 16:20:15 +000011219 { echo "$as_me:$LINENO: result: no" >&5
11220echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011221fi
11222test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11223echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11224 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +000011225{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11226echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011227if test "${lt_cv_prog_gnu_ld+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11229else
mmentovai8c2a4de2006-09-20 16:20:15 +000011230 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011231case `$LD -v 2>&1 </dev/null` in
11232*GNU* | *'with BFD'*)
11233 lt_cv_prog_gnu_ld=yes
11234 ;;
11235*)
11236 lt_cv_prog_gnu_ld=no
11237 ;;
11238esac
11239fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011240{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11241echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011242with_gnu_ld=$lt_cv_prog_gnu_ld
11243
11244
11245
11246 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11247 # archiving commands below assume that GNU ld is being used.
11248 if test "$with_gnu_ld" = yes; then
11249 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11250 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'
11251
11252 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11253 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11254
11255 # If archive_cmds runs LD, not CC, wlarc should be empty
11256 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11257 # investigate it a little bit more. (MM)
11258 wlarc='${wl}'
11259
11260 # ancient GNU ld didn't support --whole-archive et. al.
11261 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11262 grep 'no-whole-archive' > /dev/null; then
11263 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11264 else
11265 whole_archive_flag_spec_CXX=
11266 fi
11267 else
11268 with_gnu_ld=no
11269 wlarc=
11270
11271 # A generic and very simple default shared library creation
11272 # command for GNU C++ for the case where it uses the native
11273 # linker, instead of GNU ld. If possible, this setting should
11274 # overridden to take advantage of the native linker features on
11275 # the platform it is being used on.
11276 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11277 fi
11278
11279 # Commands to make compiler produce verbose output that lists
11280 # what "hidden" libraries, object files and flags are used when
11281 # linking a shared library.
11282 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11283
11284else
11285 GXX=no
11286 with_gnu_ld=no
11287 wlarc=
11288fi
11289
11290# PORTME: fill in a description of your system's C++ link characteristics
mmentovai8c2a4de2006-09-20 16:20:15 +000011291{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11292echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011293ld_shlibs_CXX=yes
11294case $host_os in
11295 aix3*)
11296 # FIXME: insert proper C++ library support
11297 ld_shlibs_CXX=no
11298 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000011299 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000011300 if test "$host_cpu" = ia64; then
11301 # On IA64, the linker does run time linking by default, so we don't
11302 # have to do anything special.
11303 aix_use_runtimelinking=no
11304 exp_sym_flag='-Bexport'
11305 no_entry_flag=""
11306 else
11307 aix_use_runtimelinking=no
11308
11309 # Test if we are trying to use run time linking or normal
11310 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11311 # need to do runtime linking.
ted.mielczarek1adb1842009-12-21 13:12:20 +000011312 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
brynercb91a2f2006-08-25 21:14:45 +000011313 for ld_flag in $LDFLAGS; do
11314 case $ld_flag in
11315 *-brtl*)
11316 aix_use_runtimelinking=yes
11317 break
11318 ;;
11319 esac
11320 done
mmentovai8c2a4de2006-09-20 16:20:15 +000011321 ;;
brynercb91a2f2006-08-25 21:14:45 +000011322 esac
11323
11324 exp_sym_flag='-bexport'
11325 no_entry_flag='-bnoentry'
11326 fi
11327
11328 # When large executables or shared objects are built, AIX ld can
11329 # have problems creating the table of contents. If linking a library
11330 # or program results in "error TOC overflow" add -mminimal-toc to
11331 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11332 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11333
11334 archive_cmds_CXX=''
11335 hardcode_direct_CXX=yes
11336 hardcode_libdir_separator_CXX=':'
11337 link_all_deplibs_CXX=yes
11338
11339 if test "$GXX" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011340 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +000011341 # We only want to do this on AIX 4.2 and lower, the check
11342 # below for broken collect2 doesn't work under 4.3+
11343 collect2name=`${CC} -print-prog-name=collect2`
11344 if test -f "$collect2name" && \
11345 strings "$collect2name" | grep resolve_lib_name >/dev/null
11346 then
11347 # We have reworked collect2
ted.mielczarek1adb1842009-12-21 13:12:20 +000011348 :
brynercb91a2f2006-08-25 21:14:45 +000011349 else
11350 # We have old collect2
11351 hardcode_direct_CXX=unsupported
11352 # It fails to find uninstalled libraries when the uninstalled
11353 # path is not listed in the libpath. Setting hardcode_minus_L
11354 # to unsupported forces relinking
11355 hardcode_minus_L_CXX=yes
11356 hardcode_libdir_flag_spec_CXX='-L$libdir'
11357 hardcode_libdir_separator_CXX=
11358 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011359 ;;
brynercb91a2f2006-08-25 21:14:45 +000011360 esac
11361 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +000011362 if test "$aix_use_runtimelinking" = yes; then
11363 shared_flag="$shared_flag "'${wl}-G'
11364 fi
brynercb91a2f2006-08-25 21:14:45 +000011365 else
11366 # not using gcc
11367 if test "$host_cpu" = ia64; then
11368 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11369 # chokes on -Wl,-G. The following line is correct:
11370 shared_flag='-G'
11371 else
11372 if test "$aix_use_runtimelinking" = yes; then
11373 shared_flag='${wl}-G'
11374 else
11375 shared_flag='${wl}-bM:SRE'
11376 fi
11377 fi
11378 fi
11379
11380 # It seems that -bexpall does not export symbols beginning with
11381 # underscore (_), so it is better to generate a list of symbols to export.
11382 always_export_symbols_CXX=yes
11383 if test "$aix_use_runtimelinking" = yes; then
11384 # Warning - without using the other runtime loading flags (-brtl),
11385 # -berok will link without error, but may produce a broken library.
11386 allow_undefined_flag_CXX='-berok'
11387 # Determine the default libpath from the value encoded in an empty executable.
11388 cat >conftest.$ac_ext <<_ACEOF
11389/* confdefs.h. */
11390_ACEOF
11391cat confdefs.h >>conftest.$ac_ext
11392cat >>conftest.$ac_ext <<_ACEOF
11393/* end confdefs.h. */
11394
11395int
11396main ()
11397{
11398
11399 ;
11400 return 0;
11401}
11402_ACEOF
11403rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000011404if { (ac_try="$ac_link"
11405case "(($ac_try" in
11406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11407 *) ac_try_echo=$ac_try;;
11408esac
11409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11410 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000011411 ac_status=$?
11412 grep -v '^ *+' conftest.er1 >conftest.err
11413 rm -f conftest.er1
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000011416 (exit $ac_status); } && {
11417 test -z "$ac_cxx_werror_flag" ||
11418 test ! -s conftest.err
11419 } && test -s conftest$ac_exeext &&
11420 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +000011421
ted.mielczarek1adb1842009-12-21 13:12:20 +000011422lt_aix_libpath_sed='
11423 /Import File Strings/,/^$/ {
11424 /^0/ {
11425 s/^0 *\(.*\)$/\1/
11426 p
11427 }
11428 }'
11429aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +000011430# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +000011431if test -z "$aix_libpath"; then
11432 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11433fi
brynercb91a2f2006-08-25 21:14:45 +000011434else
11435 echo "$as_me: failed program was:" >&5
11436sed 's/^/| /' conftest.$ac_ext >&5
11437
mmentovai8c2a4de2006-09-20 16:20:15 +000011438
brynercb91a2f2006-08-25 21:14:45 +000011439fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011440
mmentovaiaf3c43f2007-05-17 18:34:37 +000011441rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +000011442 conftest$ac_exeext conftest.$ac_ext
11443if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11444
11445 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11446
mmentovai8c2a4de2006-09-20 16:20:15 +000011447 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 +000011448 else
11449 if test "$host_cpu" = ia64; then
11450 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11451 allow_undefined_flag_CXX="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +000011452 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 +000011453 else
11454 # Determine the default libpath from the value encoded in an empty executable.
11455 cat >conftest.$ac_ext <<_ACEOF
11456/* confdefs.h. */
11457_ACEOF
11458cat confdefs.h >>conftest.$ac_ext
11459cat >>conftest.$ac_ext <<_ACEOF
11460/* end confdefs.h. */
11461
11462int
11463main ()
11464{
11465
11466 ;
11467 return 0;
11468}
11469_ACEOF
11470rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000011471if { (ac_try="$ac_link"
11472case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11475esac
11476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000011478 ac_status=$?
11479 grep -v '^ *+' conftest.er1 >conftest.err
11480 rm -f conftest.er1
11481 cat conftest.err >&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000011483 (exit $ac_status); } && {
11484 test -z "$ac_cxx_werror_flag" ||
11485 test ! -s conftest.err
11486 } && test -s conftest$ac_exeext &&
11487 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +000011488
ted.mielczarek1adb1842009-12-21 13:12:20 +000011489lt_aix_libpath_sed='
11490 /Import File Strings/,/^$/ {
11491 /^0/ {
11492 s/^0 *\(.*\)$/\1/
11493 p
11494 }
11495 }'
11496aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +000011497# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +000011498if test -z "$aix_libpath"; then
11499 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11500fi
brynercb91a2f2006-08-25 21:14:45 +000011501else
11502 echo "$as_me: failed program was:" >&5
11503sed 's/^/| /' conftest.$ac_ext >&5
11504
mmentovai8c2a4de2006-09-20 16:20:15 +000011505
brynercb91a2f2006-08-25 21:14:45 +000011506fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011507
mmentovaiaf3c43f2007-05-17 18:34:37 +000011508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +000011509 conftest$ac_exeext conftest.$ac_ext
11510if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11511
11512 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11513 # Warning - without using the other run time loading flags,
11514 # -berok will link without error, but may produce a broken library.
11515 no_undefined_flag_CXX=' ${wl}-bernotok'
11516 allow_undefined_flag_CXX=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +000011517 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +000011518 whole_archive_flag_spec_CXX='$convenience'
brynercb91a2f2006-08-25 21:14:45 +000011519 archive_cmds_need_lc_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000011520 # This is similar to how AIX traditionally builds its shared libraries.
11521 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 +000011522 fi
11523 fi
11524 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011525
11526 beos*)
11527 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11528 allow_undefined_flag_CXX=unsupported
11529 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11530 # support --undefined. This deserves some investigation. FIXME
11531 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11532 else
11533 ld_shlibs_CXX=no
11534 fi
11535 ;;
11536
brynercb91a2f2006-08-25 21:14:45 +000011537 chorus*)
11538 case $cc_basename in
11539 *)
11540 # FIXME: insert proper C++ library support
11541 ld_shlibs_CXX=no
11542 ;;
11543 esac
11544 ;;
11545
11546 cygwin* | mingw* | pw32*)
11547 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11548 # as there is no search path for DLLs.
11549 hardcode_libdir_flag_spec_CXX='-L$libdir'
11550 allow_undefined_flag_CXX=unsupported
11551 always_export_symbols_CXX=no
11552 enable_shared_with_static_runtimes_CXX=yes
11553
11554 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011555 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 +000011556 # If the export-symbols file already is a .def file (1st line
11557 # is EXPORTS), use it as is; otherwise, prepend...
11558 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11559 cp $export_symbols $output_objdir/$soname.def;
11560 else
11561 echo EXPORTS > $output_objdir/$soname.def;
11562 cat $export_symbols >> $output_objdir/$soname.def;
11563 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +000011564 $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 +000011565 else
11566 ld_shlibs_CXX=no
11567 fi
11568 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011569 darwin* | rhapsody*)
mmentovai8c2a4de2006-09-20 16:20:15 +000011570 archive_cmds_need_lc_CXX=no
11571 hardcode_direct_CXX=no
11572 hardcode_automatic_CXX=yes
11573 hardcode_shlibpath_var_CXX=unsupported
11574 whole_archive_flag_spec_CXX=''
11575 link_all_deplibs_CXX=yes
ted.mielczarek1adb1842009-12-21 13:12:20 +000011576 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11577 if test "$GXX" = yes ; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011578 output_verbose_link_cmd='echo'
ted.mielczarek1adb1842009-12-21 13:12:20 +000011579 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11580 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11581 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11582 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11583 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11584 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${_lt_dsymutil}"
11585 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
mmentovai8c2a4de2006-09-20 16:20:15 +000011586 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011587 else
11588 case $cc_basename in
11589 xlc*)
11590 output_verbose_link_cmd='echo'
ted.mielczarek1adb1842009-12-21 13:12:20 +000011591 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
mmentovai8c2a4de2006-09-20 16:20:15 +000011592 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11593 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ted.mielczarek1adb1842009-12-21 13:12:20 +000011594 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
mmentovai8c2a4de2006-09-20 16:20:15 +000011595 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}'
11596 ;;
11597 *)
11598 ld_shlibs_CXX=no
11599 ;;
11600 esac
11601 fi
11602 ;;
brynercb91a2f2006-08-25 21:14:45 +000011603
11604 dgux*)
11605 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011606 ec++*)
brynercb91a2f2006-08-25 21:14:45 +000011607 # FIXME: insert proper C++ library support
11608 ld_shlibs_CXX=no
11609 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011610 ghcx*)
brynercb91a2f2006-08-25 21:14:45 +000011611 # Green Hills C++ Compiler
11612 # FIXME: insert proper C++ library support
11613 ld_shlibs_CXX=no
11614 ;;
11615 *)
11616 # FIXME: insert proper C++ library support
11617 ld_shlibs_CXX=no
11618 ;;
11619 esac
11620 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011621 freebsd[12]*)
brynercb91a2f2006-08-25 21:14:45 +000011622 # C++ shared libraries reported to be fairly broken before switch to ELF
11623 ld_shlibs_CXX=no
11624 ;;
11625 freebsd-elf*)
11626 archive_cmds_need_lc_CXX=no
11627 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000011628 freebsd* | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000011629 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11630 # conventions
11631 ld_shlibs_CXX=yes
11632 ;;
11633 gnu*)
11634 ;;
11635 hpux9*)
11636 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11637 hardcode_libdir_separator_CXX=:
11638 export_dynamic_flag_spec_CXX='${wl}-E'
11639 hardcode_direct_CXX=yes
11640 hardcode_minus_L_CXX=yes # Not in the search PATH,
11641 # but as the default
11642 # location of the library.
11643
11644 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011645 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011646 # FIXME: insert proper C++ library support
11647 ld_shlibs_CXX=no
11648 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011649 aCC*)
brynercb91a2f2006-08-25 21:14:45 +000011650 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'
11651 # Commands to make compiler produce verbose output that lists
11652 # what "hidden" libraries, object files and flags are used when
11653 # linking a shared library.
11654 #
11655 # There doesn't appear to be a way to prevent this compiler from
11656 # explicitly linking system object files so we need to strip them
11657 # from the output so that they don't get included in the library
11658 # dependencies.
mmentovai8c2a4de2006-09-20 16:20:15 +000011659 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 +000011660 ;;
11661 *)
11662 if test "$GXX" = yes; then
11663 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'
11664 else
11665 # FIXME: insert proper C++ library support
11666 ld_shlibs_CXX=no
11667 fi
11668 ;;
11669 esac
11670 ;;
11671 hpux10*|hpux11*)
11672 if test $with_gnu_ld = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011673 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11674 hardcode_libdir_separator_CXX=:
11675
11676 case $host_cpu in
ted.mielczarek1adb1842009-12-21 13:12:20 +000011677 hppa*64*|ia64*) ;;
brynercb91a2f2006-08-25 21:14:45 +000011678 *)
brynercb91a2f2006-08-25 21:14:45 +000011679 export_dynamic_flag_spec_CXX='${wl}-E'
11680 ;;
11681 esac
11682 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011683 case $host_cpu in
11684 hppa*64*|ia64*)
brynercb91a2f2006-08-25 21:14:45 +000011685 hardcode_direct_CXX=no
11686 hardcode_shlibpath_var_CXX=no
11687 ;;
brynercb91a2f2006-08-25 21:14:45 +000011688 *)
11689 hardcode_direct_CXX=yes
11690 hardcode_minus_L_CXX=yes # Not in the search PATH,
11691 # but as the default
11692 # location of the library.
11693 ;;
11694 esac
11695
11696 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011697 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011698 # FIXME: insert proper C++ library support
11699 ld_shlibs_CXX=no
11700 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011701 aCC*)
11702 case $host_cpu in
11703 hppa*64*)
11704 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11705 ;;
11706 ia64*)
11707 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 +000011708 ;;
11709 *)
11710 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11711 ;;
11712 esac
11713 # Commands to make compiler produce verbose output that lists
11714 # what "hidden" libraries, object files and flags are used when
11715 # linking a shared library.
11716 #
11717 # There doesn't appear to be a way to prevent this compiler from
11718 # explicitly linking system object files so we need to strip them
11719 # from the output so that they don't get included in the library
11720 # dependencies.
11721 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'
11722 ;;
11723 *)
11724 if test "$GXX" = yes; then
11725 if test $with_gnu_ld = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011726 case $host_cpu in
11727 hppa*64*)
11728 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11729 ;;
11730 ia64*)
11731 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 +000011732 ;;
11733 *)
11734 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'
11735 ;;
11736 esac
11737 fi
11738 else
11739 # FIXME: insert proper C++ library support
11740 ld_shlibs_CXX=no
11741 fi
11742 ;;
11743 esac
11744 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000011745 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000011746 hardcode_direct_CXX=no
11747 hardcode_shlibpath_var_CXX=no
11748 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11749 export_dynamic_flag_spec_CXX='${wl}-E'
11750 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11751 # Instead, shared libraries are loaded at an image base (0x10000000 by
11752 # default) and relocated if they conflict, which is a slow very memory
11753 # consuming and fragmenting process. To avoid this, we pick a random,
11754 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11755 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11756 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'
11757 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'
11758 ;;
brynercb91a2f2006-08-25 21:14:45 +000011759 irix5* | irix6*)
11760 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011761 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011762 # SGI C++
mmentovai8c2a4de2006-09-20 16:20:15 +000011763 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 +000011764
11765 # Archives containing C++ object files must be created using
11766 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11767 # necessary to make sure instantiated templates are included
11768 # in the archive.
11769 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11770 ;;
11771 *)
11772 if test "$GXX" = yes; then
11773 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011774 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 +000011775 else
11776 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'
11777 fi
11778 fi
11779 link_all_deplibs_CXX=yes
11780 ;;
11781 esac
11782 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11783 hardcode_libdir_separator_CXX=:
11784 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000011785 linux* | k*bsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000011786 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011787 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000011788 # Kuck and Associates, Inc. (KAI) C++ Compiler
11789
11790 # KCC will only create a shared library if the output file
11791 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11792 # to its proper name (with version) after linking.
11793 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'
11794 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'
11795 # Commands to make compiler produce verbose output that lists
11796 # what "hidden" libraries, object files and flags are used when
11797 # linking a shared library.
11798 #
11799 # There doesn't appear to be a way to prevent this compiler from
11800 # explicitly linking system object files so we need to strip them
11801 # from the output so that they don't get included in the library
11802 # dependencies.
11803 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'
11804
11805 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11806 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11807
11808 # Archives containing C++ object files must be created using
11809 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11810 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11811 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011812 icpc*)
brynercb91a2f2006-08-25 21:14:45 +000011813 # Intel C++
11814 with_gnu_ld=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000011815 # version 8.0 and above of icpc choke on multiply defined symbols
11816 # if we add $predep_objects and $postdep_objects, however 7.1 and
11817 # earlier do not add the objects themselves.
11818 case `$CC -V 2>&1` in
11819 *"Version 7."*)
11820 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11821 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'
11822 ;;
11823 *) # Version 8.0 or newer
11824 tmp_idyn=
11825 case $host_cpu in
11826 ia64*) tmp_idyn=' -i_dynamic';;
11827 esac
11828 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11829 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'
11830 ;;
11831 esac
brynercb91a2f2006-08-25 21:14:45 +000011832 archive_cmds_need_lc_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011833 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11834 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11835 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11836 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000011837 pgCC* | pgcpp*)
mmentovai8c2a4de2006-09-20 16:20:15 +000011838 # Portland Group C++ compiler
11839 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11840 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'
11841
11842 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11843 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11844 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'
11845 ;;
11846 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011847 # Compaq C++
11848 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11849 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'
11850
11851 runpath_var=LD_RUN_PATH
11852 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11853 hardcode_libdir_separator_CXX=:
11854
11855 # Commands to make compiler produce verbose output that lists
11856 # what "hidden" libraries, object files and flags are used when
11857 # linking a shared library.
11858 #
11859 # There doesn't appear to be a way to prevent this compiler from
11860 # explicitly linking system object files so we need to strip them
11861 # from the output so that they don't get included in the library
11862 # dependencies.
11863 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'
11864 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000011865 *)
11866 case `$CC -V 2>&1 | sed 5q` in
11867 *Sun\ C*)
11868 # Sun C++ 5.9
11869 no_undefined_flag_CXX=' -zdefs'
11870 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11871 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11872 hardcode_libdir_flag_spec_CXX='-R$libdir'
11873 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11874
11875 # Not sure whether something based on
11876 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11877 # would be better.
11878 output_verbose_link_cmd='echo'
11879
11880 # Archives containing C++ object files must be created using
11881 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11882 # necessary to make sure instantiated templates are included
11883 # in the archive.
11884 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11885 ;;
11886 esac
11887 ;;
brynercb91a2f2006-08-25 21:14:45 +000011888 esac
11889 ;;
11890 lynxos*)
11891 # FIXME: insert proper C++ library support
11892 ld_shlibs_CXX=no
11893 ;;
11894 m88k*)
11895 # FIXME: insert proper C++ library support
11896 ld_shlibs_CXX=no
11897 ;;
11898 mvs*)
11899 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011900 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011901 # FIXME: insert proper C++ library support
11902 ld_shlibs_CXX=no
11903 ;;
11904 *)
11905 # FIXME: insert proper C++ library support
11906 ld_shlibs_CXX=no
11907 ;;
11908 esac
11909 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011910 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000011911 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11912 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11913 wlarc=
11914 hardcode_libdir_flag_spec_CXX='-R$libdir'
11915 hardcode_direct_CXX=yes
11916 hardcode_shlibpath_var_CXX=no
11917 fi
11918 # Workaround some broken pre-1.5 toolchains
11919 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11920 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011921 openbsd2*)
11922 # C++ shared libraries are fairly broken
11923 ld_shlibs_CXX=no
11924 ;;
11925 openbsd*)
ted.mielczarek1adb1842009-12-21 13:12:20 +000011926 if test -f /usr/libexec/ld.so; then
11927 hardcode_direct_CXX=yes
11928 hardcode_shlibpath_var_CXX=no
11929 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11930 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11931 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11932 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11933 export_dynamic_flag_spec_CXX='${wl}-E'
11934 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11935 fi
11936 output_verbose_link_cmd='echo'
11937 else
11938 ld_shlibs_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011939 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011940 ;;
brynercb91a2f2006-08-25 21:14:45 +000011941 osf3*)
11942 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011943 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000011944 # Kuck and Associates, Inc. (KAI) C++ Compiler
11945
11946 # KCC will only create a shared library if the output file
11947 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11948 # to its proper name (with version) after linking.
11949 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'
11950
11951 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11952 hardcode_libdir_separator_CXX=:
11953
11954 # Archives containing C++ object files must be created using
11955 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11956 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11957
11958 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011959 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000011960 # Rational C++ 2.4.1
11961 # FIXME: insert proper C++ library support
11962 ld_shlibs_CXX=no
11963 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011964 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011965 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
mmentovai8c2a4de2006-09-20 16:20:15 +000011966 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 +000011967
11968 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11969 hardcode_libdir_separator_CXX=:
11970
11971 # Commands to make compiler produce verbose output that lists
11972 # what "hidden" libraries, object files and flags are used when
11973 # linking a shared library.
11974 #
11975 # There doesn't appear to be a way to prevent this compiler from
11976 # explicitly linking system object files so we need to strip them
11977 # from the output so that they don't get included in the library
11978 # dependencies.
11979 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'
11980 ;;
11981 *)
11982 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11983 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
mmentovai8c2a4de2006-09-20 16:20:15 +000011984 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 +000011985
11986 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11987 hardcode_libdir_separator_CXX=:
11988
11989 # Commands to make compiler produce verbose output that lists
11990 # what "hidden" libraries, object files and flags are used when
11991 # linking a shared library.
11992 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11993
11994 else
11995 # FIXME: insert proper C++ library support
11996 ld_shlibs_CXX=no
11997 fi
11998 ;;
11999 esac
12000 ;;
12001 osf4* | osf5*)
12002 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012003 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000012004 # Kuck and Associates, Inc. (KAI) C++ Compiler
12005
12006 # KCC will only create a shared library if the output file
12007 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12008 # to its proper name (with version) after linking.
12009 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'
12010
12011 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12012 hardcode_libdir_separator_CXX=:
12013
12014 # Archives containing C++ object files must be created using
12015 # the KAI C++ compiler.
12016 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12017 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012018 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000012019 # Rational C++ 2.4.1
12020 # FIXME: insert proper C++ library support
12021 ld_shlibs_CXX=no
12022 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012023 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000012024 allow_undefined_flag_CXX=' -expect_unresolved \*'
mmentovai8c2a4de2006-09-20 16:20:15 +000012025 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 +000012026 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12027 echo "-hidden">> $lib.exp~
mmentovai8c2a4de2006-09-20 16:20:15 +000012028 $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 +000012029 $rm $lib.exp'
12030
12031 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12032 hardcode_libdir_separator_CXX=:
12033
12034 # Commands to make compiler produce verbose output that lists
12035 # what "hidden" libraries, object files and flags are used when
12036 # linking a shared library.
12037 #
12038 # There doesn't appear to be a way to prevent this compiler from
12039 # explicitly linking system object files so we need to strip them
12040 # from the output so that they don't get included in the library
12041 # dependencies.
12042 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'
12043 ;;
12044 *)
12045 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12046 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
mmentovai8c2a4de2006-09-20 16:20:15 +000012047 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 +000012048
12049 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12050 hardcode_libdir_separator_CXX=:
12051
12052 # Commands to make compiler produce verbose output that lists
12053 # what "hidden" libraries, object files and flags are used when
12054 # linking a shared library.
12055 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12056
12057 else
12058 # FIXME: insert proper C++ library support
12059 ld_shlibs_CXX=no
12060 fi
12061 ;;
12062 esac
12063 ;;
12064 psos*)
12065 # FIXME: insert proper C++ library support
12066 ld_shlibs_CXX=no
12067 ;;
brynercb91a2f2006-08-25 21:14:45 +000012068 sunos4*)
12069 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012070 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012071 # Sun C++ 4.x
12072 # FIXME: insert proper C++ library support
12073 ld_shlibs_CXX=no
12074 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012075 lcc*)
brynercb91a2f2006-08-25 21:14:45 +000012076 # Lucid
12077 # FIXME: insert proper C++ library support
12078 ld_shlibs_CXX=no
12079 ;;
12080 *)
12081 # FIXME: insert proper C++ library support
12082 ld_shlibs_CXX=no
12083 ;;
12084 esac
12085 ;;
12086 solaris*)
12087 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012088 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012089 # Sun C++ 4.2, 5.x and Centerline C++
mmentovai8c2a4de2006-09-20 16:20:15 +000012090 archive_cmds_need_lc_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000012091 no_undefined_flag_CXX=' -zdefs'
mmentovai8c2a4de2006-09-20 16:20:15 +000012092 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 +000012093 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 +000012094 $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 +000012095
12096 hardcode_libdir_flag_spec_CXX='-R$libdir'
12097 hardcode_shlibpath_var_CXX=no
12098 case $host_os in
mmentovai8c2a4de2006-09-20 16:20:15 +000012099 solaris2.[0-5] | solaris2.[0-5].*) ;;
brynercb91a2f2006-08-25 21:14:45 +000012100 *)
ted.mielczarek1adb1842009-12-21 13:12:20 +000012101 # The compiler driver will combine and reorder linker options,
12102 # but understands `-z linker_flag'.
brynercb91a2f2006-08-25 21:14:45 +000012103 # Supported since Solaris 2.6 (maybe 2.5.1?)
ted.mielczarek1adb1842009-12-21 13:12:20 +000012104 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
brynercb91a2f2006-08-25 21:14:45 +000012105 ;;
12106 esac
12107 link_all_deplibs_CXX=yes
12108
mmentovai8c2a4de2006-09-20 16:20:15 +000012109 output_verbose_link_cmd='echo'
brynercb91a2f2006-08-25 21:14:45 +000012110
12111 # Archives containing C++ object files must be created using
12112 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12113 # necessary to make sure instantiated templates are included
12114 # in the archive.
12115 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12116 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012117 gcx*)
brynercb91a2f2006-08-25 21:14:45 +000012118 # Green Hills C++ Compiler
12119 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12120
12121 # The C++ compiler must be used to create the archive.
12122 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12123 ;;
12124 *)
12125 # GNU C++ compiler with Solaris linker
12126 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12127 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12128 if $CC --version | grep -v '^2\.7' > /dev/null; then
12129 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12130 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12131 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12132
12133 # Commands to make compiler produce verbose output that lists
12134 # what "hidden" libraries, object files and flags are used when
12135 # linking a shared library.
12136 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12137 else
12138 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12139 # platform.
12140 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12141 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12142 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12143
12144 # Commands to make compiler produce verbose output that lists
12145 # what "hidden" libraries, object files and flags are used when
12146 # linking a shared library.
12147 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12148 fi
12149
12150 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
ted.mielczarek1adb1842009-12-21 13:12:20 +000012151 case $host_os in
12152 solaris2.[0-5] | solaris2.[0-5].*) ;;
12153 *)
12154 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12155 ;;
12156 esac
brynercb91a2f2006-08-25 21:14:45 +000012157 fi
12158 ;;
12159 esac
12160 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012161 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12162 no_undefined_flag_CXX='${wl}-z,text'
brynercb91a2f2006-08-25 21:14:45 +000012163 archive_cmds_need_lc_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000012164 hardcode_shlibpath_var_CXX=no
12165 runpath_var='LD_RUN_PATH'
12166
12167 case $cc_basename in
12168 CC*)
12169 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12170 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12171 ;;
12172 *)
12173 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12174 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12175 ;;
12176 esac
12177 ;;
12178 sysv5* | sco3.2v5* | sco5v6*)
12179 # Note: We can NOT use -z defs as we might desire, because we do not
12180 # link with -lc, and that would cause any symbols used from libc to
12181 # always be unresolved, which means just about no library would
12182 # ever link correctly. If we're not using GNU ld we use -z text
12183 # though, which does catch some bad symbols but isn't as heavy-handed
12184 # as -z defs.
12185 # For security reasons, it is highly recommended that you always
12186 # use absolute paths for naming shared libraries, and exclude the
12187 # DT_RUNPATH tag from executables and libraries. But doing so
12188 # requires that you compile everything twice, which is a pain.
12189 # So that behaviour is only enabled if SCOABSPATH is set to a
12190 # non-empty value in the environment. Most likely only useful for
12191 # creating official distributions of packages.
12192 # This is a hack until libtool officially supports absolute path
12193 # names for shared libraries.
12194 no_undefined_flag_CXX='${wl}-z,text'
12195 allow_undefined_flag_CXX='${wl}-z,nodefs'
12196 archive_cmds_need_lc_CXX=no
12197 hardcode_shlibpath_var_CXX=no
12198 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12199 hardcode_libdir_separator_CXX=':'
12200 link_all_deplibs_CXX=yes
12201 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12202 runpath_var='LD_RUN_PATH'
12203
12204 case $cc_basename in
12205 CC*)
12206 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12207 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12208 ;;
12209 *)
12210 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12211 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12212 ;;
12213 esac
brynercb91a2f2006-08-25 21:14:45 +000012214 ;;
12215 tandem*)
12216 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012217 NCC*)
brynercb91a2f2006-08-25 21:14:45 +000012218 # NonStop-UX NCC 3.20
12219 # FIXME: insert proper C++ library support
12220 ld_shlibs_CXX=no
12221 ;;
12222 *)
12223 # FIXME: insert proper C++ library support
12224 ld_shlibs_CXX=no
12225 ;;
12226 esac
12227 ;;
12228 vxworks*)
12229 # FIXME: insert proper C++ library support
12230 ld_shlibs_CXX=no
12231 ;;
12232 *)
12233 # FIXME: insert proper C++ library support
12234 ld_shlibs_CXX=no
12235 ;;
12236esac
mmentovai8c2a4de2006-09-20 16:20:15 +000012237{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12238echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012239test "$ld_shlibs_CXX" = no && can_build_shared=no
12240
12241GCC_CXX="$GXX"
12242LD_CXX="$LD"
12243
brynercb91a2f2006-08-25 21:14:45 +000012244cat > conftest.$ac_ext <<EOF
12245class Foo
12246{
12247public:
12248 Foo (void) { a = 0; }
12249private:
12250 int a;
12251};
12252EOF
12253
12254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12255 (eval $ac_compile) 2>&5
12256 ac_status=$?
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; then
12259 # Parse the compiler output and extract the necessary
12260 # objects, libraries and library flags.
12261
12262 # Sentinel used to keep track of whether or not we are before
12263 # the conftest object file.
12264 pre_test_object_deps_done=no
12265
12266 # The `*' in the case matches for architectures that use `case' in
12267 # $output_verbose_cmd can trigger glob expansion during the loop
12268 # eval without this substitution.
mmentovai8c2a4de2006-09-20 16:20:15 +000012269 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
brynercb91a2f2006-08-25 21:14:45 +000012270
12271 for p in `eval $output_verbose_link_cmd`; do
12272 case $p in
12273
12274 -L* | -R* | -l*)
12275 # Some compilers place space between "-{L,R}" and the path.
12276 # Remove the space.
12277 if test $p = "-L" \
12278 || test $p = "-R"; then
12279 prev=$p
12280 continue
12281 else
12282 prev=
12283 fi
12284
12285 if test "$pre_test_object_deps_done" = no; then
12286 case $p in
12287 -L* | -R*)
12288 # Internal compiler library paths should come after those
12289 # provided the user. The postdeps already come after the
12290 # user supplied libs so there is no need to process them.
12291 if test -z "$compiler_lib_search_path_CXX"; then
12292 compiler_lib_search_path_CXX="${prev}${p}"
12293 else
12294 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12295 fi
12296 ;;
12297 # The "-l" case would never come before the object being
12298 # linked, so don't bother handling this case.
12299 esac
12300 else
12301 if test -z "$postdeps_CXX"; then
12302 postdeps_CXX="${prev}${p}"
12303 else
12304 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12305 fi
12306 fi
12307 ;;
12308
12309 *.$objext)
12310 # This assumes that the test object file only shows up
12311 # once in the compiler output.
12312 if test "$p" = "conftest.$objext"; then
12313 pre_test_object_deps_done=yes
12314 continue
12315 fi
12316
12317 if test "$pre_test_object_deps_done" = no; then
12318 if test -z "$predep_objects_CXX"; then
12319 predep_objects_CXX="$p"
12320 else
12321 predep_objects_CXX="$predep_objects_CXX $p"
12322 fi
12323 else
12324 if test -z "$postdep_objects_CXX"; then
12325 postdep_objects_CXX="$p"
12326 else
12327 postdep_objects_CXX="$postdep_objects_CXX $p"
12328 fi
12329 fi
12330 ;;
12331
12332 *) ;; # Ignore the rest.
12333
12334 esac
12335 done
12336
12337 # Clean up.
12338 rm -f a.out a.exe
12339else
12340 echo "libtool.m4: error: problem compiling CXX test program"
12341fi
12342
12343$rm -f confest.$objext
12344
ted.mielczarek1adb1842009-12-21 13:12:20 +000012345compiler_lib_search_dirs_CXX=
12346if test -n "$compiler_lib_search_path_CXX"; then
12347 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12348fi
12349
mmentovai8c2a4de2006-09-20 16:20:15 +000012350# PORTME: override above test on systems where it is broken
12351case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000012352interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012353 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12354 # hack all around it, let's just trust "g++" to DTRT.
12355 predep_objects_CXX=
12356 postdep_objects_CXX=
12357 postdeps_CXX=
12358 ;;
12359
ted.mielczarek1adb1842009-12-21 13:12:20 +000012360linux*)
12361 case `$CC -V 2>&1 | sed 5q` in
12362 *Sun\ C*)
12363 # Sun C++ 5.9
12364 #
12365 # The more standards-conforming stlport4 library is
12366 # incompatible with the Cstd library. Avoid specifying
12367 # it if it's in CXXFLAGS. Ignore libCrun as
12368 # -library=stlport4 depends on it.
12369 case " $CXX $CXXFLAGS " in
12370 *" -library=stlport4 "*)
12371 solaris_use_stlport4=yes
12372 ;;
12373 esac
12374 if test "$solaris_use_stlport4" != yes; then
12375 postdeps_CXX='-library=Cstd -library=Crun'
12376 fi
12377 ;;
12378 esac
12379 ;;
12380
mmentovai8c2a4de2006-09-20 16:20:15 +000012381solaris*)
12382 case $cc_basename in
12383 CC*)
ted.mielczarek1adb1842009-12-21 13:12:20 +000012384 # The more standards-conforming stlport4 library is
12385 # incompatible with the Cstd library. Avoid specifying
12386 # it if it's in CXXFLAGS. Ignore libCrun as
12387 # -library=stlport4 depends on it.
12388 case " $CXX $CXXFLAGS " in
12389 *" -library=stlport4 "*)
12390 solaris_use_stlport4=yes
12391 ;;
12392 esac
12393
mmentovai8c2a4de2006-09-20 16:20:15 +000012394 # Adding this requires a known-good setup of shared libraries for
12395 # Sun compiler versions before 5.6, else PIC objects from an old
12396 # archive will be linked into the output, leading to subtle bugs.
ted.mielczarek1adb1842009-12-21 13:12:20 +000012397 if test "$solaris_use_stlport4" != yes; then
12398 postdeps_CXX='-library=Cstd -library=Crun'
12399 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012400 ;;
12401 esac
12402 ;;
12403esac
12404
brynercb91a2f2006-08-25 21:14:45 +000012405case " $postdeps_CXX " in
12406*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12407esac
12408
12409lt_prog_compiler_wl_CXX=
12410lt_prog_compiler_pic_CXX=
12411lt_prog_compiler_static_CXX=
12412
mmentovai8c2a4de2006-09-20 16:20:15 +000012413{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12414echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012415
12416 # C++ specific cases for pic, static, wl, etc.
12417 if test "$GXX" = yes; then
12418 lt_prog_compiler_wl_CXX='-Wl,'
12419 lt_prog_compiler_static_CXX='-static'
12420
12421 case $host_os in
12422 aix*)
12423 # All AIX code is PIC.
12424 if test "$host_cpu" = ia64; then
12425 # AIX 5 now supports IA64 processor
12426 lt_prog_compiler_static_CXX='-Bstatic'
12427 fi
12428 ;;
12429 amigaos*)
12430 # FIXME: we need at least 68020 code to build shared libraries, but
12431 # adding the `-m68020' flag to GCC prevents building anything better,
12432 # like `-m68040'.
12433 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12434 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012435 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
brynercb91a2f2006-08-25 21:14:45 +000012436 # PIC is the default for these OSes.
12437 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012438 mingw* | cygwin* | os2* | pw32*)
brynercb91a2f2006-08-25 21:14:45 +000012439 # This hack is so that the source file can tell whether it is being
12440 # built for inclusion in a dll (and should export symbols for example).
ted.mielczarek1adb1842009-12-21 13:12:20 +000012441 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12442 # (--disable-auto-import) libraries
brynercb91a2f2006-08-25 21:14:45 +000012443 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12444 ;;
12445 darwin* | rhapsody*)
12446 # PIC is the default on this platform
12447 # Common symbols not allowed in MH_DYLIB files
12448 lt_prog_compiler_pic_CXX='-fno-common'
12449 ;;
12450 *djgpp*)
12451 # DJGPP does not support shared libraries at all
12452 lt_prog_compiler_pic_CXX=
12453 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012454 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012455 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12456 # Instead, we relocate shared libraries at runtime.
12457 ;;
brynercb91a2f2006-08-25 21:14:45 +000012458 sysv4*MP*)
12459 if test -d /usr/nec; then
12460 lt_prog_compiler_pic_CXX=-Kconform_pic
12461 fi
12462 ;;
12463 hpux*)
12464 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12465 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000012466 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000012467 hppa*64*|ia64*)
12468 ;;
12469 *)
12470 lt_prog_compiler_pic_CXX='-fPIC'
12471 ;;
12472 esac
12473 ;;
12474 *)
12475 lt_prog_compiler_pic_CXX='-fPIC'
12476 ;;
12477 esac
12478 else
12479 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000012480 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000012481 # All AIX code is PIC.
12482 if test "$host_cpu" = ia64; then
12483 # AIX 5 now supports IA64 processor
12484 lt_prog_compiler_static_CXX='-Bstatic'
12485 else
12486 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12487 fi
12488 ;;
12489 chorus*)
12490 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012491 cxch68*)
brynercb91a2f2006-08-25 21:14:45 +000012492 # Green Hills C++ Compiler
12493 # _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"
12494 ;;
12495 esac
12496 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012497 darwin*)
12498 # PIC is the default on this platform
12499 # Common symbols not allowed in MH_DYLIB files
12500 case $cc_basename in
12501 xlc*)
12502 lt_prog_compiler_pic_CXX='-qnocommon'
12503 lt_prog_compiler_wl_CXX='-Wl,'
12504 ;;
12505 esac
12506 ;;
brynercb91a2f2006-08-25 21:14:45 +000012507 dgux*)
12508 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012509 ec++*)
brynercb91a2f2006-08-25 21:14:45 +000012510 lt_prog_compiler_pic_CXX='-KPIC'
12511 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012512 ghcx*)
brynercb91a2f2006-08-25 21:14:45 +000012513 # Green Hills C++ Compiler
12514 lt_prog_compiler_pic_CXX='-pic'
12515 ;;
12516 *)
12517 ;;
12518 esac
12519 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012520 freebsd* | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000012521 # FreeBSD uses GNU C++
12522 ;;
12523 hpux9* | hpux10* | hpux11*)
12524 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012525 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012526 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000012527 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
brynercb91a2f2006-08-25 21:14:45 +000012528 if test "$host_cpu" != ia64; then
12529 lt_prog_compiler_pic_CXX='+Z'
12530 fi
12531 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012532 aCC*)
brynercb91a2f2006-08-25 21:14:45 +000012533 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000012534 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12535 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000012536 hppa*64*|ia64*)
12537 # +Z the default
12538 ;;
12539 *)
12540 lt_prog_compiler_pic_CXX='+Z'
12541 ;;
12542 esac
12543 ;;
12544 *)
12545 ;;
12546 esac
12547 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012548 interix*)
12549 # This is c89, which is MS Visual C++ (no shared libs)
12550 # Anyone wants to do a port?
12551 ;;
brynercb91a2f2006-08-25 21:14:45 +000012552 irix5* | irix6* | nonstopux*)
12553 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012554 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012555 lt_prog_compiler_wl_CXX='-Wl,'
12556 lt_prog_compiler_static_CXX='-non_shared'
12557 # CC pic flag -KPIC is the default.
12558 ;;
12559 *)
12560 ;;
12561 esac
12562 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012563 linux* | k*bsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000012564 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012565 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000012566 # KAI C++ Compiler
12567 lt_prog_compiler_wl_CXX='--backend -Wl,'
12568 lt_prog_compiler_pic_CXX='-fPIC'
12569 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012570 icpc* | ecpc*)
brynercb91a2f2006-08-25 21:14:45 +000012571 # Intel C++
12572 lt_prog_compiler_wl_CXX='-Wl,'
12573 lt_prog_compiler_pic_CXX='-KPIC'
12574 lt_prog_compiler_static_CXX='-static'
12575 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012576 pgCC* | pgcpp*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012577 # Portland Group C++ compiler.
12578 lt_prog_compiler_wl_CXX='-Wl,'
12579 lt_prog_compiler_pic_CXX='-fpic'
12580 lt_prog_compiler_static_CXX='-Bstatic'
12581 ;;
12582 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000012583 # Compaq C++
12584 # Make sure the PIC flag is empty. It appears that all Alpha
12585 # Linux and Compaq Tru64 Unix objects are PIC.
12586 lt_prog_compiler_pic_CXX=
12587 lt_prog_compiler_static_CXX='-non_shared'
12588 ;;
12589 *)
ted.mielczarek1adb1842009-12-21 13:12:20 +000012590 case `$CC -V 2>&1 | sed 5q` in
12591 *Sun\ C*)
12592 # Sun C++ 5.9
12593 lt_prog_compiler_pic_CXX='-KPIC'
12594 lt_prog_compiler_static_CXX='-Bstatic'
12595 lt_prog_compiler_wl_CXX='-Qoption ld '
12596 ;;
12597 esac
brynercb91a2f2006-08-25 21:14:45 +000012598 ;;
12599 esac
12600 ;;
12601 lynxos*)
12602 ;;
12603 m88k*)
12604 ;;
12605 mvs*)
12606 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012607 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000012608 lt_prog_compiler_pic_CXX='-W c,exportall'
12609 ;;
12610 *)
12611 ;;
12612 esac
12613 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012614 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000012615 ;;
12616 osf3* | osf4* | osf5*)
12617 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012618 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000012619 lt_prog_compiler_wl_CXX='--backend -Wl,'
12620 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012621 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000012622 # Rational C++ 2.4.1
12623 lt_prog_compiler_pic_CXX='-pic'
12624 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012625 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000012626 # Digital/Compaq C++
12627 lt_prog_compiler_wl_CXX='-Wl,'
12628 # Make sure the PIC flag is empty. It appears that all Alpha
12629 # Linux and Compaq Tru64 Unix objects are PIC.
12630 lt_prog_compiler_pic_CXX=
12631 lt_prog_compiler_static_CXX='-non_shared'
12632 ;;
12633 *)
12634 ;;
12635 esac
12636 ;;
12637 psos*)
12638 ;;
brynercb91a2f2006-08-25 21:14:45 +000012639 solaris*)
12640 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012641 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012642 # Sun C++ 4.2, 5.x and Centerline C++
12643 lt_prog_compiler_pic_CXX='-KPIC'
12644 lt_prog_compiler_static_CXX='-Bstatic'
12645 lt_prog_compiler_wl_CXX='-Qoption ld '
12646 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012647 gcx*)
brynercb91a2f2006-08-25 21:14:45 +000012648 # Green Hills C++ Compiler
12649 lt_prog_compiler_pic_CXX='-PIC'
12650 ;;
12651 *)
12652 ;;
12653 esac
12654 ;;
12655 sunos4*)
12656 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012657 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012658 # Sun C++ 4.x
12659 lt_prog_compiler_pic_CXX='-pic'
12660 lt_prog_compiler_static_CXX='-Bstatic'
12661 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012662 lcc*)
brynercb91a2f2006-08-25 21:14:45 +000012663 # Lucid
12664 lt_prog_compiler_pic_CXX='-pic'
12665 ;;
12666 *)
12667 ;;
12668 esac
12669 ;;
12670 tandem*)
12671 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012672 NCC*)
brynercb91a2f2006-08-25 21:14:45 +000012673 # NonStop-UX NCC 3.20
12674 lt_prog_compiler_pic_CXX='-KPIC'
12675 ;;
12676 *)
12677 ;;
12678 esac
12679 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012680 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12681 case $cc_basename in
12682 CC*)
12683 lt_prog_compiler_wl_CXX='-Wl,'
12684 lt_prog_compiler_pic_CXX='-KPIC'
12685 lt_prog_compiler_static_CXX='-Bstatic'
12686 ;;
12687 esac
brynercb91a2f2006-08-25 21:14:45 +000012688 ;;
12689 vxworks*)
12690 ;;
12691 *)
12692 lt_prog_compiler_can_build_shared_CXX=no
12693 ;;
12694 esac
12695 fi
12696
mmentovai8c2a4de2006-09-20 16:20:15 +000012697{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12698echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012699
12700#
12701# Check to make sure the PIC flag actually works.
12702#
12703if test -n "$lt_prog_compiler_pic_CXX"; then
12704
mmentovai8c2a4de2006-09-20 16:20:15 +000012705{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12706echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
ted.mielczarek1adb1842009-12-21 13:12:20 +000012707if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
brynercb91a2f2006-08-25 21:14:45 +000012708 echo $ECHO_N "(cached) $ECHO_C" >&6
12709else
ted.mielczarek1adb1842009-12-21 13:12:20 +000012710 lt_cv_prog_compiler_pic_works_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012711 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000012712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000012713 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12714 # Insert the option either (1) after the last *FLAGS variable, or
12715 # (2) before a word containing "conftest.", or (3) at the end.
12716 # Note that $ac_compile itself does not contain backslashes and begins
12717 # with a dollar sign (not a hyphen), so the echo should work correctly.
12718 # The option is referenced via a variable to avoid confusing sed.
12719 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000012720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000012721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12722 -e 's:$: $lt_compiler_flag:'`
ted.mielczarek1adb1842009-12-21 13:12:20 +000012723 (eval echo "\"\$as_me:12723: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000012724 (eval "$lt_compile" 2>conftest.err)
12725 ac_status=$?
12726 cat conftest.err >&5
ted.mielczarek1adb1842009-12-21 13:12:20 +000012727 echo "$as_me:12727: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000012728 if (exit $ac_status) && test -s "$ac_outfile"; then
12729 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000012730 # So say no if there are warnings other than the usual output.
12731 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12732 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12733 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000012734 lt_cv_prog_compiler_pic_works_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000012735 fi
12736 fi
12737 $rm conftest*
12738
12739fi
ted.mielczarek1adb1842009-12-21 13:12:20 +000012740{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12741echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012742
ted.mielczarek1adb1842009-12-21 13:12:20 +000012743if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
brynercb91a2f2006-08-25 21:14:45 +000012744 case $lt_prog_compiler_pic_CXX in
12745 "" | " "*) ;;
12746 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12747 esac
12748else
12749 lt_prog_compiler_pic_CXX=
12750 lt_prog_compiler_can_build_shared_CXX=no
12751fi
12752
12753fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012754case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000012755 # For platforms which do not support PIC, -DPIC is meaningless:
12756 *djgpp*)
12757 lt_prog_compiler_pic_CXX=
12758 ;;
12759 *)
12760 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12761 ;;
12762esac
12763
mmentovai8c2a4de2006-09-20 16:20:15 +000012764#
12765# Check to make sure the static flag actually works.
12766#
12767wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12768{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12769echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
ted.mielczarek1adb1842009-12-21 13:12:20 +000012770if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +000012771 echo $ECHO_N "(cached) $ECHO_C" >&6
12772else
ted.mielczarek1adb1842009-12-21 13:12:20 +000012773 lt_cv_prog_compiler_static_works_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000012774 save_LDFLAGS="$LDFLAGS"
12775 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ted.mielczarek1adb1842009-12-21 13:12:20 +000012776 echo "$lt_simple_link_test_code" > conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000012777 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12778 # The linker can only warn and ignore the option if not recognized
12779 # So say no if there are warnings
12780 if test -s conftest.err; then
12781 # Append any errors to the config.log.
12782 cat conftest.err 1>&5
12783 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12784 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12785 if diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000012786 lt_cv_prog_compiler_static_works_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000012787 fi
12788 else
ted.mielczarek1adb1842009-12-21 13:12:20 +000012789 lt_cv_prog_compiler_static_works_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000012790 fi
12791 fi
ted.mielczarek1adb1842009-12-21 13:12:20 +000012792 $rm -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000012793 LDFLAGS="$save_LDFLAGS"
12794
12795fi
ted.mielczarek1adb1842009-12-21 13:12:20 +000012796{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12797echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +000012798
ted.mielczarek1adb1842009-12-21 13:12:20 +000012799if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000012800 :
12801else
12802 lt_prog_compiler_static_CXX=
12803fi
12804
12805
12806{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12807echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012808if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12809 echo $ECHO_N "(cached) $ECHO_C" >&6
12810else
12811 lt_cv_prog_compiler_c_o_CXX=no
12812 $rm -r conftest 2>/dev/null
12813 mkdir conftest
12814 cd conftest
12815 mkdir out
ted.mielczarek1adb1842009-12-21 13:12:20 +000012816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000012817
12818 lt_compiler_flag="-o out/conftest2.$ac_objext"
12819 # Insert the option either (1) after the last *FLAGS variable, or
12820 # (2) before a word containing "conftest.", or (3) at the end.
12821 # Note that $ac_compile itself does not contain backslashes and begins
12822 # with a dollar sign (not a hyphen), so the echo should work correctly.
12823 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000012824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000012825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12826 -e 's:$: $lt_compiler_flag:'`
ted.mielczarek1adb1842009-12-21 13:12:20 +000012827 (eval echo "\"\$as_me:12827: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000012828 (eval "$lt_compile" 2>out/conftest.err)
12829 ac_status=$?
12830 cat out/conftest.err >&5
ted.mielczarek1adb1842009-12-21 13:12:20 +000012831 echo "$as_me:12831: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000012832 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12833 then
12834 # The compiler can only warn and ignore the option if not recognized
12835 # So say no if there are warnings
mmentovai8c2a4de2006-09-20 16:20:15 +000012836 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12837 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12838 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000012839 lt_cv_prog_compiler_c_o_CXX=yes
12840 fi
12841 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012842 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +000012843 $rm conftest*
12844 # SGI C++ compiler will create directory out/ii_files/ for
12845 # template instantiation
12846 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12847 $rm out/* && rmdir out
12848 cd ..
12849 rmdir conftest
12850 $rm conftest*
12851
12852fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012853{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12854echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012855
12856
12857hard_links="nottested"
12858if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12859 # do not overwrite the value of need_locks provided by the user
mmentovai8c2a4de2006-09-20 16:20:15 +000012860 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12861echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012862 hard_links=yes
12863 $rm conftest*
12864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12865 touch conftest.a
12866 ln conftest.a conftest.b 2>&5 || hard_links=no
12867 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mmentovai8c2a4de2006-09-20 16:20:15 +000012868 { echo "$as_me:$LINENO: result: $hard_links" >&5
12869echo "${ECHO_T}$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012870 if test "$hard_links" = no; then
12871 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12872echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12873 need_locks=warn
12874 fi
12875else
12876 need_locks=no
12877fi
12878
mmentovai8c2a4de2006-09-20 16:20:15 +000012879{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12880echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012881
12882 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12883 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000012884 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000012885 # If we're using GNU nm, then we don't want the "-C" option.
12886 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12887 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12888 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'
12889 else
12890 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'
12891 fi
12892 ;;
12893 pw32*)
12894 export_symbols_cmds_CXX="$ltdll_cmds"
12895 ;;
12896 cygwin* | mingw*)
ted.mielczarek1adb1842009-12-21 13:12:20 +000012897 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 +000012898 ;;
12899 *)
12900 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12901 ;;
12902 esac
ted.mielczarek1adb1842009-12-21 13:12:20 +000012903 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
brynercb91a2f2006-08-25 21:14:45 +000012904
mmentovai8c2a4de2006-09-20 16:20:15 +000012905{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12906echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012907test "$ld_shlibs_CXX" = no && can_build_shared=no
12908
brynercb91a2f2006-08-25 21:14:45 +000012909#
12910# Do we need to explicitly link libc?
12911#
12912case "x$archive_cmds_need_lc_CXX" in
12913x|xyes)
12914 # Assume -lc should be added
12915 archive_cmds_need_lc_CXX=yes
12916
12917 if test "$enable_shared" = yes && test "$GCC" = yes; then
12918 case $archive_cmds_CXX in
12919 *'~'*)
12920 # FIXME: we may have to deal with multi-command sequences.
12921 ;;
12922 '$CC '*)
12923 # Test whether the compiler implicitly links with -lc since on some
12924 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12925 # to ld, don't add -lc before -lgcc.
mmentovai8c2a4de2006-09-20 16:20:15 +000012926 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12927echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012928 $rm conftest*
ted.mielczarek1adb1842009-12-21 13:12:20 +000012929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000012930
12931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12932 (eval $ac_compile) 2>&5
12933 ac_status=$?
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } 2>conftest.err; then
12936 soname=conftest
12937 lib=conftest
12938 libobjs=conftest.$ac_objext
12939 deplibs=
12940 wl=$lt_prog_compiler_wl_CXX
mmentovai8c2a4de2006-09-20 16:20:15 +000012941 pic_flag=$lt_prog_compiler_pic_CXX
brynercb91a2f2006-08-25 21:14:45 +000012942 compiler_flags=-v
12943 linker_flags=-v
12944 verstring=
12945 output_objdir=.
12946 libname=conftest
12947 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12948 allow_undefined_flag_CXX=
12949 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12950 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12951 ac_status=$?
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }
12954 then
12955 archive_cmds_need_lc_CXX=no
12956 else
12957 archive_cmds_need_lc_CXX=yes
12958 fi
12959 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12960 else
12961 cat conftest.err 1>&5
12962 fi
12963 $rm conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000012964 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12965echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012966 ;;
12967 esac
12968 fi
12969 ;;
12970esac
12971
mmentovai8c2a4de2006-09-20 16:20:15 +000012972{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12973echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012974library_names_spec=
12975libname_spec='lib$name'
12976soname_spec=
12977shrext_cmds=".so"
12978postinstall_cmds=
12979postuninstall_cmds=
12980finish_cmds=
12981finish_eval=
12982shlibpath_var=
12983shlibpath_overrides_runpath=unknown
12984version_type=none
12985dynamic_linker="$host_os ld.so"
12986sys_lib_dlsearch_path_spec="/lib /usr/lib"
ted.mielczarek1adb1842009-12-21 13:12:20 +000012987
brynercb91a2f2006-08-25 21:14:45 +000012988need_lib_prefix=unknown
12989hardcode_into_libs=no
12990
12991# when you set need_version to no, make sure it does not cause -set_version
12992# flags to be left without arguments
12993need_version=unknown
12994
12995case $host_os in
12996aix3*)
12997 version_type=linux
12998 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12999 shlibpath_var=LIBPATH
13000
13001 # AIX 3 has no versioning support, so we append a major version to the name.
13002 soname_spec='${libname}${release}${shared_ext}$major'
13003 ;;
13004
ted.mielczarek1adb1842009-12-21 13:12:20 +000013005aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000013006 version_type=linux
13007 need_lib_prefix=no
13008 need_version=no
13009 hardcode_into_libs=yes
13010 if test "$host_cpu" = ia64; then
13011 # AIX 5 supports IA64
13012 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13013 shlibpath_var=LD_LIBRARY_PATH
13014 else
13015 # With GCC up to 2.95.x, collect2 would create an import file
13016 # for dependence libraries. The import file would start with
13017 # the line `#! .'. This would cause the generated library to
13018 # depend on `.', always an invalid library. This was fixed in
13019 # development snapshots of GCC prior to 3.0.
13020 case $host_os in
13021 aix4 | aix4.[01] | aix4.[01].*)
13022 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13023 echo ' yes '
13024 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13025 :
13026 else
13027 can_build_shared=no
13028 fi
13029 ;;
13030 esac
13031 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13032 # soname into executable. Probably we can add versioning support to
13033 # collect2, so additional links can be useful in future.
13034 if test "$aix_use_runtimelinking" = yes; then
13035 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13036 # instead of lib<name>.a to let people know that these are not
13037 # typical AIX shared libraries.
13038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13039 else
13040 # We preserve .a as extension for shared libraries through AIX4.2
13041 # and later when we are not doing run time linking.
13042 library_names_spec='${libname}${release}.a $libname.a'
13043 soname_spec='${libname}${release}${shared_ext}$major'
13044 fi
13045 shlibpath_var=LIBPATH
13046 fi
13047 ;;
13048
13049amigaos*)
13050 library_names_spec='$libname.ixlibrary $libname.a'
13051 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13052 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'
13053 ;;
13054
13055beos*)
13056 library_names_spec='${libname}${shared_ext}'
13057 dynamic_linker="$host_os ld.so"
13058 shlibpath_var=LIBRARY_PATH
13059 ;;
13060
mmentovai8c2a4de2006-09-20 16:20:15 +000013061bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000013062 version_type=linux
13063 need_version=no
13064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13065 soname_spec='${libname}${release}${shared_ext}$major'
13066 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13067 shlibpath_var=LD_LIBRARY_PATH
13068 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13069 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13070 # the default ld.so.conf also contains /usr/contrib/lib and
13071 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13072 # libtool to hard-code these into programs
13073 ;;
13074
13075cygwin* | mingw* | pw32*)
13076 version_type=windows
13077 shrext_cmds=".dll"
13078 need_version=no
13079 need_lib_prefix=no
13080
13081 case $GCC,$host_os in
13082 yes,cygwin* | yes,mingw* | yes,pw32*)
13083 library_names_spec='$libname.dll.a'
13084 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13085 postinstall_cmds='base_file=`basename \${file}`~
13086 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13087 dldir=$destdir/`dirname \$dlpath`~
13088 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000013089 $install_prog $dir/$dlname \$dldir/$dlname~
13090 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000013091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13092 dlpath=$dir/\$dldll~
13093 $rm \$dlpath'
13094 shlibpath_overrides_runpath=yes
13095
13096 case $host_os in
13097 cygwin*)
13098 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13099 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13100 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13101 ;;
13102 mingw*)
13103 # MinGW DLLs use traditional 'lib' prefix
13104 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13105 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13106 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13107 # It is most probably a Windows format PATH printed by
13108 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13109 # path with ; separators, and with drive letters. We can handle the
13110 # drive letters (cygwin fileutils understands them), so leave them,
13111 # especially as we might pass files found there to a mingw objdump,
13112 # which wouldn't understand a cygwinified path. Ahh.
13113 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13114 else
13115 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13116 fi
13117 ;;
13118 pw32*)
13119 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000013120 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 +000013121 ;;
13122 esac
13123 ;;
13124
13125 *)
13126 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13127 ;;
13128 esac
13129 dynamic_linker='Win32 ld.exe'
13130 # FIXME: first we should search . and the directory the executable is in
13131 shlibpath_var=PATH
13132 ;;
13133
13134darwin* | rhapsody*)
13135 dynamic_linker="$host_os dyld"
13136 version_type=darwin
13137 need_lib_prefix=no
13138 need_version=no
13139 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13140 soname_spec='${libname}${release}${major}$shared_ext'
13141 shlibpath_overrides_runpath=yes
13142 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000013143 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ted.mielczarek1adb1842009-12-21 13:12:20 +000013144
brynercb91a2f2006-08-25 21:14:45 +000013145 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13146 ;;
13147
13148dgux*)
13149 version_type=linux
13150 need_lib_prefix=no
13151 need_version=no
13152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13153 soname_spec='${libname}${release}${shared_ext}$major'
13154 shlibpath_var=LD_LIBRARY_PATH
13155 ;;
13156
13157freebsd1*)
13158 dynamic_linker=no
13159 ;;
13160
mmentovai8c2a4de2006-09-20 16:20:15 +000013161freebsd* | dragonfly*)
13162 # DragonFly does not have aout. When/if they implement a new
13163 # versioning mechanism, adjust this.
13164 if test -x /usr/bin/objformat; then
13165 objformat=`/usr/bin/objformat`
13166 else
13167 case $host_os in
13168 freebsd[123]*) objformat=aout ;;
13169 *) objformat=elf ;;
13170 esac
13171 fi
brynercb91a2f2006-08-25 21:14:45 +000013172 version_type=freebsd-$objformat
13173 case $version_type in
13174 freebsd-elf*)
13175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13176 need_version=no
13177 need_lib_prefix=no
13178 ;;
13179 freebsd-*)
13180 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13181 need_version=yes
13182 ;;
13183 esac
13184 shlibpath_var=LD_LIBRARY_PATH
13185 case $host_os in
13186 freebsd2*)
13187 shlibpath_overrides_runpath=yes
13188 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013189 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000013190 shlibpath_overrides_runpath=yes
13191 hardcode_into_libs=yes
13192 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013193 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13194 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000013195 shlibpath_overrides_runpath=no
13196 hardcode_into_libs=yes
13197 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000013198 *) # from 4.6 on, and DragonFly
mmentovai8c2a4de2006-09-20 16:20:15 +000013199 shlibpath_overrides_runpath=yes
13200 hardcode_into_libs=yes
13201 ;;
brynercb91a2f2006-08-25 21:14:45 +000013202 esac
13203 ;;
13204
13205gnu*)
13206 version_type=linux
13207 need_lib_prefix=no
13208 need_version=no
13209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13210 soname_spec='${libname}${release}${shared_ext}$major'
13211 shlibpath_var=LD_LIBRARY_PATH
13212 hardcode_into_libs=yes
13213 ;;
13214
13215hpux9* | hpux10* | hpux11*)
13216 # Give a soname corresponding to the major version so that dld.sl refuses to
13217 # link against other versions.
13218 version_type=sunos
13219 need_lib_prefix=no
13220 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013221 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000013222 ia64*)
13223 shrext_cmds='.so'
13224 hardcode_into_libs=yes
13225 dynamic_linker="$host_os dld.so"
13226 shlibpath_var=LD_LIBRARY_PATH
13227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13229 soname_spec='${libname}${release}${shared_ext}$major'
13230 if test "X$HPUX_IA64_MODE" = X32; then
13231 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13232 else
13233 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13234 fi
13235 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13236 ;;
13237 hppa*64*)
13238 shrext_cmds='.sl'
13239 hardcode_into_libs=yes
13240 dynamic_linker="$host_os dld.sl"
13241 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13242 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13244 soname_spec='${libname}${release}${shared_ext}$major'
13245 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13247 ;;
13248 *)
13249 shrext_cmds='.sl'
13250 dynamic_linker="$host_os dld.sl"
13251 shlibpath_var=SHLIB_PATH
13252 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13254 soname_spec='${libname}${release}${shared_ext}$major'
13255 ;;
13256 esac
13257 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13258 postinstall_cmds='chmod 555 $lib'
13259 ;;
13260
ted.mielczarek1adb1842009-12-21 13:12:20 +000013261interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000013262 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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13268 shlibpath_var=LD_LIBRARY_PATH
13269 shlibpath_overrides_runpath=no
13270 hardcode_into_libs=yes
13271 ;;
13272
brynercb91a2f2006-08-25 21:14:45 +000013273irix5* | irix6* | nonstopux*)
13274 case $host_os in
13275 nonstopux*) version_type=nonstopux ;;
13276 *)
13277 if test "$lt_cv_prog_gnu_ld" = yes; then
13278 version_type=linux
13279 else
13280 version_type=irix
13281 fi ;;
13282 esac
13283 need_lib_prefix=no
13284 need_version=no
13285 soname_spec='${libname}${release}${shared_ext}$major'
13286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13287 case $host_os in
13288 irix5* | nonstopux*)
13289 libsuff= shlibsuff=
13290 ;;
13291 *)
13292 case $LD in # libtool.m4 will add one of these switches to LD
13293 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13294 libsuff= shlibsuff= libmagic=32-bit;;
13295 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13296 libsuff=32 shlibsuff=N32 libmagic=N32;;
13297 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13298 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13299 *) libsuff= shlibsuff= libmagic=never-match;;
13300 esac
13301 ;;
13302 esac
13303 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13304 shlibpath_overrides_runpath=no
13305 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13306 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13307 hardcode_into_libs=yes
13308 ;;
13309
13310# No shared lib support for Linux oldld, aout, or coff.
13311linux*oldld* | linux*aout* | linux*coff*)
13312 dynamic_linker=no
13313 ;;
13314
13315# This must be Linux ELF.
ted.mielczarek1adb1842009-12-21 13:12:20 +000013316linux* | k*bsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000013317 version_type=linux
13318 need_lib_prefix=no
13319 need_version=no
13320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13321 soname_spec='${libname}${release}${shared_ext}$major'
13322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13323 shlibpath_var=LD_LIBRARY_PATH
13324 shlibpath_overrides_runpath=no
13325 # This implies no fast_install, which is unacceptable.
13326 # Some rework will be needed to allow for fast_install
13327 # before this can be enabled.
13328 hardcode_into_libs=yes
13329
13330 # Append ld.so.conf contents to the search path
13331 if test -f /etc/ld.so.conf; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000013332 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
brynercb91a2f2006-08-25 21:14:45 +000013333 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13334 fi
13335
13336 # We used to test for /lib/ld.so.1 and disable shared libraries on
13337 # powerpc, because MkLinux only supported shared libraries with the
13338 # GNU dynamic linker. Since this was broken with cross compilers,
13339 # most powerpc-linux boxes support dynamic linking these days and
13340 # people can always --disable-shared, the test was removed, and we
13341 # assume the GNU/Linux dynamic linker is in use.
13342 dynamic_linker='GNU/Linux ld.so'
13343 ;;
13344
brynercb91a2f2006-08-25 21:14:45 +000013345netbsd*)
13346 version_type=sunos
13347 need_lib_prefix=no
13348 need_version=no
13349 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13352 dynamic_linker='NetBSD (a.out) ld.so'
13353 else
13354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13355 soname_spec='${libname}${release}${shared_ext}$major'
13356 dynamic_linker='NetBSD ld.elf_so'
13357 fi
13358 shlibpath_var=LD_LIBRARY_PATH
13359 shlibpath_overrides_runpath=yes
13360 hardcode_into_libs=yes
13361 ;;
13362
13363newsos6)
13364 version_type=linux
13365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13366 shlibpath_var=LD_LIBRARY_PATH
13367 shlibpath_overrides_runpath=yes
13368 ;;
13369
13370nto-qnx*)
13371 version_type=linux
13372 need_lib_prefix=no
13373 need_version=no
13374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13375 soname_spec='${libname}${release}${shared_ext}$major'
13376 shlibpath_var=LD_LIBRARY_PATH
13377 shlibpath_overrides_runpath=yes
13378 ;;
13379
13380openbsd*)
13381 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000013382 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000013383 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013384 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13385 case $host_os in
13386 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13387 *) need_version=no ;;
13388 esac
brynercb91a2f2006-08-25 21:14:45 +000013389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13391 shlibpath_var=LD_LIBRARY_PATH
13392 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13393 case $host_os in
13394 openbsd2.[89] | openbsd2.[89].*)
13395 shlibpath_overrides_runpath=no
13396 ;;
13397 *)
13398 shlibpath_overrides_runpath=yes
13399 ;;
13400 esac
13401 else
13402 shlibpath_overrides_runpath=yes
13403 fi
13404 ;;
13405
13406os2*)
13407 libname_spec='$name'
13408 shrext_cmds=".dll"
13409 need_lib_prefix=no
13410 library_names_spec='$libname${shared_ext} $libname.a'
13411 dynamic_linker='OS/2 ld.exe'
13412 shlibpath_var=LIBPATH
13413 ;;
13414
13415osf3* | osf4* | osf5*)
13416 version_type=osf
13417 need_lib_prefix=no
13418 need_version=no
13419 soname_spec='${libname}${release}${shared_ext}$major'
13420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13421 shlibpath_var=LD_LIBRARY_PATH
13422 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13423 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13424 ;;
13425
ted.mielczarek1adb1842009-12-21 13:12:20 +000013426rdos*)
13427 dynamic_linker=no
13428 ;;
13429
brynercb91a2f2006-08-25 21:14:45 +000013430solaris*)
13431 version_type=linux
13432 need_lib_prefix=no
13433 need_version=no
13434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13435 soname_spec='${libname}${release}${shared_ext}$major'
13436 shlibpath_var=LD_LIBRARY_PATH
13437 shlibpath_overrides_runpath=yes
13438 hardcode_into_libs=yes
13439 # ldd complains unless libraries are executable
13440 postinstall_cmds='chmod +x $lib'
13441 ;;
13442
13443sunos4*)
13444 version_type=sunos
13445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13446 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13447 shlibpath_var=LD_LIBRARY_PATH
13448 shlibpath_overrides_runpath=yes
13449 if test "$with_gnu_ld" = yes; then
13450 need_lib_prefix=no
13451 fi
13452 need_version=yes
13453 ;;
13454
mmentovai8c2a4de2006-09-20 16:20:15 +000013455sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000013456 version_type=linux
13457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13458 soname_spec='${libname}${release}${shared_ext}$major'
13459 shlibpath_var=LD_LIBRARY_PATH
13460 case $host_vendor in
13461 sni)
13462 shlibpath_overrides_runpath=no
13463 need_lib_prefix=no
13464 export_dynamic_flag_spec='${wl}-Blargedynsym'
13465 runpath_var=LD_RUN_PATH
13466 ;;
13467 siemens)
13468 need_lib_prefix=no
13469 ;;
13470 motorola)
13471 need_lib_prefix=no
13472 need_version=no
13473 shlibpath_overrides_runpath=no
13474 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13475 ;;
13476 esac
13477 ;;
13478
13479sysv4*MP*)
13480 if test -d /usr/nec ;then
13481 version_type=linux
13482 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13483 soname_spec='$libname${shared_ext}.$major'
13484 shlibpath_var=LD_LIBRARY_PATH
13485 fi
13486 ;;
13487
mmentovai8c2a4de2006-09-20 16:20:15 +000013488sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13489 version_type=freebsd-elf
13490 need_lib_prefix=no
13491 need_version=no
13492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13493 soname_spec='${libname}${release}${shared_ext}$major'
13494 shlibpath_var=LD_LIBRARY_PATH
13495 hardcode_into_libs=yes
13496 if test "$with_gnu_ld" = yes; then
13497 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13498 shlibpath_overrides_runpath=no
13499 else
13500 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13501 shlibpath_overrides_runpath=yes
13502 case $host_os in
13503 sco3.2v5*)
13504 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13505 ;;
13506 esac
13507 fi
13508 sys_lib_dlsearch_path_spec='/usr/lib'
13509 ;;
13510
brynercb91a2f2006-08-25 21:14:45 +000013511uts4*)
13512 version_type=linux
13513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13514 soname_spec='${libname}${release}${shared_ext}$major'
13515 shlibpath_var=LD_LIBRARY_PATH
13516 ;;
13517
13518*)
13519 dynamic_linker=no
13520 ;;
13521esac
mmentovai8c2a4de2006-09-20 16:20:15 +000013522{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13523echo "${ECHO_T}$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013524test "$dynamic_linker" = no && can_build_shared=no
13525
ted.mielczarek1adb1842009-12-21 13:12:20 +000013526if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13528else
13529 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13530fi
13531
13532sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13533if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13535else
13536 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13537fi
13538
13539sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13540
mmentovai8c2a4de2006-09-20 16:20:15 +000013541variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13542if test "$GCC" = yes; then
13543 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13544fi
13545
13546{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13547echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013548hardcode_action_CXX=
13549if test -n "$hardcode_libdir_flag_spec_CXX" || \
mmentovai8c2a4de2006-09-20 16:20:15 +000013550 test -n "$runpath_var_CXX" || \
13551 test "X$hardcode_automatic_CXX" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000013552
13553 # We can hardcode non-existant directories.
13554 if test "$hardcode_direct_CXX" != no &&
13555 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13556 # have to relink, otherwise we might link with an installed library
13557 # when we should be linking with a yet-to-be-installed one
13558 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13559 test "$hardcode_minus_L_CXX" != no; then
13560 # Linking always hardcodes the temporary library directory.
13561 hardcode_action_CXX=relink
13562 else
13563 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13564 hardcode_action_CXX=immediate
13565 fi
13566else
13567 # We cannot hardcode anything, or else we can only hardcode existing
13568 # directories.
13569 hardcode_action_CXX=unsupported
13570fi
mmentovai8c2a4de2006-09-20 16:20:15 +000013571{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13572echo "${ECHO_T}$hardcode_action_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013573
13574if test "$hardcode_action_CXX" = relink; then
13575 # Fast installation is not supported
13576 enable_fast_install=no
13577elif test "$shlibpath_overrides_runpath" = yes ||
13578 test "$enable_shared" = no; then
13579 # Fast installation is not necessary
13580 enable_fast_install=needless
13581fi
13582
brynercb91a2f2006-08-25 21:14:45 +000013583
13584# The else clause should only fire when bootstrapping the
13585# libtool distribution, otherwise you forgot to ship ltmain.sh
13586# with your package, and you will get complaints that there are
13587# no rules to generate ltmain.sh.
13588if test -f "$ltmain"; then
13589 # See if we are running on zsh, and set the options which allow our commands through
13590 # without removal of \ escapes.
13591 if test -n "${ZSH_VERSION+set}" ; then
13592 setopt NO_GLOB_SUBST
13593 fi
13594 # Now quote all the things that may contain metacharacters while being
13595 # careful not to overquote the AC_SUBSTed values. We take copies of the
13596 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000013597 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000013598 SED SHELL STRIP \
13599 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13600 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13601 deplibs_check_method reload_flag reload_cmds need_locks \
13602 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13603 lt_cv_sys_global_symbol_to_c_name_address \
13604 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13605 old_postinstall_cmds old_postuninstall_cmds \
13606 compiler_CXX \
13607 CC_CXX \
13608 LD_CXX \
13609 lt_prog_compiler_wl_CXX \
13610 lt_prog_compiler_pic_CXX \
13611 lt_prog_compiler_static_CXX \
13612 lt_prog_compiler_no_builtin_flag_CXX \
13613 export_dynamic_flag_spec_CXX \
13614 thread_safe_flag_spec_CXX \
13615 whole_archive_flag_spec_CXX \
13616 enable_shared_with_static_runtimes_CXX \
13617 old_archive_cmds_CXX \
13618 old_archive_from_new_cmds_CXX \
13619 predep_objects_CXX \
13620 postdep_objects_CXX \
13621 predeps_CXX \
13622 postdeps_CXX \
13623 compiler_lib_search_path_CXX \
ted.mielczarek1adb1842009-12-21 13:12:20 +000013624 compiler_lib_search_dirs_CXX \
brynercb91a2f2006-08-25 21:14:45 +000013625 archive_cmds_CXX \
13626 archive_expsym_cmds_CXX \
13627 postinstall_cmds_CXX \
13628 postuninstall_cmds_CXX \
13629 old_archive_from_expsyms_cmds_CXX \
13630 allow_undefined_flag_CXX \
13631 no_undefined_flag_CXX \
13632 export_symbols_cmds_CXX \
13633 hardcode_libdir_flag_spec_CXX \
13634 hardcode_libdir_flag_spec_ld_CXX \
13635 hardcode_libdir_separator_CXX \
13636 hardcode_automatic_CXX \
13637 module_cmds_CXX \
13638 module_expsym_cmds_CXX \
13639 lt_cv_prog_compiler_c_o_CXX \
ted.mielczarek1adb1842009-12-21 13:12:20 +000013640 fix_srcfile_path_CXX \
brynercb91a2f2006-08-25 21:14:45 +000013641 exclude_expsyms_CXX \
13642 include_expsyms_CXX; do
13643
13644 case $var in
13645 old_archive_cmds_CXX | \
13646 old_archive_from_new_cmds_CXX | \
13647 archive_cmds_CXX | \
13648 archive_expsym_cmds_CXX | \
13649 module_cmds_CXX | \
13650 module_expsym_cmds_CXX | \
13651 old_archive_from_expsyms_cmds_CXX | \
13652 export_symbols_cmds_CXX | \
13653 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13654 postinstall_cmds | postuninstall_cmds | \
13655 old_postinstall_cmds | old_postuninstall_cmds | \
13656 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13657 # Double-quote double-evaled strings.
13658 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13659 ;;
13660 *)
13661 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13662 ;;
13663 esac
13664 done
13665
13666 case $lt_echo in
13667 *'\$0 --fallback-echo"')
13668 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13669 ;;
13670 esac
13671
13672cfgfile="$ofile"
13673
13674 cat <<__EOF__ >> "$cfgfile"
13675# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13676
13677# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13678
13679# Shell to use when invoking shell scripts.
13680SHELL=$lt_SHELL
13681
13682# Whether or not to build shared libraries.
13683build_libtool_libs=$enable_shared
13684
13685# Whether or not to build static libraries.
13686build_old_libs=$enable_static
13687
13688# Whether or not to add -lc for building shared libraries.
13689build_libtool_need_lc=$archive_cmds_need_lc_CXX
13690
13691# Whether or not to disallow shared libs when runtime libs are static
13692allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13693
13694# Whether or not to optimize for fast installation.
13695fast_install=$enable_fast_install
13696
13697# The host system.
13698host_alias=$host_alias
13699host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000013700host_os=$host_os
13701
13702# The build system.
13703build_alias=$build_alias
13704build=$build
13705build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000013706
13707# An echo program that does not interpret backslashes.
13708echo=$lt_echo
13709
13710# The archiver.
13711AR=$lt_AR
13712AR_FLAGS=$lt_AR_FLAGS
13713
13714# A C compiler.
13715LTCC=$lt_LTCC
13716
mmentovai8c2a4de2006-09-20 16:20:15 +000013717# LTCC compiler flags.
13718LTCFLAGS=$lt_LTCFLAGS
13719
brynercb91a2f2006-08-25 21:14:45 +000013720# A language-specific compiler.
13721CC=$lt_compiler_CXX
13722
13723# Is the compiler the GNU C compiler?
13724with_gcc=$GCC_CXX
13725
13726# An ERE matcher.
13727EGREP=$lt_EGREP
13728
13729# The linker used to build libraries.
13730LD=$lt_LD_CXX
13731
13732# Whether we need hard or soft links.
13733LN_S=$lt_LN_S
13734
13735# A BSD-compatible nm program.
13736NM=$lt_NM
13737
13738# A symbol stripping program
13739STRIP=$lt_STRIP
13740
13741# Used to examine libraries when file_magic_cmd begins "file"
13742MAGIC_CMD=$MAGIC_CMD
13743
13744# Used on cygwin: DLL creation program.
13745DLLTOOL="$DLLTOOL"
13746
13747# Used on cygwin: object dumper.
13748OBJDUMP="$OBJDUMP"
13749
13750# Used on cygwin: assembler.
13751AS="$AS"
13752
13753# The name of the directory that contains temporary libtool files.
13754objdir=$objdir
13755
13756# How to create reloadable object files.
13757reload_flag=$lt_reload_flag
13758reload_cmds=$lt_reload_cmds
13759
13760# How to pass a linker flag through the compiler.
13761wl=$lt_lt_prog_compiler_wl_CXX
13762
13763# Object file suffix (normally "o").
13764objext="$ac_objext"
13765
13766# Old archive suffix (normally "a").
13767libext="$libext"
13768
13769# Shared library suffix (normally ".so").
13770shrext_cmds='$shrext_cmds'
13771
13772# Executable file suffix (normally "").
13773exeext="$exeext"
13774
13775# Additional compiler flags for building library objects.
13776pic_flag=$lt_lt_prog_compiler_pic_CXX
13777pic_mode=$pic_mode
13778
13779# What is the maximum length of a command?
13780max_cmd_len=$lt_cv_sys_max_cmd_len
13781
13782# Does compiler simultaneously support -c and -o options?
13783compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13784
mmentovai8c2a4de2006-09-20 16:20:15 +000013785# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000013786need_locks=$lt_need_locks
13787
13788# Do we need the lib prefix for modules?
13789need_lib_prefix=$need_lib_prefix
13790
13791# Do we need a version for libraries?
13792need_version=$need_version
13793
13794# Whether dlopen is supported.
13795dlopen_support=$enable_dlopen
13796
13797# Whether dlopen of programs is supported.
13798dlopen_self=$enable_dlopen_self
13799
13800# Whether dlopen of statically linked programs is supported.
13801dlopen_self_static=$enable_dlopen_self_static
13802
13803# Compiler flag to prevent dynamic linking.
13804link_static_flag=$lt_lt_prog_compiler_static_CXX
13805
13806# Compiler flag to turn off builtin functions.
13807no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13808
13809# Compiler flag to allow reflexive dlopens.
13810export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13811
13812# Compiler flag to generate shared objects directly from archives.
13813whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13814
13815# Compiler flag to generate thread-safe objects.
13816thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13817
13818# Library versioning type.
13819version_type=$version_type
13820
13821# Format of library name prefix.
13822libname_spec=$lt_libname_spec
13823
13824# List of archive names. First name is the real one, the rest are links.
13825# The last name is the one that the linker finds with -lNAME.
13826library_names_spec=$lt_library_names_spec
13827
13828# The coded name of the library, if different from the real name.
13829soname_spec=$lt_soname_spec
13830
13831# Commands used to build and install an old-style archive.
13832RANLIB=$lt_RANLIB
13833old_archive_cmds=$lt_old_archive_cmds_CXX
13834old_postinstall_cmds=$lt_old_postinstall_cmds
13835old_postuninstall_cmds=$lt_old_postuninstall_cmds
13836
13837# Create an old-style archive from a shared archive.
13838old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13839
13840# Create a temporary old-style archive to link instead of a shared archive.
13841old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13842
13843# Commands used to build and install a shared archive.
13844archive_cmds=$lt_archive_cmds_CXX
13845archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13846postinstall_cmds=$lt_postinstall_cmds
13847postuninstall_cmds=$lt_postuninstall_cmds
13848
13849# Commands used to build a loadable module (assumed same as above if empty)
13850module_cmds=$lt_module_cmds_CXX
13851module_expsym_cmds=$lt_module_expsym_cmds_CXX
13852
13853# Commands to strip libraries.
13854old_striplib=$lt_old_striplib
13855striplib=$lt_striplib
13856
13857# Dependencies to place before the objects being linked to create a
13858# shared library.
13859predep_objects=$lt_predep_objects_CXX
13860
13861# Dependencies to place after the objects being linked to create a
13862# shared library.
13863postdep_objects=$lt_postdep_objects_CXX
13864
13865# Dependencies to place before the objects being linked to create a
13866# shared library.
13867predeps=$lt_predeps_CXX
13868
13869# Dependencies to place after the objects being linked to create a
13870# shared library.
13871postdeps=$lt_postdeps_CXX
13872
ted.mielczarek1adb1842009-12-21 13:12:20 +000013873# The directories searched by this compiler when creating a shared
13874# library
13875compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13876
brynercb91a2f2006-08-25 21:14:45 +000013877# The library search path used internally by the compiler when linking
13878# a shared library.
13879compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13880
13881# Method to check whether dependent libraries are shared objects.
13882deplibs_check_method=$lt_deplibs_check_method
13883
13884# Command to use when deplibs_check_method == file_magic.
13885file_magic_cmd=$lt_file_magic_cmd
13886
13887# Flag that allows shared libraries with undefined symbols to be built.
13888allow_undefined_flag=$lt_allow_undefined_flag_CXX
13889
13890# Flag that forces no undefined symbols.
13891no_undefined_flag=$lt_no_undefined_flag_CXX
13892
13893# Commands used to finish a libtool library installation in a directory.
13894finish_cmds=$lt_finish_cmds
13895
13896# Same as above, but a single script fragment to be evaled but not shown.
13897finish_eval=$lt_finish_eval
13898
13899# Take the output of nm and produce a listing of raw symbols and C names.
13900global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13901
13902# Transform the output of nm in a proper C declaration
13903global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13904
13905# Transform the output of nm in a C name address pair
13906global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13907
13908# This is the shared library runtime path variable.
13909runpath_var=$runpath_var
13910
13911# This is the shared library path variable.
13912shlibpath_var=$shlibpath_var
13913
13914# Is shlibpath searched before the hard-coded library search path?
13915shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13916
13917# How to hardcode a shared library path into an executable.
13918hardcode_action=$hardcode_action_CXX
13919
13920# Whether we should hardcode library paths into libraries.
13921hardcode_into_libs=$hardcode_into_libs
13922
13923# Flag to hardcode \$libdir into a binary during linking.
13924# This must work even if \$libdir does not exist.
13925hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13926
13927# If ld is used when linking, flag to hardcode \$libdir into
13928# a binary during linking. This must work even if \$libdir does
13929# not exist.
13930hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13931
13932# Whether we need a single -rpath flag with a separated argument.
13933hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13934
13935# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13936# resulting binary.
13937hardcode_direct=$hardcode_direct_CXX
13938
13939# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13940# resulting binary.
13941hardcode_minus_L=$hardcode_minus_L_CXX
13942
13943# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13944# the resulting binary.
13945hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13946
13947# Set to yes if building a shared library automatically hardcodes DIR into the library
13948# and all subsequent libraries and executables linked against it.
13949hardcode_automatic=$hardcode_automatic_CXX
13950
13951# Variables whose values should be saved in libtool wrapper scripts and
13952# restored at relink time.
13953variables_saved_for_relink="$variables_saved_for_relink"
13954
13955# Whether libtool must link a program against all its dependency libraries.
13956link_all_deplibs=$link_all_deplibs_CXX
13957
13958# Compile-time system search path for libraries
13959sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13960
13961# Run-time system search path for libraries
13962sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13963
13964# Fix the shell variable \$srcfile for the compiler.
ted.mielczarek1adb1842009-12-21 13:12:20 +000013965fix_srcfile_path=$lt_fix_srcfile_path
brynercb91a2f2006-08-25 21:14:45 +000013966
13967# Set to yes if exported symbols are required.
13968always_export_symbols=$always_export_symbols_CXX
13969
13970# The commands to list exported symbols.
13971export_symbols_cmds=$lt_export_symbols_cmds_CXX
13972
13973# The commands to extract the exported symbol list from a shared archive.
13974extract_expsyms_cmds=$lt_extract_expsyms_cmds
13975
13976# Symbols that should not be listed in the preloaded symbols.
13977exclude_expsyms=$lt_exclude_expsyms_CXX
13978
13979# Symbols that must always be exported.
13980include_expsyms=$lt_include_expsyms_CXX
13981
13982# ### END LIBTOOL TAG CONFIG: $tagname
13983
13984__EOF__
13985
13986
13987else
13988 # If there is no Makefile yet, we rely on a make rule to execute
13989 # `config.status --recheck' to rerun these tests and create the
13990 # libtool script then.
13991 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13992 if test -f "$ltmain_in"; then
13993 test -f Makefile && make "$ltmain"
13994 fi
13995fi
13996
13997
13998ac_ext=c
13999ac_cpp='$CPP $CPPFLAGS'
14000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14002ac_compiler_gnu=$ac_cv_c_compiler_gnu
14003
14004CC=$lt_save_CC
14005LDCXX=$LD
14006LD=$lt_save_LD
14007GCC=$lt_save_GCC
14008with_gnu_ldcxx=$with_gnu_ld
14009with_gnu_ld=$lt_save_with_gnu_ld
14010lt_cv_path_LDCXX=$lt_cv_path_LD
14011lt_cv_path_LD=$lt_save_path_LD
14012lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14013lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14014
14015 else
14016 tagname=""
14017 fi
14018 ;;
14019
14020 F77)
14021 if test -n "$F77" && test "X$F77" != "Xno"; then
14022
14023ac_ext=f
14024ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14025ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14026ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14027
14028
14029archive_cmds_need_lc_F77=no
14030allow_undefined_flag_F77=
14031always_export_symbols_F77=no
14032archive_expsym_cmds_F77=
14033export_dynamic_flag_spec_F77=
14034hardcode_direct_F77=no
14035hardcode_libdir_flag_spec_F77=
14036hardcode_libdir_flag_spec_ld_F77=
14037hardcode_libdir_separator_F77=
14038hardcode_minus_L_F77=no
14039hardcode_automatic_F77=no
14040module_cmds_F77=
14041module_expsym_cmds_F77=
14042link_all_deplibs_F77=unknown
14043old_archive_cmds_F77=$old_archive_cmds
14044no_undefined_flag_F77=
14045whole_archive_flag_spec_F77=
14046enable_shared_with_static_runtimes_F77=no
14047
14048# Source file extension for f77 test sources.
14049ac_ext=f
14050
14051# Object file extension for compiled f77 test sources.
14052objext=o
14053objext_F77=$objext
14054
14055# Code to be used in simple compile tests
ted.mielczarek1adb1842009-12-21 13:12:20 +000014056lt_simple_compile_test_code="\
14057 subroutine t
14058 return
14059 end
14060"
brynercb91a2f2006-08-25 21:14:45 +000014061
14062# Code to be used in simple link tests
ted.mielczarek1adb1842009-12-21 13:12:20 +000014063lt_simple_link_test_code="\
14064 program t
14065 end
14066"
brynercb91a2f2006-08-25 21:14:45 +000014067
14068# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14069
14070# If no C compiler was specified, use CC.
14071LTCC=${LTCC-"$CC"}
14072
mmentovai8c2a4de2006-09-20 16:20:15 +000014073# If no C compiler flags were specified, use CFLAGS.
14074LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14075
brynercb91a2f2006-08-25 21:14:45 +000014076# Allow CC to be a program name with arguments.
14077compiler=$CC
14078
14079
mmentovai8c2a4de2006-09-20 16:20:15 +000014080# save warnings/boilerplate of simple test code
14081ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000014082echo "$lt_simple_compile_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000014083eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14084_lt_compiler_boilerplate=`cat conftest.err`
14085$rm conftest*
14086
14087ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000014088echo "$lt_simple_link_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000014089eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14090_lt_linker_boilerplate=`cat conftest.err`
ted.mielczarek1adb1842009-12-21 13:12:20 +000014091$rm -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000014092
14093
brynercb91a2f2006-08-25 21:14:45 +000014094# Allow CC to be a program name with arguments.
14095lt_save_CC="$CC"
14096CC=${F77-"f77"}
14097compiler=$CC
14098compiler_F77=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +000014099for cc_temp in $compiler""; do
14100 case $cc_temp in
14101 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14102 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14103 \-*) ;;
14104 *) break;;
14105 esac
14106done
14107cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +000014108
brynercb91a2f2006-08-25 21:14:45 +000014109
mmentovai8c2a4de2006-09-20 16:20:15 +000014110{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14111echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14112{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14113echo "${ECHO_T}$can_build_shared" >&6; }
14114
14115{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14116echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014117test "$can_build_shared" = "no" && enable_shared=no
14118
14119# On AIX, shared libraries and static libraries use the same namespace, and
14120# are all built from PIC.
mmentovai8c2a4de2006-09-20 16:20:15 +000014121case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000014122aix3*)
14123 test "$enable_shared" = yes && enable_static=no
14124 if test -n "$RANLIB"; then
14125 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14126 postinstall_cmds='$RANLIB $lib'
14127 fi
14128 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000014129aix[4-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000014130 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14131 test "$enable_shared" = yes && enable_static=no
14132 fi
brynercb91a2f2006-08-25 21:14:45 +000014133 ;;
14134esac
mmentovai8c2a4de2006-09-20 16:20:15 +000014135{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14136echo "${ECHO_T}$enable_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014137
mmentovai8c2a4de2006-09-20 16:20:15 +000014138{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14139echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014140# Make sure either enable_shared or enable_static is yes.
14141test "$enable_shared" = yes || enable_static=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014142{ echo "$as_me:$LINENO: result: $enable_static" >&5
14143echo "${ECHO_T}$enable_static" >&6; }
brynerd5e66382006-09-08 02:35:53 +000014144
brynercb91a2f2006-08-25 21:14:45 +000014145GCC_F77="$G77"
14146LD_F77="$LD"
14147
14148lt_prog_compiler_wl_F77=
14149lt_prog_compiler_pic_F77=
14150lt_prog_compiler_static_F77=
14151
mmentovai8c2a4de2006-09-20 16:20:15 +000014152{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14153echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014154
14155 if test "$GCC" = yes; then
14156 lt_prog_compiler_wl_F77='-Wl,'
14157 lt_prog_compiler_static_F77='-static'
14158
14159 case $host_os in
14160 aix*)
14161 # All AIX code is PIC.
14162 if test "$host_cpu" = ia64; then
14163 # AIX 5 now supports IA64 processor
14164 lt_prog_compiler_static_F77='-Bstatic'
14165 fi
14166 ;;
14167
14168 amigaos*)
14169 # FIXME: we need at least 68020 code to build shared libraries, but
14170 # adding the `-m68020' flag to GCC prevents building anything better,
14171 # like `-m68040'.
14172 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14173 ;;
14174
ted.mielczarek1adb1842009-12-21 13:12:20 +000014175 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
brynercb91a2f2006-08-25 21:14:45 +000014176 # PIC is the default for these OSes.
14177 ;;
14178
ted.mielczarek1adb1842009-12-21 13:12:20 +000014179 mingw* | cygwin* | pw32* | os2*)
brynercb91a2f2006-08-25 21:14:45 +000014180 # This hack is so that the source file can tell whether it is being
14181 # built for inclusion in a dll (and should export symbols for example).
ted.mielczarek1adb1842009-12-21 13:12:20 +000014182 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14183 # (--disable-auto-import) libraries
brynercb91a2f2006-08-25 21:14:45 +000014184 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14185 ;;
14186
14187 darwin* | rhapsody*)
14188 # PIC is the default on this platform
14189 # Common symbols not allowed in MH_DYLIB files
14190 lt_prog_compiler_pic_F77='-fno-common'
14191 ;;
14192
ted.mielczarek1adb1842009-12-21 13:12:20 +000014193 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000014194 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14195 # Instead, we relocate shared libraries at runtime.
14196 ;;
14197
brynercb91a2f2006-08-25 21:14:45 +000014198 msdosdjgpp*)
14199 # Just because we use GCC doesn't mean we suddenly get shared libraries
14200 # on systems that don't support them.
14201 lt_prog_compiler_can_build_shared_F77=no
14202 enable_shared=no
14203 ;;
14204
14205 sysv4*MP*)
14206 if test -d /usr/nec; then
14207 lt_prog_compiler_pic_F77=-Kconform_pic
14208 fi
14209 ;;
14210
14211 hpux*)
14212 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14213 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000014214 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000014215 hppa*64*|ia64*)
14216 # +Z the default
14217 ;;
14218 *)
14219 lt_prog_compiler_pic_F77='-fPIC'
14220 ;;
14221 esac
14222 ;;
14223
14224 *)
14225 lt_prog_compiler_pic_F77='-fPIC'
14226 ;;
14227 esac
14228 else
14229 # PORTME Check for flag to pass linker flags through the system compiler.
14230 case $host_os in
14231 aix*)
14232 lt_prog_compiler_wl_F77='-Wl,'
14233 if test "$host_cpu" = ia64; then
14234 # AIX 5 now supports IA64 processor
14235 lt_prog_compiler_static_F77='-Bstatic'
14236 else
14237 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14238 fi
14239 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014240 darwin*)
14241 # PIC is the default on this platform
14242 # Common symbols not allowed in MH_DYLIB files
14243 case $cc_basename in
14244 xlc*)
14245 lt_prog_compiler_pic_F77='-qnocommon'
14246 lt_prog_compiler_wl_F77='-Wl,'
14247 ;;
14248 esac
14249 ;;
brynercb91a2f2006-08-25 21:14:45 +000014250
ted.mielczarek1adb1842009-12-21 13:12:20 +000014251 mingw* | cygwin* | pw32* | os2*)
brynercb91a2f2006-08-25 21:14:45 +000014252 # This hack is so that the source file can tell whether it is being
14253 # built for inclusion in a dll (and should export symbols for example).
14254 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14255 ;;
14256
14257 hpux9* | hpux10* | hpux11*)
14258 lt_prog_compiler_wl_F77='-Wl,'
14259 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14260 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000014261 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000014262 hppa*64*|ia64*)
14263 # +Z the default
14264 ;;
14265 *)
14266 lt_prog_compiler_pic_F77='+Z'
14267 ;;
14268 esac
14269 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14270 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14271 ;;
14272
14273 irix5* | irix6* | nonstopux*)
14274 lt_prog_compiler_wl_F77='-Wl,'
14275 # PIC (with -KPIC) is the default.
14276 lt_prog_compiler_static_F77='-non_shared'
14277 ;;
14278
14279 newsos6)
14280 lt_prog_compiler_pic_F77='-KPIC'
14281 lt_prog_compiler_static_F77='-Bstatic'
14282 ;;
14283
ted.mielczarek1adb1842009-12-21 13:12:20 +000014284 linux* | k*bsd*-gnu)
mmentovai8c2a4de2006-09-20 16:20:15 +000014285 case $cc_basename in
brynercb91a2f2006-08-25 21:14:45 +000014286 icc* | ecc*)
14287 lt_prog_compiler_wl_F77='-Wl,'
14288 lt_prog_compiler_pic_F77='-KPIC'
14289 lt_prog_compiler_static_F77='-static'
14290 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014291 pgcc* | pgf77* | pgf90* | pgf95*)
14292 # Portland Group compilers (*not* the Pentium gcc compiler,
14293 # which looks to be a dead project)
14294 lt_prog_compiler_wl_F77='-Wl,'
14295 lt_prog_compiler_pic_F77='-fpic'
14296 lt_prog_compiler_static_F77='-Bstatic'
14297 ;;
brynercb91a2f2006-08-25 21:14:45 +000014298 ccc*)
14299 lt_prog_compiler_wl_F77='-Wl,'
14300 # All Alpha code is PIC.
14301 lt_prog_compiler_static_F77='-non_shared'
14302 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000014303 *)
14304 case `$CC -V 2>&1 | sed 5q` in
14305 *Sun\ C*)
14306 # Sun C 5.9
14307 lt_prog_compiler_pic_F77='-KPIC'
14308 lt_prog_compiler_static_F77='-Bstatic'
14309 lt_prog_compiler_wl_F77='-Wl,'
14310 ;;
14311 *Sun\ F*)
14312 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14313 lt_prog_compiler_pic_F77='-KPIC'
14314 lt_prog_compiler_static_F77='-Bstatic'
14315 lt_prog_compiler_wl_F77=''
14316 ;;
14317 esac
14318 ;;
brynercb91a2f2006-08-25 21:14:45 +000014319 esac
14320 ;;
14321
14322 osf3* | osf4* | osf5*)
14323 lt_prog_compiler_wl_F77='-Wl,'
14324 # All OSF/1 code is PIC.
14325 lt_prog_compiler_static_F77='-non_shared'
14326 ;;
14327
ted.mielczarek1adb1842009-12-21 13:12:20 +000014328 rdos*)
14329 lt_prog_compiler_static_F77='-non_shared'
14330 ;;
14331
brynercb91a2f2006-08-25 21:14:45 +000014332 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000014333 lt_prog_compiler_pic_F77='-KPIC'
14334 lt_prog_compiler_static_F77='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +000014335 case $cc_basename in
14336 f77* | f90* | f95*)
14337 lt_prog_compiler_wl_F77='-Qoption ld ';;
14338 *)
14339 lt_prog_compiler_wl_F77='-Wl,';;
14340 esac
brynercb91a2f2006-08-25 21:14:45 +000014341 ;;
14342
14343 sunos4*)
14344 lt_prog_compiler_wl_F77='-Qoption ld '
14345 lt_prog_compiler_pic_F77='-PIC'
14346 lt_prog_compiler_static_F77='-Bstatic'
14347 ;;
14348
mmentovai8c2a4de2006-09-20 16:20:15 +000014349 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000014350 lt_prog_compiler_wl_F77='-Wl,'
14351 lt_prog_compiler_pic_F77='-KPIC'
14352 lt_prog_compiler_static_F77='-Bstatic'
14353 ;;
14354
14355 sysv4*MP*)
14356 if test -d /usr/nec ;then
14357 lt_prog_compiler_pic_F77='-Kconform_pic'
14358 lt_prog_compiler_static_F77='-Bstatic'
14359 fi
14360 ;;
14361
mmentovai8c2a4de2006-09-20 16:20:15 +000014362 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14363 lt_prog_compiler_wl_F77='-Wl,'
14364 lt_prog_compiler_pic_F77='-KPIC'
14365 lt_prog_compiler_static_F77='-Bstatic'
14366 ;;
14367
14368 unicos*)
14369 lt_prog_compiler_wl_F77='-Wl,'
14370 lt_prog_compiler_can_build_shared_F77=no
14371 ;;
14372
brynercb91a2f2006-08-25 21:14:45 +000014373 uts4*)
14374 lt_prog_compiler_pic_F77='-pic'
14375 lt_prog_compiler_static_F77='-Bstatic'
14376 ;;
14377
14378 *)
14379 lt_prog_compiler_can_build_shared_F77=no
14380 ;;
14381 esac
14382 fi
14383
mmentovai8c2a4de2006-09-20 16:20:15 +000014384{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14385echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014386
14387#
14388# Check to make sure the PIC flag actually works.
14389#
14390if test -n "$lt_prog_compiler_pic_F77"; then
14391
mmentovai8c2a4de2006-09-20 16:20:15 +000014392{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14393echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
ted.mielczarek1adb1842009-12-21 13:12:20 +000014394if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
brynercb91a2f2006-08-25 21:14:45 +000014395 echo $ECHO_N "(cached) $ECHO_C" >&6
14396else
ted.mielczarek1adb1842009-12-21 13:12:20 +000014397 lt_cv_prog_compiler_pic_works_F77=no
brynercb91a2f2006-08-25 21:14:45 +000014398 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000014399 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014400 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14401 # Insert the option either (1) after the last *FLAGS variable, or
14402 # (2) before a word containing "conftest.", or (3) at the end.
14403 # Note that $ac_compile itself does not contain backslashes and begins
14404 # with a dollar sign (not a hyphen), so the echo should work correctly.
14405 # The option is referenced via a variable to avoid confusing sed.
14406 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000014407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000014408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14409 -e 's:$: $lt_compiler_flag:'`
ted.mielczarek1adb1842009-12-21 13:12:20 +000014410 (eval echo "\"\$as_me:14410: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000014411 (eval "$lt_compile" 2>conftest.err)
14412 ac_status=$?
14413 cat conftest.err >&5
ted.mielczarek1adb1842009-12-21 13:12:20 +000014414 echo "$as_me:14414: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000014415 if (exit $ac_status) && test -s "$ac_outfile"; then
14416 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000014417 # So say no if there are warnings other than the usual output.
14418 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14420 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000014421 lt_cv_prog_compiler_pic_works_F77=yes
brynercb91a2f2006-08-25 21:14:45 +000014422 fi
14423 fi
14424 $rm conftest*
14425
14426fi
ted.mielczarek1adb1842009-12-21 13:12:20 +000014427{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14428echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014429
ted.mielczarek1adb1842009-12-21 13:12:20 +000014430if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
brynercb91a2f2006-08-25 21:14:45 +000014431 case $lt_prog_compiler_pic_F77 in
14432 "" | " "*) ;;
14433 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14434 esac
14435else
14436 lt_prog_compiler_pic_F77=
14437 lt_prog_compiler_can_build_shared_F77=no
14438fi
14439
14440fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014441case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000014442 # For platforms which do not support PIC, -DPIC is meaningless:
14443 *djgpp*)
14444 lt_prog_compiler_pic_F77=
14445 ;;
14446 *)
14447 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14448 ;;
14449esac
14450
mmentovai8c2a4de2006-09-20 16:20:15 +000014451#
14452# Check to make sure the static flag actually works.
14453#
14454wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14455{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14456echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
ted.mielczarek1adb1842009-12-21 13:12:20 +000014457if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +000014458 echo $ECHO_N "(cached) $ECHO_C" >&6
14459else
ted.mielczarek1adb1842009-12-21 13:12:20 +000014460 lt_cv_prog_compiler_static_works_F77=no
mmentovai8c2a4de2006-09-20 16:20:15 +000014461 save_LDFLAGS="$LDFLAGS"
14462 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ted.mielczarek1adb1842009-12-21 13:12:20 +000014463 echo "$lt_simple_link_test_code" > conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000014464 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14465 # The linker can only warn and ignore the option if not recognized
14466 # So say no if there are warnings
14467 if test -s conftest.err; then
14468 # Append any errors to the config.log.
14469 cat conftest.err 1>&5
14470 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14472 if diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000014473 lt_cv_prog_compiler_static_works_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014474 fi
14475 else
ted.mielczarek1adb1842009-12-21 13:12:20 +000014476 lt_cv_prog_compiler_static_works_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014477 fi
14478 fi
ted.mielczarek1adb1842009-12-21 13:12:20 +000014479 $rm -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000014480 LDFLAGS="$save_LDFLAGS"
14481
14482fi
ted.mielczarek1adb1842009-12-21 13:12:20 +000014483{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14484echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +000014485
ted.mielczarek1adb1842009-12-21 13:12:20 +000014486if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000014487 :
14488else
14489 lt_prog_compiler_static_F77=
14490fi
14491
14492
14493{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14494echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014495if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14497else
14498 lt_cv_prog_compiler_c_o_F77=no
14499 $rm -r conftest 2>/dev/null
14500 mkdir conftest
14501 cd conftest
14502 mkdir out
ted.mielczarek1adb1842009-12-21 13:12:20 +000014503 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014504
14505 lt_compiler_flag="-o out/conftest2.$ac_objext"
14506 # Insert the option either (1) after the last *FLAGS variable, or
14507 # (2) before a word containing "conftest.", or (3) at the end.
14508 # Note that $ac_compile itself does not contain backslashes and begins
14509 # with a dollar sign (not a hyphen), so the echo should work correctly.
14510 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000014511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000014512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14513 -e 's:$: $lt_compiler_flag:'`
ted.mielczarek1adb1842009-12-21 13:12:20 +000014514 (eval echo "\"\$as_me:14514: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000014515 (eval "$lt_compile" 2>out/conftest.err)
14516 ac_status=$?
14517 cat out/conftest.err >&5
ted.mielczarek1adb1842009-12-21 13:12:20 +000014518 echo "$as_me:14518: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000014519 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14520 then
14521 # The compiler can only warn and ignore the option if not recognized
14522 # So say no if there are warnings
mmentovai8c2a4de2006-09-20 16:20:15 +000014523 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14524 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14525 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000014526 lt_cv_prog_compiler_c_o_F77=yes
14527 fi
14528 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014529 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +000014530 $rm conftest*
14531 # SGI C++ compiler will create directory out/ii_files/ for
14532 # template instantiation
14533 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14534 $rm out/* && rmdir out
14535 cd ..
14536 rmdir conftest
14537 $rm conftest*
14538
14539fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014540{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14541echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014542
14543
14544hard_links="nottested"
14545if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14546 # do not overwrite the value of need_locks provided by the user
mmentovai8c2a4de2006-09-20 16:20:15 +000014547 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14548echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014549 hard_links=yes
14550 $rm conftest*
14551 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14552 touch conftest.a
14553 ln conftest.a conftest.b 2>&5 || hard_links=no
14554 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mmentovai8c2a4de2006-09-20 16:20:15 +000014555 { echo "$as_me:$LINENO: result: $hard_links" >&5
14556echo "${ECHO_T}$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014557 if test "$hard_links" = no; then
14558 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14559echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14560 need_locks=warn
14561 fi
14562else
14563 need_locks=no
14564fi
14565
mmentovai8c2a4de2006-09-20 16:20:15 +000014566{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14567echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014568
14569 runpath_var=
14570 allow_undefined_flag_F77=
14571 enable_shared_with_static_runtimes_F77=no
14572 archive_cmds_F77=
14573 archive_expsym_cmds_F77=
14574 old_archive_From_new_cmds_F77=
14575 old_archive_from_expsyms_cmds_F77=
14576 export_dynamic_flag_spec_F77=
14577 whole_archive_flag_spec_F77=
14578 thread_safe_flag_spec_F77=
14579 hardcode_libdir_flag_spec_F77=
14580 hardcode_libdir_flag_spec_ld_F77=
14581 hardcode_libdir_separator_F77=
14582 hardcode_direct_F77=no
14583 hardcode_minus_L_F77=no
14584 hardcode_shlibpath_var_F77=unsupported
14585 link_all_deplibs_F77=unknown
14586 hardcode_automatic_F77=no
14587 module_cmds_F77=
14588 module_expsym_cmds_F77=
14589 always_export_symbols_F77=no
14590 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14591 # include_expsyms should be a list of space-separated symbols to be *always*
14592 # included in the symbol list
14593 include_expsyms_F77=
14594 # exclude_expsyms can be an extended regexp of symbols to exclude
14595 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14596 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14597 # as well as any symbol that contains `d'.
ted.mielczarek1adb1842009-12-21 13:12:20 +000014598 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
brynercb91a2f2006-08-25 21:14:45 +000014599 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14600 # platforms (ab)use it in PIC code, but their linkers get confused if
14601 # the symbol is explicitly referenced. Since portable code cannot
14602 # rely on this symbol name, it's probably fine to never include it in
14603 # preloaded symbol tables.
ted.mielczarek1adb1842009-12-21 13:12:20 +000014604 # Exclude shared library initialization/finalization symbols.
brynercb91a2f2006-08-25 21:14:45 +000014605 extract_expsyms_cmds=
mmentovai8c2a4de2006-09-20 16:20:15 +000014606 # Just being paranoid about ensuring that cc_basename is set.
14607 for cc_temp in $compiler""; do
14608 case $cc_temp in
14609 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14610 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14611 \-*) ;;
14612 *) break;;
14613 esac
14614done
14615cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +000014616
14617 case $host_os in
14618 cygwin* | mingw* | pw32*)
14619 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14620 # When not using gcc, we currently assume that we are using
14621 # Microsoft Visual C++.
14622 if test "$GCC" != yes; then
14623 with_gnu_ld=no
14624 fi
14625 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014626 interix*)
14627 # we just hope/assume this is gcc and not c89 (= MSVC++)
14628 with_gnu_ld=yes
14629 ;;
brynercb91a2f2006-08-25 21:14:45 +000014630 openbsd*)
14631 with_gnu_ld=no
14632 ;;
14633 esac
14634
14635 ld_shlibs_F77=yes
14636 if test "$with_gnu_ld" = yes; then
14637 # If archive_cmds runs LD, not CC, wlarc should be empty
14638 wlarc='${wl}'
14639
mmentovai8c2a4de2006-09-20 16:20:15 +000014640 # Set some defaults for GNU ld with shared library support. These
14641 # are reset later if shared libraries are not supported. Putting them
14642 # here allows them to be overridden if necessary.
14643 runpath_var=LD_RUN_PATH
14644 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14645 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14646 # ancient GNU ld didn't support --whole-archive et. al.
14647 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14648 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14649 else
14650 whole_archive_flag_spec_F77=
14651 fi
14652 supports_anon_versioning=no
14653 case `$LD -v 2>/dev/null` in
14654 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14655 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14656 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14657 *\ 2.11.*) ;; # other 2.11 versions
14658 *) supports_anon_versioning=yes ;;
14659 esac
14660
brynercb91a2f2006-08-25 21:14:45 +000014661 # See if GNU ld supports shared libraries.
14662 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000014663 aix[3-9]*)
brynercb91a2f2006-08-25 21:14:45 +000014664 # On AIX/PPC, the GNU linker is very broken
14665 if test "$host_cpu" != ia64; then
14666 ld_shlibs_F77=no
14667 cat <<EOF 1>&2
14668
14669*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14670*** to be unable to reliably create shared libraries on AIX.
14671*** Therefore, libtool is disabling shared libraries support. If you
14672*** really care for shared libraries, you may want to modify your PATH
14673*** so that a non-GNU linker is found, and then restart.
14674
14675EOF
14676 fi
14677 ;;
14678
14679 amigaos*)
14680 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)'
14681 hardcode_libdir_flag_spec_F77='-L$libdir'
14682 hardcode_minus_L_F77=yes
14683
14684 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14685 # that the semantics of dynamic libraries on AmigaOS, at least up
14686 # to version 4, is to share data among multiple programs linked
14687 # with the same dynamic library. Since this doesn't match the
14688 # behavior of shared libraries on other platforms, we can't use
14689 # them.
14690 ld_shlibs_F77=no
14691 ;;
14692
14693 beos*)
14694 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14695 allow_undefined_flag_F77=unsupported
14696 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14697 # support --undefined. This deserves some investigation. FIXME
14698 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14699 else
14700 ld_shlibs_F77=no
14701 fi
14702 ;;
14703
14704 cygwin* | mingw* | pw32*)
14705 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14706 # as there is no search path for DLLs.
14707 hardcode_libdir_flag_spec_F77='-L$libdir'
14708 allow_undefined_flag_F77=unsupported
14709 always_export_symbols_F77=no
14710 enable_shared_with_static_runtimes_F77=yes
ted.mielczarek1adb1842009-12-21 13:12:20 +000014711 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000014712
14713 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000014714 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 +000014715 # If the export-symbols file already is a .def file (1st line
14716 # is EXPORTS), use it as is; otherwise, prepend...
14717 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14718 cp $export_symbols $output_objdir/$soname.def;
14719 else
14720 echo EXPORTS > $output_objdir/$soname.def;
14721 cat $export_symbols >> $output_objdir/$soname.def;
14722 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +000014723 $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 +000014724 else
mmentovai8c2a4de2006-09-20 16:20:15 +000014725 ld_shlibs_F77=no
brynercb91a2f2006-08-25 21:14:45 +000014726 fi
14727 ;;
14728
ted.mielczarek1adb1842009-12-21 13:12:20 +000014729 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000014730 hardcode_direct_F77=no
14731 hardcode_shlibpath_var_F77=no
14732 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14733 export_dynamic_flag_spec_F77='${wl}-E'
14734 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14735 # Instead, shared libraries are loaded at an image base (0x10000000 by
14736 # default) and relocated if they conflict, which is a slow very memory
14737 # consuming and fragmenting process. To avoid this, we pick a random,
14738 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14739 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14740 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'
14741 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'
14742 ;;
14743
ted.mielczarek1adb1842009-12-21 13:12:20 +000014744 gnu* | linux* | k*bsd*-gnu)
mmentovai8c2a4de2006-09-20 16:20:15 +000014745 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14746 tmp_addflag=
14747 case $cc_basename,$host_cpu in
14748 pgcc*) # Portland Group C compiler
14749 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'
14750 tmp_addflag=' $pic_flag'
14751 ;;
14752 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14753 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'
14754 tmp_addflag=' $pic_flag -Mnomain' ;;
14755 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14756 tmp_addflag=' -i_dynamic' ;;
14757 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14758 tmp_addflag=' -i_dynamic -nofor_main' ;;
14759 ifc* | ifort*) # Intel Fortran compiler
14760 tmp_addflag=' -nofor_main' ;;
14761 esac
ted.mielczarek1adb1842009-12-21 13:12:20 +000014762 case `$CC -V 2>&1 | sed 5q` in
14763 *Sun\ C*) # Sun C 5.9
14764 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14765 tmp_sharedflag='-G' ;;
14766 *Sun\ F*) # Sun Fortran 8.3
14767 tmp_sharedflag='-G' ;;
14768 *)
14769 tmp_sharedflag='-shared' ;;
14770 esac
14771 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000014772
14773 if test $supports_anon_versioning = yes; then
14774 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14775 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14776 $echo "local: *; };" >> $output_objdir/$libname.ver~
ted.mielczarek1adb1842009-12-21 13:12:20 +000014777 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000014778 fi
14779 else
14780 ld_shlibs_F77=no
14781 fi
14782 ;;
14783
14784 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000014785 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14786 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14787 wlarc=
14788 else
14789 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14790 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14791 fi
14792 ;;
14793
mmentovai8c2a4de2006-09-20 16:20:15 +000014794 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000014795 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14796 ld_shlibs_F77=no
14797 cat <<EOF 1>&2
14798
14799*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14800*** create shared libraries on Solaris systems. Therefore, libtool
14801*** is disabling shared libraries support. We urge you to upgrade GNU
14802*** binutils to release 2.9.1 or newer. Another option is to modify
14803*** your PATH or compiler configuration so that the native linker is
14804*** used, and then restart.
14805
14806EOF
14807 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14808 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14809 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14810 else
14811 ld_shlibs_F77=no
14812 fi
14813 ;;
14814
mmentovai8c2a4de2006-09-20 16:20:15 +000014815 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14816 case `$LD -v 2>&1` in
14817 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14818 ld_shlibs_F77=no
14819 cat <<_LT_EOF 1>&2
14820
14821*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14822*** reliably create shared libraries on SCO systems. Therefore, libtool
14823*** is disabling shared libraries support. We urge you to upgrade GNU
14824*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14825*** your PATH or compiler configuration so that the native linker is
14826*** used, and then restart.
14827
14828_LT_EOF
14829 ;;
14830 *)
14831 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14832 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14833 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14834 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14835 else
14836 ld_shlibs_F77=no
14837 fi
14838 ;;
14839 esac
14840 ;;
14841
brynercb91a2f2006-08-25 21:14:45 +000014842 sunos4*)
14843 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14844 wlarc=
14845 hardcode_direct_F77=yes
14846 hardcode_shlibpath_var_F77=no
14847 ;;
14848
brynercb91a2f2006-08-25 21:14:45 +000014849 *)
14850 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14851 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14852 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14853 else
14854 ld_shlibs_F77=no
14855 fi
14856 ;;
14857 esac
14858
mmentovai8c2a4de2006-09-20 16:20:15 +000014859 if test "$ld_shlibs_F77" = no; then
14860 runpath_var=
14861 hardcode_libdir_flag_spec_F77=
14862 export_dynamic_flag_spec_F77=
14863 whole_archive_flag_spec_F77=
brynercb91a2f2006-08-25 21:14:45 +000014864 fi
14865 else
14866 # PORTME fill in a description of your system's linker (not GNU ld)
14867 case $host_os in
14868 aix3*)
14869 allow_undefined_flag_F77=unsupported
14870 always_export_symbols_F77=yes
14871 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'
14872 # Note: this linker hardcodes the directories in LIBPATH if there
14873 # are no directories specified by -L.
14874 hardcode_minus_L_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014875 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +000014876 # Neither direct hardcoding nor static linking is supported with a
14877 # broken collect2.
14878 hardcode_direct_F77=unsupported
14879 fi
14880 ;;
14881
ted.mielczarek1adb1842009-12-21 13:12:20 +000014882 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000014883 if test "$host_cpu" = ia64; then
14884 # On IA64, the linker does run time linking by default, so we don't
14885 # have to do anything special.
14886 aix_use_runtimelinking=no
14887 exp_sym_flag='-Bexport'
14888 no_entry_flag=""
14889 else
14890 # If we're using GNU nm, then we don't want the "-C" option.
14891 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14892 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14893 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'
14894 else
14895 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'
14896 fi
14897 aix_use_runtimelinking=no
14898
14899 # Test if we are trying to use run time linking or normal
14900 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14901 # need to do runtime linking.
ted.mielczarek1adb1842009-12-21 13:12:20 +000014902 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
brynercb91a2f2006-08-25 21:14:45 +000014903 for ld_flag in $LDFLAGS; do
14904 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14905 aix_use_runtimelinking=yes
14906 break
14907 fi
14908 done
mmentovai8c2a4de2006-09-20 16:20:15 +000014909 ;;
brynercb91a2f2006-08-25 21:14:45 +000014910 esac
14911
14912 exp_sym_flag='-bexport'
14913 no_entry_flag='-bnoentry'
14914 fi
14915
14916 # When large executables or shared objects are built, AIX ld can
14917 # have problems creating the table of contents. If linking a library
14918 # or program results in "error TOC overflow" add -mminimal-toc to
14919 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14920 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14921
14922 archive_cmds_F77=''
14923 hardcode_direct_F77=yes
14924 hardcode_libdir_separator_F77=':'
14925 link_all_deplibs_F77=yes
14926
14927 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000014928 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +000014929 # We only want to do this on AIX 4.2 and lower, the check
14930 # below for broken collect2 doesn't work under 4.3+
14931 collect2name=`${CC} -print-prog-name=collect2`
14932 if test -f "$collect2name" && \
14933 strings "$collect2name" | grep resolve_lib_name >/dev/null
14934 then
14935 # We have reworked collect2
ted.mielczarek1adb1842009-12-21 13:12:20 +000014936 :
brynercb91a2f2006-08-25 21:14:45 +000014937 else
14938 # We have old collect2
14939 hardcode_direct_F77=unsupported
14940 # It fails to find uninstalled libraries when the uninstalled
14941 # path is not listed in the libpath. Setting hardcode_minus_L
14942 # to unsupported forces relinking
14943 hardcode_minus_L_F77=yes
14944 hardcode_libdir_flag_spec_F77='-L$libdir'
14945 hardcode_libdir_separator_F77=
14946 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014947 ;;
brynercb91a2f2006-08-25 21:14:45 +000014948 esac
14949 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +000014950 if test "$aix_use_runtimelinking" = yes; then
14951 shared_flag="$shared_flag "'${wl}-G'
14952 fi
brynercb91a2f2006-08-25 21:14:45 +000014953 else
14954 # not using gcc
14955 if test "$host_cpu" = ia64; then
14956 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14957 # chokes on -Wl,-G. The following line is correct:
14958 shared_flag='-G'
14959 else
mmentovai8c2a4de2006-09-20 16:20:15 +000014960 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000014961 shared_flag='${wl}-G'
14962 else
14963 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +000014964 fi
brynercb91a2f2006-08-25 21:14:45 +000014965 fi
14966 fi
14967
14968 # It seems that -bexpall does not export symbols beginning with
14969 # underscore (_), so it is better to generate a list of symbols to export.
14970 always_export_symbols_F77=yes
14971 if test "$aix_use_runtimelinking" = yes; then
14972 # Warning - without using the other runtime loading flags (-brtl),
14973 # -berok will link without error, but may produce a broken library.
14974 allow_undefined_flag_F77='-berok'
14975 # Determine the default libpath from the value encoded in an empty executable.
14976 cat >conftest.$ac_ext <<_ACEOF
14977 program main
14978
14979 end
14980_ACEOF
14981rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000014982if { (ac_try="$ac_link"
14983case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14986esac
14987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000014989 ac_status=$?
14990 grep -v '^ *+' conftest.er1 >conftest.err
14991 rm -f conftest.er1
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000014994 (exit $ac_status); } && {
14995 test -z "$ac_f77_werror_flag" ||
14996 test ! -s conftest.err
14997 } && test -s conftest$ac_exeext &&
14998 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +000014999
ted.mielczarek1adb1842009-12-21 13:12:20 +000015000lt_aix_libpath_sed='
15001 /Import File Strings/,/^$/ {
15002 /^0/ {
15003 s/^0 *\(.*\)$/\1/
15004 p
15005 }
15006 }'
15007aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +000015008# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +000015009if test -z "$aix_libpath"; then
15010 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15011fi
brynercb91a2f2006-08-25 21:14:45 +000015012else
15013 echo "$as_me: failed program was:" >&5
15014sed 's/^/| /' conftest.$ac_ext >&5
15015
mmentovai8c2a4de2006-09-20 16:20:15 +000015016
brynercb91a2f2006-08-25 21:14:45 +000015017fi
mmentovai8c2a4de2006-09-20 16:20:15 +000015018
mmentovaiaf3c43f2007-05-17 18:34:37 +000015019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +000015020 conftest$ac_exeext conftest.$ac_ext
15021if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15022
15023 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
mmentovai8c2a4de2006-09-20 16:20:15 +000015024 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 +000015025 else
15026 if test "$host_cpu" = ia64; then
15027 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15028 allow_undefined_flag_F77="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +000015029 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 +000015030 else
15031 # Determine the default libpath from the value encoded in an empty executable.
15032 cat >conftest.$ac_ext <<_ACEOF
15033 program main
15034
15035 end
15036_ACEOF
15037rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000015038if { (ac_try="$ac_link"
15039case "(($ac_try" in
15040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041 *) ac_try_echo=$ac_try;;
15042esac
15043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000015045 ac_status=$?
15046 grep -v '^ *+' conftest.er1 >conftest.err
15047 rm -f conftest.er1
15048 cat conftest.err >&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000015050 (exit $ac_status); } && {
15051 test -z "$ac_f77_werror_flag" ||
15052 test ! -s conftest.err
15053 } && test -s conftest$ac_exeext &&
15054 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +000015055
ted.mielczarek1adb1842009-12-21 13:12:20 +000015056lt_aix_libpath_sed='
15057 /Import File Strings/,/^$/ {
15058 /^0/ {
15059 s/^0 *\(.*\)$/\1/
15060 p
15061 }
15062 }'
15063aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +000015064# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +000015065if test -z "$aix_libpath"; then
15066 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15067fi
brynercb91a2f2006-08-25 21:14:45 +000015068else
15069 echo "$as_me: failed program was:" >&5
15070sed 's/^/| /' conftest.$ac_ext >&5
15071
mmentovai8c2a4de2006-09-20 16:20:15 +000015072
brynercb91a2f2006-08-25 21:14:45 +000015073fi
mmentovai8c2a4de2006-09-20 16:20:15 +000015074
mmentovaiaf3c43f2007-05-17 18:34:37 +000015075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +000015076 conftest$ac_exeext conftest.$ac_ext
15077if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15078
15079 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15080 # Warning - without using the other run time loading flags,
15081 # -berok will link without error, but may produce a broken library.
15082 no_undefined_flag_F77=' ${wl}-bernotok'
15083 allow_undefined_flag_F77=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +000015084 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +000015085 whole_archive_flag_spec_F77='$convenience'
brynercb91a2f2006-08-25 21:14:45 +000015086 archive_cmds_need_lc_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000015087 # This is similar to how AIX traditionally builds its shared libraries.
15088 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 +000015089 fi
15090 fi
15091 ;;
15092
15093 amigaos*)
15094 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)'
15095 hardcode_libdir_flag_spec_F77='-L$libdir'
15096 hardcode_minus_L_F77=yes
15097 # see comment about different semantics on the GNU ld section
15098 ld_shlibs_F77=no
15099 ;;
15100
mmentovai8c2a4de2006-09-20 16:20:15 +000015101 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000015102 export_dynamic_flag_spec_F77=-rdynamic
15103 ;;
15104
15105 cygwin* | mingw* | pw32*)
15106 # When not using gcc, we currently assume that we are using
15107 # Microsoft Visual C++.
15108 # hardcode_libdir_flag_spec is actually meaningless, as there is
15109 # no search path for DLLs.
15110 hardcode_libdir_flag_spec_F77=' '
15111 allow_undefined_flag_F77=unsupported
15112 # Tell ltmain to make .lib files, not .a files.
15113 libext=lib
15114 # Tell ltmain to make .dll files, not .so files.
15115 shrext_cmds=".dll"
15116 # FIXME: Setting linknames here is a bad hack.
15117 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15118 # The linker will automatically build a .lib file if we build a DLL.
15119 old_archive_From_new_cmds_F77='true'
15120 # FIXME: Should let the user specify the lib program.
ted.mielczarek1adb1842009-12-21 13:12:20 +000015121 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
mmentovai8c2a4de2006-09-20 16:20:15 +000015122 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
brynercb91a2f2006-08-25 21:14:45 +000015123 enable_shared_with_static_runtimes_F77=yes
15124 ;;
15125
15126 darwin* | rhapsody*)
mmentovai8c2a4de2006-09-20 16:20:15 +000015127 case $host_os in
15128 rhapsody* | darwin1.[012])
15129 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15130 ;;
15131 *) # Darwin 1.3 on
15132 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15133 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15134 else
15135 case ${MACOSX_DEPLOYMENT_TARGET} in
15136 10.[012])
15137 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15138 ;;
15139 10.*)
15140 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15141 ;;
15142 esac
15143 fi
15144 ;;
brynerd5e66382006-09-08 02:35:53 +000015145 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000015146 archive_cmds_need_lc_F77=no
brynercb91a2f2006-08-25 21:14:45 +000015147 hardcode_direct_F77=no
15148 hardcode_automatic_F77=yes
15149 hardcode_shlibpath_var_F77=unsupported
mmentovai8c2a4de2006-09-20 16:20:15 +000015150 whole_archive_flag_spec_F77=''
brynercb91a2f2006-08-25 21:14:45 +000015151 link_all_deplibs_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000015152 if test "$GCC" = yes ; then
15153 output_verbose_link_cmd='echo'
ted.mielczarek1adb1842009-12-21 13:12:20 +000015154 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15155 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15156 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15157 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
brynercb91a2f2006-08-25 21:14:45 +000015158 else
mmentovai8c2a4de2006-09-20 16:20:15 +000015159 case $cc_basename in
15160 xlc*)
15161 output_verbose_link_cmd='echo'
ted.mielczarek1adb1842009-12-21 13:12:20 +000015162 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
mmentovai8c2a4de2006-09-20 16:20:15 +000015163 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15164 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ted.mielczarek1adb1842009-12-21 13:12:20 +000015165 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
mmentovai8c2a4de2006-09-20 16:20:15 +000015166 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}'
15167 ;;
15168 *)
15169 ld_shlibs_F77=no
15170 ;;
15171 esac
brynercb91a2f2006-08-25 21:14:45 +000015172 fi
15173 ;;
15174
15175 dgux*)
15176 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15177 hardcode_libdir_flag_spec_F77='-L$libdir'
15178 hardcode_shlibpath_var_F77=no
15179 ;;
15180
15181 freebsd1*)
15182 ld_shlibs_F77=no
15183 ;;
15184
15185 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15186 # support. Future versions do this automatically, but an explicit c++rt0.o
15187 # does not break anything, and helps significantly (at the cost of a little
15188 # extra space).
15189 freebsd2.2*)
15190 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15191 hardcode_libdir_flag_spec_F77='-R$libdir'
15192 hardcode_direct_F77=yes
15193 hardcode_shlibpath_var_F77=no
15194 ;;
15195
15196 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15197 freebsd2*)
15198 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15199 hardcode_direct_F77=yes
15200 hardcode_minus_L_F77=yes
15201 hardcode_shlibpath_var_F77=no
15202 ;;
15203
15204 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ted.mielczarek1adb1842009-12-21 13:12:20 +000015205 freebsd* | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000015206 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15207 hardcode_libdir_flag_spec_F77='-R$libdir'
15208 hardcode_direct_F77=yes
15209 hardcode_shlibpath_var_F77=no
15210 ;;
15211
15212 hpux9*)
15213 if test "$GCC" = yes; then
15214 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'
15215 else
15216 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'
15217 fi
15218 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15219 hardcode_libdir_separator_F77=:
15220 hardcode_direct_F77=yes
15221
15222 # hardcode_minus_L: Not really in the search PATH,
15223 # but as the default location of the library.
15224 hardcode_minus_L_F77=yes
15225 export_dynamic_flag_spec_F77='${wl}-E'
15226 ;;
15227
mmentovai8c2a4de2006-09-20 16:20:15 +000015228 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +000015229 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015230 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15231 else
15232 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15233 fi
15234 if test "$with_gnu_ld" = no; then
15235 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15236 hardcode_libdir_separator_F77=:
15237
15238 hardcode_direct_F77=yes
15239 export_dynamic_flag_spec_F77='${wl}-E'
15240
15241 # hardcode_minus_L: Not really in the search PATH,
15242 # but as the default location of the library.
15243 hardcode_minus_L_F77=yes
15244 fi
15245 ;;
15246
15247 hpux11*)
15248 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15249 case $host_cpu in
15250 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +000015251 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15252 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015253 ia64*)
15254 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15255 ;;
brynercb91a2f2006-08-25 21:14:45 +000015256 *)
15257 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15258 ;;
15259 esac
15260 else
mmentovai8c2a4de2006-09-20 16:20:15 +000015261 case $host_cpu in
15262 hppa*64*)
15263 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15264 ;;
15265 ia64*)
15266 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000015267 ;;
15268 *)
mmentovai8c2a4de2006-09-20 16:20:15 +000015269 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 +000015270 ;;
15271 esac
15272 fi
15273 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015274 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15275 hardcode_libdir_separator_F77=:
brynerd5e66382006-09-08 02:35:53 +000015276
mmentovai8c2a4de2006-09-20 16:20:15 +000015277 case $host_cpu in
15278 hppa*64*|ia64*)
15279 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15280 hardcode_direct_F77=no
15281 hardcode_shlibpath_var_F77=no
brynerd5e66382006-09-08 02:35:53 +000015282 ;;
brynercb91a2f2006-08-25 21:14:45 +000015283 *)
brynercb91a2f2006-08-25 21:14:45 +000015284 hardcode_direct_F77=yes
15285 export_dynamic_flag_spec_F77='${wl}-E'
15286
15287 # hardcode_minus_L: Not really in the search PATH,
15288 # but as the default location of the library.
15289 hardcode_minus_L_F77=yes
15290 ;;
15291 esac
15292 fi
15293 ;;
15294
15295 irix5* | irix6* | nonstopux*)
15296 if test "$GCC" = yes; then
15297 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'
15298 else
15299 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'
15300 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15301 fi
15302 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15303 hardcode_libdir_separator_F77=:
15304 link_all_deplibs_F77=yes
15305 ;;
15306
mmentovai8c2a4de2006-09-20 16:20:15 +000015307 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000015308 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15309 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15310 else
15311 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15312 fi
15313 hardcode_libdir_flag_spec_F77='-R$libdir'
15314 hardcode_direct_F77=yes
15315 hardcode_shlibpath_var_F77=no
15316 ;;
15317
15318 newsos6)
15319 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15320 hardcode_direct_F77=yes
15321 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15322 hardcode_libdir_separator_F77=:
15323 hardcode_shlibpath_var_F77=no
15324 ;;
15325
15326 openbsd*)
ted.mielczarek1adb1842009-12-21 13:12:20 +000015327 if test -f /usr/libexec/ld.so; then
15328 hardcode_direct_F77=yes
15329 hardcode_shlibpath_var_F77=no
15330 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15331 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15332 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15333 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15334 export_dynamic_flag_spec_F77='${wl}-E'
15335 else
15336 case $host_os in
15337 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15338 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15339 hardcode_libdir_flag_spec_F77='-R$libdir'
15340 ;;
15341 *)
15342 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15343 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15344 ;;
15345 esac
15346 fi
brynercb91a2f2006-08-25 21:14:45 +000015347 else
ted.mielczarek1adb1842009-12-21 13:12:20 +000015348 ld_shlibs_F77=no
brynercb91a2f2006-08-25 21:14:45 +000015349 fi
15350 ;;
15351
15352 os2*)
15353 hardcode_libdir_flag_spec_F77='-L$libdir'
15354 hardcode_minus_L_F77=yes
15355 allow_undefined_flag_F77=unsupported
15356 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'
15357 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15358 ;;
15359
15360 osf3*)
15361 if test "$GCC" = yes; then
15362 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15363 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'
15364 else
15365 allow_undefined_flag_F77=' -expect_unresolved \*'
15366 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'
15367 fi
15368 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15369 hardcode_libdir_separator_F77=:
15370 ;;
15371
15372 osf4* | osf5*) # as osf3* with the addition of -msym flag
15373 if test "$GCC" = yes; then
15374 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15375 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'
15376 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15377 else
15378 allow_undefined_flag_F77=' -expect_unresolved \*'
15379 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'
15380 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 +000015381 $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 +000015382
15383 # Both c and cxx compiler support -rpath directly
15384 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15385 fi
15386 hardcode_libdir_separator_F77=:
15387 ;;
15388
brynercb91a2f2006-08-25 21:14:45 +000015389 solaris*)
15390 no_undefined_flag_F77=' -z text'
15391 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015392 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +000015393 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15394 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15395 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15396 else
mmentovai8c2a4de2006-09-20 16:20:15 +000015397 wlarc=''
brynercb91a2f2006-08-25 21:14:45 +000015398 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15399 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15400 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15401 fi
15402 hardcode_libdir_flag_spec_F77='-R$libdir'
15403 hardcode_shlibpath_var_F77=no
15404 case $host_os in
15405 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015406 *)
ted.mielczarek1adb1842009-12-21 13:12:20 +000015407 # The compiler driver will combine and reorder linker options,
15408 # but understands `-z linker_flag'. GCC discards it without `$wl',
15409 # but is careful enough not to reorder.
mmentovai8c2a4de2006-09-20 16:20:15 +000015410 # Supported since Solaris 2.6 (maybe 2.5.1?)
ted.mielczarek1adb1842009-12-21 13:12:20 +000015411 if test "$GCC" = yes; then
15412 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15413 else
15414 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15415 fi
15416 ;;
brynercb91a2f2006-08-25 21:14:45 +000015417 esac
15418 link_all_deplibs_F77=yes
15419 ;;
15420
15421 sunos4*)
15422 if test "x$host_vendor" = xsequent; then
15423 # Use $CC to link under sequent, because it throws in some extra .o
15424 # files that make .init and .fini sections work.
15425 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15426 else
15427 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15428 fi
15429 hardcode_libdir_flag_spec_F77='-L$libdir'
15430 hardcode_direct_F77=yes
15431 hardcode_minus_L_F77=yes
15432 hardcode_shlibpath_var_F77=no
15433 ;;
15434
15435 sysv4)
15436 case $host_vendor in
15437 sni)
15438 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15439 hardcode_direct_F77=yes # is this really true???
15440 ;;
15441 siemens)
15442 ## LD is ld it makes a PLAMLIB
15443 ## CC just makes a GrossModule.
15444 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15445 reload_cmds_F77='$CC -r -o $output$reload_objs'
15446 hardcode_direct_F77=no
15447 ;;
15448 motorola)
15449 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15450 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15451 ;;
15452 esac
15453 runpath_var='LD_RUN_PATH'
15454 hardcode_shlibpath_var_F77=no
15455 ;;
15456
15457 sysv4.3*)
15458 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15459 hardcode_shlibpath_var_F77=no
15460 export_dynamic_flag_spec_F77='-Bexport'
15461 ;;
15462
15463 sysv4*MP*)
15464 if test -d /usr/nec; then
15465 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15466 hardcode_shlibpath_var_F77=no
15467 runpath_var=LD_RUN_PATH
15468 hardcode_runpath_var=yes
15469 ld_shlibs_F77=yes
15470 fi
15471 ;;
15472
ted.mielczarek1adb1842009-12-21 13:12:20 +000015473 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000015474 no_undefined_flag_F77='${wl}-z,text'
15475 archive_cmds_need_lc_F77=no
brynercb91a2f2006-08-25 21:14:45 +000015476 hardcode_shlibpath_var_F77=no
mmentovai8c2a4de2006-09-20 16:20:15 +000015477 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +000015478
mmentovai3261e8b2006-09-06 02:56:44 +000015479 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015480 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15481 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 +000015482 else
mmentovai8c2a4de2006-09-20 16:20:15 +000015483 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15484 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 +000015485 fi
brynerd5e66382006-09-08 02:35:53 +000015486 ;;
15487
mmentovai8c2a4de2006-09-20 16:20:15 +000015488 sysv5* | sco3.2v5* | sco5v6*)
15489 # Note: We can NOT use -z defs as we might desire, because we do not
15490 # link with -lc, and that would cause any symbols used from libc to
15491 # always be unresolved, which means just about no library would
15492 # ever link correctly. If we're not using GNU ld we use -z text
15493 # though, which does catch some bad symbols but isn't as heavy-handed
15494 # as -z defs.
15495 no_undefined_flag_F77='${wl}-z,text'
15496 allow_undefined_flag_F77='${wl}-z,nodefs'
15497 archive_cmds_need_lc_F77=no
brynerd5e66382006-09-08 02:35:53 +000015498 hardcode_shlibpath_var_F77=no
mmentovai8c2a4de2006-09-20 16:20:15 +000015499 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15500 hardcode_libdir_separator_F77=':'
15501 link_all_deplibs_F77=yes
15502 export_dynamic_flag_spec_F77='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +000015503 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +000015504
15505 if test "$GCC" = yes; then
15506 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15507 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15508 else
15509 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15510 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15511 fi
brynercb91a2f2006-08-25 21:14:45 +000015512 ;;
15513
15514 uts4*)
15515 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15516 hardcode_libdir_flag_spec_F77='-L$libdir'
15517 hardcode_shlibpath_var_F77=no
15518 ;;
15519
15520 *)
15521 ld_shlibs_F77=no
15522 ;;
15523 esac
15524 fi
15525
mmentovai8c2a4de2006-09-20 16:20:15 +000015526{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15527echo "${ECHO_T}$ld_shlibs_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015528test "$ld_shlibs_F77" = no && can_build_shared=no
15529
brynercb91a2f2006-08-25 21:14:45 +000015530#
15531# Do we need to explicitly link libc?
15532#
15533case "x$archive_cmds_need_lc_F77" in
15534x|xyes)
15535 # Assume -lc should be added
15536 archive_cmds_need_lc_F77=yes
15537
15538 if test "$enable_shared" = yes && test "$GCC" = yes; then
15539 case $archive_cmds_F77 in
15540 *'~'*)
15541 # FIXME: we may have to deal with multi-command sequences.
15542 ;;
15543 '$CC '*)
15544 # Test whether the compiler implicitly links with -lc since on some
15545 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15546 # to ld, don't add -lc before -lgcc.
mmentovai8c2a4de2006-09-20 16:20:15 +000015547 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15548echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015549 $rm conftest*
ted.mielczarek1adb1842009-12-21 13:12:20 +000015550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000015551
15552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15553 (eval $ac_compile) 2>&5
15554 ac_status=$?
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } 2>conftest.err; then
15557 soname=conftest
15558 lib=conftest
15559 libobjs=conftest.$ac_objext
15560 deplibs=
15561 wl=$lt_prog_compiler_wl_F77
mmentovai8c2a4de2006-09-20 16:20:15 +000015562 pic_flag=$lt_prog_compiler_pic_F77
brynercb91a2f2006-08-25 21:14:45 +000015563 compiler_flags=-v
15564 linker_flags=-v
15565 verstring=
15566 output_objdir=.
15567 libname=conftest
15568 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15569 allow_undefined_flag_F77=
15570 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15571 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15572 ac_status=$?
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }
15575 then
15576 archive_cmds_need_lc_F77=no
15577 else
15578 archive_cmds_need_lc_F77=yes
15579 fi
15580 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15581 else
15582 cat conftest.err 1>&5
15583 fi
15584 $rm conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000015585 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15586echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015587 ;;
15588 esac
15589 fi
15590 ;;
15591esac
15592
mmentovai8c2a4de2006-09-20 16:20:15 +000015593{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15594echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015595library_names_spec=
15596libname_spec='lib$name'
15597soname_spec=
15598shrext_cmds=".so"
15599postinstall_cmds=
15600postuninstall_cmds=
15601finish_cmds=
15602finish_eval=
15603shlibpath_var=
15604shlibpath_overrides_runpath=unknown
15605version_type=none
15606dynamic_linker="$host_os ld.so"
15607sys_lib_dlsearch_path_spec="/lib /usr/lib"
ted.mielczarek1adb1842009-12-21 13:12:20 +000015608
brynercb91a2f2006-08-25 21:14:45 +000015609need_lib_prefix=unknown
15610hardcode_into_libs=no
15611
15612# when you set need_version to no, make sure it does not cause -set_version
15613# flags to be left without arguments
15614need_version=unknown
15615
15616case $host_os in
15617aix3*)
15618 version_type=linux
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15620 shlibpath_var=LIBPATH
15621
15622 # AIX 3 has no versioning support, so we append a major version to the name.
15623 soname_spec='${libname}${release}${shared_ext}$major'
15624 ;;
15625
ted.mielczarek1adb1842009-12-21 13:12:20 +000015626aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000015627 version_type=linux
15628 need_lib_prefix=no
15629 need_version=no
15630 hardcode_into_libs=yes
15631 if test "$host_cpu" = ia64; then
15632 # AIX 5 supports IA64
15633 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15634 shlibpath_var=LD_LIBRARY_PATH
15635 else
15636 # With GCC up to 2.95.x, collect2 would create an import file
15637 # for dependence libraries. The import file would start with
15638 # the line `#! .'. This would cause the generated library to
15639 # depend on `.', always an invalid library. This was fixed in
15640 # development snapshots of GCC prior to 3.0.
15641 case $host_os in
15642 aix4 | aix4.[01] | aix4.[01].*)
15643 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15644 echo ' yes '
15645 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15646 :
15647 else
15648 can_build_shared=no
15649 fi
15650 ;;
15651 esac
15652 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15653 # soname into executable. Probably we can add versioning support to
15654 # collect2, so additional links can be useful in future.
15655 if test "$aix_use_runtimelinking" = yes; then
15656 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15657 # instead of lib<name>.a to let people know that these are not
15658 # typical AIX shared libraries.
15659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15660 else
15661 # We preserve .a as extension for shared libraries through AIX4.2
15662 # and later when we are not doing run time linking.
15663 library_names_spec='${libname}${release}.a $libname.a'
15664 soname_spec='${libname}${release}${shared_ext}$major'
15665 fi
15666 shlibpath_var=LIBPATH
15667 fi
15668 ;;
15669
15670amigaos*)
15671 library_names_spec='$libname.ixlibrary $libname.a'
15672 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15673 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'
15674 ;;
15675
15676beos*)
15677 library_names_spec='${libname}${shared_ext}'
15678 dynamic_linker="$host_os ld.so"
15679 shlibpath_var=LIBRARY_PATH
15680 ;;
15681
mmentovai8c2a4de2006-09-20 16:20:15 +000015682bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000015683 version_type=linux
15684 need_version=no
15685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15686 soname_spec='${libname}${release}${shared_ext}$major'
15687 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15688 shlibpath_var=LD_LIBRARY_PATH
15689 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15690 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15691 # the default ld.so.conf also contains /usr/contrib/lib and
15692 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15693 # libtool to hard-code these into programs
15694 ;;
15695
15696cygwin* | mingw* | pw32*)
15697 version_type=windows
15698 shrext_cmds=".dll"
15699 need_version=no
15700 need_lib_prefix=no
15701
15702 case $GCC,$host_os in
15703 yes,cygwin* | yes,mingw* | yes,pw32*)
15704 library_names_spec='$libname.dll.a'
15705 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15706 postinstall_cmds='base_file=`basename \${file}`~
15707 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15708 dldir=$destdir/`dirname \$dlpath`~
15709 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000015710 $install_prog $dir/$dlname \$dldir/$dlname~
15711 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000015712 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15713 dlpath=$dir/\$dldll~
15714 $rm \$dlpath'
15715 shlibpath_overrides_runpath=yes
15716
15717 case $host_os in
15718 cygwin*)
15719 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15720 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15721 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15722 ;;
15723 mingw*)
15724 # MinGW DLLs use traditional 'lib' prefix
15725 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15726 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15727 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15728 # It is most probably a Windows format PATH printed by
15729 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15730 # path with ; separators, and with drive letters. We can handle the
15731 # drive letters (cygwin fileutils understands them), so leave them,
15732 # especially as we might pass files found there to a mingw objdump,
15733 # which wouldn't understand a cygwinified path. Ahh.
15734 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15735 else
15736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15737 fi
15738 ;;
15739 pw32*)
15740 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000015741 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 +000015742 ;;
15743 esac
15744 ;;
15745
15746 *)
15747 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15748 ;;
15749 esac
15750 dynamic_linker='Win32 ld.exe'
15751 # FIXME: first we should search . and the directory the executable is in
15752 shlibpath_var=PATH
15753 ;;
15754
15755darwin* | rhapsody*)
15756 dynamic_linker="$host_os dyld"
15757 version_type=darwin
15758 need_lib_prefix=no
15759 need_version=no
15760 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15761 soname_spec='${libname}${release}${major}$shared_ext'
15762 shlibpath_overrides_runpath=yes
15763 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000015764 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ted.mielczarek1adb1842009-12-21 13:12:20 +000015765
brynercb91a2f2006-08-25 21:14:45 +000015766 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15767 ;;
15768
15769dgux*)
15770 version_type=linux
15771 need_lib_prefix=no
15772 need_version=no
15773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15774 soname_spec='${libname}${release}${shared_ext}$major'
15775 shlibpath_var=LD_LIBRARY_PATH
15776 ;;
15777
15778freebsd1*)
15779 dynamic_linker=no
15780 ;;
15781
mmentovai8c2a4de2006-09-20 16:20:15 +000015782freebsd* | dragonfly*)
15783 # DragonFly does not have aout. When/if they implement a new
15784 # versioning mechanism, adjust this.
15785 if test -x /usr/bin/objformat; then
15786 objformat=`/usr/bin/objformat`
15787 else
15788 case $host_os in
15789 freebsd[123]*) objformat=aout ;;
15790 *) objformat=elf ;;
15791 esac
15792 fi
brynercb91a2f2006-08-25 21:14:45 +000015793 version_type=freebsd-$objformat
15794 case $version_type in
15795 freebsd-elf*)
15796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15797 need_version=no
15798 need_lib_prefix=no
15799 ;;
15800 freebsd-*)
15801 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15802 need_version=yes
15803 ;;
15804 esac
15805 shlibpath_var=LD_LIBRARY_PATH
15806 case $host_os in
15807 freebsd2*)
15808 shlibpath_overrides_runpath=yes
15809 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015810 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000015811 shlibpath_overrides_runpath=yes
15812 hardcode_into_libs=yes
15813 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015814 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15815 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000015816 shlibpath_overrides_runpath=no
15817 hardcode_into_libs=yes
15818 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000015819 *) # from 4.6 on, and DragonFly
mmentovai8c2a4de2006-09-20 16:20:15 +000015820 shlibpath_overrides_runpath=yes
15821 hardcode_into_libs=yes
15822 ;;
brynercb91a2f2006-08-25 21:14:45 +000015823 esac
15824 ;;
15825
15826gnu*)
15827 version_type=linux
15828 need_lib_prefix=no
15829 need_version=no
15830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15831 soname_spec='${libname}${release}${shared_ext}$major'
15832 shlibpath_var=LD_LIBRARY_PATH
15833 hardcode_into_libs=yes
15834 ;;
15835
15836hpux9* | hpux10* | hpux11*)
15837 # Give a soname corresponding to the major version so that dld.sl refuses to
15838 # link against other versions.
15839 version_type=sunos
15840 need_lib_prefix=no
15841 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000015842 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000015843 ia64*)
15844 shrext_cmds='.so'
15845 hardcode_into_libs=yes
15846 dynamic_linker="$host_os dld.so"
15847 shlibpath_var=LD_LIBRARY_PATH
15848 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15850 soname_spec='${libname}${release}${shared_ext}$major'
15851 if test "X$HPUX_IA64_MODE" = X32; then
15852 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15853 else
15854 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15855 fi
15856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15857 ;;
15858 hppa*64*)
15859 shrext_cmds='.sl'
15860 hardcode_into_libs=yes
15861 dynamic_linker="$host_os dld.sl"
15862 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15865 soname_spec='${libname}${release}${shared_ext}$major'
15866 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15867 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15868 ;;
15869 *)
15870 shrext_cmds='.sl'
15871 dynamic_linker="$host_os dld.sl"
15872 shlibpath_var=SHLIB_PATH
15873 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15875 soname_spec='${libname}${release}${shared_ext}$major'
15876 ;;
15877 esac
15878 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15879 postinstall_cmds='chmod 555 $lib'
15880 ;;
15881
ted.mielczarek1adb1842009-12-21 13:12:20 +000015882interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000015883 version_type=linux
15884 need_lib_prefix=no
15885 need_version=no
15886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15887 soname_spec='${libname}${release}${shared_ext}$major'
15888 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15889 shlibpath_var=LD_LIBRARY_PATH
15890 shlibpath_overrides_runpath=no
15891 hardcode_into_libs=yes
15892 ;;
15893
brynercb91a2f2006-08-25 21:14:45 +000015894irix5* | irix6* | nonstopux*)
15895 case $host_os in
15896 nonstopux*) version_type=nonstopux ;;
15897 *)
15898 if test "$lt_cv_prog_gnu_ld" = yes; then
15899 version_type=linux
15900 else
15901 version_type=irix
15902 fi ;;
15903 esac
15904 need_lib_prefix=no
15905 need_version=no
15906 soname_spec='${libname}${release}${shared_ext}$major'
15907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15908 case $host_os in
15909 irix5* | nonstopux*)
15910 libsuff= shlibsuff=
15911 ;;
15912 *)
15913 case $LD in # libtool.m4 will add one of these switches to LD
15914 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15915 libsuff= shlibsuff= libmagic=32-bit;;
15916 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15917 libsuff=32 shlibsuff=N32 libmagic=N32;;
15918 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15919 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15920 *) libsuff= shlibsuff= libmagic=never-match;;
15921 esac
15922 ;;
15923 esac
15924 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15925 shlibpath_overrides_runpath=no
15926 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15927 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15928 hardcode_into_libs=yes
15929 ;;
15930
15931# No shared lib support for Linux oldld, aout, or coff.
15932linux*oldld* | linux*aout* | linux*coff*)
15933 dynamic_linker=no
15934 ;;
15935
15936# This must be Linux ELF.
ted.mielczarek1adb1842009-12-21 13:12:20 +000015937linux* | k*bsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000015938 version_type=linux
15939 need_lib_prefix=no
15940 need_version=no
15941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15942 soname_spec='${libname}${release}${shared_ext}$major'
15943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15944 shlibpath_var=LD_LIBRARY_PATH
15945 shlibpath_overrides_runpath=no
15946 # This implies no fast_install, which is unacceptable.
15947 # Some rework will be needed to allow for fast_install
15948 # before this can be enabled.
15949 hardcode_into_libs=yes
15950
15951 # Append ld.so.conf contents to the search path
15952 if test -f /etc/ld.so.conf; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000015953 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
brynercb91a2f2006-08-25 21:14:45 +000015954 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15955 fi
15956
15957 # We used to test for /lib/ld.so.1 and disable shared libraries on
15958 # powerpc, because MkLinux only supported shared libraries with the
15959 # GNU dynamic linker. Since this was broken with cross compilers,
15960 # most powerpc-linux boxes support dynamic linking these days and
15961 # people can always --disable-shared, the test was removed, and we
15962 # assume the GNU/Linux dynamic linker is in use.
15963 dynamic_linker='GNU/Linux ld.so'
15964 ;;
15965
brynercb91a2f2006-08-25 21:14:45 +000015966netbsd*)
15967 version_type=sunos
15968 need_lib_prefix=no
15969 need_version=no
15970 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15972 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15973 dynamic_linker='NetBSD (a.out) ld.so'
15974 else
15975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15976 soname_spec='${libname}${release}${shared_ext}$major'
15977 dynamic_linker='NetBSD ld.elf_so'
15978 fi
15979 shlibpath_var=LD_LIBRARY_PATH
15980 shlibpath_overrides_runpath=yes
15981 hardcode_into_libs=yes
15982 ;;
15983
15984newsos6)
15985 version_type=linux
15986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15987 shlibpath_var=LD_LIBRARY_PATH
15988 shlibpath_overrides_runpath=yes
15989 ;;
15990
15991nto-qnx*)
15992 version_type=linux
15993 need_lib_prefix=no
15994 need_version=no
15995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15996 soname_spec='${libname}${release}${shared_ext}$major'
15997 shlibpath_var=LD_LIBRARY_PATH
15998 shlibpath_overrides_runpath=yes
15999 ;;
16000
16001openbsd*)
16002 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000016003 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000016004 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000016005 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16006 case $host_os in
16007 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16008 *) need_version=no ;;
16009 esac
brynercb91a2f2006-08-25 21:14:45 +000016010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16012 shlibpath_var=LD_LIBRARY_PATH
16013 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16014 case $host_os in
16015 openbsd2.[89] | openbsd2.[89].*)
16016 shlibpath_overrides_runpath=no
16017 ;;
16018 *)
16019 shlibpath_overrides_runpath=yes
16020 ;;
16021 esac
16022 else
16023 shlibpath_overrides_runpath=yes
16024 fi
16025 ;;
16026
16027os2*)
16028 libname_spec='$name'
16029 shrext_cmds=".dll"
16030 need_lib_prefix=no
16031 library_names_spec='$libname${shared_ext} $libname.a'
16032 dynamic_linker='OS/2 ld.exe'
16033 shlibpath_var=LIBPATH
16034 ;;
16035
16036osf3* | osf4* | osf5*)
16037 version_type=osf
16038 need_lib_prefix=no
16039 need_version=no
16040 soname_spec='${libname}${release}${shared_ext}$major'
16041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16042 shlibpath_var=LD_LIBRARY_PATH
16043 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16044 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16045 ;;
16046
ted.mielczarek1adb1842009-12-21 13:12:20 +000016047rdos*)
16048 dynamic_linker=no
16049 ;;
16050
brynercb91a2f2006-08-25 21:14:45 +000016051solaris*)
16052 version_type=linux
16053 need_lib_prefix=no
16054 need_version=no
16055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16056 soname_spec='${libname}${release}${shared_ext}$major'
16057 shlibpath_var=LD_LIBRARY_PATH
16058 shlibpath_overrides_runpath=yes
16059 hardcode_into_libs=yes
16060 # ldd complains unless libraries are executable
16061 postinstall_cmds='chmod +x $lib'
16062 ;;
16063
16064sunos4*)
16065 version_type=sunos
16066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16067 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16068 shlibpath_var=LD_LIBRARY_PATH
16069 shlibpath_overrides_runpath=yes
16070 if test "$with_gnu_ld" = yes; then
16071 need_lib_prefix=no
16072 fi
16073 need_version=yes
16074 ;;
16075
mmentovai8c2a4de2006-09-20 16:20:15 +000016076sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000016077 version_type=linux
16078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16079 soname_spec='${libname}${release}${shared_ext}$major'
16080 shlibpath_var=LD_LIBRARY_PATH
16081 case $host_vendor in
16082 sni)
16083 shlibpath_overrides_runpath=no
16084 need_lib_prefix=no
16085 export_dynamic_flag_spec='${wl}-Blargedynsym'
16086 runpath_var=LD_RUN_PATH
16087 ;;
16088 siemens)
16089 need_lib_prefix=no
16090 ;;
16091 motorola)
16092 need_lib_prefix=no
16093 need_version=no
16094 shlibpath_overrides_runpath=no
16095 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16096 ;;
16097 esac
16098 ;;
16099
16100sysv4*MP*)
16101 if test -d /usr/nec ;then
16102 version_type=linux
16103 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16104 soname_spec='$libname${shared_ext}.$major'
16105 shlibpath_var=LD_LIBRARY_PATH
16106 fi
16107 ;;
16108
mmentovai8c2a4de2006-09-20 16:20:15 +000016109sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16110 version_type=freebsd-elf
16111 need_lib_prefix=no
16112 need_version=no
16113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16114 soname_spec='${libname}${release}${shared_ext}$major'
16115 shlibpath_var=LD_LIBRARY_PATH
16116 hardcode_into_libs=yes
16117 if test "$with_gnu_ld" = yes; then
16118 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16119 shlibpath_overrides_runpath=no
16120 else
16121 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16122 shlibpath_overrides_runpath=yes
16123 case $host_os in
16124 sco3.2v5*)
16125 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16126 ;;
16127 esac
16128 fi
16129 sys_lib_dlsearch_path_spec='/usr/lib'
16130 ;;
16131
brynercb91a2f2006-08-25 21:14:45 +000016132uts4*)
16133 version_type=linux
16134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16135 soname_spec='${libname}${release}${shared_ext}$major'
16136 shlibpath_var=LD_LIBRARY_PATH
16137 ;;
16138
16139*)
16140 dynamic_linker=no
16141 ;;
16142esac
mmentovai8c2a4de2006-09-20 16:20:15 +000016143{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16144echo "${ECHO_T}$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016145test "$dynamic_linker" = no && can_build_shared=no
16146
ted.mielczarek1adb1842009-12-21 13:12:20 +000016147if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16148 echo $ECHO_N "(cached) $ECHO_C" >&6
16149else
16150 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16151fi
16152
16153sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16154if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16156else
16157 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16158fi
16159
16160sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16161
mmentovai8c2a4de2006-09-20 16:20:15 +000016162variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16163if test "$GCC" = yes; then
16164 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16165fi
16166
16167{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16168echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016169hardcode_action_F77=
16170if test -n "$hardcode_libdir_flag_spec_F77" || \
mmentovai8c2a4de2006-09-20 16:20:15 +000016171 test -n "$runpath_var_F77" || \
16172 test "X$hardcode_automatic_F77" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000016173
16174 # We can hardcode non-existant directories.
16175 if test "$hardcode_direct_F77" != no &&
16176 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16177 # have to relink, otherwise we might link with an installed library
16178 # when we should be linking with a yet-to-be-installed one
16179 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16180 test "$hardcode_minus_L_F77" != no; then
16181 # Linking always hardcodes the temporary library directory.
16182 hardcode_action_F77=relink
16183 else
16184 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16185 hardcode_action_F77=immediate
16186 fi
16187else
16188 # We cannot hardcode anything, or else we can only hardcode existing
16189 # directories.
16190 hardcode_action_F77=unsupported
16191fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016192{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16193echo "${ECHO_T}$hardcode_action_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016194
16195if test "$hardcode_action_F77" = relink; then
16196 # Fast installation is not supported
16197 enable_fast_install=no
16198elif test "$shlibpath_overrides_runpath" = yes ||
16199 test "$enable_shared" = no; then
16200 # Fast installation is not necessary
16201 enable_fast_install=needless
16202fi
16203
brynercb91a2f2006-08-25 21:14:45 +000016204
16205# The else clause should only fire when bootstrapping the
16206# libtool distribution, otherwise you forgot to ship ltmain.sh
16207# with your package, and you will get complaints that there are
16208# no rules to generate ltmain.sh.
16209if test -f "$ltmain"; then
16210 # See if we are running on zsh, and set the options which allow our commands through
16211 # without removal of \ escapes.
16212 if test -n "${ZSH_VERSION+set}" ; then
16213 setopt NO_GLOB_SUBST
16214 fi
16215 # Now quote all the things that may contain metacharacters while being
16216 # careful not to overquote the AC_SUBSTed values. We take copies of the
16217 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000016218 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000016219 SED SHELL STRIP \
16220 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16221 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16222 deplibs_check_method reload_flag reload_cmds need_locks \
16223 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16224 lt_cv_sys_global_symbol_to_c_name_address \
16225 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16226 old_postinstall_cmds old_postuninstall_cmds \
16227 compiler_F77 \
16228 CC_F77 \
16229 LD_F77 \
16230 lt_prog_compiler_wl_F77 \
16231 lt_prog_compiler_pic_F77 \
16232 lt_prog_compiler_static_F77 \
16233 lt_prog_compiler_no_builtin_flag_F77 \
16234 export_dynamic_flag_spec_F77 \
16235 thread_safe_flag_spec_F77 \
16236 whole_archive_flag_spec_F77 \
16237 enable_shared_with_static_runtimes_F77 \
16238 old_archive_cmds_F77 \
16239 old_archive_from_new_cmds_F77 \
16240 predep_objects_F77 \
16241 postdep_objects_F77 \
16242 predeps_F77 \
16243 postdeps_F77 \
16244 compiler_lib_search_path_F77 \
ted.mielczarek1adb1842009-12-21 13:12:20 +000016245 compiler_lib_search_dirs_F77 \
brynercb91a2f2006-08-25 21:14:45 +000016246 archive_cmds_F77 \
16247 archive_expsym_cmds_F77 \
16248 postinstall_cmds_F77 \
16249 postuninstall_cmds_F77 \
16250 old_archive_from_expsyms_cmds_F77 \
16251 allow_undefined_flag_F77 \
16252 no_undefined_flag_F77 \
16253 export_symbols_cmds_F77 \
16254 hardcode_libdir_flag_spec_F77 \
16255 hardcode_libdir_flag_spec_ld_F77 \
16256 hardcode_libdir_separator_F77 \
16257 hardcode_automatic_F77 \
16258 module_cmds_F77 \
16259 module_expsym_cmds_F77 \
16260 lt_cv_prog_compiler_c_o_F77 \
ted.mielczarek1adb1842009-12-21 13:12:20 +000016261 fix_srcfile_path_F77 \
brynercb91a2f2006-08-25 21:14:45 +000016262 exclude_expsyms_F77 \
16263 include_expsyms_F77; do
16264
16265 case $var in
16266 old_archive_cmds_F77 | \
16267 old_archive_from_new_cmds_F77 | \
16268 archive_cmds_F77 | \
16269 archive_expsym_cmds_F77 | \
16270 module_cmds_F77 | \
16271 module_expsym_cmds_F77 | \
16272 old_archive_from_expsyms_cmds_F77 | \
16273 export_symbols_cmds_F77 | \
16274 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16275 postinstall_cmds | postuninstall_cmds | \
16276 old_postinstall_cmds | old_postuninstall_cmds | \
16277 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16278 # Double-quote double-evaled strings.
16279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16280 ;;
16281 *)
16282 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16283 ;;
16284 esac
16285 done
16286
16287 case $lt_echo in
16288 *'\$0 --fallback-echo"')
16289 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16290 ;;
16291 esac
16292
16293cfgfile="$ofile"
16294
16295 cat <<__EOF__ >> "$cfgfile"
16296# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16297
16298# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16299
16300# Shell to use when invoking shell scripts.
16301SHELL=$lt_SHELL
16302
16303# Whether or not to build shared libraries.
16304build_libtool_libs=$enable_shared
16305
16306# Whether or not to build static libraries.
16307build_old_libs=$enable_static
16308
16309# Whether or not to add -lc for building shared libraries.
16310build_libtool_need_lc=$archive_cmds_need_lc_F77
16311
16312# Whether or not to disallow shared libs when runtime libs are static
16313allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16314
16315# Whether or not to optimize for fast installation.
16316fast_install=$enable_fast_install
16317
16318# The host system.
16319host_alias=$host_alias
16320host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000016321host_os=$host_os
16322
16323# The build system.
16324build_alias=$build_alias
16325build=$build
16326build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000016327
16328# An echo program that does not interpret backslashes.
16329echo=$lt_echo
16330
16331# The archiver.
16332AR=$lt_AR
16333AR_FLAGS=$lt_AR_FLAGS
16334
16335# A C compiler.
16336LTCC=$lt_LTCC
16337
mmentovai8c2a4de2006-09-20 16:20:15 +000016338# LTCC compiler flags.
16339LTCFLAGS=$lt_LTCFLAGS
16340
brynercb91a2f2006-08-25 21:14:45 +000016341# A language-specific compiler.
16342CC=$lt_compiler_F77
16343
16344# Is the compiler the GNU C compiler?
16345with_gcc=$GCC_F77
16346
16347# An ERE matcher.
16348EGREP=$lt_EGREP
16349
16350# The linker used to build libraries.
16351LD=$lt_LD_F77
16352
16353# Whether we need hard or soft links.
16354LN_S=$lt_LN_S
16355
16356# A BSD-compatible nm program.
16357NM=$lt_NM
16358
16359# A symbol stripping program
16360STRIP=$lt_STRIP
16361
16362# Used to examine libraries when file_magic_cmd begins "file"
16363MAGIC_CMD=$MAGIC_CMD
16364
16365# Used on cygwin: DLL creation program.
16366DLLTOOL="$DLLTOOL"
16367
16368# Used on cygwin: object dumper.
16369OBJDUMP="$OBJDUMP"
16370
16371# Used on cygwin: assembler.
16372AS="$AS"
16373
16374# The name of the directory that contains temporary libtool files.
16375objdir=$objdir
16376
16377# How to create reloadable object files.
16378reload_flag=$lt_reload_flag
16379reload_cmds=$lt_reload_cmds
16380
16381# How to pass a linker flag through the compiler.
16382wl=$lt_lt_prog_compiler_wl_F77
16383
16384# Object file suffix (normally "o").
16385objext="$ac_objext"
16386
16387# Old archive suffix (normally "a").
16388libext="$libext"
16389
16390# Shared library suffix (normally ".so").
16391shrext_cmds='$shrext_cmds'
16392
16393# Executable file suffix (normally "").
16394exeext="$exeext"
16395
16396# Additional compiler flags for building library objects.
16397pic_flag=$lt_lt_prog_compiler_pic_F77
16398pic_mode=$pic_mode
16399
16400# What is the maximum length of a command?
16401max_cmd_len=$lt_cv_sys_max_cmd_len
16402
16403# Does compiler simultaneously support -c and -o options?
16404compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16405
mmentovai8c2a4de2006-09-20 16:20:15 +000016406# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000016407need_locks=$lt_need_locks
16408
16409# Do we need the lib prefix for modules?
16410need_lib_prefix=$need_lib_prefix
16411
16412# Do we need a version for libraries?
16413need_version=$need_version
16414
16415# Whether dlopen is supported.
16416dlopen_support=$enable_dlopen
16417
16418# Whether dlopen of programs is supported.
16419dlopen_self=$enable_dlopen_self
16420
16421# Whether dlopen of statically linked programs is supported.
16422dlopen_self_static=$enable_dlopen_self_static
16423
16424# Compiler flag to prevent dynamic linking.
16425link_static_flag=$lt_lt_prog_compiler_static_F77
16426
16427# Compiler flag to turn off builtin functions.
16428no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16429
16430# Compiler flag to allow reflexive dlopens.
16431export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16432
16433# Compiler flag to generate shared objects directly from archives.
16434whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16435
16436# Compiler flag to generate thread-safe objects.
16437thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16438
16439# Library versioning type.
16440version_type=$version_type
16441
16442# Format of library name prefix.
16443libname_spec=$lt_libname_spec
16444
16445# List of archive names. First name is the real one, the rest are links.
16446# The last name is the one that the linker finds with -lNAME.
16447library_names_spec=$lt_library_names_spec
16448
16449# The coded name of the library, if different from the real name.
16450soname_spec=$lt_soname_spec
16451
16452# Commands used to build and install an old-style archive.
16453RANLIB=$lt_RANLIB
16454old_archive_cmds=$lt_old_archive_cmds_F77
16455old_postinstall_cmds=$lt_old_postinstall_cmds
16456old_postuninstall_cmds=$lt_old_postuninstall_cmds
16457
16458# Create an old-style archive from a shared archive.
16459old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16460
16461# Create a temporary old-style archive to link instead of a shared archive.
16462old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16463
16464# Commands used to build and install a shared archive.
16465archive_cmds=$lt_archive_cmds_F77
16466archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16467postinstall_cmds=$lt_postinstall_cmds
16468postuninstall_cmds=$lt_postuninstall_cmds
16469
16470# Commands used to build a loadable module (assumed same as above if empty)
16471module_cmds=$lt_module_cmds_F77
16472module_expsym_cmds=$lt_module_expsym_cmds_F77
16473
16474# Commands to strip libraries.
16475old_striplib=$lt_old_striplib
16476striplib=$lt_striplib
16477
16478# Dependencies to place before the objects being linked to create a
16479# shared library.
16480predep_objects=$lt_predep_objects_F77
16481
16482# Dependencies to place after the objects being linked to create a
16483# shared library.
16484postdep_objects=$lt_postdep_objects_F77
16485
16486# Dependencies to place before the objects being linked to create a
16487# shared library.
16488predeps=$lt_predeps_F77
16489
16490# Dependencies to place after the objects being linked to create a
16491# shared library.
16492postdeps=$lt_postdeps_F77
16493
ted.mielczarek1adb1842009-12-21 13:12:20 +000016494# The directories searched by this compiler when creating a shared
16495# library
16496compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16497
brynercb91a2f2006-08-25 21:14:45 +000016498# The library search path used internally by the compiler when linking
16499# a shared library.
16500compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16501
16502# Method to check whether dependent libraries are shared objects.
16503deplibs_check_method=$lt_deplibs_check_method
16504
16505# Command to use when deplibs_check_method == file_magic.
16506file_magic_cmd=$lt_file_magic_cmd
16507
16508# Flag that allows shared libraries with undefined symbols to be built.
16509allow_undefined_flag=$lt_allow_undefined_flag_F77
16510
16511# Flag that forces no undefined symbols.
16512no_undefined_flag=$lt_no_undefined_flag_F77
16513
16514# Commands used to finish a libtool library installation in a directory.
16515finish_cmds=$lt_finish_cmds
16516
16517# Same as above, but a single script fragment to be evaled but not shown.
16518finish_eval=$lt_finish_eval
16519
16520# Take the output of nm and produce a listing of raw symbols and C names.
16521global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16522
16523# Transform the output of nm in a proper C declaration
16524global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16525
16526# Transform the output of nm in a C name address pair
16527global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16528
16529# This is the shared library runtime path variable.
16530runpath_var=$runpath_var
16531
16532# This is the shared library path variable.
16533shlibpath_var=$shlibpath_var
16534
16535# Is shlibpath searched before the hard-coded library search path?
16536shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16537
16538# How to hardcode a shared library path into an executable.
16539hardcode_action=$hardcode_action_F77
16540
16541# Whether we should hardcode library paths into libraries.
16542hardcode_into_libs=$hardcode_into_libs
16543
16544# Flag to hardcode \$libdir into a binary during linking.
16545# This must work even if \$libdir does not exist.
16546hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16547
16548# If ld is used when linking, flag to hardcode \$libdir into
16549# a binary during linking. This must work even if \$libdir does
16550# not exist.
16551hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16552
16553# Whether we need a single -rpath flag with a separated argument.
16554hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16555
16556# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16557# resulting binary.
16558hardcode_direct=$hardcode_direct_F77
16559
16560# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16561# resulting binary.
16562hardcode_minus_L=$hardcode_minus_L_F77
16563
16564# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16565# the resulting binary.
16566hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16567
16568# Set to yes if building a shared library automatically hardcodes DIR into the library
16569# and all subsequent libraries and executables linked against it.
16570hardcode_automatic=$hardcode_automatic_F77
16571
16572# Variables whose values should be saved in libtool wrapper scripts and
16573# restored at relink time.
16574variables_saved_for_relink="$variables_saved_for_relink"
16575
16576# Whether libtool must link a program against all its dependency libraries.
16577link_all_deplibs=$link_all_deplibs_F77
16578
16579# Compile-time system search path for libraries
16580sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16581
16582# Run-time system search path for libraries
16583sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16584
16585# Fix the shell variable \$srcfile for the compiler.
ted.mielczarek1adb1842009-12-21 13:12:20 +000016586fix_srcfile_path=$lt_fix_srcfile_path
brynercb91a2f2006-08-25 21:14:45 +000016587
16588# Set to yes if exported symbols are required.
16589always_export_symbols=$always_export_symbols_F77
16590
16591# The commands to list exported symbols.
16592export_symbols_cmds=$lt_export_symbols_cmds_F77
16593
16594# The commands to extract the exported symbol list from a shared archive.
16595extract_expsyms_cmds=$lt_extract_expsyms_cmds
16596
16597# Symbols that should not be listed in the preloaded symbols.
16598exclude_expsyms=$lt_exclude_expsyms_F77
16599
16600# Symbols that must always be exported.
16601include_expsyms=$lt_include_expsyms_F77
16602
16603# ### END LIBTOOL TAG CONFIG: $tagname
16604
16605__EOF__
16606
16607
16608else
16609 # If there is no Makefile yet, we rely on a make rule to execute
16610 # `config.status --recheck' to rerun these tests and create the
16611 # libtool script then.
16612 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16613 if test -f "$ltmain_in"; then
16614 test -f Makefile && make "$ltmain"
16615 fi
16616fi
16617
16618
16619ac_ext=c
16620ac_cpp='$CPP $CPPFLAGS'
16621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16623ac_compiler_gnu=$ac_cv_c_compiler_gnu
16624
16625CC="$lt_save_CC"
16626
16627 else
16628 tagname=""
16629 fi
16630 ;;
16631
16632 GCJ)
16633 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16634
16635
brynercb91a2f2006-08-25 21:14:45 +000016636# Source file extension for Java test sources.
16637ac_ext=java
16638
16639# Object file extension for compiled Java test sources.
16640objext=o
16641objext_GCJ=$objext
16642
16643# Code to be used in simple compile tests
ted.mielczarek1adb1842009-12-21 13:12:20 +000016644lt_simple_compile_test_code="class foo {}"
brynercb91a2f2006-08-25 21:14:45 +000016645
16646# Code to be used in simple link tests
ted.mielczarek1adb1842009-12-21 13:12:20 +000016647lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
brynercb91a2f2006-08-25 21:14:45 +000016648
16649# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16650
16651# If no C compiler was specified, use CC.
16652LTCC=${LTCC-"$CC"}
16653
mmentovai8c2a4de2006-09-20 16:20:15 +000016654# If no C compiler flags were specified, use CFLAGS.
16655LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16656
brynercb91a2f2006-08-25 21:14:45 +000016657# Allow CC to be a program name with arguments.
16658compiler=$CC
16659
16660
mmentovai8c2a4de2006-09-20 16:20:15 +000016661# save warnings/boilerplate of simple test code
16662ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000016663echo "$lt_simple_compile_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000016664eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16665_lt_compiler_boilerplate=`cat conftest.err`
16666$rm conftest*
16667
16668ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000016669echo "$lt_simple_link_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000016670eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16671_lt_linker_boilerplate=`cat conftest.err`
ted.mielczarek1adb1842009-12-21 13:12:20 +000016672$rm -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000016673
16674
brynercb91a2f2006-08-25 21:14:45 +000016675# Allow CC to be a program name with arguments.
16676lt_save_CC="$CC"
16677CC=${GCJ-"gcj"}
16678compiler=$CC
16679compiler_GCJ=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +000016680for cc_temp in $compiler""; do
16681 case $cc_temp in
16682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16684 \-*) ;;
16685 *) break;;
16686 esac
16687done
16688cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16689
brynercb91a2f2006-08-25 21:14:45 +000016690
16691# GCJ did not exist at the time GCC didn't implicitly link libc in.
16692archive_cmds_need_lc_GCJ=no
16693
mmentovai8c2a4de2006-09-20 16:20:15 +000016694old_archive_cmds_GCJ=$old_archive_cmds
16695
brynercb91a2f2006-08-25 21:14:45 +000016696
16697lt_prog_compiler_no_builtin_flag_GCJ=
16698
16699if test "$GCC" = yes; then
16700 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16701
16702
mmentovai8c2a4de2006-09-20 16:20:15 +000016703{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16704echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016705if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16706 echo $ECHO_N "(cached) $ECHO_C" >&6
16707else
16708 lt_cv_prog_compiler_rtti_exceptions=no
16709 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000016710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000016711 lt_compiler_flag="-fno-rtti -fno-exceptions"
16712 # Insert the option either (1) after the last *FLAGS variable, or
16713 # (2) before a word containing "conftest.", or (3) at the end.
16714 # Note that $ac_compile itself does not contain backslashes and begins
16715 # with a dollar sign (not a hyphen), so the echo should work correctly.
16716 # The option is referenced via a variable to avoid confusing sed.
16717 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000016718 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000016719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16720 -e 's:$: $lt_compiler_flag:'`
ted.mielczarek1adb1842009-12-21 13:12:20 +000016721 (eval echo "\"\$as_me:16721: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000016722 (eval "$lt_compile" 2>conftest.err)
16723 ac_status=$?
16724 cat conftest.err >&5
ted.mielczarek1adb1842009-12-21 13:12:20 +000016725 echo "$as_me:16725: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000016726 if (exit $ac_status) && test -s "$ac_outfile"; then
16727 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000016728 # So say no if there are warnings other than the usual output.
16729 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16731 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000016732 lt_cv_prog_compiler_rtti_exceptions=yes
16733 fi
16734 fi
16735 $rm conftest*
16736
16737fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016738{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16739echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016740
16741if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16742 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16743else
16744 :
16745fi
16746
16747fi
16748
16749lt_prog_compiler_wl_GCJ=
16750lt_prog_compiler_pic_GCJ=
16751lt_prog_compiler_static_GCJ=
16752
mmentovai8c2a4de2006-09-20 16:20:15 +000016753{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16754echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016755
16756 if test "$GCC" = yes; then
16757 lt_prog_compiler_wl_GCJ='-Wl,'
16758 lt_prog_compiler_static_GCJ='-static'
16759
16760 case $host_os in
16761 aix*)
16762 # All AIX code is PIC.
16763 if test "$host_cpu" = ia64; then
16764 # AIX 5 now supports IA64 processor
16765 lt_prog_compiler_static_GCJ='-Bstatic'
16766 fi
16767 ;;
16768
16769 amigaos*)
16770 # FIXME: we need at least 68020 code to build shared libraries, but
16771 # adding the `-m68020' flag to GCC prevents building anything better,
16772 # like `-m68040'.
16773 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16774 ;;
16775
ted.mielczarek1adb1842009-12-21 13:12:20 +000016776 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
brynercb91a2f2006-08-25 21:14:45 +000016777 # PIC is the default for these OSes.
16778 ;;
16779
ted.mielczarek1adb1842009-12-21 13:12:20 +000016780 mingw* | cygwin* | pw32* | os2*)
brynercb91a2f2006-08-25 21:14:45 +000016781 # This hack is so that the source file can tell whether it is being
16782 # built for inclusion in a dll (and should export symbols for example).
ted.mielczarek1adb1842009-12-21 13:12:20 +000016783 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16784 # (--disable-auto-import) libraries
16785
brynercb91a2f2006-08-25 21:14:45 +000016786 ;;
16787
16788 darwin* | rhapsody*)
16789 # PIC is the default on this platform
16790 # Common symbols not allowed in MH_DYLIB files
16791 lt_prog_compiler_pic_GCJ='-fno-common'
16792 ;;
16793
ted.mielczarek1adb1842009-12-21 13:12:20 +000016794 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000016795 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16796 # Instead, we relocate shared libraries at runtime.
16797 ;;
16798
brynercb91a2f2006-08-25 21:14:45 +000016799 msdosdjgpp*)
16800 # Just because we use GCC doesn't mean we suddenly get shared libraries
16801 # on systems that don't support them.
16802 lt_prog_compiler_can_build_shared_GCJ=no
16803 enable_shared=no
16804 ;;
16805
16806 sysv4*MP*)
16807 if test -d /usr/nec; then
16808 lt_prog_compiler_pic_GCJ=-Kconform_pic
16809 fi
16810 ;;
16811
16812 hpux*)
16813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16814 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000016815 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000016816 hppa*64*|ia64*)
16817 # +Z the default
16818 ;;
16819 *)
16820 lt_prog_compiler_pic_GCJ='-fPIC'
16821 ;;
16822 esac
16823 ;;
16824
16825 *)
16826 lt_prog_compiler_pic_GCJ='-fPIC'
16827 ;;
16828 esac
16829 else
16830 # PORTME Check for flag to pass linker flags through the system compiler.
16831 case $host_os in
16832 aix*)
16833 lt_prog_compiler_wl_GCJ='-Wl,'
16834 if test "$host_cpu" = ia64; then
16835 # AIX 5 now supports IA64 processor
16836 lt_prog_compiler_static_GCJ='-Bstatic'
16837 else
16838 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16839 fi
16840 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016841 darwin*)
16842 # PIC is the default on this platform
16843 # Common symbols not allowed in MH_DYLIB files
16844 case $cc_basename in
16845 xlc*)
16846 lt_prog_compiler_pic_GCJ='-qnocommon'
16847 lt_prog_compiler_wl_GCJ='-Wl,'
16848 ;;
16849 esac
16850 ;;
brynercb91a2f2006-08-25 21:14:45 +000016851
ted.mielczarek1adb1842009-12-21 13:12:20 +000016852 mingw* | cygwin* | pw32* | os2*)
brynercb91a2f2006-08-25 21:14:45 +000016853 # This hack is so that the source file can tell whether it is being
16854 # built for inclusion in a dll (and should export symbols for example).
ted.mielczarek1adb1842009-12-21 13:12:20 +000016855
brynercb91a2f2006-08-25 21:14:45 +000016856 ;;
16857
16858 hpux9* | hpux10* | hpux11*)
16859 lt_prog_compiler_wl_GCJ='-Wl,'
16860 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16861 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000016862 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000016863 hppa*64*|ia64*)
16864 # +Z the default
16865 ;;
16866 *)
16867 lt_prog_compiler_pic_GCJ='+Z'
16868 ;;
16869 esac
16870 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16871 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16872 ;;
16873
16874 irix5* | irix6* | nonstopux*)
16875 lt_prog_compiler_wl_GCJ='-Wl,'
16876 # PIC (with -KPIC) is the default.
16877 lt_prog_compiler_static_GCJ='-non_shared'
16878 ;;
16879
16880 newsos6)
16881 lt_prog_compiler_pic_GCJ='-KPIC'
16882 lt_prog_compiler_static_GCJ='-Bstatic'
16883 ;;
16884
ted.mielczarek1adb1842009-12-21 13:12:20 +000016885 linux* | k*bsd*-gnu)
mmentovai8c2a4de2006-09-20 16:20:15 +000016886 case $cc_basename in
brynercb91a2f2006-08-25 21:14:45 +000016887 icc* | ecc*)
16888 lt_prog_compiler_wl_GCJ='-Wl,'
16889 lt_prog_compiler_pic_GCJ='-KPIC'
16890 lt_prog_compiler_static_GCJ='-static'
16891 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016892 pgcc* | pgf77* | pgf90* | pgf95*)
16893 # Portland Group compilers (*not* the Pentium gcc compiler,
16894 # which looks to be a dead project)
16895 lt_prog_compiler_wl_GCJ='-Wl,'
16896 lt_prog_compiler_pic_GCJ='-fpic'
16897 lt_prog_compiler_static_GCJ='-Bstatic'
16898 ;;
brynercb91a2f2006-08-25 21:14:45 +000016899 ccc*)
16900 lt_prog_compiler_wl_GCJ='-Wl,'
16901 # All Alpha code is PIC.
16902 lt_prog_compiler_static_GCJ='-non_shared'
16903 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000016904 *)
16905 case `$CC -V 2>&1 | sed 5q` in
16906 *Sun\ C*)
16907 # Sun C 5.9
16908 lt_prog_compiler_pic_GCJ='-KPIC'
16909 lt_prog_compiler_static_GCJ='-Bstatic'
16910 lt_prog_compiler_wl_GCJ='-Wl,'
16911 ;;
16912 *Sun\ F*)
16913 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16914 lt_prog_compiler_pic_GCJ='-KPIC'
16915 lt_prog_compiler_static_GCJ='-Bstatic'
16916 lt_prog_compiler_wl_GCJ=''
16917 ;;
16918 esac
16919 ;;
brynercb91a2f2006-08-25 21:14:45 +000016920 esac
16921 ;;
16922
16923 osf3* | osf4* | osf5*)
16924 lt_prog_compiler_wl_GCJ='-Wl,'
16925 # All OSF/1 code is PIC.
16926 lt_prog_compiler_static_GCJ='-non_shared'
16927 ;;
16928
ted.mielczarek1adb1842009-12-21 13:12:20 +000016929 rdos*)
16930 lt_prog_compiler_static_GCJ='-non_shared'
16931 ;;
16932
brynercb91a2f2006-08-25 21:14:45 +000016933 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000016934 lt_prog_compiler_pic_GCJ='-KPIC'
16935 lt_prog_compiler_static_GCJ='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +000016936 case $cc_basename in
16937 f77* | f90* | f95*)
16938 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16939 *)
16940 lt_prog_compiler_wl_GCJ='-Wl,';;
16941 esac
brynercb91a2f2006-08-25 21:14:45 +000016942 ;;
16943
16944 sunos4*)
16945 lt_prog_compiler_wl_GCJ='-Qoption ld '
16946 lt_prog_compiler_pic_GCJ='-PIC'
16947 lt_prog_compiler_static_GCJ='-Bstatic'
16948 ;;
16949
mmentovai8c2a4de2006-09-20 16:20:15 +000016950 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000016951 lt_prog_compiler_wl_GCJ='-Wl,'
16952 lt_prog_compiler_pic_GCJ='-KPIC'
16953 lt_prog_compiler_static_GCJ='-Bstatic'
16954 ;;
16955
16956 sysv4*MP*)
16957 if test -d /usr/nec ;then
16958 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16959 lt_prog_compiler_static_GCJ='-Bstatic'
16960 fi
16961 ;;
16962
mmentovai8c2a4de2006-09-20 16:20:15 +000016963 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16964 lt_prog_compiler_wl_GCJ='-Wl,'
16965 lt_prog_compiler_pic_GCJ='-KPIC'
16966 lt_prog_compiler_static_GCJ='-Bstatic'
16967 ;;
16968
16969 unicos*)
16970 lt_prog_compiler_wl_GCJ='-Wl,'
16971 lt_prog_compiler_can_build_shared_GCJ=no
16972 ;;
16973
brynercb91a2f2006-08-25 21:14:45 +000016974 uts4*)
16975 lt_prog_compiler_pic_GCJ='-pic'
16976 lt_prog_compiler_static_GCJ='-Bstatic'
16977 ;;
16978
16979 *)
16980 lt_prog_compiler_can_build_shared_GCJ=no
16981 ;;
16982 esac
16983 fi
16984
mmentovai8c2a4de2006-09-20 16:20:15 +000016985{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16986echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016987
16988#
16989# Check to make sure the PIC flag actually works.
16990#
16991if test -n "$lt_prog_compiler_pic_GCJ"; then
16992
mmentovai8c2a4de2006-09-20 16:20:15 +000016993{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16994echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
ted.mielczarek1adb1842009-12-21 13:12:20 +000016995if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
brynercb91a2f2006-08-25 21:14:45 +000016996 echo $ECHO_N "(cached) $ECHO_C" >&6
16997else
ted.mielczarek1adb1842009-12-21 13:12:20 +000016998 lt_cv_prog_compiler_pic_works_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000016999 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000017000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000017001 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17002 # Insert the option either (1) after the last *FLAGS variable, or
17003 # (2) before a word containing "conftest.", or (3) at the end.
17004 # Note that $ac_compile itself does not contain backslashes and begins
17005 # with a dollar sign (not a hyphen), so the echo should work correctly.
17006 # The option is referenced via a variable to avoid confusing sed.
17007 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000017008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000017009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17010 -e 's:$: $lt_compiler_flag:'`
ted.mielczarek1adb1842009-12-21 13:12:20 +000017011 (eval echo "\"\$as_me:17011: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000017012 (eval "$lt_compile" 2>conftest.err)
17013 ac_status=$?
17014 cat conftest.err >&5
ted.mielczarek1adb1842009-12-21 13:12:20 +000017015 echo "$as_me:17015: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000017016 if (exit $ac_status) && test -s "$ac_outfile"; then
17017 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000017018 # So say no if there are warnings other than the usual output.
17019 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17020 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17021 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000017022 lt_cv_prog_compiler_pic_works_GCJ=yes
brynercb91a2f2006-08-25 21:14:45 +000017023 fi
17024 fi
17025 $rm conftest*
17026
17027fi
ted.mielczarek1adb1842009-12-21 13:12:20 +000017028{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17029echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017030
ted.mielczarek1adb1842009-12-21 13:12:20 +000017031if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
brynercb91a2f2006-08-25 21:14:45 +000017032 case $lt_prog_compiler_pic_GCJ in
17033 "" | " "*) ;;
17034 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17035 esac
17036else
17037 lt_prog_compiler_pic_GCJ=
17038 lt_prog_compiler_can_build_shared_GCJ=no
17039fi
17040
17041fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017042case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000017043 # For platforms which do not support PIC, -DPIC is meaningless:
17044 *djgpp*)
17045 lt_prog_compiler_pic_GCJ=
17046 ;;
17047 *)
17048 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17049 ;;
17050esac
17051
mmentovai8c2a4de2006-09-20 16:20:15 +000017052#
17053# Check to make sure the static flag actually works.
17054#
17055wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17056{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17057echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
ted.mielczarek1adb1842009-12-21 13:12:20 +000017058if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017059 echo $ECHO_N "(cached) $ECHO_C" >&6
17060else
ted.mielczarek1adb1842009-12-21 13:12:20 +000017061 lt_cv_prog_compiler_static_works_GCJ=no
mmentovai8c2a4de2006-09-20 16:20:15 +000017062 save_LDFLAGS="$LDFLAGS"
17063 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ted.mielczarek1adb1842009-12-21 13:12:20 +000017064 echo "$lt_simple_link_test_code" > conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000017065 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17066 # The linker can only warn and ignore the option if not recognized
17067 # So say no if there are warnings
17068 if test -s conftest.err; then
17069 # Append any errors to the config.log.
17070 cat conftest.err 1>&5
17071 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17073 if diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000017074 lt_cv_prog_compiler_static_works_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000017075 fi
17076 else
ted.mielczarek1adb1842009-12-21 13:12:20 +000017077 lt_cv_prog_compiler_static_works_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000017078 fi
17079 fi
ted.mielczarek1adb1842009-12-21 13:12:20 +000017080 $rm -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000017081 LDFLAGS="$save_LDFLAGS"
17082
17083fi
ted.mielczarek1adb1842009-12-21 13:12:20 +000017084{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17085echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +000017086
ted.mielczarek1adb1842009-12-21 13:12:20 +000017087if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017088 :
17089else
17090 lt_prog_compiler_static_GCJ=
17091fi
17092
17093
17094{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17095echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017096if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17097 echo $ECHO_N "(cached) $ECHO_C" >&6
17098else
17099 lt_cv_prog_compiler_c_o_GCJ=no
17100 $rm -r conftest 2>/dev/null
17101 mkdir conftest
17102 cd conftest
17103 mkdir out
ted.mielczarek1adb1842009-12-21 13:12:20 +000017104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000017105
17106 lt_compiler_flag="-o out/conftest2.$ac_objext"
17107 # Insert the option either (1) after the last *FLAGS variable, or
17108 # (2) before a word containing "conftest.", or (3) at the end.
17109 # Note that $ac_compile itself does not contain backslashes and begins
17110 # with a dollar sign (not a hyphen), so the echo should work correctly.
17111 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000017112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000017113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17114 -e 's:$: $lt_compiler_flag:'`
ted.mielczarek1adb1842009-12-21 13:12:20 +000017115 (eval echo "\"\$as_me:17115: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000017116 (eval "$lt_compile" 2>out/conftest.err)
17117 ac_status=$?
17118 cat out/conftest.err >&5
ted.mielczarek1adb1842009-12-21 13:12:20 +000017119 echo "$as_me:17119: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000017120 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17121 then
17122 # The compiler can only warn and ignore the option if not recognized
17123 # So say no if there are warnings
mmentovai8c2a4de2006-09-20 16:20:15 +000017124 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17125 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17126 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000017127 lt_cv_prog_compiler_c_o_GCJ=yes
17128 fi
17129 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017130 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +000017131 $rm conftest*
17132 # SGI C++ compiler will create directory out/ii_files/ for
17133 # template instantiation
17134 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17135 $rm out/* && rmdir out
17136 cd ..
17137 rmdir conftest
17138 $rm conftest*
17139
17140fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017141{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17142echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017143
17144
17145hard_links="nottested"
17146if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17147 # do not overwrite the value of need_locks provided by the user
mmentovai8c2a4de2006-09-20 16:20:15 +000017148 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17149echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017150 hard_links=yes
17151 $rm conftest*
17152 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17153 touch conftest.a
17154 ln conftest.a conftest.b 2>&5 || hard_links=no
17155 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mmentovai8c2a4de2006-09-20 16:20:15 +000017156 { echo "$as_me:$LINENO: result: $hard_links" >&5
17157echo "${ECHO_T}$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017158 if test "$hard_links" = no; then
17159 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17160echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17161 need_locks=warn
17162 fi
17163else
17164 need_locks=no
17165fi
17166
mmentovai8c2a4de2006-09-20 16:20:15 +000017167{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17168echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017169
17170 runpath_var=
17171 allow_undefined_flag_GCJ=
17172 enable_shared_with_static_runtimes_GCJ=no
17173 archive_cmds_GCJ=
17174 archive_expsym_cmds_GCJ=
17175 old_archive_From_new_cmds_GCJ=
17176 old_archive_from_expsyms_cmds_GCJ=
17177 export_dynamic_flag_spec_GCJ=
17178 whole_archive_flag_spec_GCJ=
17179 thread_safe_flag_spec_GCJ=
17180 hardcode_libdir_flag_spec_GCJ=
17181 hardcode_libdir_flag_spec_ld_GCJ=
17182 hardcode_libdir_separator_GCJ=
17183 hardcode_direct_GCJ=no
17184 hardcode_minus_L_GCJ=no
17185 hardcode_shlibpath_var_GCJ=unsupported
17186 link_all_deplibs_GCJ=unknown
17187 hardcode_automatic_GCJ=no
17188 module_cmds_GCJ=
17189 module_expsym_cmds_GCJ=
17190 always_export_symbols_GCJ=no
17191 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17192 # include_expsyms should be a list of space-separated symbols to be *always*
17193 # included in the symbol list
17194 include_expsyms_GCJ=
17195 # exclude_expsyms can be an extended regexp of symbols to exclude
17196 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17197 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17198 # as well as any symbol that contains `d'.
ted.mielczarek1adb1842009-12-21 13:12:20 +000017199 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
brynercb91a2f2006-08-25 21:14:45 +000017200 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17201 # platforms (ab)use it in PIC code, but their linkers get confused if
17202 # the symbol is explicitly referenced. Since portable code cannot
17203 # rely on this symbol name, it's probably fine to never include it in
17204 # preloaded symbol tables.
ted.mielczarek1adb1842009-12-21 13:12:20 +000017205 # Exclude shared library initialization/finalization symbols.
brynercb91a2f2006-08-25 21:14:45 +000017206 extract_expsyms_cmds=
mmentovai8c2a4de2006-09-20 16:20:15 +000017207 # Just being paranoid about ensuring that cc_basename is set.
17208 for cc_temp in $compiler""; do
17209 case $cc_temp in
17210 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17211 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17212 \-*) ;;
17213 *) break;;
17214 esac
17215done
17216cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +000017217
17218 case $host_os in
17219 cygwin* | mingw* | pw32*)
17220 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17221 # When not using gcc, we currently assume that we are using
17222 # Microsoft Visual C++.
17223 if test "$GCC" != yes; then
17224 with_gnu_ld=no
17225 fi
17226 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000017227 interix*)
17228 # we just hope/assume this is gcc and not c89 (= MSVC++)
17229 with_gnu_ld=yes
17230 ;;
brynercb91a2f2006-08-25 21:14:45 +000017231 openbsd*)
17232 with_gnu_ld=no
17233 ;;
17234 esac
17235
17236 ld_shlibs_GCJ=yes
17237 if test "$with_gnu_ld" = yes; then
17238 # If archive_cmds runs LD, not CC, wlarc should be empty
17239 wlarc='${wl}'
17240
mmentovai8c2a4de2006-09-20 16:20:15 +000017241 # Set some defaults for GNU ld with shared library support. These
17242 # are reset later if shared libraries are not supported. Putting them
17243 # here allows them to be overridden if necessary.
17244 runpath_var=LD_RUN_PATH
17245 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17246 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17247 # ancient GNU ld didn't support --whole-archive et. al.
17248 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17249 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17250 else
17251 whole_archive_flag_spec_GCJ=
17252 fi
17253 supports_anon_versioning=no
17254 case `$LD -v 2>/dev/null` in
17255 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17256 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17257 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17258 *\ 2.11.*) ;; # other 2.11 versions
17259 *) supports_anon_versioning=yes ;;
17260 esac
17261
brynercb91a2f2006-08-25 21:14:45 +000017262 # See if GNU ld supports shared libraries.
17263 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000017264 aix[3-9]*)
brynercb91a2f2006-08-25 21:14:45 +000017265 # On AIX/PPC, the GNU linker is very broken
17266 if test "$host_cpu" != ia64; then
17267 ld_shlibs_GCJ=no
17268 cat <<EOF 1>&2
17269
17270*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17271*** to be unable to reliably create shared libraries on AIX.
17272*** Therefore, libtool is disabling shared libraries support. If you
17273*** really care for shared libraries, you may want to modify your PATH
17274*** so that a non-GNU linker is found, and then restart.
17275
17276EOF
17277 fi
17278 ;;
17279
17280 amigaos*)
17281 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)'
17282 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17283 hardcode_minus_L_GCJ=yes
17284
17285 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17286 # that the semantics of dynamic libraries on AmigaOS, at least up
17287 # to version 4, is to share data among multiple programs linked
17288 # with the same dynamic library. Since this doesn't match the
17289 # behavior of shared libraries on other platforms, we can't use
17290 # them.
17291 ld_shlibs_GCJ=no
17292 ;;
17293
17294 beos*)
17295 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17296 allow_undefined_flag_GCJ=unsupported
17297 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17298 # support --undefined. This deserves some investigation. FIXME
17299 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17300 else
17301 ld_shlibs_GCJ=no
17302 fi
17303 ;;
17304
17305 cygwin* | mingw* | pw32*)
17306 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17307 # as there is no search path for DLLs.
17308 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17309 allow_undefined_flag_GCJ=unsupported
17310 always_export_symbols_GCJ=no
17311 enable_shared_with_static_runtimes_GCJ=yes
ted.mielczarek1adb1842009-12-21 13:12:20 +000017312 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000017313
17314 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017315 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 +000017316 # If the export-symbols file already is a .def file (1st line
17317 # is EXPORTS), use it as is; otherwise, prepend...
17318 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17319 cp $export_symbols $output_objdir/$soname.def;
17320 else
17321 echo EXPORTS > $output_objdir/$soname.def;
17322 cat $export_symbols >> $output_objdir/$soname.def;
17323 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +000017324 $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 +000017325 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017326 ld_shlibs_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000017327 fi
17328 ;;
17329
ted.mielczarek1adb1842009-12-21 13:12:20 +000017330 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000017331 hardcode_direct_GCJ=no
17332 hardcode_shlibpath_var_GCJ=no
17333 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17334 export_dynamic_flag_spec_GCJ='${wl}-E'
17335 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17336 # Instead, shared libraries are loaded at an image base (0x10000000 by
17337 # default) and relocated if they conflict, which is a slow very memory
17338 # consuming and fragmenting process. To avoid this, we pick a random,
17339 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17340 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17341 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'
17342 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'
17343 ;;
17344
ted.mielczarek1adb1842009-12-21 13:12:20 +000017345 gnu* | linux* | k*bsd*-gnu)
mmentovai8c2a4de2006-09-20 16:20:15 +000017346 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17347 tmp_addflag=
17348 case $cc_basename,$host_cpu in
17349 pgcc*) # Portland Group C compiler
17350 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'
17351 tmp_addflag=' $pic_flag'
17352 ;;
17353 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17354 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'
17355 tmp_addflag=' $pic_flag -Mnomain' ;;
17356 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17357 tmp_addflag=' -i_dynamic' ;;
17358 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17359 tmp_addflag=' -i_dynamic -nofor_main' ;;
17360 ifc* | ifort*) # Intel Fortran compiler
17361 tmp_addflag=' -nofor_main' ;;
17362 esac
ted.mielczarek1adb1842009-12-21 13:12:20 +000017363 case `$CC -V 2>&1 | sed 5q` in
17364 *Sun\ C*) # Sun C 5.9
17365 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17366 tmp_sharedflag='-G' ;;
17367 *Sun\ F*) # Sun Fortran 8.3
17368 tmp_sharedflag='-G' ;;
17369 *)
17370 tmp_sharedflag='-shared' ;;
17371 esac
17372 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000017373
17374 if test $supports_anon_versioning = yes; then
17375 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17376 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17377 $echo "local: *; };" >> $output_objdir/$libname.ver~
ted.mielczarek1adb1842009-12-21 13:12:20 +000017378 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000017379 fi
17380 else
17381 ld_shlibs_GCJ=no
17382 fi
17383 ;;
17384
17385 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000017386 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17387 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17388 wlarc=
17389 else
17390 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17391 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17392 fi
17393 ;;
17394
mmentovai8c2a4de2006-09-20 16:20:15 +000017395 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000017396 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17397 ld_shlibs_GCJ=no
17398 cat <<EOF 1>&2
17399
17400*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17401*** create shared libraries on Solaris systems. Therefore, libtool
17402*** is disabling shared libraries support. We urge you to upgrade GNU
17403*** binutils to release 2.9.1 or newer. Another option is to modify
17404*** your PATH or compiler configuration so that the native linker is
17405*** used, and then restart.
17406
17407EOF
17408 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17409 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17410 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17411 else
17412 ld_shlibs_GCJ=no
17413 fi
17414 ;;
17415
mmentovai8c2a4de2006-09-20 16:20:15 +000017416 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17417 case `$LD -v 2>&1` in
17418 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17419 ld_shlibs_GCJ=no
17420 cat <<_LT_EOF 1>&2
17421
17422*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17423*** reliably create shared libraries on SCO systems. Therefore, libtool
17424*** is disabling shared libraries support. We urge you to upgrade GNU
17425*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17426*** your PATH or compiler configuration so that the native linker is
17427*** used, and then restart.
17428
17429_LT_EOF
17430 ;;
17431 *)
17432 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17433 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17434 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17435 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17436 else
17437 ld_shlibs_GCJ=no
17438 fi
17439 ;;
17440 esac
17441 ;;
17442
brynercb91a2f2006-08-25 21:14:45 +000017443 sunos4*)
17444 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17445 wlarc=
17446 hardcode_direct_GCJ=yes
17447 hardcode_shlibpath_var_GCJ=no
17448 ;;
17449
brynercb91a2f2006-08-25 21:14:45 +000017450 *)
17451 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17452 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17453 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17454 else
17455 ld_shlibs_GCJ=no
17456 fi
17457 ;;
17458 esac
17459
mmentovai8c2a4de2006-09-20 16:20:15 +000017460 if test "$ld_shlibs_GCJ" = no; then
17461 runpath_var=
17462 hardcode_libdir_flag_spec_GCJ=
17463 export_dynamic_flag_spec_GCJ=
17464 whole_archive_flag_spec_GCJ=
brynercb91a2f2006-08-25 21:14:45 +000017465 fi
17466 else
17467 # PORTME fill in a description of your system's linker (not GNU ld)
17468 case $host_os in
17469 aix3*)
17470 allow_undefined_flag_GCJ=unsupported
17471 always_export_symbols_GCJ=yes
17472 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'
17473 # Note: this linker hardcodes the directories in LIBPATH if there
17474 # are no directories specified by -L.
17475 hardcode_minus_L_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000017476 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +000017477 # Neither direct hardcoding nor static linking is supported with a
17478 # broken collect2.
17479 hardcode_direct_GCJ=unsupported
17480 fi
17481 ;;
17482
ted.mielczarek1adb1842009-12-21 13:12:20 +000017483 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000017484 if test "$host_cpu" = ia64; then
17485 # On IA64, the linker does run time linking by default, so we don't
17486 # have to do anything special.
17487 aix_use_runtimelinking=no
17488 exp_sym_flag='-Bexport'
17489 no_entry_flag=""
17490 else
17491 # If we're using GNU nm, then we don't want the "-C" option.
17492 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17493 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17494 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'
17495 else
17496 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'
17497 fi
17498 aix_use_runtimelinking=no
17499
17500 # Test if we are trying to use run time linking or normal
17501 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17502 # need to do runtime linking.
ted.mielczarek1adb1842009-12-21 13:12:20 +000017503 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
brynercb91a2f2006-08-25 21:14:45 +000017504 for ld_flag in $LDFLAGS; do
17505 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17506 aix_use_runtimelinking=yes
17507 break
17508 fi
17509 done
mmentovai8c2a4de2006-09-20 16:20:15 +000017510 ;;
brynercb91a2f2006-08-25 21:14:45 +000017511 esac
17512
17513 exp_sym_flag='-bexport'
17514 no_entry_flag='-bnoentry'
17515 fi
17516
17517 # When large executables or shared objects are built, AIX ld can
17518 # have problems creating the table of contents. If linking a library
17519 # or program results in "error TOC overflow" add -mminimal-toc to
17520 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17521 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17522
17523 archive_cmds_GCJ=''
17524 hardcode_direct_GCJ=yes
17525 hardcode_libdir_separator_GCJ=':'
17526 link_all_deplibs_GCJ=yes
17527
17528 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017529 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +000017530 # We only want to do this on AIX 4.2 and lower, the check
17531 # below for broken collect2 doesn't work under 4.3+
17532 collect2name=`${CC} -print-prog-name=collect2`
17533 if test -f "$collect2name" && \
17534 strings "$collect2name" | grep resolve_lib_name >/dev/null
17535 then
17536 # We have reworked collect2
ted.mielczarek1adb1842009-12-21 13:12:20 +000017537 :
brynercb91a2f2006-08-25 21:14:45 +000017538 else
17539 # We have old collect2
17540 hardcode_direct_GCJ=unsupported
17541 # It fails to find uninstalled libraries when the uninstalled
17542 # path is not listed in the libpath. Setting hardcode_minus_L
17543 # to unsupported forces relinking
17544 hardcode_minus_L_GCJ=yes
17545 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17546 hardcode_libdir_separator_GCJ=
17547 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017548 ;;
brynercb91a2f2006-08-25 21:14:45 +000017549 esac
17550 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +000017551 if test "$aix_use_runtimelinking" = yes; then
17552 shared_flag="$shared_flag "'${wl}-G'
17553 fi
brynercb91a2f2006-08-25 21:14:45 +000017554 else
17555 # not using gcc
17556 if test "$host_cpu" = ia64; then
17557 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17558 # chokes on -Wl,-G. The following line is correct:
17559 shared_flag='-G'
17560 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017561 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000017562 shared_flag='${wl}-G'
17563 else
17564 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +000017565 fi
brynercb91a2f2006-08-25 21:14:45 +000017566 fi
17567 fi
17568
17569 # It seems that -bexpall does not export symbols beginning with
17570 # underscore (_), so it is better to generate a list of symbols to export.
17571 always_export_symbols_GCJ=yes
17572 if test "$aix_use_runtimelinking" = yes; then
17573 # Warning - without using the other runtime loading flags (-brtl),
17574 # -berok will link without error, but may produce a broken library.
17575 allow_undefined_flag_GCJ='-berok'
17576 # Determine the default libpath from the value encoded in an empty executable.
17577 cat >conftest.$ac_ext <<_ACEOF
17578/* confdefs.h. */
17579_ACEOF
17580cat confdefs.h >>conftest.$ac_ext
17581cat >>conftest.$ac_ext <<_ACEOF
17582/* end confdefs.h. */
17583
17584int
17585main ()
17586{
17587
17588 ;
17589 return 0;
17590}
17591_ACEOF
17592rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000017593if { (ac_try="$ac_link"
17594case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17597esac
17598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000017600 ac_status=$?
17601 grep -v '^ *+' conftest.er1 >conftest.err
17602 rm -f conftest.er1
17603 cat conftest.err >&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000017605 (exit $ac_status); } && {
17606 test -z "$ac_c_werror_flag" ||
17607 test ! -s conftest.err
17608 } && test -s conftest$ac_exeext &&
17609 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +000017610
ted.mielczarek1adb1842009-12-21 13:12:20 +000017611lt_aix_libpath_sed='
17612 /Import File Strings/,/^$/ {
17613 /^0/ {
17614 s/^0 *\(.*\)$/\1/
17615 p
17616 }
17617 }'
17618aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +000017619# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +000017620if test -z "$aix_libpath"; then
17621 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17622fi
brynercb91a2f2006-08-25 21:14:45 +000017623else
17624 echo "$as_me: failed program was:" >&5
17625sed 's/^/| /' conftest.$ac_ext >&5
17626
mmentovai8c2a4de2006-09-20 16:20:15 +000017627
brynercb91a2f2006-08-25 21:14:45 +000017628fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017629
mmentovaiaf3c43f2007-05-17 18:34:37 +000017630rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +000017631 conftest$ac_exeext conftest.$ac_ext
17632if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17633
17634 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
mmentovai8c2a4de2006-09-20 16:20:15 +000017635 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 +000017636 else
17637 if test "$host_cpu" = ia64; then
17638 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17639 allow_undefined_flag_GCJ="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +000017640 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 +000017641 else
17642 # Determine the default libpath from the value encoded in an empty executable.
17643 cat >conftest.$ac_ext <<_ACEOF
17644/* confdefs.h. */
17645_ACEOF
17646cat confdefs.h >>conftest.$ac_ext
17647cat >>conftest.$ac_ext <<_ACEOF
17648/* end confdefs.h. */
17649
17650int
17651main ()
17652{
17653
17654 ;
17655 return 0;
17656}
17657_ACEOF
17658rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000017659if { (ac_try="$ac_link"
17660case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17663esac
17664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000017666 ac_status=$?
17667 grep -v '^ *+' conftest.er1 >conftest.err
17668 rm -f conftest.er1
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000017671 (exit $ac_status); } && {
17672 test -z "$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17674 } && test -s conftest$ac_exeext &&
17675 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +000017676
ted.mielczarek1adb1842009-12-21 13:12:20 +000017677lt_aix_libpath_sed='
17678 /Import File Strings/,/^$/ {
17679 /^0/ {
17680 s/^0 *\(.*\)$/\1/
17681 p
17682 }
17683 }'
17684aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +000017685# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +000017686if test -z "$aix_libpath"; then
17687 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17688fi
brynercb91a2f2006-08-25 21:14:45 +000017689else
17690 echo "$as_me: failed program was:" >&5
17691sed 's/^/| /' conftest.$ac_ext >&5
17692
mmentovai8c2a4de2006-09-20 16:20:15 +000017693
brynercb91a2f2006-08-25 21:14:45 +000017694fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017695
mmentovaiaf3c43f2007-05-17 18:34:37 +000017696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +000017697 conftest$ac_exeext conftest.$ac_ext
17698if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17699
17700 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17701 # Warning - without using the other run time loading flags,
17702 # -berok will link without error, but may produce a broken library.
17703 no_undefined_flag_GCJ=' ${wl}-bernotok'
17704 allow_undefined_flag_GCJ=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +000017705 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +000017706 whole_archive_flag_spec_GCJ='$convenience'
brynercb91a2f2006-08-25 21:14:45 +000017707 archive_cmds_need_lc_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000017708 # This is similar to how AIX traditionally builds its shared libraries.
17709 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 +000017710 fi
17711 fi
17712 ;;
17713
17714 amigaos*)
17715 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)'
17716 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17717 hardcode_minus_L_GCJ=yes
17718 # see comment about different semantics on the GNU ld section
17719 ld_shlibs_GCJ=no
17720 ;;
17721
mmentovai8c2a4de2006-09-20 16:20:15 +000017722 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000017723 export_dynamic_flag_spec_GCJ=-rdynamic
17724 ;;
17725
17726 cygwin* | mingw* | pw32*)
17727 # When not using gcc, we currently assume that we are using
17728 # Microsoft Visual C++.
17729 # hardcode_libdir_flag_spec is actually meaningless, as there is
17730 # no search path for DLLs.
17731 hardcode_libdir_flag_spec_GCJ=' '
17732 allow_undefined_flag_GCJ=unsupported
17733 # Tell ltmain to make .lib files, not .a files.
17734 libext=lib
17735 # Tell ltmain to make .dll files, not .so files.
17736 shrext_cmds=".dll"
17737 # FIXME: Setting linknames here is a bad hack.
17738 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17739 # The linker will automatically build a .lib file if we build a DLL.
17740 old_archive_From_new_cmds_GCJ='true'
17741 # FIXME: Should let the user specify the lib program.
ted.mielczarek1adb1842009-12-21 13:12:20 +000017742 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
mmentovai8c2a4de2006-09-20 16:20:15 +000017743 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
brynercb91a2f2006-08-25 21:14:45 +000017744 enable_shared_with_static_runtimes_GCJ=yes
17745 ;;
17746
17747 darwin* | rhapsody*)
mmentovai8c2a4de2006-09-20 16:20:15 +000017748 case $host_os in
17749 rhapsody* | darwin1.[012])
17750 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17751 ;;
17752 *) # Darwin 1.3 on
17753 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17754 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17755 else
17756 case ${MACOSX_DEPLOYMENT_TARGET} in
17757 10.[012])
17758 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17759 ;;
17760 10.*)
17761 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17762 ;;
17763 esac
17764 fi
17765 ;;
brynerd5e66382006-09-08 02:35:53 +000017766 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000017767 archive_cmds_need_lc_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000017768 hardcode_direct_GCJ=no
17769 hardcode_automatic_GCJ=yes
17770 hardcode_shlibpath_var_GCJ=unsupported
mmentovai8c2a4de2006-09-20 16:20:15 +000017771 whole_archive_flag_spec_GCJ=''
brynercb91a2f2006-08-25 21:14:45 +000017772 link_all_deplibs_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000017773 if test "$GCC" = yes ; then
17774 output_verbose_link_cmd='echo'
ted.mielczarek1adb1842009-12-21 13:12:20 +000017775 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17776 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17777 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17778 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
brynercb91a2f2006-08-25 21:14:45 +000017779 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017780 case $cc_basename in
17781 xlc*)
17782 output_verbose_link_cmd='echo'
ted.mielczarek1adb1842009-12-21 13:12:20 +000017783 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
mmentovai8c2a4de2006-09-20 16:20:15 +000017784 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17785 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ted.mielczarek1adb1842009-12-21 13:12:20 +000017786 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
mmentovai8c2a4de2006-09-20 16:20:15 +000017787 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}'
17788 ;;
17789 *)
17790 ld_shlibs_GCJ=no
17791 ;;
17792 esac
brynercb91a2f2006-08-25 21:14:45 +000017793 fi
17794 ;;
17795
17796 dgux*)
17797 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17798 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17799 hardcode_shlibpath_var_GCJ=no
17800 ;;
17801
17802 freebsd1*)
17803 ld_shlibs_GCJ=no
17804 ;;
17805
17806 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17807 # support. Future versions do this automatically, but an explicit c++rt0.o
17808 # does not break anything, and helps significantly (at the cost of a little
17809 # extra space).
17810 freebsd2.2*)
17811 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17812 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17813 hardcode_direct_GCJ=yes
17814 hardcode_shlibpath_var_GCJ=no
17815 ;;
17816
17817 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17818 freebsd2*)
17819 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17820 hardcode_direct_GCJ=yes
17821 hardcode_minus_L_GCJ=yes
17822 hardcode_shlibpath_var_GCJ=no
17823 ;;
17824
17825 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ted.mielczarek1adb1842009-12-21 13:12:20 +000017826 freebsd* | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000017827 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17828 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17829 hardcode_direct_GCJ=yes
17830 hardcode_shlibpath_var_GCJ=no
17831 ;;
17832
17833 hpux9*)
17834 if test "$GCC" = yes; then
17835 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'
17836 else
17837 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'
17838 fi
17839 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17840 hardcode_libdir_separator_GCJ=:
17841 hardcode_direct_GCJ=yes
17842
17843 # hardcode_minus_L: Not really in the search PATH,
17844 # but as the default location of the library.
17845 hardcode_minus_L_GCJ=yes
17846 export_dynamic_flag_spec_GCJ='${wl}-E'
17847 ;;
17848
mmentovai8c2a4de2006-09-20 16:20:15 +000017849 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +000017850 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017851 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17852 else
17853 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17854 fi
17855 if test "$with_gnu_ld" = no; then
17856 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17857 hardcode_libdir_separator_GCJ=:
17858
17859 hardcode_direct_GCJ=yes
17860 export_dynamic_flag_spec_GCJ='${wl}-E'
17861
17862 # hardcode_minus_L: Not really in the search PATH,
17863 # but as the default location of the library.
17864 hardcode_minus_L_GCJ=yes
17865 fi
17866 ;;
17867
17868 hpux11*)
17869 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17870 case $host_cpu in
17871 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +000017872 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17873 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000017874 ia64*)
17875 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17876 ;;
brynercb91a2f2006-08-25 21:14:45 +000017877 *)
17878 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17879 ;;
17880 esac
17881 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017882 case $host_cpu in
17883 hppa*64*)
17884 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17885 ;;
17886 ia64*)
17887 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000017888 ;;
17889 *)
mmentovai8c2a4de2006-09-20 16:20:15 +000017890 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 +000017891 ;;
17892 esac
17893 fi
17894 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017895 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17896 hardcode_libdir_separator_GCJ=:
brynerd5e66382006-09-08 02:35:53 +000017897
mmentovai8c2a4de2006-09-20 16:20:15 +000017898 case $host_cpu in
17899 hppa*64*|ia64*)
17900 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17901 hardcode_direct_GCJ=no
17902 hardcode_shlibpath_var_GCJ=no
brynerd5e66382006-09-08 02:35:53 +000017903 ;;
brynercb91a2f2006-08-25 21:14:45 +000017904 *)
brynercb91a2f2006-08-25 21:14:45 +000017905 hardcode_direct_GCJ=yes
17906 export_dynamic_flag_spec_GCJ='${wl}-E'
17907
17908 # hardcode_minus_L: Not really in the search PATH,
17909 # but as the default location of the library.
17910 hardcode_minus_L_GCJ=yes
17911 ;;
17912 esac
17913 fi
17914 ;;
17915
17916 irix5* | irix6* | nonstopux*)
17917 if test "$GCC" = yes; then
17918 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'
17919 else
17920 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'
17921 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17922 fi
17923 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17924 hardcode_libdir_separator_GCJ=:
17925 link_all_deplibs_GCJ=yes
17926 ;;
17927
mmentovai8c2a4de2006-09-20 16:20:15 +000017928 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000017929 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17930 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17931 else
17932 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17933 fi
17934 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17935 hardcode_direct_GCJ=yes
17936 hardcode_shlibpath_var_GCJ=no
17937 ;;
17938
17939 newsos6)
17940 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17941 hardcode_direct_GCJ=yes
17942 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17943 hardcode_libdir_separator_GCJ=:
17944 hardcode_shlibpath_var_GCJ=no
17945 ;;
17946
17947 openbsd*)
ted.mielczarek1adb1842009-12-21 13:12:20 +000017948 if test -f /usr/libexec/ld.so; then
17949 hardcode_direct_GCJ=yes
17950 hardcode_shlibpath_var_GCJ=no
17951 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17952 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17953 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17954 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17955 export_dynamic_flag_spec_GCJ='${wl}-E'
17956 else
17957 case $host_os in
17958 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17959 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17960 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17961 ;;
17962 *)
17963 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17964 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17965 ;;
17966 esac
17967 fi
brynercb91a2f2006-08-25 21:14:45 +000017968 else
ted.mielczarek1adb1842009-12-21 13:12:20 +000017969 ld_shlibs_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000017970 fi
17971 ;;
17972
17973 os2*)
17974 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17975 hardcode_minus_L_GCJ=yes
17976 allow_undefined_flag_GCJ=unsupported
17977 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'
17978 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17979 ;;
17980
17981 osf3*)
17982 if test "$GCC" = yes; then
17983 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17984 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'
17985 else
17986 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17987 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'
17988 fi
17989 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17990 hardcode_libdir_separator_GCJ=:
17991 ;;
17992
17993 osf4* | osf5*) # as osf3* with the addition of -msym flag
17994 if test "$GCC" = yes; then
17995 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17996 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'
17997 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17998 else
17999 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18000 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'
18001 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 +000018002 $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 +000018003
18004 # Both c and cxx compiler support -rpath directly
18005 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18006 fi
18007 hardcode_libdir_separator_GCJ=:
18008 ;;
18009
brynercb91a2f2006-08-25 21:14:45 +000018010 solaris*)
18011 no_undefined_flag_GCJ=' -z text'
18012 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000018013 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +000018014 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18015 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18016 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18017 else
mmentovai8c2a4de2006-09-20 16:20:15 +000018018 wlarc=''
brynercb91a2f2006-08-25 21:14:45 +000018019 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18020 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18021 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18022 fi
18023 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18024 hardcode_shlibpath_var_GCJ=no
18025 case $host_os in
18026 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000018027 *)
ted.mielczarek1adb1842009-12-21 13:12:20 +000018028 # The compiler driver will combine and reorder linker options,
18029 # but understands `-z linker_flag'. GCC discards it without `$wl',
18030 # but is careful enough not to reorder.
mmentovai8c2a4de2006-09-20 16:20:15 +000018031 # Supported since Solaris 2.6 (maybe 2.5.1?)
ted.mielczarek1adb1842009-12-21 13:12:20 +000018032 if test "$GCC" = yes; then
18033 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18034 else
18035 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18036 fi
18037 ;;
brynercb91a2f2006-08-25 21:14:45 +000018038 esac
18039 link_all_deplibs_GCJ=yes
18040 ;;
18041
18042 sunos4*)
18043 if test "x$host_vendor" = xsequent; then
18044 # Use $CC to link under sequent, because it throws in some extra .o
18045 # files that make .init and .fini sections work.
18046 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18047 else
18048 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18049 fi
18050 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18051 hardcode_direct_GCJ=yes
18052 hardcode_minus_L_GCJ=yes
18053 hardcode_shlibpath_var_GCJ=no
18054 ;;
18055
18056 sysv4)
18057 case $host_vendor in
18058 sni)
18059 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18060 hardcode_direct_GCJ=yes # is this really true???
18061 ;;
18062 siemens)
18063 ## LD is ld it makes a PLAMLIB
18064 ## CC just makes a GrossModule.
18065 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18066 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18067 hardcode_direct_GCJ=no
18068 ;;
18069 motorola)
18070 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18071 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18072 ;;
18073 esac
18074 runpath_var='LD_RUN_PATH'
18075 hardcode_shlibpath_var_GCJ=no
18076 ;;
18077
18078 sysv4.3*)
18079 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18080 hardcode_shlibpath_var_GCJ=no
18081 export_dynamic_flag_spec_GCJ='-Bexport'
18082 ;;
18083
18084 sysv4*MP*)
18085 if test -d /usr/nec; then
18086 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18087 hardcode_shlibpath_var_GCJ=no
18088 runpath_var=LD_RUN_PATH
18089 hardcode_runpath_var=yes
18090 ld_shlibs_GCJ=yes
18091 fi
18092 ;;
18093
ted.mielczarek1adb1842009-12-21 13:12:20 +000018094 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000018095 no_undefined_flag_GCJ='${wl}-z,text'
18096 archive_cmds_need_lc_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000018097 hardcode_shlibpath_var_GCJ=no
mmentovai8c2a4de2006-09-20 16:20:15 +000018098 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +000018099
mmentovai3261e8b2006-09-06 02:56:44 +000018100 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000018101 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18102 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 +000018103 else
mmentovai8c2a4de2006-09-20 16:20:15 +000018104 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18105 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 +000018106 fi
brynerd5e66382006-09-08 02:35:53 +000018107 ;;
18108
mmentovai8c2a4de2006-09-20 16:20:15 +000018109 sysv5* | sco3.2v5* | sco5v6*)
18110 # Note: We can NOT use -z defs as we might desire, because we do not
18111 # link with -lc, and that would cause any symbols used from libc to
18112 # always be unresolved, which means just about no library would
18113 # ever link correctly. If we're not using GNU ld we use -z text
18114 # though, which does catch some bad symbols but isn't as heavy-handed
18115 # as -z defs.
18116 no_undefined_flag_GCJ='${wl}-z,text'
18117 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18118 archive_cmds_need_lc_GCJ=no
brynerd5e66382006-09-08 02:35:53 +000018119 hardcode_shlibpath_var_GCJ=no
mmentovai8c2a4de2006-09-20 16:20:15 +000018120 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18121 hardcode_libdir_separator_GCJ=':'
18122 link_all_deplibs_GCJ=yes
18123 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +000018124 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +000018125
18126 if test "$GCC" = yes; then
18127 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18128 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18129 else
18130 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18131 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18132 fi
brynercb91a2f2006-08-25 21:14:45 +000018133 ;;
18134
18135 uts4*)
18136 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18137 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18138 hardcode_shlibpath_var_GCJ=no
18139 ;;
18140
18141 *)
18142 ld_shlibs_GCJ=no
18143 ;;
18144 esac
18145 fi
18146
mmentovai8c2a4de2006-09-20 16:20:15 +000018147{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18148echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018149test "$ld_shlibs_GCJ" = no && can_build_shared=no
18150
brynercb91a2f2006-08-25 21:14:45 +000018151#
18152# Do we need to explicitly link libc?
18153#
18154case "x$archive_cmds_need_lc_GCJ" in
18155x|xyes)
18156 # Assume -lc should be added
18157 archive_cmds_need_lc_GCJ=yes
18158
18159 if test "$enable_shared" = yes && test "$GCC" = yes; then
18160 case $archive_cmds_GCJ in
18161 *'~'*)
18162 # FIXME: we may have to deal with multi-command sequences.
18163 ;;
18164 '$CC '*)
18165 # Test whether the compiler implicitly links with -lc since on some
18166 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18167 # to ld, don't add -lc before -lgcc.
mmentovai8c2a4de2006-09-20 16:20:15 +000018168 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18169echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018170 $rm conftest*
ted.mielczarek1adb1842009-12-21 13:12:20 +000018171 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000018172
18173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18174 (eval $ac_compile) 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); } 2>conftest.err; then
18178 soname=conftest
18179 lib=conftest
18180 libobjs=conftest.$ac_objext
18181 deplibs=
18182 wl=$lt_prog_compiler_wl_GCJ
mmentovai8c2a4de2006-09-20 16:20:15 +000018183 pic_flag=$lt_prog_compiler_pic_GCJ
brynercb91a2f2006-08-25 21:14:45 +000018184 compiler_flags=-v
18185 linker_flags=-v
18186 verstring=
18187 output_objdir=.
18188 libname=conftest
18189 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18190 allow_undefined_flag_GCJ=
18191 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18192 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18193 ac_status=$?
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }
18196 then
18197 archive_cmds_need_lc_GCJ=no
18198 else
18199 archive_cmds_need_lc_GCJ=yes
18200 fi
18201 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18202 else
18203 cat conftest.err 1>&5
18204 fi
18205 $rm conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000018206 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18207echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018208 ;;
18209 esac
18210 fi
18211 ;;
18212esac
18213
mmentovai8c2a4de2006-09-20 16:20:15 +000018214{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18215echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018216library_names_spec=
18217libname_spec='lib$name'
18218soname_spec=
18219shrext_cmds=".so"
18220postinstall_cmds=
18221postuninstall_cmds=
18222finish_cmds=
18223finish_eval=
18224shlibpath_var=
18225shlibpath_overrides_runpath=unknown
18226version_type=none
18227dynamic_linker="$host_os ld.so"
18228sys_lib_dlsearch_path_spec="/lib /usr/lib"
ted.mielczarek1adb1842009-12-21 13:12:20 +000018229
brynercb91a2f2006-08-25 21:14:45 +000018230need_lib_prefix=unknown
18231hardcode_into_libs=no
18232
18233# when you set need_version to no, make sure it does not cause -set_version
18234# flags to be left without arguments
18235need_version=unknown
18236
18237case $host_os in
18238aix3*)
18239 version_type=linux
18240 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18241 shlibpath_var=LIBPATH
18242
18243 # AIX 3 has no versioning support, so we append a major version to the name.
18244 soname_spec='${libname}${release}${shared_ext}$major'
18245 ;;
18246
ted.mielczarek1adb1842009-12-21 13:12:20 +000018247aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000018248 version_type=linux
18249 need_lib_prefix=no
18250 need_version=no
18251 hardcode_into_libs=yes
18252 if test "$host_cpu" = ia64; then
18253 # AIX 5 supports IA64
18254 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18255 shlibpath_var=LD_LIBRARY_PATH
18256 else
18257 # With GCC up to 2.95.x, collect2 would create an import file
18258 # for dependence libraries. The import file would start with
18259 # the line `#! .'. This would cause the generated library to
18260 # depend on `.', always an invalid library. This was fixed in
18261 # development snapshots of GCC prior to 3.0.
18262 case $host_os in
18263 aix4 | aix4.[01] | aix4.[01].*)
18264 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18265 echo ' yes '
18266 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18267 :
18268 else
18269 can_build_shared=no
18270 fi
18271 ;;
18272 esac
18273 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18274 # soname into executable. Probably we can add versioning support to
18275 # collect2, so additional links can be useful in future.
18276 if test "$aix_use_runtimelinking" = yes; then
18277 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18278 # instead of lib<name>.a to let people know that these are not
18279 # typical AIX shared libraries.
18280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18281 else
18282 # We preserve .a as extension for shared libraries through AIX4.2
18283 # and later when we are not doing run time linking.
18284 library_names_spec='${libname}${release}.a $libname.a'
18285 soname_spec='${libname}${release}${shared_ext}$major'
18286 fi
18287 shlibpath_var=LIBPATH
18288 fi
18289 ;;
18290
18291amigaos*)
18292 library_names_spec='$libname.ixlibrary $libname.a'
18293 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18294 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'
18295 ;;
18296
18297beos*)
18298 library_names_spec='${libname}${shared_ext}'
18299 dynamic_linker="$host_os ld.so"
18300 shlibpath_var=LIBRARY_PATH
18301 ;;
18302
mmentovai8c2a4de2006-09-20 16:20:15 +000018303bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000018304 version_type=linux
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18309 shlibpath_var=LD_LIBRARY_PATH
18310 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18311 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18312 # the default ld.so.conf also contains /usr/contrib/lib and
18313 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18314 # libtool to hard-code these into programs
18315 ;;
18316
18317cygwin* | mingw* | pw32*)
18318 version_type=windows
18319 shrext_cmds=".dll"
18320 need_version=no
18321 need_lib_prefix=no
18322
18323 case $GCC,$host_os in
18324 yes,cygwin* | yes,mingw* | yes,pw32*)
18325 library_names_spec='$libname.dll.a'
18326 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18327 postinstall_cmds='base_file=`basename \${file}`~
18328 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18329 dldir=$destdir/`dirname \$dlpath`~
18330 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000018331 $install_prog $dir/$dlname \$dldir/$dlname~
18332 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000018333 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18334 dlpath=$dir/\$dldll~
18335 $rm \$dlpath'
18336 shlibpath_overrides_runpath=yes
18337
18338 case $host_os in
18339 cygwin*)
18340 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18341 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18342 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18343 ;;
18344 mingw*)
18345 # MinGW DLLs use traditional 'lib' prefix
18346 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18347 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18348 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18349 # It is most probably a Windows format PATH printed by
18350 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18351 # path with ; separators, and with drive letters. We can handle the
18352 # drive letters (cygwin fileutils understands them), so leave them,
18353 # especially as we might pass files found there to a mingw objdump,
18354 # which wouldn't understand a cygwinified path. Ahh.
18355 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18356 else
18357 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18358 fi
18359 ;;
18360 pw32*)
18361 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000018362 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 +000018363 ;;
18364 esac
18365 ;;
18366
18367 *)
18368 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18369 ;;
18370 esac
18371 dynamic_linker='Win32 ld.exe'
18372 # FIXME: first we should search . and the directory the executable is in
18373 shlibpath_var=PATH
18374 ;;
18375
18376darwin* | rhapsody*)
18377 dynamic_linker="$host_os dyld"
18378 version_type=darwin
18379 need_lib_prefix=no
18380 need_version=no
18381 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18382 soname_spec='${libname}${release}${major}$shared_ext'
18383 shlibpath_overrides_runpath=yes
18384 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000018385 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ted.mielczarek1adb1842009-12-21 13:12:20 +000018386
brynercb91a2f2006-08-25 21:14:45 +000018387 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18388 ;;
18389
18390dgux*)
18391 version_type=linux
18392 need_lib_prefix=no
18393 need_version=no
18394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18395 soname_spec='${libname}${release}${shared_ext}$major'
18396 shlibpath_var=LD_LIBRARY_PATH
18397 ;;
18398
18399freebsd1*)
18400 dynamic_linker=no
18401 ;;
18402
mmentovai8c2a4de2006-09-20 16:20:15 +000018403freebsd* | dragonfly*)
18404 # DragonFly does not have aout. When/if they implement a new
18405 # versioning mechanism, adjust this.
18406 if test -x /usr/bin/objformat; then
18407 objformat=`/usr/bin/objformat`
18408 else
18409 case $host_os in
18410 freebsd[123]*) objformat=aout ;;
18411 *) objformat=elf ;;
18412 esac
18413 fi
brynercb91a2f2006-08-25 21:14:45 +000018414 version_type=freebsd-$objformat
18415 case $version_type in
18416 freebsd-elf*)
18417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18418 need_version=no
18419 need_lib_prefix=no
18420 ;;
18421 freebsd-*)
18422 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18423 need_version=yes
18424 ;;
18425 esac
18426 shlibpath_var=LD_LIBRARY_PATH
18427 case $host_os in
18428 freebsd2*)
18429 shlibpath_overrides_runpath=yes
18430 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000018431 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000018432 shlibpath_overrides_runpath=yes
18433 hardcode_into_libs=yes
18434 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000018435 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18436 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000018437 shlibpath_overrides_runpath=no
18438 hardcode_into_libs=yes
18439 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000018440 *) # from 4.6 on, and DragonFly
mmentovai8c2a4de2006-09-20 16:20:15 +000018441 shlibpath_overrides_runpath=yes
18442 hardcode_into_libs=yes
18443 ;;
brynercb91a2f2006-08-25 21:14:45 +000018444 esac
18445 ;;
18446
18447gnu*)
18448 version_type=linux
18449 need_lib_prefix=no
18450 need_version=no
18451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18452 soname_spec='${libname}${release}${shared_ext}$major'
18453 shlibpath_var=LD_LIBRARY_PATH
18454 hardcode_into_libs=yes
18455 ;;
18456
18457hpux9* | hpux10* | hpux11*)
18458 # Give a soname corresponding to the major version so that dld.sl refuses to
18459 # link against other versions.
18460 version_type=sunos
18461 need_lib_prefix=no
18462 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000018463 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000018464 ia64*)
18465 shrext_cmds='.so'
18466 hardcode_into_libs=yes
18467 dynamic_linker="$host_os dld.so"
18468 shlibpath_var=LD_LIBRARY_PATH
18469 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18471 soname_spec='${libname}${release}${shared_ext}$major'
18472 if test "X$HPUX_IA64_MODE" = X32; then
18473 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18474 else
18475 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18476 fi
18477 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18478 ;;
18479 hppa*64*)
18480 shrext_cmds='.sl'
18481 hardcode_into_libs=yes
18482 dynamic_linker="$host_os dld.sl"
18483 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18484 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18486 soname_spec='${libname}${release}${shared_ext}$major'
18487 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18488 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18489 ;;
18490 *)
18491 shrext_cmds='.sl'
18492 dynamic_linker="$host_os dld.sl"
18493 shlibpath_var=SHLIB_PATH
18494 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18496 soname_spec='${libname}${release}${shared_ext}$major'
18497 ;;
18498 esac
18499 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18500 postinstall_cmds='chmod 555 $lib'
18501 ;;
18502
ted.mielczarek1adb1842009-12-21 13:12:20 +000018503interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000018504 version_type=linux
18505 need_lib_prefix=no
18506 need_version=no
18507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18508 soname_spec='${libname}${release}${shared_ext}$major'
18509 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18510 shlibpath_var=LD_LIBRARY_PATH
18511 shlibpath_overrides_runpath=no
18512 hardcode_into_libs=yes
18513 ;;
18514
brynercb91a2f2006-08-25 21:14:45 +000018515irix5* | irix6* | nonstopux*)
18516 case $host_os in
18517 nonstopux*) version_type=nonstopux ;;
18518 *)
18519 if test "$lt_cv_prog_gnu_ld" = yes; then
18520 version_type=linux
18521 else
18522 version_type=irix
18523 fi ;;
18524 esac
18525 need_lib_prefix=no
18526 need_version=no
18527 soname_spec='${libname}${release}${shared_ext}$major'
18528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18529 case $host_os in
18530 irix5* | nonstopux*)
18531 libsuff= shlibsuff=
18532 ;;
18533 *)
18534 case $LD in # libtool.m4 will add one of these switches to LD
18535 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18536 libsuff= shlibsuff= libmagic=32-bit;;
18537 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18538 libsuff=32 shlibsuff=N32 libmagic=N32;;
18539 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18540 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18541 *) libsuff= shlibsuff= libmagic=never-match;;
18542 esac
18543 ;;
18544 esac
18545 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18546 shlibpath_overrides_runpath=no
18547 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18548 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18549 hardcode_into_libs=yes
18550 ;;
18551
18552# No shared lib support for Linux oldld, aout, or coff.
18553linux*oldld* | linux*aout* | linux*coff*)
18554 dynamic_linker=no
18555 ;;
18556
18557# This must be Linux ELF.
ted.mielczarek1adb1842009-12-21 13:12:20 +000018558linux* | k*bsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000018559 version_type=linux
18560 need_lib_prefix=no
18561 need_version=no
18562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18563 soname_spec='${libname}${release}${shared_ext}$major'
18564 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18565 shlibpath_var=LD_LIBRARY_PATH
18566 shlibpath_overrides_runpath=no
18567 # This implies no fast_install, which is unacceptable.
18568 # Some rework will be needed to allow for fast_install
18569 # before this can be enabled.
18570 hardcode_into_libs=yes
18571
18572 # Append ld.so.conf contents to the search path
18573 if test -f /etc/ld.so.conf; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000018574 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
brynercb91a2f2006-08-25 21:14:45 +000018575 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18576 fi
18577
18578 # We used to test for /lib/ld.so.1 and disable shared libraries on
18579 # powerpc, because MkLinux only supported shared libraries with the
18580 # GNU dynamic linker. Since this was broken with cross compilers,
18581 # most powerpc-linux boxes support dynamic linking these days and
18582 # people can always --disable-shared, the test was removed, and we
18583 # assume the GNU/Linux dynamic linker is in use.
18584 dynamic_linker='GNU/Linux ld.so'
18585 ;;
18586
brynercb91a2f2006-08-25 21:14:45 +000018587netbsd*)
18588 version_type=sunos
18589 need_lib_prefix=no
18590 need_version=no
18591 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18594 dynamic_linker='NetBSD (a.out) ld.so'
18595 else
18596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18597 soname_spec='${libname}${release}${shared_ext}$major'
18598 dynamic_linker='NetBSD ld.elf_so'
18599 fi
18600 shlibpath_var=LD_LIBRARY_PATH
18601 shlibpath_overrides_runpath=yes
18602 hardcode_into_libs=yes
18603 ;;
18604
18605newsos6)
18606 version_type=linux
18607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18608 shlibpath_var=LD_LIBRARY_PATH
18609 shlibpath_overrides_runpath=yes
18610 ;;
18611
18612nto-qnx*)
18613 version_type=linux
18614 need_lib_prefix=no
18615 need_version=no
18616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18617 soname_spec='${libname}${release}${shared_ext}$major'
18618 shlibpath_var=LD_LIBRARY_PATH
18619 shlibpath_overrides_runpath=yes
18620 ;;
18621
18622openbsd*)
18623 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000018624 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000018625 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000018626 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18627 case $host_os in
18628 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18629 *) need_version=no ;;
18630 esac
brynercb91a2f2006-08-25 21:14:45 +000018631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18632 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18633 shlibpath_var=LD_LIBRARY_PATH
18634 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18635 case $host_os in
18636 openbsd2.[89] | openbsd2.[89].*)
18637 shlibpath_overrides_runpath=no
18638 ;;
18639 *)
18640 shlibpath_overrides_runpath=yes
18641 ;;
18642 esac
18643 else
18644 shlibpath_overrides_runpath=yes
18645 fi
18646 ;;
18647
18648os2*)
18649 libname_spec='$name'
18650 shrext_cmds=".dll"
18651 need_lib_prefix=no
18652 library_names_spec='$libname${shared_ext} $libname.a'
18653 dynamic_linker='OS/2 ld.exe'
18654 shlibpath_var=LIBPATH
18655 ;;
18656
18657osf3* | osf4* | osf5*)
18658 version_type=osf
18659 need_lib_prefix=no
18660 need_version=no
18661 soname_spec='${libname}${release}${shared_ext}$major'
18662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18663 shlibpath_var=LD_LIBRARY_PATH
18664 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18665 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18666 ;;
18667
ted.mielczarek1adb1842009-12-21 13:12:20 +000018668rdos*)
18669 dynamic_linker=no
18670 ;;
18671
brynercb91a2f2006-08-25 21:14:45 +000018672solaris*)
18673 version_type=linux
18674 need_lib_prefix=no
18675 need_version=no
18676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18677 soname_spec='${libname}${release}${shared_ext}$major'
18678 shlibpath_var=LD_LIBRARY_PATH
18679 shlibpath_overrides_runpath=yes
18680 hardcode_into_libs=yes
18681 # ldd complains unless libraries are executable
18682 postinstall_cmds='chmod +x $lib'
18683 ;;
18684
18685sunos4*)
18686 version_type=sunos
18687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18688 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18689 shlibpath_var=LD_LIBRARY_PATH
18690 shlibpath_overrides_runpath=yes
18691 if test "$with_gnu_ld" = yes; then
18692 need_lib_prefix=no
18693 fi
18694 need_version=yes
18695 ;;
18696
mmentovai8c2a4de2006-09-20 16:20:15 +000018697sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000018698 version_type=linux
18699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18700 soname_spec='${libname}${release}${shared_ext}$major'
18701 shlibpath_var=LD_LIBRARY_PATH
18702 case $host_vendor in
18703 sni)
18704 shlibpath_overrides_runpath=no
18705 need_lib_prefix=no
18706 export_dynamic_flag_spec='${wl}-Blargedynsym'
18707 runpath_var=LD_RUN_PATH
18708 ;;
18709 siemens)
18710 need_lib_prefix=no
18711 ;;
18712 motorola)
18713 need_lib_prefix=no
18714 need_version=no
18715 shlibpath_overrides_runpath=no
18716 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18717 ;;
18718 esac
18719 ;;
18720
18721sysv4*MP*)
18722 if test -d /usr/nec ;then
18723 version_type=linux
18724 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18725 soname_spec='$libname${shared_ext}.$major'
18726 shlibpath_var=LD_LIBRARY_PATH
18727 fi
18728 ;;
18729
mmentovai8c2a4de2006-09-20 16:20:15 +000018730sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18731 version_type=freebsd-elf
18732 need_lib_prefix=no
18733 need_version=no
18734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18735 soname_spec='${libname}${release}${shared_ext}$major'
18736 shlibpath_var=LD_LIBRARY_PATH
18737 hardcode_into_libs=yes
18738 if test "$with_gnu_ld" = yes; then
18739 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18740 shlibpath_overrides_runpath=no
18741 else
18742 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18743 shlibpath_overrides_runpath=yes
18744 case $host_os in
18745 sco3.2v5*)
18746 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18747 ;;
18748 esac
18749 fi
18750 sys_lib_dlsearch_path_spec='/usr/lib'
18751 ;;
18752
brynercb91a2f2006-08-25 21:14:45 +000018753uts4*)
18754 version_type=linux
18755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18756 soname_spec='${libname}${release}${shared_ext}$major'
18757 shlibpath_var=LD_LIBRARY_PATH
18758 ;;
18759
18760*)
18761 dynamic_linker=no
18762 ;;
18763esac
mmentovai8c2a4de2006-09-20 16:20:15 +000018764{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18765echo "${ECHO_T}$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018766test "$dynamic_linker" = no && can_build_shared=no
18767
ted.mielczarek1adb1842009-12-21 13:12:20 +000018768if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18769 echo $ECHO_N "(cached) $ECHO_C" >&6
18770else
18771 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18772fi
18773
18774sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18775if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18776 echo $ECHO_N "(cached) $ECHO_C" >&6
18777else
18778 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18779fi
18780
18781sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18782
mmentovai8c2a4de2006-09-20 16:20:15 +000018783variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18784if test "$GCC" = yes; then
18785 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18786fi
18787
18788{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18789echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018790hardcode_action_GCJ=
18791if test -n "$hardcode_libdir_flag_spec_GCJ" || \
mmentovai8c2a4de2006-09-20 16:20:15 +000018792 test -n "$runpath_var_GCJ" || \
18793 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000018794
18795 # We can hardcode non-existant directories.
18796 if test "$hardcode_direct_GCJ" != no &&
18797 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18798 # have to relink, otherwise we might link with an installed library
18799 # when we should be linking with a yet-to-be-installed one
18800 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18801 test "$hardcode_minus_L_GCJ" != no; then
18802 # Linking always hardcodes the temporary library directory.
18803 hardcode_action_GCJ=relink
18804 else
18805 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18806 hardcode_action_GCJ=immediate
18807 fi
18808else
18809 # We cannot hardcode anything, or else we can only hardcode existing
18810 # directories.
18811 hardcode_action_GCJ=unsupported
18812fi
mmentovai8c2a4de2006-09-20 16:20:15 +000018813{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18814echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018815
18816if test "$hardcode_action_GCJ" = relink; then
18817 # Fast installation is not supported
18818 enable_fast_install=no
18819elif test "$shlibpath_overrides_runpath" = yes ||
18820 test "$enable_shared" = no; then
18821 # Fast installation is not necessary
18822 enable_fast_install=needless
18823fi
18824
brynercb91a2f2006-08-25 21:14:45 +000018825
18826# The else clause should only fire when bootstrapping the
18827# libtool distribution, otherwise you forgot to ship ltmain.sh
18828# with your package, and you will get complaints that there are
18829# no rules to generate ltmain.sh.
18830if test -f "$ltmain"; then
18831 # See if we are running on zsh, and set the options which allow our commands through
18832 # without removal of \ escapes.
18833 if test -n "${ZSH_VERSION+set}" ; then
18834 setopt NO_GLOB_SUBST
18835 fi
18836 # Now quote all the things that may contain metacharacters while being
18837 # careful not to overquote the AC_SUBSTed values. We take copies of the
18838 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000018839 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000018840 SED SHELL STRIP \
18841 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18842 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18843 deplibs_check_method reload_flag reload_cmds need_locks \
18844 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18845 lt_cv_sys_global_symbol_to_c_name_address \
18846 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18847 old_postinstall_cmds old_postuninstall_cmds \
18848 compiler_GCJ \
18849 CC_GCJ \
18850 LD_GCJ \
18851 lt_prog_compiler_wl_GCJ \
18852 lt_prog_compiler_pic_GCJ \
18853 lt_prog_compiler_static_GCJ \
18854 lt_prog_compiler_no_builtin_flag_GCJ \
18855 export_dynamic_flag_spec_GCJ \
18856 thread_safe_flag_spec_GCJ \
18857 whole_archive_flag_spec_GCJ \
18858 enable_shared_with_static_runtimes_GCJ \
18859 old_archive_cmds_GCJ \
18860 old_archive_from_new_cmds_GCJ \
18861 predep_objects_GCJ \
18862 postdep_objects_GCJ \
18863 predeps_GCJ \
18864 postdeps_GCJ \
18865 compiler_lib_search_path_GCJ \
ted.mielczarek1adb1842009-12-21 13:12:20 +000018866 compiler_lib_search_dirs_GCJ \
brynercb91a2f2006-08-25 21:14:45 +000018867 archive_cmds_GCJ \
18868 archive_expsym_cmds_GCJ \
18869 postinstall_cmds_GCJ \
18870 postuninstall_cmds_GCJ \
18871 old_archive_from_expsyms_cmds_GCJ \
18872 allow_undefined_flag_GCJ \
18873 no_undefined_flag_GCJ \
18874 export_symbols_cmds_GCJ \
18875 hardcode_libdir_flag_spec_GCJ \
18876 hardcode_libdir_flag_spec_ld_GCJ \
18877 hardcode_libdir_separator_GCJ \
18878 hardcode_automatic_GCJ \
18879 module_cmds_GCJ \
18880 module_expsym_cmds_GCJ \
18881 lt_cv_prog_compiler_c_o_GCJ \
ted.mielczarek1adb1842009-12-21 13:12:20 +000018882 fix_srcfile_path_GCJ \
brynercb91a2f2006-08-25 21:14:45 +000018883 exclude_expsyms_GCJ \
18884 include_expsyms_GCJ; do
18885
18886 case $var in
18887 old_archive_cmds_GCJ | \
18888 old_archive_from_new_cmds_GCJ | \
18889 archive_cmds_GCJ | \
18890 archive_expsym_cmds_GCJ | \
18891 module_cmds_GCJ | \
18892 module_expsym_cmds_GCJ | \
18893 old_archive_from_expsyms_cmds_GCJ | \
18894 export_symbols_cmds_GCJ | \
18895 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18896 postinstall_cmds | postuninstall_cmds | \
18897 old_postinstall_cmds | old_postuninstall_cmds | \
18898 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18899 # Double-quote double-evaled strings.
18900 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18901 ;;
18902 *)
18903 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18904 ;;
18905 esac
18906 done
18907
18908 case $lt_echo in
18909 *'\$0 --fallback-echo"')
18910 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18911 ;;
18912 esac
18913
18914cfgfile="$ofile"
18915
18916 cat <<__EOF__ >> "$cfgfile"
18917# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18918
18919# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18920
18921# Shell to use when invoking shell scripts.
18922SHELL=$lt_SHELL
18923
18924# Whether or not to build shared libraries.
18925build_libtool_libs=$enable_shared
18926
18927# Whether or not to build static libraries.
18928build_old_libs=$enable_static
18929
18930# Whether or not to add -lc for building shared libraries.
18931build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18932
18933# Whether or not to disallow shared libs when runtime libs are static
18934allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18935
18936# Whether or not to optimize for fast installation.
18937fast_install=$enable_fast_install
18938
18939# The host system.
18940host_alias=$host_alias
18941host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000018942host_os=$host_os
18943
18944# The build system.
18945build_alias=$build_alias
18946build=$build
18947build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000018948
18949# An echo program that does not interpret backslashes.
18950echo=$lt_echo
18951
18952# The archiver.
18953AR=$lt_AR
18954AR_FLAGS=$lt_AR_FLAGS
18955
18956# A C compiler.
18957LTCC=$lt_LTCC
18958
mmentovai8c2a4de2006-09-20 16:20:15 +000018959# LTCC compiler flags.
18960LTCFLAGS=$lt_LTCFLAGS
18961
brynercb91a2f2006-08-25 21:14:45 +000018962# A language-specific compiler.
18963CC=$lt_compiler_GCJ
18964
18965# Is the compiler the GNU C compiler?
18966with_gcc=$GCC_GCJ
18967
18968# An ERE matcher.
18969EGREP=$lt_EGREP
18970
18971# The linker used to build libraries.
18972LD=$lt_LD_GCJ
18973
18974# Whether we need hard or soft links.
18975LN_S=$lt_LN_S
18976
18977# A BSD-compatible nm program.
18978NM=$lt_NM
18979
18980# A symbol stripping program
18981STRIP=$lt_STRIP
18982
18983# Used to examine libraries when file_magic_cmd begins "file"
18984MAGIC_CMD=$MAGIC_CMD
18985
18986# Used on cygwin: DLL creation program.
18987DLLTOOL="$DLLTOOL"
18988
18989# Used on cygwin: object dumper.
18990OBJDUMP="$OBJDUMP"
18991
18992# Used on cygwin: assembler.
18993AS="$AS"
18994
18995# The name of the directory that contains temporary libtool files.
18996objdir=$objdir
18997
18998# How to create reloadable object files.
18999reload_flag=$lt_reload_flag
19000reload_cmds=$lt_reload_cmds
19001
19002# How to pass a linker flag through the compiler.
19003wl=$lt_lt_prog_compiler_wl_GCJ
19004
19005# Object file suffix (normally "o").
19006objext="$ac_objext"
19007
19008# Old archive suffix (normally "a").
19009libext="$libext"
19010
19011# Shared library suffix (normally ".so").
19012shrext_cmds='$shrext_cmds'
19013
19014# Executable file suffix (normally "").
19015exeext="$exeext"
19016
19017# Additional compiler flags for building library objects.
19018pic_flag=$lt_lt_prog_compiler_pic_GCJ
19019pic_mode=$pic_mode
19020
19021# What is the maximum length of a command?
19022max_cmd_len=$lt_cv_sys_max_cmd_len
19023
19024# Does compiler simultaneously support -c and -o options?
19025compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19026
mmentovai8c2a4de2006-09-20 16:20:15 +000019027# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000019028need_locks=$lt_need_locks
19029
19030# Do we need the lib prefix for modules?
19031need_lib_prefix=$need_lib_prefix
19032
19033# Do we need a version for libraries?
19034need_version=$need_version
19035
19036# Whether dlopen is supported.
19037dlopen_support=$enable_dlopen
19038
19039# Whether dlopen of programs is supported.
19040dlopen_self=$enable_dlopen_self
19041
19042# Whether dlopen of statically linked programs is supported.
19043dlopen_self_static=$enable_dlopen_self_static
19044
19045# Compiler flag to prevent dynamic linking.
19046link_static_flag=$lt_lt_prog_compiler_static_GCJ
19047
19048# Compiler flag to turn off builtin functions.
19049no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19050
19051# Compiler flag to allow reflexive dlopens.
19052export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19053
19054# Compiler flag to generate shared objects directly from archives.
19055whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19056
19057# Compiler flag to generate thread-safe objects.
19058thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19059
19060# Library versioning type.
19061version_type=$version_type
19062
19063# Format of library name prefix.
19064libname_spec=$lt_libname_spec
19065
19066# List of archive names. First name is the real one, the rest are links.
19067# The last name is the one that the linker finds with -lNAME.
19068library_names_spec=$lt_library_names_spec
19069
19070# The coded name of the library, if different from the real name.
19071soname_spec=$lt_soname_spec
19072
19073# Commands used to build and install an old-style archive.
19074RANLIB=$lt_RANLIB
19075old_archive_cmds=$lt_old_archive_cmds_GCJ
19076old_postinstall_cmds=$lt_old_postinstall_cmds
19077old_postuninstall_cmds=$lt_old_postuninstall_cmds
19078
19079# Create an old-style archive from a shared archive.
19080old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19081
19082# Create a temporary old-style archive to link instead of a shared archive.
19083old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19084
19085# Commands used to build and install a shared archive.
19086archive_cmds=$lt_archive_cmds_GCJ
19087archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19088postinstall_cmds=$lt_postinstall_cmds
19089postuninstall_cmds=$lt_postuninstall_cmds
19090
19091# Commands used to build a loadable module (assumed same as above if empty)
19092module_cmds=$lt_module_cmds_GCJ
19093module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19094
19095# Commands to strip libraries.
19096old_striplib=$lt_old_striplib
19097striplib=$lt_striplib
19098
19099# Dependencies to place before the objects being linked to create a
19100# shared library.
19101predep_objects=$lt_predep_objects_GCJ
19102
19103# Dependencies to place after the objects being linked to create a
19104# shared library.
19105postdep_objects=$lt_postdep_objects_GCJ
19106
19107# Dependencies to place before the objects being linked to create a
19108# shared library.
19109predeps=$lt_predeps_GCJ
19110
19111# Dependencies to place after the objects being linked to create a
19112# shared library.
19113postdeps=$lt_postdeps_GCJ
19114
ted.mielczarek1adb1842009-12-21 13:12:20 +000019115# The directories searched by this compiler when creating a shared
19116# library
19117compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19118
brynercb91a2f2006-08-25 21:14:45 +000019119# The library search path used internally by the compiler when linking
19120# a shared library.
19121compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19122
19123# Method to check whether dependent libraries are shared objects.
19124deplibs_check_method=$lt_deplibs_check_method
19125
19126# Command to use when deplibs_check_method == file_magic.
19127file_magic_cmd=$lt_file_magic_cmd
19128
19129# Flag that allows shared libraries with undefined symbols to be built.
19130allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19131
19132# Flag that forces no undefined symbols.
19133no_undefined_flag=$lt_no_undefined_flag_GCJ
19134
19135# Commands used to finish a libtool library installation in a directory.
19136finish_cmds=$lt_finish_cmds
19137
19138# Same as above, but a single script fragment to be evaled but not shown.
19139finish_eval=$lt_finish_eval
19140
19141# Take the output of nm and produce a listing of raw symbols and C names.
19142global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19143
19144# Transform the output of nm in a proper C declaration
19145global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19146
19147# Transform the output of nm in a C name address pair
19148global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19149
19150# This is the shared library runtime path variable.
19151runpath_var=$runpath_var
19152
19153# This is the shared library path variable.
19154shlibpath_var=$shlibpath_var
19155
19156# Is shlibpath searched before the hard-coded library search path?
19157shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19158
19159# How to hardcode a shared library path into an executable.
19160hardcode_action=$hardcode_action_GCJ
19161
19162# Whether we should hardcode library paths into libraries.
19163hardcode_into_libs=$hardcode_into_libs
19164
19165# Flag to hardcode \$libdir into a binary during linking.
19166# This must work even if \$libdir does not exist.
19167hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19168
19169# If ld is used when linking, flag to hardcode \$libdir into
19170# a binary during linking. This must work even if \$libdir does
19171# not exist.
19172hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19173
19174# Whether we need a single -rpath flag with a separated argument.
19175hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19176
19177# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19178# resulting binary.
19179hardcode_direct=$hardcode_direct_GCJ
19180
19181# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19182# resulting binary.
19183hardcode_minus_L=$hardcode_minus_L_GCJ
19184
19185# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19186# the resulting binary.
19187hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19188
19189# Set to yes if building a shared library automatically hardcodes DIR into the library
19190# and all subsequent libraries and executables linked against it.
19191hardcode_automatic=$hardcode_automatic_GCJ
19192
19193# Variables whose values should be saved in libtool wrapper scripts and
19194# restored at relink time.
19195variables_saved_for_relink="$variables_saved_for_relink"
19196
19197# Whether libtool must link a program against all its dependency libraries.
19198link_all_deplibs=$link_all_deplibs_GCJ
19199
19200# Compile-time system search path for libraries
19201sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19202
19203# Run-time system search path for libraries
19204sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19205
19206# Fix the shell variable \$srcfile for the compiler.
ted.mielczarek1adb1842009-12-21 13:12:20 +000019207fix_srcfile_path=$lt_fix_srcfile_path
brynercb91a2f2006-08-25 21:14:45 +000019208
19209# Set to yes if exported symbols are required.
19210always_export_symbols=$always_export_symbols_GCJ
19211
19212# The commands to list exported symbols.
19213export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19214
19215# The commands to extract the exported symbol list from a shared archive.
19216extract_expsyms_cmds=$lt_extract_expsyms_cmds
19217
19218# Symbols that should not be listed in the preloaded symbols.
19219exclude_expsyms=$lt_exclude_expsyms_GCJ
19220
19221# Symbols that must always be exported.
19222include_expsyms=$lt_include_expsyms_GCJ
19223
19224# ### END LIBTOOL TAG CONFIG: $tagname
19225
19226__EOF__
19227
19228
19229else
19230 # If there is no Makefile yet, we rely on a make rule to execute
19231 # `config.status --recheck' to rerun these tests and create the
19232 # libtool script then.
19233 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19234 if test -f "$ltmain_in"; then
19235 test -f Makefile && make "$ltmain"
19236 fi
19237fi
19238
19239
19240ac_ext=c
19241ac_cpp='$CPP $CPPFLAGS'
19242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19244ac_compiler_gnu=$ac_cv_c_compiler_gnu
19245
19246CC="$lt_save_CC"
19247
19248 else
19249 tagname=""
19250 fi
19251 ;;
19252
19253 RC)
19254
19255
brynercb91a2f2006-08-25 21:14:45 +000019256# Source file extension for RC test sources.
19257ac_ext=rc
19258
19259# Object file extension for compiled RC test sources.
19260objext=o
19261objext_RC=$objext
19262
19263# Code to be used in simple compile tests
ted.mielczarek1adb1842009-12-21 13:12:20 +000019264lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
brynercb91a2f2006-08-25 21:14:45 +000019265
19266# Code to be used in simple link tests
19267lt_simple_link_test_code="$lt_simple_compile_test_code"
19268
19269# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19270
19271# If no C compiler was specified, use CC.
19272LTCC=${LTCC-"$CC"}
19273
mmentovai8c2a4de2006-09-20 16:20:15 +000019274# If no C compiler flags were specified, use CFLAGS.
19275LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19276
brynercb91a2f2006-08-25 21:14:45 +000019277# Allow CC to be a program name with arguments.
19278compiler=$CC
19279
19280
mmentovai8c2a4de2006-09-20 16:20:15 +000019281# save warnings/boilerplate of simple test code
19282ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000019283echo "$lt_simple_compile_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000019284eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19285_lt_compiler_boilerplate=`cat conftest.err`
19286$rm conftest*
19287
19288ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000019289echo "$lt_simple_link_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000019290eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19291_lt_linker_boilerplate=`cat conftest.err`
ted.mielczarek1adb1842009-12-21 13:12:20 +000019292$rm -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000019293
19294
brynercb91a2f2006-08-25 21:14:45 +000019295# Allow CC to be a program name with arguments.
19296lt_save_CC="$CC"
19297CC=${RC-"windres"}
19298compiler=$CC
19299compiler_RC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +000019300for cc_temp in $compiler""; do
19301 case $cc_temp in
19302 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19303 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19304 \-*) ;;
19305 *) break;;
19306 esac
19307done
19308cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19309
brynercb91a2f2006-08-25 21:14:45 +000019310lt_cv_prog_compiler_c_o_RC=yes
19311
19312# The else clause should only fire when bootstrapping the
19313# libtool distribution, otherwise you forgot to ship ltmain.sh
19314# with your package, and you will get complaints that there are
19315# no rules to generate ltmain.sh.
19316if test -f "$ltmain"; then
19317 # See if we are running on zsh, and set the options which allow our commands through
19318 # without removal of \ escapes.
19319 if test -n "${ZSH_VERSION+set}" ; then
19320 setopt NO_GLOB_SUBST
19321 fi
19322 # Now quote all the things that may contain metacharacters while being
19323 # careful not to overquote the AC_SUBSTed values. We take copies of the
19324 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000019325 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000019326 SED SHELL STRIP \
19327 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19328 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19329 deplibs_check_method reload_flag reload_cmds need_locks \
19330 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19331 lt_cv_sys_global_symbol_to_c_name_address \
19332 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19333 old_postinstall_cmds old_postuninstall_cmds \
19334 compiler_RC \
19335 CC_RC \
19336 LD_RC \
19337 lt_prog_compiler_wl_RC \
19338 lt_prog_compiler_pic_RC \
19339 lt_prog_compiler_static_RC \
19340 lt_prog_compiler_no_builtin_flag_RC \
19341 export_dynamic_flag_spec_RC \
19342 thread_safe_flag_spec_RC \
19343 whole_archive_flag_spec_RC \
19344 enable_shared_with_static_runtimes_RC \
19345 old_archive_cmds_RC \
19346 old_archive_from_new_cmds_RC \
19347 predep_objects_RC \
19348 postdep_objects_RC \
19349 predeps_RC \
19350 postdeps_RC \
19351 compiler_lib_search_path_RC \
ted.mielczarek1adb1842009-12-21 13:12:20 +000019352 compiler_lib_search_dirs_RC \
brynercb91a2f2006-08-25 21:14:45 +000019353 archive_cmds_RC \
19354 archive_expsym_cmds_RC \
19355 postinstall_cmds_RC \
19356 postuninstall_cmds_RC \
19357 old_archive_from_expsyms_cmds_RC \
19358 allow_undefined_flag_RC \
19359 no_undefined_flag_RC \
19360 export_symbols_cmds_RC \
19361 hardcode_libdir_flag_spec_RC \
19362 hardcode_libdir_flag_spec_ld_RC \
19363 hardcode_libdir_separator_RC \
19364 hardcode_automatic_RC \
19365 module_cmds_RC \
19366 module_expsym_cmds_RC \
19367 lt_cv_prog_compiler_c_o_RC \
ted.mielczarek1adb1842009-12-21 13:12:20 +000019368 fix_srcfile_path_RC \
brynercb91a2f2006-08-25 21:14:45 +000019369 exclude_expsyms_RC \
19370 include_expsyms_RC; do
19371
19372 case $var in
19373 old_archive_cmds_RC | \
19374 old_archive_from_new_cmds_RC | \
19375 archive_cmds_RC | \
19376 archive_expsym_cmds_RC | \
19377 module_cmds_RC | \
19378 module_expsym_cmds_RC | \
19379 old_archive_from_expsyms_cmds_RC | \
19380 export_symbols_cmds_RC | \
19381 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19382 postinstall_cmds | postuninstall_cmds | \
19383 old_postinstall_cmds | old_postuninstall_cmds | \
19384 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19385 # Double-quote double-evaled strings.
19386 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19387 ;;
19388 *)
19389 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19390 ;;
19391 esac
19392 done
19393
19394 case $lt_echo in
19395 *'\$0 --fallback-echo"')
19396 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19397 ;;
19398 esac
19399
19400cfgfile="$ofile"
19401
19402 cat <<__EOF__ >> "$cfgfile"
19403# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19404
19405# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19406
19407# Shell to use when invoking shell scripts.
19408SHELL=$lt_SHELL
19409
19410# Whether or not to build shared libraries.
19411build_libtool_libs=$enable_shared
19412
19413# Whether or not to build static libraries.
19414build_old_libs=$enable_static
19415
19416# Whether or not to add -lc for building shared libraries.
19417build_libtool_need_lc=$archive_cmds_need_lc_RC
19418
19419# Whether or not to disallow shared libs when runtime libs are static
19420allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19421
19422# Whether or not to optimize for fast installation.
19423fast_install=$enable_fast_install
19424
19425# The host system.
19426host_alias=$host_alias
19427host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000019428host_os=$host_os
19429
19430# The build system.
19431build_alias=$build_alias
19432build=$build
19433build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000019434
19435# An echo program that does not interpret backslashes.
19436echo=$lt_echo
19437
19438# The archiver.
19439AR=$lt_AR
19440AR_FLAGS=$lt_AR_FLAGS
19441
19442# A C compiler.
19443LTCC=$lt_LTCC
19444
mmentovai8c2a4de2006-09-20 16:20:15 +000019445# LTCC compiler flags.
19446LTCFLAGS=$lt_LTCFLAGS
19447
brynercb91a2f2006-08-25 21:14:45 +000019448# A language-specific compiler.
19449CC=$lt_compiler_RC
19450
19451# Is the compiler the GNU C compiler?
19452with_gcc=$GCC_RC
19453
19454# An ERE matcher.
19455EGREP=$lt_EGREP
19456
19457# The linker used to build libraries.
19458LD=$lt_LD_RC
19459
19460# Whether we need hard or soft links.
19461LN_S=$lt_LN_S
19462
19463# A BSD-compatible nm program.
19464NM=$lt_NM
19465
19466# A symbol stripping program
19467STRIP=$lt_STRIP
19468
19469# Used to examine libraries when file_magic_cmd begins "file"
19470MAGIC_CMD=$MAGIC_CMD
19471
19472# Used on cygwin: DLL creation program.
19473DLLTOOL="$DLLTOOL"
19474
19475# Used on cygwin: object dumper.
19476OBJDUMP="$OBJDUMP"
19477
19478# Used on cygwin: assembler.
19479AS="$AS"
19480
19481# The name of the directory that contains temporary libtool files.
19482objdir=$objdir
19483
19484# How to create reloadable object files.
19485reload_flag=$lt_reload_flag
19486reload_cmds=$lt_reload_cmds
19487
19488# How to pass a linker flag through the compiler.
19489wl=$lt_lt_prog_compiler_wl_RC
19490
19491# Object file suffix (normally "o").
19492objext="$ac_objext"
19493
19494# Old archive suffix (normally "a").
19495libext="$libext"
19496
19497# Shared library suffix (normally ".so").
19498shrext_cmds='$shrext_cmds'
19499
19500# Executable file suffix (normally "").
19501exeext="$exeext"
19502
19503# Additional compiler flags for building library objects.
19504pic_flag=$lt_lt_prog_compiler_pic_RC
19505pic_mode=$pic_mode
19506
19507# What is the maximum length of a command?
19508max_cmd_len=$lt_cv_sys_max_cmd_len
19509
19510# Does compiler simultaneously support -c and -o options?
19511compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19512
mmentovai8c2a4de2006-09-20 16:20:15 +000019513# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000019514need_locks=$lt_need_locks
19515
19516# Do we need the lib prefix for modules?
19517need_lib_prefix=$need_lib_prefix
19518
19519# Do we need a version for libraries?
19520need_version=$need_version
19521
19522# Whether dlopen is supported.
19523dlopen_support=$enable_dlopen
19524
19525# Whether dlopen of programs is supported.
19526dlopen_self=$enable_dlopen_self
19527
19528# Whether dlopen of statically linked programs is supported.
19529dlopen_self_static=$enable_dlopen_self_static
19530
19531# Compiler flag to prevent dynamic linking.
19532link_static_flag=$lt_lt_prog_compiler_static_RC
19533
19534# Compiler flag to turn off builtin functions.
19535no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19536
19537# Compiler flag to allow reflexive dlopens.
19538export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19539
19540# Compiler flag to generate shared objects directly from archives.
19541whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19542
19543# Compiler flag to generate thread-safe objects.
19544thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19545
19546# Library versioning type.
19547version_type=$version_type
19548
19549# Format of library name prefix.
19550libname_spec=$lt_libname_spec
19551
19552# List of archive names. First name is the real one, the rest are links.
19553# The last name is the one that the linker finds with -lNAME.
19554library_names_spec=$lt_library_names_spec
19555
19556# The coded name of the library, if different from the real name.
19557soname_spec=$lt_soname_spec
19558
19559# Commands used to build and install an old-style archive.
19560RANLIB=$lt_RANLIB
19561old_archive_cmds=$lt_old_archive_cmds_RC
19562old_postinstall_cmds=$lt_old_postinstall_cmds
19563old_postuninstall_cmds=$lt_old_postuninstall_cmds
19564
19565# Create an old-style archive from a shared archive.
19566old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19567
19568# Create a temporary old-style archive to link instead of a shared archive.
19569old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19570
19571# Commands used to build and install a shared archive.
19572archive_cmds=$lt_archive_cmds_RC
19573archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19574postinstall_cmds=$lt_postinstall_cmds
19575postuninstall_cmds=$lt_postuninstall_cmds
19576
19577# Commands used to build a loadable module (assumed same as above if empty)
19578module_cmds=$lt_module_cmds_RC
19579module_expsym_cmds=$lt_module_expsym_cmds_RC
19580
19581# Commands to strip libraries.
19582old_striplib=$lt_old_striplib
19583striplib=$lt_striplib
19584
19585# Dependencies to place before the objects being linked to create a
19586# shared library.
19587predep_objects=$lt_predep_objects_RC
19588
19589# Dependencies to place after the objects being linked to create a
19590# shared library.
19591postdep_objects=$lt_postdep_objects_RC
19592
19593# Dependencies to place before the objects being linked to create a
19594# shared library.
19595predeps=$lt_predeps_RC
19596
19597# Dependencies to place after the objects being linked to create a
19598# shared library.
19599postdeps=$lt_postdeps_RC
19600
ted.mielczarek1adb1842009-12-21 13:12:20 +000019601# The directories searched by this compiler when creating a shared
19602# library
19603compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19604
brynercb91a2f2006-08-25 21:14:45 +000019605# The library search path used internally by the compiler when linking
19606# a shared library.
19607compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19608
19609# Method to check whether dependent libraries are shared objects.
19610deplibs_check_method=$lt_deplibs_check_method
19611
19612# Command to use when deplibs_check_method == file_magic.
19613file_magic_cmd=$lt_file_magic_cmd
19614
19615# Flag that allows shared libraries with undefined symbols to be built.
19616allow_undefined_flag=$lt_allow_undefined_flag_RC
19617
19618# Flag that forces no undefined symbols.
19619no_undefined_flag=$lt_no_undefined_flag_RC
19620
19621# Commands used to finish a libtool library installation in a directory.
19622finish_cmds=$lt_finish_cmds
19623
19624# Same as above, but a single script fragment to be evaled but not shown.
19625finish_eval=$lt_finish_eval
19626
19627# Take the output of nm and produce a listing of raw symbols and C names.
19628global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19629
19630# Transform the output of nm in a proper C declaration
19631global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19632
19633# Transform the output of nm in a C name address pair
19634global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19635
19636# This is the shared library runtime path variable.
19637runpath_var=$runpath_var
19638
19639# This is the shared library path variable.
19640shlibpath_var=$shlibpath_var
19641
19642# Is shlibpath searched before the hard-coded library search path?
19643shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19644
19645# How to hardcode a shared library path into an executable.
19646hardcode_action=$hardcode_action_RC
19647
19648# Whether we should hardcode library paths into libraries.
19649hardcode_into_libs=$hardcode_into_libs
19650
19651# Flag to hardcode \$libdir into a binary during linking.
19652# This must work even if \$libdir does not exist.
19653hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19654
19655# If ld is used when linking, flag to hardcode \$libdir into
19656# a binary during linking. This must work even if \$libdir does
19657# not exist.
19658hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19659
19660# Whether we need a single -rpath flag with a separated argument.
19661hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19662
19663# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19664# resulting binary.
19665hardcode_direct=$hardcode_direct_RC
19666
19667# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19668# resulting binary.
19669hardcode_minus_L=$hardcode_minus_L_RC
19670
19671# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19672# the resulting binary.
19673hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19674
19675# Set to yes if building a shared library automatically hardcodes DIR into the library
19676# and all subsequent libraries and executables linked against it.
19677hardcode_automatic=$hardcode_automatic_RC
19678
19679# Variables whose values should be saved in libtool wrapper scripts and
19680# restored at relink time.
19681variables_saved_for_relink="$variables_saved_for_relink"
19682
19683# Whether libtool must link a program against all its dependency libraries.
19684link_all_deplibs=$link_all_deplibs_RC
19685
19686# Compile-time system search path for libraries
19687sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19688
19689# Run-time system search path for libraries
19690sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19691
19692# Fix the shell variable \$srcfile for the compiler.
ted.mielczarek1adb1842009-12-21 13:12:20 +000019693fix_srcfile_path=$lt_fix_srcfile_path
brynercb91a2f2006-08-25 21:14:45 +000019694
19695# Set to yes if exported symbols are required.
19696always_export_symbols=$always_export_symbols_RC
19697
19698# The commands to list exported symbols.
19699export_symbols_cmds=$lt_export_symbols_cmds_RC
19700
19701# The commands to extract the exported symbol list from a shared archive.
19702extract_expsyms_cmds=$lt_extract_expsyms_cmds
19703
19704# Symbols that should not be listed in the preloaded symbols.
19705exclude_expsyms=$lt_exclude_expsyms_RC
19706
19707# Symbols that must always be exported.
19708include_expsyms=$lt_include_expsyms_RC
19709
19710# ### END LIBTOOL TAG CONFIG: $tagname
19711
19712__EOF__
19713
19714
19715else
19716 # If there is no Makefile yet, we rely on a make rule to execute
19717 # `config.status --recheck' to rerun these tests and create the
19718 # libtool script then.
19719 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19720 if test -f "$ltmain_in"; then
19721 test -f Makefile && make "$ltmain"
19722 fi
19723fi
19724
19725
19726ac_ext=c
19727ac_cpp='$CPP $CPPFLAGS'
19728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19730ac_compiler_gnu=$ac_cv_c_compiler_gnu
19731
19732CC="$lt_save_CC"
19733
19734 ;;
19735
19736 *)
19737 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19738echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19739 { (exit 1); exit 1; }; }
19740 ;;
19741 esac
19742
19743 # Append the new tag name to the list of available tags.
19744 if test -n "$tagname" ; then
19745 available_tags="$available_tags $tagname"
19746 fi
19747 fi
19748 done
19749 IFS="$lt_save_ifs"
19750
19751 # Now substitute the updated list of available tags.
19752 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19753 mv "${ofile}T" "$ofile"
19754 chmod +x "$ofile"
19755 else
19756 rm -f "${ofile}T"
19757 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19758echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19759 { (exit 1); exit 1; }; }
19760 fi
19761fi
19762
19763
19764
19765# This can be used to rebuild libtool when needed
19766LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19767
19768# Always use our own libtool.
19769LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19770
19771# Prevent multiple expansion
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
mmentovai8c2a4de2006-09-20 16:20:15 +000019794{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19795echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000019796if test "${ac_cv_header_stdc+set}" = set; then
19797 echo $ECHO_N "(cached) $ECHO_C" >&6
19798else
19799 cat >conftest.$ac_ext <<_ACEOF
19800/* confdefs.h. */
19801_ACEOF
19802cat confdefs.h >>conftest.$ac_ext
19803cat >>conftest.$ac_ext <<_ACEOF
19804/* end confdefs.h. */
19805#include <stdlib.h>
19806#include <stdarg.h>
19807#include <string.h>
19808#include <float.h>
19809
19810int
19811main ()
19812{
19813
19814 ;
19815 return 0;
19816}
19817_ACEOF
19818rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +000019819if { (ac_try="$ac_compile"
19820case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19823esac
19824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000019826 ac_status=$?
19827 grep -v '^ *+' conftest.er1 >conftest.err
19828 rm -f conftest.er1
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000019831 (exit $ac_status); } && {
19832 test -z "$ac_c_werror_flag" ||
19833 test ! -s conftest.err
19834 } && test -s conftest.$ac_objext; then
brynercb91a2f2006-08-25 21:14:45 +000019835 ac_cv_header_stdc=yes
19836else
19837 echo "$as_me: failed program was:" >&5
19838sed 's/^/| /' conftest.$ac_ext >&5
19839
mmentovai8c2a4de2006-09-20 16:20:15 +000019840 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +000019841fi
mmentovai8c2a4de2006-09-20 16:20:15 +000019842
19843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000019844
19845if test $ac_cv_header_stdc = yes; then
19846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19847 cat >conftest.$ac_ext <<_ACEOF
19848/* confdefs.h. */
19849_ACEOF
19850cat confdefs.h >>conftest.$ac_ext
19851cat >>conftest.$ac_ext <<_ACEOF
19852/* end confdefs.h. */
19853#include <string.h>
19854
19855_ACEOF
19856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19857 $EGREP "memchr" >/dev/null 2>&1; then
19858 :
19859else
19860 ac_cv_header_stdc=no
19861fi
19862rm -f conftest*
19863
19864fi
19865
19866if test $ac_cv_header_stdc = yes; then
19867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19868 cat >conftest.$ac_ext <<_ACEOF
19869/* confdefs.h. */
19870_ACEOF
19871cat confdefs.h >>conftest.$ac_ext
19872cat >>conftest.$ac_ext <<_ACEOF
19873/* end confdefs.h. */
19874#include <stdlib.h>
19875
19876_ACEOF
19877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19878 $EGREP "free" >/dev/null 2>&1; then
19879 :
19880else
19881 ac_cv_header_stdc=no
19882fi
19883rm -f conftest*
19884
19885fi
19886
19887if test $ac_cv_header_stdc = yes; then
19888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19889 if test "$cross_compiling" = yes; then
19890 :
19891else
19892 cat >conftest.$ac_ext <<_ACEOF
19893/* confdefs.h. */
19894_ACEOF
19895cat confdefs.h >>conftest.$ac_ext
19896cat >>conftest.$ac_ext <<_ACEOF
19897/* end confdefs.h. */
19898#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +000019899#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +000019900#if ((' ' & 0x0FF) == 0x020)
19901# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19902# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19903#else
19904# define ISLOWER(c) \
19905 (('a' <= (c) && (c) <= 'i') \
19906 || ('j' <= (c) && (c) <= 'r') \
19907 || ('s' <= (c) && (c) <= 'z'))
19908# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19909#endif
19910
19911#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19912int
19913main ()
19914{
19915 int i;
19916 for (i = 0; i < 256; i++)
19917 if (XOR (islower (i), ISLOWER (i))
19918 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +000019919 return 2;
19920 return 0;
brynercb91a2f2006-08-25 21:14:45 +000019921}
19922_ACEOF
19923rm -f conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000019924if { (ac_try="$ac_link"
19925case "(($ac_try" in
19926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19927 *) ac_try_echo=$ac_try;;
19928esac
19929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19930 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000019931 ac_status=$?
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000019934 { (case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19937esac
19938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000019940 ac_status=$?
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; }; then
19943 :
19944else
19945 echo "$as_me: program exited with status $ac_status" >&5
19946echo "$as_me: failed program was:" >&5
19947sed 's/^/| /' conftest.$ac_ext >&5
19948
19949( exit $ac_status )
19950ac_cv_header_stdc=no
19951fi
mmentovai8c2a4de2006-09-20 16:20:15 +000019952rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19953fi
19954
19955
brynercb91a2f2006-08-25 21:14:45 +000019956fi
19957fi
mmentovai8c2a4de2006-09-20 16:20:15 +000019958{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19959echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000019960if test $ac_cv_header_stdc = yes; then
19961
19962cat >>confdefs.h <<\_ACEOF
19963#define STDC_HEADERS 1
19964_ACEOF
19965
19966fi
19967
19968
mmentovai0dbedc92006-09-25 21:16:15 +000019969# Check whether --enable-selftest was given.
19970if test "${enable_selftest+set}" = set; then
19971 enableval=$enable_selftest; case "${enableval}" in
19972 yes)
19973 selftest=true
19974 ;;
19975 no)
19976 selftest=false
19977 ;;
19978 *)
19979 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-selftest" >&5
19980echo "$as_me: error: bad value ${enableval} for --enable-selftest" >&2;}
19981 { (exit 1); exit 1; }; }
19982 ;;
19983 esac
19984else
19985 selftest=false
19986fi
19987
mmentovaiaf3c43f2007-05-17 18:34:37 +000019988 if test x$selftest = xtrue; then
mmentovai0dbedc92006-09-25 21:16:15 +000019989 SELFTEST_TRUE=
19990 SELFTEST_FALSE='#'
19991else
19992 SELFTEST_TRUE='#'
19993 SELFTEST_FALSE=
19994fi
19995
19996
mmentovai8c2a4de2006-09-20 16:20:15 +000019997ac_config_files="$ac_config_files Makefile"
brynercb91a2f2006-08-25 21:14:45 +000019998
19999cat >confcache <<\_ACEOF
20000# This file is a shell script that caches the results of configure
20001# tests run on this system so they can be shared between configure
20002# scripts and configure runs, see configure's option --config-cache.
20003# It is not useful on other systems. If it contains results you don't
20004# want to keep, you may remove or edit it.
20005#
20006# config.status only pays attention to the cache file if you give it
20007# the --recheck option to rerun configure.
20008#
20009# `ac_cv_env_foo' variables (set or unset) will be overridden when
20010# loading this file, other *unset* `ac_cv_foo' will be assigned the
20011# following values.
20012
20013_ACEOF
20014
20015# The following way of writing the cache mishandles newlines in values,
20016# but we know of no workaround that is simple, portable, and efficient.
mmentovai8c2a4de2006-09-20 16:20:15 +000020017# So, we kill variables containing newlines.
brynercb91a2f2006-08-25 21:14:45 +000020018# Ultrix sh set writes to stderr and can't be redirected directly,
20019# and sets the high bit in the cache file unless we assign to the vars.
mmentovai8c2a4de2006-09-20 16:20:15 +000020020(
20021 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20022 eval ac_val=\$$ac_var
20023 case $ac_val in #(
20024 *${as_nl}*)
20025 case $ac_var in #(
20026 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20027echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20028 esac
20029 case $ac_var in #(
20030 _ | IFS | as_nl) ;; #(
20031 *) $as_unset $ac_var ;;
20032 esac ;;
20033 esac
20034 done
20035
brynercb91a2f2006-08-25 21:14:45 +000020036 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +000020037 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20038 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +000020039 # `set' does not quote correctly, so add quotes (double-quote
20040 # substitution turns \\\\ into \\, and sed turns \\ into \).
20041 sed -n \
20042 "s/'/'\\\\''/g;
20043 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mmentovai8c2a4de2006-09-20 16:20:15 +000020044 ;; #(
brynercb91a2f2006-08-25 21:14:45 +000020045 *)
20046 # `set' quotes correctly as required by POSIX, so do not add quotes.
mmentovai8c2a4de2006-09-20 16:20:15 +000020047 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +000020048 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000020049 esac |
20050 sort
20051) |
brynercb91a2f2006-08-25 21:14:45 +000020052 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +000020053 /^ac_cv_env_/b end
brynercb91a2f2006-08-25 21:14:45 +000020054 t clear
mmentovai8c2a4de2006-09-20 16:20:15 +000020055 :clear
brynercb91a2f2006-08-25 21:14:45 +000020056 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20057 t end
mmentovai8c2a4de2006-09-20 16:20:15 +000020058 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20059 :end' >>confcache
20060if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20061 if test -w "$cache_file"; then
20062 test "x$cache_file" != "x/dev/null" &&
20063 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20064echo "$as_me: updating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000020065 cat confcache >$cache_file
20066 else
mmentovai8c2a4de2006-09-20 16:20:15 +000020067 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20068echo "$as_me: not updating unwritable cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000020069 fi
20070fi
20071rm -f confcache
20072
20073test "x$prefix" = xNONE && prefix=$ac_default_prefix
20074# Let make expand exec_prefix.
20075test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20076
brynercb91a2f2006-08-25 21:14:45 +000020077DEFS=-DHAVE_CONFIG_H
20078
20079ac_libobjs=
20080ac_ltlibobjs=
20081for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20082 # 1. Remove the extension, and $U if already installed.
mmentovai8c2a4de2006-09-20 16:20:15 +000020083 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20084 ac_i=`echo "$ac_i" | sed "$ac_script"`
20085 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20086 # will be set to the directory where LIBOBJS objects are built.
20087 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20088 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
brynercb91a2f2006-08-25 21:14:45 +000020089done
20090LIBOBJS=$ac_libobjs
20091
20092LTLIBOBJS=$ac_ltlibobjs
20093
20094
20095if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20096 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20097Usually this means the macro was only invoked conditionally." >&5
20098echo "$as_me: error: conditional \"AMDEP\" was never defined.
20099Usually this means the macro was only invoked conditionally." >&2;}
20100 { (exit 1); exit 1; }; }
20101fi
20102if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20103 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20104Usually this means the macro was only invoked conditionally." >&5
20105echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20106Usually this means the macro was only invoked conditionally." >&2;}
20107 { (exit 1); exit 1; }; }
20108fi
20109if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20110 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20111Usually this means the macro was only invoked conditionally." >&5
20112echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20113Usually this means the macro was only invoked conditionally." >&2;}
20114 { (exit 1); exit 1; }; }
20115fi
mmentovai0dbedc92006-09-25 21:16:15 +000020116if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
20117 { { echo "$as_me:$LINENO: error: conditional \"SELFTEST\" was never defined.
20118Usually this means the macro was only invoked conditionally." >&5
20119echo "$as_me: error: conditional \"SELFTEST\" was never defined.
20120Usually this means the macro was only invoked conditionally." >&2;}
20121 { (exit 1); exit 1; }; }
20122fi
brynercb91a2f2006-08-25 21:14:45 +000020123
20124: ${CONFIG_STATUS=./config.status}
20125ac_clean_files_save=$ac_clean_files
20126ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20127{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20128echo "$as_me: creating $CONFIG_STATUS" >&6;}
20129cat >$CONFIG_STATUS <<_ACEOF
20130#! $SHELL
20131# Generated by $as_me.
20132# Run this file to recreate the current configuration.
20133# Compiler output produced by configure, useful for debugging
20134# configure, is in config.log if it exists.
20135
20136debug=false
20137ac_cs_recheck=false
20138ac_cs_silent=false
20139SHELL=\${CONFIG_SHELL-$SHELL}
20140_ACEOF
20141
20142cat >>$CONFIG_STATUS <<\_ACEOF
20143## --------------------- ##
20144## M4sh Initialization. ##
20145## --------------------- ##
20146
mmentovaiaf3c43f2007-05-17 18:34:37 +000020147# Be more Bourne compatible
20148DUALCASE=1; export DUALCASE # for MKS sh
brynercb91a2f2006-08-25 21:14:45 +000020149if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20150 emulate sh
20151 NULLCMD=:
20152 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20153 # is contrary to our usage. Disable this feature.
20154 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000020155 setopt NO_GLOB_SUBST
20156else
mmentovaiaf3c43f2007-05-17 18:34:37 +000020157 case `(set -o) 2>/dev/null` in
20158 *posix*) set -o posix ;;
20159esac
20160
brynercb91a2f2006-08-25 21:14:45 +000020161fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000020162
20163
brynercb91a2f2006-08-25 21:14:45 +000020164
brynercb91a2f2006-08-25 21:14:45 +000020165
mmentovai8c2a4de2006-09-20 16:20:15 +000020166# PATH needs CR
brynercb91a2f2006-08-25 21:14:45 +000020167# Avoid depending upon Character Ranges.
20168as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20169as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20170as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20171as_cr_digits='0123456789'
20172as_cr_alnum=$as_cr_Letters$as_cr_digits
20173
20174# The user is always right.
20175if test "${PATH_SEPARATOR+set}" != set; then
20176 echo "#! /bin/sh" >conf$$.sh
20177 echo "exit 0" >>conf$$.sh
20178 chmod +x conf$$.sh
20179 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20180 PATH_SEPARATOR=';'
20181 else
20182 PATH_SEPARATOR=:
20183 fi
20184 rm -f conf$$.sh
20185fi
20186
mmentovai8c2a4de2006-09-20 16:20:15 +000020187# Support unset when possible.
20188if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20189 as_unset=unset
20190else
20191 as_unset=false
20192fi
brynercb91a2f2006-08-25 21:14:45 +000020193
mmentovai8c2a4de2006-09-20 16:20:15 +000020194
20195# IFS
20196# We need space, tab and new line, in precisely that order. Quoting is
20197# there to prevent editors from complaining about space-tab.
20198# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20199# splitting by setting IFS to empty value.)
20200as_nl='
20201'
20202IFS=" "" $as_nl"
20203
20204# Find who we are. Look in the path if we contain no directory separator.
20205case $0 in
20206 *[\\/]* ) as_myself=$0 ;;
20207 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000020208for as_dir in $PATH
20209do
20210 IFS=$as_save_IFS
20211 test -z "$as_dir" && as_dir=.
20212 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20213done
mmentovai8c2a4de2006-09-20 16:20:15 +000020214IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +000020215
mmentovai8c2a4de2006-09-20 16:20:15 +000020216 ;;
20217esac
20218# We did not find ourselves, most probably we were run as `sh COMMAND'
20219# in which case we are not to be found in the path.
20220if test "x$as_myself" = x; then
20221 as_myself=$0
20222fi
20223if test ! -f "$as_myself"; then
20224 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20225 { (exit 1); exit 1; }
20226fi
20227
20228# Work around bugs in pre-3.0 UWIN ksh.
20229for as_var in ENV MAIL MAILPATH
20230do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20231done
20232PS1='$ '
20233PS2='> '
20234PS4='+ '
20235
20236# NLS nuisances.
20237for as_var in \
20238 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20239 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20240 LC_TELEPHONE LC_TIME
brynercb91a2f2006-08-25 21:14:45 +000020241do
mmentovai8c2a4de2006-09-20 16:20:15 +000020242 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20243 eval $as_var=C; export $as_var
20244 else
20245 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20246 fi
20247done
20248
20249# Required to use basename.
20250if expr a : '\(a\)' >/dev/null 2>&1 &&
20251 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20252 as_expr=expr
20253else
20254 as_expr=false
20255fi
20256
20257if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20258 as_basename=basename
20259else
20260 as_basename=false
20261fi
20262
20263
20264# Name of the executable.
20265as_me=`$as_basename -- "$0" ||
20266$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20267 X"$0" : 'X\(//\)$' \| \
20268 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20269echo X/"$0" |
20270 sed '/^.*\/\([^/][^/]*\)\/*$/{
20271 s//\1/
20272 q
20273 }
20274 /^X\/\(\/\/\)$/{
20275 s//\1/
20276 q
20277 }
20278 /^X\/\(\/\).*/{
20279 s//\1/
20280 q
20281 }
20282 s/.*/./; q'`
20283
20284# CDPATH.
20285$as_unset CDPATH
20286
20287
20288
brynercb91a2f2006-08-25 21:14:45 +000020289 as_lineno_1=$LINENO
20290 as_lineno_2=$LINENO
brynercb91a2f2006-08-25 21:14:45 +000020291 test "x$as_lineno_1" != "x$as_lineno_2" &&
mmentovai8c2a4de2006-09-20 16:20:15 +000020292 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
brynercb91a2f2006-08-25 21:14:45 +000020293
20294 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20295 # uniformly replaced by the line number. The first 'sed' inserts a
mmentovai8c2a4de2006-09-20 16:20:15 +000020296 # line-number line after each line using $LINENO; the second 'sed'
20297 # does the real work. The second script uses 'N' to pair each
20298 # line-number line with the line containing $LINENO, and appends
20299 # trailing '-' during substitution so that $LINENO is not a special
20300 # case at line end.
brynercb91a2f2006-08-25 21:14:45 +000020301 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mmentovai8c2a4de2006-09-20 16:20:15 +000020302 # scripts with optimization help from Paolo Bonzini. Blame Lee
20303 # E. McMahon (1931-1989) for sed's syntax. :-)
20304 sed -n '
20305 p
20306 /[$]LINENO/=
20307 ' <$as_myself |
brynercb91a2f2006-08-25 21:14:45 +000020308 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +000020309 s/[$]LINENO.*/&-/
20310 t lineno
20311 b
20312 :lineno
brynercb91a2f2006-08-25 21:14:45 +000020313 N
mmentovai8c2a4de2006-09-20 16:20:15 +000020314 :loop
20315 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
brynercb91a2f2006-08-25 21:14:45 +000020316 t loop
mmentovai8c2a4de2006-09-20 16:20:15 +000020317 s/-\n.*//
brynercb91a2f2006-08-25 21:14:45 +000020318 ' >$as_me.lineno &&
mmentovai8c2a4de2006-09-20 16:20:15 +000020319 chmod +x "$as_me.lineno" ||
20320 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
brynercb91a2f2006-08-25 21:14:45 +000020321 { (exit 1); exit 1; }; }
20322
20323 # Don't try to exec as it changes $[0], causing all sort of problems
20324 # (the dirname of $[0] is not the place where we might find the
mmentovai8c2a4de2006-09-20 16:20:15 +000020325 # original and so on. Autoconf is especially sensitive to this).
20326 . "./$as_me.lineno"
brynercb91a2f2006-08-25 21:14:45 +000020327 # Exit status is that of the last command.
20328 exit
20329}
20330
20331
mmentovai8c2a4de2006-09-20 16:20:15 +000020332if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20333 as_dirname=dirname
20334else
20335 as_dirname=false
20336fi
20337
20338ECHO_C= ECHO_N= ECHO_T=
20339case `echo -n x` in
20340-n*)
20341 case `echo 'x\c'` in
20342 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20343 *) ECHO_C='\c';;
20344 esac;;
20345*)
20346 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +000020347esac
20348
mmentovai8c2a4de2006-09-20 16:20:15 +000020349if expr a : '\(a\)' >/dev/null 2>&1 &&
20350 test "X`expr 00001 : '.*\(...\)'`" = X001; then
brynercb91a2f2006-08-25 21:14:45 +000020351 as_expr=expr
20352else
20353 as_expr=false
20354fi
20355
20356rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +000020357if test -d conf$$.dir; then
20358 rm -f conf$$.dir/conf$$.file
20359else
20360 rm -f conf$$.dir
20361 mkdir conf$$.dir
20362fi
brynercb91a2f2006-08-25 21:14:45 +000020363echo >conf$$.file
20364if ln -s conf$$.file conf$$ 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000020365 as_ln_s='ln -s'
20366 # ... but there are two gotchas:
20367 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20368 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20369 # In both cases, we have to default to `cp -p'.
20370 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
brynercb91a2f2006-08-25 21:14:45 +000020371 as_ln_s='cp -p'
brynercb91a2f2006-08-25 21:14:45 +000020372elif ln conf$$.file conf$$ 2>/dev/null; then
20373 as_ln_s=ln
20374else
20375 as_ln_s='cp -p'
20376fi
mmentovai8c2a4de2006-09-20 16:20:15 +000020377rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20378rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000020379
20380if mkdir -p . 2>/dev/null; then
20381 as_mkdir_p=:
20382else
20383 test -d ./-p && rmdir ./-p
20384 as_mkdir_p=false
20385fi
20386
mmentovaiaf3c43f2007-05-17 18:34:37 +000020387if test -x / >/dev/null 2>&1; then
20388 as_test_x='test -x'
mmentovai8c2a4de2006-09-20 16:20:15 +000020389else
mmentovaiaf3c43f2007-05-17 18:34:37 +000020390 if ls -dL / >/dev/null 2>&1; then
20391 as_ls_L_option=L
20392 else
20393 as_ls_L_option=
20394 fi
20395 as_test_x='
20396 eval sh -c '\''
20397 if test -d "$1"; then
20398 test -d "$1/.";
20399 else
20400 case $1 in
20401 -*)set "./$1";;
20402 esac;
20403 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20404 ???[sx]*):;;*)false;;esac;fi
20405 '\'' sh
20406 '
mmentovai8c2a4de2006-09-20 16:20:15 +000020407fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000020408as_executable_p=$as_test_x
brynercb91a2f2006-08-25 21:14:45 +000020409
20410# Sed expression to map a string onto a valid CPP name.
20411as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20412
20413# Sed expression to map a string onto a valid variable name.
20414as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20415
20416
brynercb91a2f2006-08-25 21:14:45 +000020417exec 6>&1
20418
mmentovai8c2a4de2006-09-20 16:20:15 +000020419# Save the log message, to keep $[0] and so on meaningful, and to
brynercb91a2f2006-08-25 21:14:45 +000020420# report actual input values of CONFIG_FILES etc. instead of their
mmentovai8c2a4de2006-09-20 16:20:15 +000020421# values after options handling.
20422ac_log="
mmentovaie5dc6082007-02-14 19:51:05 +000020423This file was extended by breakpad $as_me 0.1, which was
mmentovaiaf3c43f2007-05-17 18:34:37 +000020424generated by GNU Autoconf 2.61. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +000020425
20426 CONFIG_FILES = $CONFIG_FILES
20427 CONFIG_HEADERS = $CONFIG_HEADERS
20428 CONFIG_LINKS = $CONFIG_LINKS
20429 CONFIG_COMMANDS = $CONFIG_COMMANDS
20430 $ $0 $@
20431
mmentovai8c2a4de2006-09-20 16:20:15 +000020432on `(hostname || uname -n) 2>/dev/null | sed 1q`
20433"
20434
brynercb91a2f2006-08-25 21:14:45 +000020435_ACEOF
20436
mmentovai8c2a4de2006-09-20 16:20:15 +000020437cat >>$CONFIG_STATUS <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020438# Files that config.status was made for.
mmentovai8c2a4de2006-09-20 16:20:15 +000020439config_files="$ac_config_files"
20440config_headers="$ac_config_headers"
20441config_commands="$ac_config_commands"
brynercb91a2f2006-08-25 21:14:45 +000020442
mmentovai8c2a4de2006-09-20 16:20:15 +000020443_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020444
20445cat >>$CONFIG_STATUS <<\_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020446ac_cs_usage="\
20447\`$as_me' instantiates files from templates according to the
20448current configuration.
20449
20450Usage: $0 [OPTIONS] [FILE]...
20451
20452 -h, --help print this help, then exit
mmentovaiaf3c43f2007-05-17 18:34:37 +000020453 -V, --version print version number and configuration settings, then exit
brynercb91a2f2006-08-25 21:14:45 +000020454 -q, --quiet do not print progress messages
20455 -d, --debug don't remove temporary files
20456 --recheck update $as_me by reconfiguring in the same conditions
20457 --file=FILE[:TEMPLATE]
20458 instantiate the configuration file FILE
20459 --header=FILE[:TEMPLATE]
20460 instantiate the configuration header FILE
20461
20462Configuration files:
20463$config_files
20464
20465Configuration headers:
20466$config_headers
20467
20468Configuration commands:
20469$config_commands
20470
20471Report bugs to <bug-autoconf@gnu.org>."
brynercb91a2f2006-08-25 21:14:45 +000020472
mmentovai8c2a4de2006-09-20 16:20:15 +000020473_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020474cat >>$CONFIG_STATUS <<_ACEOF
20475ac_cs_version="\\
mmentovaie5dc6082007-02-14 19:51:05 +000020476breakpad config.status 0.1
mmentovaiaf3c43f2007-05-17 18:34:37 +000020477configured by $0, generated by GNU Autoconf 2.61,
mmentovai8c2a4de2006-09-20 16:20:15 +000020478 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
brynercb91a2f2006-08-25 21:14:45 +000020479
mmentovai8c2a4de2006-09-20 16:20:15 +000020480Copyright (C) 2006 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +000020481This config.status script is free software; the Free Software Foundation
20482gives unlimited permission to copy, distribute and modify it."
mmentovai8c2a4de2006-09-20 16:20:15 +000020483
20484ac_pwd='$ac_pwd'
20485srcdir='$srcdir'
20486INSTALL='$INSTALL'
mmentovaiaf3c43f2007-05-17 18:34:37 +000020487MKDIR_P='$MKDIR_P'
brynercb91a2f2006-08-25 21:14:45 +000020488_ACEOF
20489
20490cat >>$CONFIG_STATUS <<\_ACEOF
20491# If no file are specified by the user, then we need to provide default
20492# value. By we need to know if files were specified by the user.
20493ac_need_defaults=:
20494while test $# != 0
20495do
20496 case $1 in
20497 --*=*)
mmentovai8c2a4de2006-09-20 16:20:15 +000020498 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20499 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +000020500 ac_shift=:
20501 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000020502 *)
brynercb91a2f2006-08-25 21:14:45 +000020503 ac_option=$1
20504 ac_optarg=$2
20505 ac_shift=shift
20506 ;;
brynercb91a2f2006-08-25 21:14:45 +000020507 esac
20508
20509 case $ac_option in
20510 # Handling of the options.
brynercb91a2f2006-08-25 21:14:45 +000020511 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20512 ac_cs_recheck=: ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000020513 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20514 echo "$ac_cs_version"; exit ;;
20515 --debug | --debu | --deb | --de | --d | -d )
brynercb91a2f2006-08-25 21:14:45 +000020516 debug=: ;;
20517 --file | --fil | --fi | --f )
20518 $ac_shift
20519 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20520 ac_need_defaults=false;;
20521 --header | --heade | --head | --hea )
20522 $ac_shift
20523 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20524 ac_need_defaults=false;;
mmentovai8c2a4de2006-09-20 16:20:15 +000020525 --he | --h)
20526 # Conflict between --help and --header
20527 { echo "$as_me: error: ambiguous option: $1
20528Try \`$0 --help' for more information." >&2
20529 { (exit 1); exit 1; }; };;
20530 --help | --hel | -h )
20531 echo "$ac_cs_usage"; exit ;;
brynercb91a2f2006-08-25 21:14:45 +000020532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20533 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20534 ac_cs_silent=: ;;
20535
20536 # This is an error.
mmentovai8c2a4de2006-09-20 16:20:15 +000020537 -*) { echo "$as_me: error: unrecognized option: $1
20538Try \`$0 --help' for more information." >&2
brynercb91a2f2006-08-25 21:14:45 +000020539 { (exit 1); exit 1; }; } ;;
20540
mmentovai8c2a4de2006-09-20 16:20:15 +000020541 *) ac_config_targets="$ac_config_targets $1"
20542 ac_need_defaults=false ;;
brynercb91a2f2006-08-25 21:14:45 +000020543
20544 esac
20545 shift
20546done
20547
20548ac_configure_extra_args=
20549
20550if $ac_cs_silent; then
20551 exec 6>/dev/null
20552 ac_configure_extra_args="$ac_configure_extra_args --silent"
20553fi
20554
20555_ACEOF
20556cat >>$CONFIG_STATUS <<_ACEOF
20557if \$ac_cs_recheck; then
mmentovai8c2a4de2006-09-20 16:20:15 +000020558 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20559 CONFIG_SHELL=$SHELL
20560 export CONFIG_SHELL
20561 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
brynercb91a2f2006-08-25 21:14:45 +000020562fi
20563
20564_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000020565cat >>$CONFIG_STATUS <<\_ACEOF
20566exec 5>>config.log
20567{
20568 echo
20569 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20570## Running $as_me. ##
20571_ASBOX
20572 echo "$ac_log"
20573} >&5
brynercb91a2f2006-08-25 21:14:45 +000020574
mmentovai8c2a4de2006-09-20 16:20:15 +000020575_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020576cat >>$CONFIG_STATUS <<_ACEOF
20577#
mmentovai8c2a4de2006-09-20 16:20:15 +000020578# INIT-COMMANDS
brynercb91a2f2006-08-25 21:14:45 +000020579#
brynercb91a2f2006-08-25 21:14:45 +000020580AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20581
20582_ACEOF
20583
brynercb91a2f2006-08-25 21:14:45 +000020584cat >>$CONFIG_STATUS <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000020585
20586# Handling of arguments.
brynercb91a2f2006-08-25 21:14:45 +000020587for ac_config_target in $ac_config_targets
20588do
mmentovai8c2a4de2006-09-20 16:20:15 +000020589 case $ac_config_target in
20590 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20591 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20592 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20593
brynercb91a2f2006-08-25 21:14:45 +000020594 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20595echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20596 { (exit 1); exit 1; }; };;
20597 esac
20598done
20599
mmentovai8c2a4de2006-09-20 16:20:15 +000020600
brynercb91a2f2006-08-25 21:14:45 +000020601# If the user did not use the arguments to specify the items to instantiate,
20602# then the envvar interface is used. Set only those that are not.
20603# We use the long form for the default assignment because of an extremely
20604# bizarre bug on SunOS 4.1.3.
20605if $ac_need_defaults; then
20606 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20607 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20608 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20609fi
20610
20611# Have a temporary directory for convenience. Make it in the build tree
mmentovai8c2a4de2006-09-20 16:20:15 +000020612# simply because there is no reason against having it here, and in addition,
brynercb91a2f2006-08-25 21:14:45 +000020613# creating and moving files from /tmp can sometimes cause problems.
mmentovai8c2a4de2006-09-20 16:20:15 +000020614# Hook for its removal unless debugging.
20615# Note that there is a small window in which the directory will not be cleaned:
20616# after its creation but before its name has been assigned to `$tmp'.
brynercb91a2f2006-08-25 21:14:45 +000020617$debug ||
20618{
mmentovai8c2a4de2006-09-20 16:20:15 +000020619 tmp=
20620 trap 'exit_status=$?
20621 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20622' 0
brynercb91a2f2006-08-25 21:14:45 +000020623 trap '{ (exit 1); exit 1; }' 1 2 13 15
20624}
brynercb91a2f2006-08-25 21:14:45 +000020625# Create a (secure) tmp directory for tmp files.
20626
20627{
mmentovai8c2a4de2006-09-20 16:20:15 +000020628 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
brynercb91a2f2006-08-25 21:14:45 +000020629 test -n "$tmp" && test -d "$tmp"
20630} ||
20631{
mmentovai8c2a4de2006-09-20 16:20:15 +000020632 tmp=./conf$$-$RANDOM
20633 (umask 077 && mkdir "$tmp")
brynercb91a2f2006-08-25 21:14:45 +000020634} ||
20635{
20636 echo "$me: cannot create a temporary directory in ." >&2
20637 { (exit 1); exit 1; }
20638}
20639
brynercb91a2f2006-08-25 21:14:45 +000020640#
mmentovai8c2a4de2006-09-20 16:20:15 +000020641# Set up the sed scripts for CONFIG_FILES section.
brynercb91a2f2006-08-25 21:14:45 +000020642#
20643
20644# No need to generate the scripts if there are no CONFIG_FILES.
20645# This happens for instance when ./config.status config.h
mmentovai8c2a4de2006-09-20 16:20:15 +000020646if test -n "$CONFIG_FILES"; then
brynercb91a2f2006-08-25 21:14:45 +000020647
20648_ACEOF
20649
mmentovai8c2a4de2006-09-20 16:20:15 +000020650
20651
20652ac_delim='%!_!# '
20653for ac_last_try in false false false false false :; do
20654 cat >conf$$subs.sed <<_ACEOF
20655SHELL!$SHELL$ac_delim
20656PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20657PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20658PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20659PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20660PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20661PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20662exec_prefix!$exec_prefix$ac_delim
20663prefix!$prefix$ac_delim
20664program_transform_name!$program_transform_name$ac_delim
20665bindir!$bindir$ac_delim
20666sbindir!$sbindir$ac_delim
20667libexecdir!$libexecdir$ac_delim
20668datarootdir!$datarootdir$ac_delim
20669datadir!$datadir$ac_delim
20670sysconfdir!$sysconfdir$ac_delim
20671sharedstatedir!$sharedstatedir$ac_delim
20672localstatedir!$localstatedir$ac_delim
20673includedir!$includedir$ac_delim
20674oldincludedir!$oldincludedir$ac_delim
20675docdir!$docdir$ac_delim
20676infodir!$infodir$ac_delim
20677htmldir!$htmldir$ac_delim
20678dvidir!$dvidir$ac_delim
20679pdfdir!$pdfdir$ac_delim
20680psdir!$psdir$ac_delim
20681libdir!$libdir$ac_delim
20682localedir!$localedir$ac_delim
20683mandir!$mandir$ac_delim
20684DEFS!$DEFS$ac_delim
20685ECHO_C!$ECHO_C$ac_delim
20686ECHO_N!$ECHO_N$ac_delim
20687ECHO_T!$ECHO_T$ac_delim
20688LIBS!$LIBS$ac_delim
20689build_alias!$build_alias$ac_delim
20690host_alias!$host_alias$ac_delim
20691target_alias!$target_alias$ac_delim
20692INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20693INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20694INSTALL_DATA!$INSTALL_DATA$ac_delim
mmentovaiaf3c43f2007-05-17 18:34:37 +000020695am__isrc!$am__isrc$ac_delim
mmentovai8c2a4de2006-09-20 16:20:15 +000020696CYGPATH_W!$CYGPATH_W$ac_delim
20697PACKAGE!$PACKAGE$ac_delim
20698VERSION!$VERSION$ac_delim
20699ACLOCAL!$ACLOCAL$ac_delim
20700AUTOCONF!$AUTOCONF$ac_delim
20701AUTOMAKE!$AUTOMAKE$ac_delim
20702AUTOHEADER!$AUTOHEADER$ac_delim
20703MAKEINFO!$MAKEINFO$ac_delim
20704install_sh!$install_sh$ac_delim
20705STRIP!$STRIP$ac_delim
20706INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20707mkdir_p!$mkdir_p$ac_delim
20708AWK!$AWK$ac_delim
20709SET_MAKE!$SET_MAKE$ac_delim
20710am__leading_dot!$am__leading_dot$ac_delim
20711AMTAR!$AMTAR$ac_delim
20712am__tar!$am__tar$ac_delim
20713am__untar!$am__untar$ac_delim
20714CC!$CC$ac_delim
20715CFLAGS!$CFLAGS$ac_delim
20716LDFLAGS!$LDFLAGS$ac_delim
20717CPPFLAGS!$CPPFLAGS$ac_delim
20718ac_ct_CC!$ac_ct_CC$ac_delim
20719EXEEXT!$EXEEXT$ac_delim
20720OBJEXT!$OBJEXT$ac_delim
20721DEPDIR!$DEPDIR$ac_delim
20722am__include!$am__include$ac_delim
20723am__quote!$am__quote$ac_delim
20724AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20725AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20726AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20727CCDEPMODE!$CCDEPMODE$ac_delim
20728am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20729am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20730CPP!$CPP$ac_delim
20731CXX!$CXX$ac_delim
20732CXXFLAGS!$CXXFLAGS$ac_delim
20733ac_ct_CXX!$ac_ct_CXX$ac_delim
20734CXXDEPMODE!$CXXDEPMODE$ac_delim
20735am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20736am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20737build!$build$ac_delim
20738build_cpu!$build_cpu$ac_delim
20739build_vendor!$build_vendor$ac_delim
20740build_os!$build_os$ac_delim
20741host!$host$ac_delim
20742host_cpu!$host_cpu$ac_delim
20743host_vendor!$host_vendor$ac_delim
20744host_os!$host_os$ac_delim
ted.mielczarek1adb1842009-12-21 13:12:20 +000020745SED!$SED$ac_delim
mmentovai8c2a4de2006-09-20 16:20:15 +000020746GREP!$GREP$ac_delim
20747EGREP!$EGREP$ac_delim
20748LN_S!$LN_S$ac_delim
20749ECHO!$ECHO$ac_delim
20750AR!$AR$ac_delim
20751RANLIB!$RANLIB$ac_delim
mmentovai8c2a4de2006-09-20 16:20:15 +000020752_ACEOF
20753
20754 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20755 break
20756 elif $ac_last_try; then
20757 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20758echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20759 { (exit 1); exit 1; }; }
20760 else
20761 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
brynercb91a2f2006-08-25 21:14:45 +000020762 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000020763done
20764
20765ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20766if test -n "$ac_eof"; then
20767 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20768 ac_eof=`expr $ac_eof + 1`
20769fi
20770
20771cat >>$CONFIG_STATUS <<_ACEOF
20772cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20773/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20774_ACEOF
20775sed '
20776s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20777s/^/s,@/; s/!/@,|#_!!_#|/
20778:n
20779t n
20780s/'"$ac_delim"'$/,g/; t
20781s/$/\\/; p
20782N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20783' >>$CONFIG_STATUS <conf$$subs.sed
20784rm -f conf$$subs.sed
20785cat >>$CONFIG_STATUS <<_ACEOF
20786CEOF$ac_eof
20787_ACEOF
20788
20789
20790ac_delim='%!_!# '
20791for ac_last_try in false false false false false :; do
20792 cat >conf$$subs.sed <<_ACEOF
ted.mielczarek1adb1842009-12-21 13:12:20 +000020793DSYMUTIL!$DSYMUTIL$ac_delim
20794NMEDIT!$NMEDIT$ac_delim
20795CXXCPP!$CXXCPP$ac_delim
mmentovaiaf3c43f2007-05-17 18:34:37 +000020796F77!$F77$ac_delim
mmentovai8c2a4de2006-09-20 16:20:15 +000020797FFLAGS!$FFLAGS$ac_delim
20798ac_ct_F77!$ac_ct_F77$ac_delim
20799LIBTOOL!$LIBTOOL$ac_delim
20800LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
mmentovai0dbedc92006-09-25 21:16:15 +000020801SELFTEST_TRUE!$SELFTEST_TRUE$ac_delim
20802SELFTEST_FALSE!$SELFTEST_FALSE$ac_delim
mmentovai8c2a4de2006-09-20 16:20:15 +000020803LIBOBJS!$LIBOBJS$ac_delim
20804LTLIBOBJS!$LTLIBOBJS$ac_delim
20805_ACEOF
20806
ted.mielczarek1adb1842009-12-21 13:12:20 +000020807 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
mmentovai8c2a4de2006-09-20 16:20:15 +000020808 break
20809 elif $ac_last_try; then
20810 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20811echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20812 { (exit 1); exit 1; }; }
20813 else
20814 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20815 fi
20816done
20817
20818ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20819if test -n "$ac_eof"; then
20820 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20821 ac_eof=`expr $ac_eof + 1`
20822fi
20823
20824cat >>$CONFIG_STATUS <<_ACEOF
20825cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20826/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20827_ACEOF
20828sed '
20829s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20830s/^/s,@/; s/!/@,|#_!!_#|/
20831:n
20832t n
20833s/'"$ac_delim"'$/,g/; t
20834s/$/\\/; p
20835N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20836' >>$CONFIG_STATUS <conf$$subs.sed
20837rm -f conf$$subs.sed
20838cat >>$CONFIG_STATUS <<_ACEOF
20839:end
20840s/|#_!!_#|//g
20841CEOF$ac_eof
20842_ACEOF
20843
20844
20845# VPATH may cause trouble with some makes, so we remove $(srcdir),
20846# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20847# trailing colons and then remove the whole line if VPATH becomes empty
20848# (actually we leave an empty line to preserve line numbers).
20849if test "x$srcdir" = x.; then
20850 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20851s/:*\$(srcdir):*/:/
20852s/:*\${srcdir}:*/:/
20853s/:*@srcdir@:*/:/
20854s/^\([^=]*=[ ]*\):*/\1/
20855s/:*$//
20856s/^[^=]*=[ ]*$//
20857}'
20858fi
20859
20860cat >>$CONFIG_STATUS <<\_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020861fi # test -n "$CONFIG_FILES"
20862
mmentovai8c2a4de2006-09-20 16:20:15 +000020863
20864for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20865do
20866 case $ac_tag in
20867 :[FHLC]) ac_mode=$ac_tag; continue;;
20868 esac
20869 case $ac_mode$ac_tag in
20870 :[FHL]*:*);;
20871 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20872echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20873 { (exit 1); exit 1; }; };;
20874 :[FH]-) ac_tag=-:-;;
20875 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20876 esac
20877 ac_save_IFS=$IFS
20878 IFS=:
20879 set x $ac_tag
20880 IFS=$ac_save_IFS
20881 shift
20882 ac_file=$1
20883 shift
20884
20885 case $ac_mode in
20886 :L) ac_source=$1;;
20887 :[FH])
20888 ac_file_inputs=
20889 for ac_f
20890 do
20891 case $ac_f in
20892 -) ac_f="$tmp/stdin";;
20893 *) # Look for the file first in the build tree, then in the source tree
20894 # (if the path is not absolute). The absolute path cannot be DOS-style,
20895 # because $ac_f cannot contain `:'.
20896 test -f "$ac_f" ||
20897 case $ac_f in
20898 [\\/$]*) false;;
20899 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20900 esac ||
20901 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20902echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20903 { (exit 1); exit 1; }; };;
20904 esac
20905 ac_file_inputs="$ac_file_inputs $ac_f"
20906 done
20907
20908 # Let's still pretend it is `configure' which instantiates (i.e., don't
20909 # use $as_me), people would be surprised to read:
20910 # /* config.h. Generated by config.status. */
20911 configure_input="Generated from "`IFS=:
20912 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20913 if test x"$ac_file" != x-; then
20914 configure_input="$ac_file. $configure_input"
20915 { echo "$as_me:$LINENO: creating $ac_file" >&5
20916echo "$as_me: creating $ac_file" >&6;}
20917 fi
20918
20919 case $ac_tag in
20920 *:-:* | *:-) cat >"$tmp/stdin";;
20921 esac
20922 ;;
brynercb91a2f2006-08-25 21:14:45 +000020923 esac
20924
mmentovai8c2a4de2006-09-20 16:20:15 +000020925 ac_dir=`$as_dirname -- "$ac_file" ||
brynercb91a2f2006-08-25 21:14:45 +000020926$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20927 X"$ac_file" : 'X\(//\)[^/]' \| \
20928 X"$ac_file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000020929 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000020930echo X"$ac_file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000020931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20932 s//\1/
20933 q
20934 }
20935 /^X\(\/\/\)[^/].*/{
20936 s//\1/
20937 q
20938 }
20939 /^X\(\/\/\)$/{
20940 s//\1/
20941 q
20942 }
20943 /^X\(\/\).*/{
20944 s//\1/
20945 q
20946 }
20947 s/.*/./; q'`
20948 { as_dir="$ac_dir"
20949 case $as_dir in #(
20950 -*) as_dir=./$as_dir;;
20951 esac
20952 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
brynercb91a2f2006-08-25 21:14:45 +000020953 as_dirs=
mmentovai8c2a4de2006-09-20 16:20:15 +000020954 while :; do
20955 case $as_dir in #(
20956 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20957 *) as_qdir=$as_dir;;
20958 esac
20959 as_dirs="'$as_qdir' $as_dirs"
20960 as_dir=`$as_dirname -- "$as_dir" ||
brynercb91a2f2006-08-25 21:14:45 +000020961$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20962 X"$as_dir" : 'X\(//\)[^/]' \| \
20963 X"$as_dir" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000020964 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000020965echo X"$as_dir" |
mmentovai8c2a4de2006-09-20 16:20:15 +000020966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20967 s//\1/
20968 q
20969 }
20970 /^X\(\/\/\)[^/].*/{
20971 s//\1/
20972 q
20973 }
20974 /^X\(\/\/\)$/{
20975 s//\1/
20976 q
20977 }
20978 /^X\(\/\).*/{
20979 s//\1/
20980 q
20981 }
20982 s/.*/./; q'`
20983 test -d "$as_dir" && break
brynercb91a2f2006-08-25 21:14:45 +000020984 done
mmentovai8c2a4de2006-09-20 16:20:15 +000020985 test -z "$as_dirs" || eval "mkdir $as_dirs"
20986 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20987echo "$as_me: error: cannot create directory $as_dir" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000020988 { (exit 1); exit 1; }; }; }
brynercb91a2f2006-08-25 21:14:45 +000020989 ac_builddir=.
20990
mmentovai8c2a4de2006-09-20 16:20:15 +000020991case "$ac_dir" in
20992.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20993*)
brynercb91a2f2006-08-25 21:14:45 +000020994 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
mmentovai8c2a4de2006-09-20 16:20:15 +000020995 # A ".." for each directory in $ac_dir_suffix.
20996 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20997 case $ac_top_builddir_sub in
20998 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20999 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21000 esac ;;
21001esac
21002ac_abs_top_builddir=$ac_pwd
21003ac_abs_builddir=$ac_pwd$ac_dir_suffix
21004# for backward compatibility:
21005ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +000021006
21007case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +000021008 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +000021009 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +000021010 ac_top_srcdir=$ac_top_builddir_sub
21011 ac_abs_top_srcdir=$ac_pwd ;;
21012 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +000021013 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +000021014 ac_top_srcdir=$srcdir
21015 ac_abs_top_srcdir=$srcdir ;;
21016 *) # Relative name.
21017 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21018 ac_top_srcdir=$ac_top_build_prefix$srcdir
21019 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +000021020esac
mmentovai8c2a4de2006-09-20 16:20:15 +000021021ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +000021022
brynercb91a2f2006-08-25 21:14:45 +000021023
mmentovai8c2a4de2006-09-20 16:20:15 +000021024 case $ac_mode in
21025 :F)
21026 #
21027 # CONFIG_FILE
21028 #
brynercb91a2f2006-08-25 21:14:45 +000021029
21030 case $INSTALL in
21031 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000021032 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
brynercb91a2f2006-08-25 21:14:45 +000021033 esac
mmentovaiaf3c43f2007-05-17 18:34:37 +000021034 ac_MKDIR_P=$MKDIR_P
21035 case $MKDIR_P in
21036 [\\/$]* | ?:[\\/]* ) ;;
21037 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21038 esac
brynercb91a2f2006-08-25 21:14:45 +000021039_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000021040
21041cat >>$CONFIG_STATUS <<\_ACEOF
21042# If the template does not know about datarootdir, expand it.
21043# FIXME: This hack should be removed a few years after 2.60.
21044ac_datarootdir_hack=; ac_datarootdir_seen=
21045
21046case `sed -n '/datarootdir/ {
21047 p
21048 q
21049}
21050/@datadir@/p
21051/@docdir@/p
21052/@infodir@/p
21053/@localedir@/p
21054/@mandir@/p
21055' $ac_file_inputs` in
21056*datarootdir*) ac_datarootdir_seen=yes;;
21057*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21058 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21059echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21060_ACEOF
21061cat >>$CONFIG_STATUS <<_ACEOF
21062 ac_datarootdir_hack='
21063 s&@datadir@&$datadir&g
21064 s&@docdir@&$docdir&g
21065 s&@infodir@&$infodir&g
21066 s&@localedir@&$localedir&g
21067 s&@mandir@&$mandir&g
21068 s&\\\${datarootdir}&$datarootdir&g' ;;
21069esac
21070_ACEOF
21071
21072# Neutralize VPATH when `$srcdir' = `.'.
21073# Shell code in configure.ac might set extrasub.
21074# FIXME: do we really want to maintain this feature?
brynercb91a2f2006-08-25 21:14:45 +000021075cat >>$CONFIG_STATUS <<_ACEOF
21076 sed "$ac_vpsub
21077$extrasub
21078_ACEOF
21079cat >>$CONFIG_STATUS <<\_ACEOF
21080:t
21081/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
mmentovai8c2a4de2006-09-20 16:20:15 +000021082s&@configure_input@&$configure_input&;t t
21083s&@top_builddir@&$ac_top_builddir_sub&;t t
21084s&@srcdir@&$ac_srcdir&;t t
21085s&@abs_srcdir@&$ac_abs_srcdir&;t t
21086s&@top_srcdir@&$ac_top_srcdir&;t t
21087s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21088s&@builddir@&$ac_builddir&;t t
21089s&@abs_builddir@&$ac_abs_builddir&;t t
21090s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21091s&@INSTALL@&$ac_INSTALL&;t t
mmentovaiaf3c43f2007-05-17 18:34:37 +000021092s&@MKDIR_P@&$ac_MKDIR_P&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000021093$ac_datarootdir_hack
21094" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
brynercb91a2f2006-08-25 21:14:45 +000021095
mmentovai8c2a4de2006-09-20 16:20:15 +000021096test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21097 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21098 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21099 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21100which seems to be undefined. Please make sure it is defined." >&5
21101echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21102which seems to be undefined. Please make sure it is defined." >&2;}
brynercb91a2f2006-08-25 21:14:45 +000021103
mmentovai8c2a4de2006-09-20 16:20:15 +000021104 rm -f "$tmp/stdin"
brynercb91a2f2006-08-25 21:14:45 +000021105 case $ac_file in
mmentovai8c2a4de2006-09-20 16:20:15 +000021106 -) cat "$tmp/out"; rm -f "$tmp/out";;
21107 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
brynercb91a2f2006-08-25 21:14:45 +000021108 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000021109 ;;
21110 :H)
21111 #
21112 # CONFIG_HEADER
21113 #
brynercb91a2f2006-08-25 21:14:45 +000021114_ACEOF
21115
mmentovai8c2a4de2006-09-20 16:20:15 +000021116# Transform confdefs.h into a sed script `conftest.defines', that
21117# substitutes the proper values into config.h.in to produce config.h.
21118rm -f conftest.defines conftest.tail
21119# First, append a space to every undef/define line, to ease matching.
21120echo 's/$/ /' >conftest.defines
21121# Then, protect against being on the right side of a sed subst, or in
21122# an unquoted here document, in config.status. If some macros were
21123# called several times there might be several #defines for the same
21124# symbol, which is useless. But do not sort them, since the last
21125# AC_DEFINE must be honored.
21126ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21127# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21128# NAME is the cpp macro being defined, VALUE is the value it is being given.
21129# PARAMS is the parameter list in the macro definition--in most cases, it's
21130# just an empty string.
21131ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21132ac_dB='\\)[ (].*,\\1define\\2'
21133ac_dC=' '
21134ac_dD=' ,'
brynercb91a2f2006-08-25 21:14:45 +000021135
mmentovai8c2a4de2006-09-20 16:20:15 +000021136uniq confdefs.h |
21137 sed -n '
21138 t rset
21139 :rset
21140 s/^[ ]*#[ ]*define[ ][ ]*//
21141 t ok
21142 d
21143 :ok
21144 s/[\\&,]/\\&/g
21145 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21146 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21147 ' >>conftest.defines
21148
21149# Remove the space that was appended to ease matching.
21150# Then replace #undef with comments. This is necessary, for
brynercb91a2f2006-08-25 21:14:45 +000021151# example, in the case of _POSIX_SOURCE, which is predefined and required
21152# on some systems where configure will not decide to define it.
mmentovai8c2a4de2006-09-20 16:20:15 +000021153# (The regexp can be short, since the line contains either #define or #undef.)
21154echo 's/ $//
21155s,^[ #]*u.*,/* & */,' >>conftest.defines
brynercb91a2f2006-08-25 21:14:45 +000021156
mmentovai8c2a4de2006-09-20 16:20:15 +000021157# Break up conftest.defines:
21158ac_max_sed_lines=50
21159
21160# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21161# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21162# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21163# et cetera.
21164ac_in='$ac_file_inputs'
21165ac_out='"$tmp/out1"'
21166ac_nxt='"$tmp/out2"'
21167
21168while :
brynercb91a2f2006-08-25 21:14:45 +000021169do
mmentovai8c2a4de2006-09-20 16:20:15 +000021170 # Write a here document:
21171 cat >>$CONFIG_STATUS <<_ACEOF
21172 # First, check the format of the line:
21173 cat >"\$tmp/defines.sed" <<\\CEOF
21174/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21175/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21176b
21177:def
21178_ACEOF
21179 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
brynercb91a2f2006-08-25 21:14:45 +000021180 echo 'CEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000021181 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21182 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21183 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21184 grep . conftest.tail >/dev/null || break
brynercb91a2f2006-08-25 21:14:45 +000021185 rm -f conftest.defines
21186 mv conftest.tail conftest.defines
21187done
mmentovai8c2a4de2006-09-20 16:20:15 +000021188rm -f conftest.defines conftest.tail
brynercb91a2f2006-08-25 21:14:45 +000021189
mmentovai8c2a4de2006-09-20 16:20:15 +000021190echo "ac_result=$ac_in" >>$CONFIG_STATUS
brynercb91a2f2006-08-25 21:14:45 +000021191cat >>$CONFIG_STATUS <<\_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000021192 if test x"$ac_file" != x-; then
mmentovai8c2a4de2006-09-20 16:20:15 +000021193 echo "/* $configure_input */" >"$tmp/config.h"
21194 cat "$ac_result" >>"$tmp/config.h"
21195 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
brynercb91a2f2006-08-25 21:14:45 +000021196 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21197echo "$as_me: $ac_file is unchanged" >&6;}
21198 else
brynercb91a2f2006-08-25 21:14:45 +000021199 rm -f $ac_file
mmentovai8c2a4de2006-09-20 16:20:15 +000021200 mv "$tmp/config.h" $ac_file
brynercb91a2f2006-08-25 21:14:45 +000021201 fi
21202 else
mmentovai8c2a4de2006-09-20 16:20:15 +000021203 echo "/* $configure_input */"
21204 cat "$ac_result"
brynercb91a2f2006-08-25 21:14:45 +000021205 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000021206 rm -f "$tmp/out12"
brynercb91a2f2006-08-25 21:14:45 +000021207# Compute $ac_file's index in $config_headers.
21208_am_stamp_count=1
21209for _am_header in $config_headers :; do
21210 case $_am_header in
21211 $ac_file | $ac_file:* )
21212 break ;;
21213 * )
21214 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21215 esac
21216done
mmentovai8c2a4de2006-09-20 16:20:15 +000021217echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
brynercb91a2f2006-08-25 21:14:45 +000021218$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21219 X$ac_file : 'X\(//\)[^/]' \| \
21220 X$ac_file : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000021221 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000021222echo X$ac_file |
mmentovai8c2a4de2006-09-20 16:20:15 +000021223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21224 s//\1/
21225 q
21226 }
21227 /^X\(\/\/\)[^/].*/{
21228 s//\1/
21229 q
21230 }
21231 /^X\(\/\/\)$/{
21232 s//\1/
21233 q
21234 }
21235 /^X\(\/\).*/{
21236 s//\1/
21237 q
21238 }
21239 s/.*/./; q'`/stamp-h$_am_stamp_count
21240 ;;
brynercb91a2f2006-08-25 21:14:45 +000021241
mmentovai8c2a4de2006-09-20 16:20:15 +000021242 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21243echo "$as_me: executing $ac_file commands" >&6;}
21244 ;;
21245 esac
brynercb91a2f2006-08-25 21:14:45 +000021246
21247
mmentovai8c2a4de2006-09-20 16:20:15 +000021248 case $ac_file$ac_mode in
21249 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
brynercb91a2f2006-08-25 21:14:45 +000021250 # Strip MF so we end up with the name of the file.
21251 mf=`echo "$mf" | sed -e 's/:.*$//'`
21252 # Check whether this is an Automake generated Makefile or not.
21253 # We used to match only the files named `Makefile.in', but
21254 # some people rename them; so instead we look at the file content.
21255 # Grep'ing the first line is not enough: some people post-process
21256 # each Makefile.in and add a new line on top of each file to say so.
mmentovaiaf3c43f2007-05-17 18:34:37 +000021257 # Grep'ing the whole file is not good either: AIX grep has a line
21258 # limit of 2048, but all sed's we know have understand at least 4000.
21259 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
mmentovai8c2a4de2006-09-20 16:20:15 +000021260 dirpart=`$as_dirname -- "$mf" ||
brynercb91a2f2006-08-25 21:14:45 +000021261$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21262 X"$mf" : 'X\(//\)[^/]' \| \
21263 X"$mf" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000021264 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000021265echo X"$mf" |
mmentovai8c2a4de2006-09-20 16:20:15 +000021266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21267 s//\1/
21268 q
21269 }
21270 /^X\(\/\/\)[^/].*/{
21271 s//\1/
21272 q
21273 }
21274 /^X\(\/\/\)$/{
21275 s//\1/
21276 q
21277 }
21278 /^X\(\/\).*/{
21279 s//\1/
21280 q
21281 }
21282 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +000021283 else
21284 continue
21285 fi
21286 # Extract the definition of DEPDIR, am__include, and am__quote
21287 # from the Makefile without running `make'.
21288 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21289 test -z "$DEPDIR" && continue
21290 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21291 test -z "am__include" && continue
21292 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21293 # When using ansi2knr, U may be empty or an underscore; expand it
21294 U=`sed -n 's/^U = //p' < "$mf"`
21295 # Find all dependency output files, they are included files with
21296 # $(DEPDIR) in their names. We invoke sed twice because it is the
21297 # simplest approach to changing $(DEPDIR) to its actual value in the
21298 # expansion.
21299 for file in `sed -n "
21300 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21301 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21302 # Make sure the directory exists.
21303 test -f "$dirpart/$file" && continue
mmentovai8c2a4de2006-09-20 16:20:15 +000021304 fdir=`$as_dirname -- "$file" ||
brynercb91a2f2006-08-25 21:14:45 +000021305$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21306 X"$file" : 'X\(//\)[^/]' \| \
21307 X"$file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000021308 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000021309echo X"$file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000021310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21311 s//\1/
21312 q
21313 }
21314 /^X\(\/\/\)[^/].*/{
21315 s//\1/
21316 q
21317 }
21318 /^X\(\/\/\)$/{
21319 s//\1/
21320 q
21321 }
21322 /^X\(\/\).*/{
21323 s//\1/
21324 q
21325 }
21326 s/.*/./; q'`
21327 { as_dir=$dirpart/$fdir
21328 case $as_dir in #(
21329 -*) as_dir=./$as_dir;;
21330 esac
21331 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
brynercb91a2f2006-08-25 21:14:45 +000021332 as_dirs=
mmentovai8c2a4de2006-09-20 16:20:15 +000021333 while :; do
21334 case $as_dir in #(
21335 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21336 *) as_qdir=$as_dir;;
21337 esac
21338 as_dirs="'$as_qdir' $as_dirs"
21339 as_dir=`$as_dirname -- "$as_dir" ||
brynercb91a2f2006-08-25 21:14:45 +000021340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21341 X"$as_dir" : 'X\(//\)[^/]' \| \
21342 X"$as_dir" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000021343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000021344echo X"$as_dir" |
mmentovai8c2a4de2006-09-20 16:20:15 +000021345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21346 s//\1/
21347 q
21348 }
21349 /^X\(\/\/\)[^/].*/{
21350 s//\1/
21351 q
21352 }
21353 /^X\(\/\/\)$/{
21354 s//\1/
21355 q
21356 }
21357 /^X\(\/\).*/{
21358 s//\1/
21359 q
21360 }
21361 s/.*/./; q'`
21362 test -d "$as_dir" && break
brynercb91a2f2006-08-25 21:14:45 +000021363 done
mmentovai8c2a4de2006-09-20 16:20:15 +000021364 test -z "$as_dirs" || eval "mkdir $as_dirs"
21365 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21366echo "$as_me: error: cannot create directory $as_dir" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000021367 { (exit 1); exit 1; }; }; }
brynercb91a2f2006-08-25 21:14:45 +000021368 # echo "creating $dirpart/$file"
21369 echo '# dummy' > "$dirpart/$file"
21370 done
21371done
21372 ;;
brynercb91a2f2006-08-25 21:14:45 +000021373
mmentovai8c2a4de2006-09-20 16:20:15 +000021374 esac
21375done # for ac_tag
21376
brynercb91a2f2006-08-25 21:14:45 +000021377
21378{ (exit 0); exit 0; }
21379_ACEOF
21380chmod +x $CONFIG_STATUS
21381ac_clean_files=$ac_clean_files_save
21382
21383
21384# configure is writing to config.log, and then calls config.status.
21385# config.status does its own redirection, appending to config.log.
21386# Unfortunately, on DOS this fails, as config.log is still kept open
21387# by configure, so config.status won't be able to write to it; its
21388# output is simply discarded. So we exec the FD to /dev/null,
21389# effectively closing config.log, so it can be properly (re)opened and
21390# appended to by config.status. When coming back to configure, we
21391# need to make the FD available again.
21392if test "$no_create" != yes; then
21393 ac_cs_success=:
21394 ac_config_status_args=
21395 test "$silent" = yes &&
21396 ac_config_status_args="$ac_config_status_args --quiet"
21397 exec 5>/dev/null
21398 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21399 exec 5>>config.log
21400 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21401 # would make configure fail if this is the last instruction.
21402 $ac_cs_success || { (exit 1); exit 1; }
21403fi
21404