blob: 97ba42dd7f128a8a70c433cc719ab57faab06874 [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
862GREP
863EGREP
864LN_S
865ECHO
866AR
867RANLIB
868CXXCPP
869F77
870FFLAGS
871ac_ct_F77
872LIBTOOL
873LIBTOOL_DEPS
mmentovai0dbedc92006-09-25 21:16:15 +0000874SELFTEST_TRUE
875SELFTEST_FALSE
mmentovai8c2a4de2006-09-20 16:20:15 +0000876LIBOBJS
877LTLIBOBJS'
brynercb91a2f2006-08-25 21:14:45 +0000878ac_subst_files=''
mmentovai8c2a4de2006-09-20 16:20:15 +0000879 ac_precious_vars='build_alias
880host_alias
881target_alias
882CC
883CFLAGS
884LDFLAGS
mmentovaiaf3c43f2007-05-17 18:34:37 +0000885LIBS
mmentovai8c2a4de2006-09-20 16:20:15 +0000886CPPFLAGS
887CPP
888CXX
889CXXFLAGS
890CCC
891CXXCPP
892F77
893FFLAGS'
894
brynercb91a2f2006-08-25 21:14:45 +0000895
896# Initialize some variables set by options.
897ac_init_help=
898ac_init_version=false
899# The variables have the same names as the options, with
900# dashes changed to underlines.
901cache_file=/dev/null
902exec_prefix=NONE
903no_create=
904no_recursion=
905prefix=NONE
906program_prefix=NONE
907program_suffix=NONE
908program_transform_name=s,x,x,
909silent=
910site=
911srcdir=
912verbose=
913x_includes=NONE
914x_libraries=NONE
915
916# Installation directory options.
917# These are left unexpanded so users can "make install exec_prefix=/foo"
918# and all the variables that are supposed to be based on exec_prefix
919# by default will actually change.
920# Use braces instead of parens because sh, perl, etc. also accept them.
mmentovai8c2a4de2006-09-20 16:20:15 +0000921# (The list follows the same order as the GNU Coding Standards.)
brynercb91a2f2006-08-25 21:14:45 +0000922bindir='${exec_prefix}/bin'
923sbindir='${exec_prefix}/sbin'
924libexecdir='${exec_prefix}/libexec'
mmentovai8c2a4de2006-09-20 16:20:15 +0000925datarootdir='${prefix}/share'
926datadir='${datarootdir}'
brynercb91a2f2006-08-25 21:14:45 +0000927sysconfdir='${prefix}/etc'
928sharedstatedir='${prefix}/com'
929localstatedir='${prefix}/var'
brynercb91a2f2006-08-25 21:14:45 +0000930includedir='${prefix}/include'
931oldincludedir='/usr/include'
mmentovai8c2a4de2006-09-20 16:20:15 +0000932docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933infodir='${datarootdir}/info'
934htmldir='${docdir}'
935dvidir='${docdir}'
936pdfdir='${docdir}'
937psdir='${docdir}'
938libdir='${exec_prefix}/lib'
939localedir='${datarootdir}/locale'
940mandir='${datarootdir}/man'
brynercb91a2f2006-08-25 21:14:45 +0000941
942ac_prev=
mmentovai8c2a4de2006-09-20 16:20:15 +0000943ac_dashdash=
brynercb91a2f2006-08-25 21:14:45 +0000944for ac_option
945do
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
mmentovai8c2a4de2006-09-20 16:20:15 +0000948 eval $ac_prev=\$ac_option
brynercb91a2f2006-08-25 21:14:45 +0000949 ac_prev=
950 continue
951 fi
952
mmentovai8c2a4de2006-09-20 16:20:15 +0000953 case $ac_option in
954 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *) ac_optarg=yes ;;
956 esac
brynercb91a2f2006-08-25 21:14:45 +0000957
958 # Accept the important Cygnus configure options, so we can diagnose typos.
959
mmentovai8c2a4de2006-09-20 16:20:15 +0000960 case $ac_dashdash$ac_option in
961 --)
962 ac_dashdash=yes ;;
brynercb91a2f2006-08-25 21:14:45 +0000963
964 -bindir | --bindir | --bindi | --bind | --bin | --bi)
965 ac_prev=bindir ;;
966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
967 bindir=$ac_optarg ;;
968
969 -build | --build | --buil | --bui | --bu)
970 ac_prev=build_alias ;;
971 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
972 build_alias=$ac_optarg ;;
973
974 -cache-file | --cache-file | --cache-fil | --cache-fi \
975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
976 ac_prev=cache_file ;;
977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979 cache_file=$ac_optarg ;;
980
981 --config-cache | -C)
982 cache_file=config.cache ;;
983
mmentovai8c2a4de2006-09-20 16:20:15 +0000984 -datadir | --datadir | --datadi | --datad)
brynercb91a2f2006-08-25 21:14:45 +0000985 ac_prev=datadir ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000986 -datadir=* | --datadir=* | --datadi=* | --datad=*)
brynercb91a2f2006-08-25 21:14:45 +0000987 datadir=$ac_optarg ;;
988
mmentovai8c2a4de2006-09-20 16:20:15 +0000989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
990 | --dataroo | --dataro | --datar)
991 ac_prev=datarootdir ;;
992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
994 datarootdir=$ac_optarg ;;
995
brynercb91a2f2006-08-25 21:14:45 +0000996 -disable-* | --disable-*)
997 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
998 # Reject names that are not valid shell variable names.
mmentovaiaf3c43f2007-05-17 18:34:37 +0000999 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
brynercb91a2f2006-08-25 21:14:45 +00001000 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1001 { (exit 1); exit 1; }; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00001002 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001003 eval enable_$ac_feature=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001014
1015 -enable-* | --enable-*)
1016 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
mmentovaiaf3c43f2007-05-17 18:34:37 +00001018 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
brynercb91a2f2006-08-25 21:14:45 +00001019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00001021 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001022 eval enable_$ac_feature=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1043
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1048
mmentovai8c2a4de2006-09-20 16:20:15 +00001049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
brynercb91a2f2006-08-25 21:14:45 +00001055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1078
mmentovai8c2a4de2006-09-20 16:20:15 +00001079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
brynercb91a2f2006-08-25 21:14:45 +00001084 -localstatedir | --localstatedir | --localstatedi | --localstated \
mmentovai8c2a4de2006-09-20 16:20:15 +00001085 | --localstate | --localstat | --localsta | --localst | --locals)
brynercb91a2f2006-08-25 21:14:45 +00001086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mmentovai8c2a4de2006-09-20 16:20:15 +00001088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
brynercb91a2f2006-08-25 21:14:45 +00001089 localstatedir=$ac_optarg ;;
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1152
mmentovai8c2a4de2006-09-20 16:20:15 +00001153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
brynercb91a2f2006-08-25 21:14:45 +00001163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
1171 sbindir=$ac_optarg ;;
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
1182 sharedstatedir=$ac_optarg ;;
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1211
1212 -with-* | --with-*)
1213 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
mmentovaiaf3c43f2007-05-17 18:34:37 +00001215 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
brynercb91a2f2006-08-25 21:14:45 +00001216 { echo "$as_me: error: invalid package name: $ac_package" >&2
1217 { (exit 1); exit 1; }; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00001218 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001219 eval with_$ac_package=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001220
1221 -without-* | --without-*)
1222 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
mmentovaiaf3c43f2007-05-17 18:34:37 +00001224 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
brynercb91a2f2006-08-25 21:14:45 +00001225 { echo "$as_me: error: invalid package name: $ac_package" >&2
1226 { (exit 1); exit 1; }; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00001227 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001228 eval with_$ac_package=no ;;
brynercb91a2f2006-08-25 21:14:45 +00001229
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
1233
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1240
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1247
1248 -*) { echo "$as_me: error: unrecognized option: $ac_option
1249Try \`$0 --help' for more information." >&2
1250 { (exit 1); exit 1; }; }
1251 ;;
1252
1253 *=*)
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1257 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00001259 eval $ac_envvar=\$ac_optarg
brynercb91a2f2006-08-25 21:14:45 +00001260 export $ac_envvar ;;
1261
1262 *)
1263 # FIXME: should be removed in autoconf 3.0.
1264 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1268 ;;
1269
1270 esac
1271done
1272
1273if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 { echo "$as_me: error: missing argument to $ac_option" >&2
1276 { (exit 1); exit 1; }; }
1277fi
1278
mmentovai8c2a4de2006-09-20 16:20:15 +00001279# Be sure to have absolute directory names.
1280for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
brynercb91a2f2006-08-25 21:14:45 +00001284do
mmentovai8c2a4de2006-09-20 16:20:15 +00001285 eval ac_val=\$$ac_var
brynercb91a2f2006-08-25 21:14:45 +00001286 case $ac_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
brynercb91a2f2006-08-25 21:14:45 +00001289 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001290 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1291 { (exit 1); exit 1; }; }
brynercb91a2f2006-08-25 21:14:45 +00001292done
1293
1294# There might be people who depend on the old broken behavior: `$host'
1295# used to hold the argument of --host etc.
1296# FIXME: To remove some day.
1297build=$build_alias
1298host=$host_alias
1299target=$target_alias
1300
1301# FIXME: To remove some day.
1302if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306 If a cross compiler is detected then cross compile mode will be used." >&2
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310fi
1311
1312ac_tool_prefix=
1313test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315test "$silent" = yes && exec 6>/dev/null
1316
1317
mmentovai8c2a4de2006-09-20 16:20:15 +00001318ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319ac_ls_di=`ls -di .` &&
1320ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 { echo "$as_me: error: Working directory cannot be determined" >&2
1322 { (exit 1); exit 1; }; }
1323test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 { echo "$as_me: error: pwd does not report name of working directory" >&2
1325 { (exit 1); exit 1; }; }
1326
1327
brynercb91a2f2006-08-25 21:14:45 +00001328# Find the source files, if location was not specified.
1329if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00001331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$0" ||
brynercb91a2f2006-08-25 21:14:45 +00001333$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$0" : 'X\(//\)[^/]' \| \
1335 X"$0" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +00001336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +00001337echo X"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +00001338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\).*/{
1351 s//\1/
1352 q
1353 }
1354 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +00001355 srcdir=$ac_confdir
mmentovai8c2a4de2006-09-20 16:20:15 +00001356 if test ! -r "$srcdir/$ac_unique_file"; then
brynercb91a2f2006-08-25 21:14:45 +00001357 srcdir=..
1358 fi
1359else
1360 ac_srcdir_defaulted=no
1361fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001362if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
brynercb91a2f2006-08-25 21:14:45 +00001365 { (exit 1); exit 1; }; }
brynercb91a2f2006-08-25 21:14:45 +00001366fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001367ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
brynercb91a2f2006-08-25 21:14:45 +00001370 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00001371 pwd)`
1372# When building in place, set srcdir=.
1373if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375fi
1376# Remove unnecessary trailing slashes from srcdir.
1377# Double slashes in file names in object file debugging info
1378# mess up M-x gdb in Emacs.
1379case $srcdir in
1380*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381esac
1382for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387done
brynercb91a2f2006-08-25 21:14:45 +00001388
1389#
1390# Report the --help message.
1391#
1392if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001396\`configure' configures breakpad 0.1 to adapt to many kinds of systems.
brynercb91a2f2006-08-25 21:14:45 +00001397
1398Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403Defaults for the options are specified in brackets.
1404
1405Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
brynercb91a2f2006-08-25 21:14:45 +00001416Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422By default, \`make install' will install all the files in
1423\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425for instance \`--prefix=\$HOME'.
1426
1427For better control, use the options below.
1428
1429Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
brynercb91a2f2006-08-25 21:14:45 +00001433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
mmentovai8c2a4de2006-09-20 16:20:15 +00001439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
mmentovaie5dc6082007-02-14 19:51:05 +00001444 --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad]
mmentovai8c2a4de2006-09-20 16:20:15 +00001445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
brynercb91a2f2006-08-25 21:14:45 +00001449_ACEOF
1450
1451 cat <<\_ACEOF
1452
1453Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461_ACEOF
1462fi
1463
1464if test -n "$ac_init_help"; then
1465 case $ac_init_help in
mmentovaie5dc6082007-02-14 19:51:05 +00001466 short | recursive ) echo "Configuration of breakpad 0.1:";;
brynercb91a2f2006-08-25 21:14:45 +00001467 esac
1468 cat <<\_ACEOF
1469
1470Optional Features:
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --disable-dependency-tracking speeds up one-time build
1474 --enable-dependency-tracking do not reject slow dependency extractors
mmentovai8c2a4de2006-09-20 16:20:15 +00001475 --enable-shared[=PKGS] build shared libraries [default=yes]
1476 --enable-static[=PKGS] build static libraries [default=yes]
brynercb91a2f2006-08-25 21:14:45 +00001477 --enable-fast-install[=PKGS]
1478 optimize for fast installation [default=yes]
1479 --disable-libtool-lock avoid locking (might break parallel builds)
mmentovai0dbedc92006-09-25 21:16:15 +00001480 --enable-selftest Run extra tests with "make check" (may conflict with
1481 optimizations) (default is no)
brynercb91a2f2006-08-25 21:14:45 +00001482
1483Optional Packages:
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1487 --with-pic try to use only PIC/non-PIC objects [default=use
1488 both]
mmentovai8c2a4de2006-09-20 16:20:15 +00001489 --with-tags[=TAGS] include additional configurations [automatic]
brynercb91a2f2006-08-25 21:14:45 +00001490
1491Some influential environment variables:
1492 CC C compiler command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495 nonstandard directory <lib dir>
mmentovaiaf3c43f2007-05-17 18:34:37 +00001496 LIBS libraries to pass to the linker, e.g. -l<library>
mmentovai8c2a4de2006-09-20 16:20:15 +00001497 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1498 you have headers in a nonstandard directory <include dir>
brynercb91a2f2006-08-25 21:14:45 +00001499 CPP C preprocessor
1500 CXX C++ compiler command
1501 CXXFLAGS C++ compiler flags
1502 CXXCPP C++ preprocessor
mmentovai8c2a4de2006-09-20 16:20:15 +00001503 F77 Fortran 77 compiler command
1504 FFLAGS Fortran 77 compiler flags
brynercb91a2f2006-08-25 21:14:45 +00001505
1506Use these variables to override the choices made by `configure' or to help
1507it to find libraries and programs with nonstandard names/locations.
1508
1509Report bugs to <opensource@google.com>.
1510_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001511ac_status=$?
brynercb91a2f2006-08-25 21:14:45 +00001512fi
1513
1514if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
brynercb91a2f2006-08-25 21:14:45 +00001516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
mmentovai8c2a4de2006-09-20 16:20:15 +00001517 test -d "$ac_dir" || continue
brynercb91a2f2006-08-25 21:14:45 +00001518 ac_builddir=.
1519
mmentovai8c2a4de2006-09-20 16:20:15 +00001520case "$ac_dir" in
1521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522*)
brynercb91a2f2006-08-25 21:14:45 +00001523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530esac
1531ac_abs_top_builddir=$ac_pwd
1532ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533# for backward compatibility:
1534ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00001535
1536case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00001537 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00001538 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00001539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00001542 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00001543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00001549esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00001551
mmentovai8c2a4de2006-09-20 16:20:15 +00001552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
brynercb91a2f2006-08-25 21:14:45 +00001560 else
1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mmentovai8c2a4de2006-09-20 16:20:15 +00001562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
brynercb91a2f2006-08-25 21:14:45 +00001564 done
1565fi
1566
mmentovai8c2a4de2006-09-20 16:20:15 +00001567test -n "$ac_init_help" && exit $ac_status
brynercb91a2f2006-08-25 21:14:45 +00001568if $ac_init_version; then
1569 cat <<\_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001570breakpad configure 0.1
mmentovaiaf3c43f2007-05-17 18:34:37 +00001571generated by GNU Autoconf 2.61
brynercb91a2f2006-08-25 21:14:45 +00001572
mmentovai8c2a4de2006-09-20 16:20:15 +00001573Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15742002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00001575This configure script is free software; the Free Software Foundation
1576gives unlimited permission to copy, distribute and modify it.
1577_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001578 exit
brynercb91a2f2006-08-25 21:14:45 +00001579fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001580cat >config.log <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00001581This file contains any messages produced by compilers while
1582running configure, to aid debugging if configure makes a mistake.
1583
mmentovaie5dc6082007-02-14 19:51:05 +00001584It was created by breakpad $as_me 0.1, which was
mmentovaiaf3c43f2007-05-17 18:34:37 +00001585generated by GNU Autoconf 2.61. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00001586
1587 $ $0 $@
1588
1589_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001590exec 5>>config.log
brynercb91a2f2006-08-25 21:14:45 +00001591{
1592cat <<_ASUNAME
1593## --------- ##
1594## Platform. ##
1595## --------- ##
1596
1597hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
1603/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1605
1606/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1607/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1608/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mmentovai8c2a4de2006-09-20 16:20:15 +00001609/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
brynercb91a2f2006-08-25 21:14:45 +00001610/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1611/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1612/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1613
1614_ASUNAME
1615
1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 echo "PATH: $as_dir"
1622done
mmentovai8c2a4de2006-09-20 16:20:15 +00001623IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00001624
1625} >&5
1626
1627cat >&5 <<_ACEOF
1628
1629
1630## ----------- ##
1631## Core tests. ##
1632## ----------- ##
1633
1634_ACEOF
1635
1636
1637# Keep a trace of the command line.
1638# Strip out --no-create and --no-recursion so they do not pile up.
1639# Strip out --silent because we don't want to record it for future runs.
1640# Also quote any args containing shell meta-characters.
1641# Make two passes to allow for proper duplicate-argument suppression.
1642ac_configure_args=
1643ac_configure_args0=
1644ac_configure_args1=
brynercb91a2f2006-08-25 21:14:45 +00001645ac_must_keep_next=false
1646for ac_pass in 1 2
1647do
1648 for ac_arg
1649 do
1650 case $ac_arg in
1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653 | -silent | --silent | --silen | --sile | --sil)
1654 continue ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001655 *\'*)
brynercb91a2f2006-08-25 21:14:45 +00001656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657 esac
1658 case $ac_pass in
1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660 2)
1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662 if test $ac_must_keep_next = true; then
1663 ac_must_keep_next=false # Got value, back to normal.
1664 else
1665 case $ac_arg in
1666 *=* | --config-cache | -C | -disable-* | --disable-* \
1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669 | -with-* | --with-* | -without-* | --without-* | --x)
1670 case "$ac_configure_args0 " in
1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672 esac
1673 ;;
1674 -* ) ac_must_keep_next=true ;;
1675 esac
1676 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001677 ac_configure_args="$ac_configure_args '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00001678 ;;
1679 esac
1680 done
1681done
1682$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684
1685# When interrupted or exit'd, cleanup temporary files, and complete
1686# config.log. We remove comments because anyway the quotes in there
1687# would cause problems or look ugly.
mmentovai8c2a4de2006-09-20 16:20:15 +00001688# WARNING: Use '\'' to represent an apostrophe within the trap.
1689# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
brynercb91a2f2006-08-25 21:14:45 +00001690trap 'exit_status=$?
1691 # Save into config.log some information that might help in debugging.
1692 {
1693 echo
1694
1695 cat <<\_ASBOX
1696## ---------------- ##
1697## Cache variables. ##
1698## ---------------- ##
1699_ASBOX
1700 echo
1701 # The following way of writing the cache mishandles newlines in values,
mmentovai8c2a4de2006-09-20 16:20:15 +00001702(
1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704 eval ac_val=\$$ac_var
1705 case $ac_val in #(
1706 *${as_nl}*)
1707 case $ac_var in #(
1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710 esac
1711 case $ac_var in #(
1712 _ | IFS | as_nl) ;; #(
1713 *) $as_unset $ac_var ;;
1714 esac ;;
1715 esac
1716 done
brynercb91a2f2006-08-25 21:14:45 +00001717 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00001718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +00001720 sed -n \
mmentovai8c2a4de2006-09-20 16:20:15 +00001721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00001724 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00001725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00001726 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001727 esac |
1728 sort
1729)
brynercb91a2f2006-08-25 21:14:45 +00001730 echo
1731
1732 cat <<\_ASBOX
1733## ----------------- ##
1734## Output variables. ##
1735## ----------------- ##
1736_ASBOX
1737 echo
1738 for ac_var in $ac_subst_vars
1739 do
mmentovai8c2a4de2006-09-20 16:20:15 +00001740 eval ac_val=\$$ac_var
1741 case $ac_val in
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743 esac
1744 echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00001745 done | sort
1746 echo
1747
1748 if test -n "$ac_subst_files"; then
1749 cat <<\_ASBOX
mmentovai8c2a4de2006-09-20 16:20:15 +00001750## ------------------- ##
1751## File substitutions. ##
1752## ------------------- ##
brynercb91a2f2006-08-25 21:14:45 +00001753_ASBOX
1754 echo
1755 for ac_var in $ac_subst_files
1756 do
mmentovai8c2a4de2006-09-20 16:20:15 +00001757 eval ac_val=\$$ac_var
1758 case $ac_val in
1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 esac
1761 echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00001762 done | sort
1763 echo
1764 fi
1765
1766 if test -s confdefs.h; then
1767 cat <<\_ASBOX
1768## ----------- ##
1769## confdefs.h. ##
1770## ----------- ##
1771_ASBOX
1772 echo
mmentovai8c2a4de2006-09-20 16:20:15 +00001773 cat confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00001774 echo
1775 fi
1776 test "$ac_signal" != 0 &&
1777 echo "$as_me: caught signal $ac_signal"
1778 echo "$as_me: exit $exit_status"
1779 } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00001780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
brynercb91a2f2006-08-25 21:14:45 +00001782 exit $exit_status
mmentovai8c2a4de2006-09-20 16:20:15 +00001783' 0
brynercb91a2f2006-08-25 21:14:45 +00001784for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786done
1787ac_signal=0
1788
1789# confdefs.h avoids OS command line length limits that DEFS can exceed.
mmentovai8c2a4de2006-09-20 16:20:15 +00001790rm -f -r conftest* confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00001791
1792# Predefined preprocessor variables.
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_NAME "$PACKAGE_NAME"
1796_ACEOF
1797
1798
1799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801_ACEOF
1802
1803
1804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_VERSION "$PACKAGE_VERSION"
1806_ACEOF
1807
1808
1809cat >>confdefs.h <<_ACEOF
1810#define PACKAGE_STRING "$PACKAGE_STRING"
1811_ACEOF
1812
1813
1814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816_ACEOF
1817
1818
1819# Let the site file select an alternate cache file if it wants to.
1820# Prefer explicitly selected file to automatically selected ones.
mmentovai8c2a4de2006-09-20 16:20:15 +00001821if test -n "$CONFIG_SITE"; then
1822 set x "$CONFIG_SITE"
1823elif test "x$prefix" != xNONE; then
1824 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825else
1826 set x "$ac_default_prefix/share/config.site" \
1827 "$ac_default_prefix/etc/config.site"
brynercb91a2f2006-08-25 21:14:45 +00001828fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001829shift
1830for ac_site_file
1831do
brynercb91a2f2006-08-25 21:14:45 +00001832 if test -r "$ac_site_file"; then
1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834echo "$as_me: loading site script $ac_site_file" >&6;}
1835 sed 's/^/| /' "$ac_site_file" >&5
1836 . "$ac_site_file"
1837 fi
1838done
1839
1840if test -r "$cache_file"; then
1841 # Some versions of bash will fail to source /dev/null (special
1842 # files actually), so we avoid doing that.
1843 if test -f "$cache_file"; then
1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845echo "$as_me: loading cache $cache_file" >&6;}
1846 case $cache_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00001847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848 *) . "./$cache_file";;
brynercb91a2f2006-08-25 21:14:45 +00001849 esac
1850 fi
1851else
1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853echo "$as_me: creating cache $cache_file" >&6;}
1854 >$cache_file
1855fi
1856
1857# Check that the precious variables saved in the cache have kept the same
1858# value.
1859ac_cache_corrupted=false
mmentovai8c2a4de2006-09-20 16:20:15 +00001860for ac_var in $ac_precious_vars; do
brynercb91a2f2006-08-25 21:14:45 +00001861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
mmentovai8c2a4de2006-09-20 16:20:15 +00001863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
brynercb91a2f2006-08-25 21:14:45 +00001865 case $ac_old_set,$ac_new_set in
1866 set,)
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1870 ,set)
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1874 ,);;
1875 *)
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1880echo "$as_me: former value: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1882echo "$as_me: current value: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1884 fi;;
1885 esac
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1888 case $ac_new_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00001890 *) ac_arg=$ac_var=$ac_new_val ;;
1891 esac
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895 esac
1896 fi
1897done
1898if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1904fi
1905
mmentovai8c2a4de2006-09-20 16:20:15 +00001906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
brynercb91a2f2006-08-25 21:14:45 +00001930ac_ext=c
1931ac_cpp='$CPP $CPPFLAGS'
1932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935
1936
1937
brynercb91a2f2006-08-25 21:14:45 +00001938ac_aux_dir=
mmentovai8c2a4de2006-09-20 16:20:15 +00001939for ac_dir in autotools "$srcdir"/autotools; do
1940 if test -f "$ac_dir/install-sh"; then
brynercb91a2f2006-08-25 21:14:45 +00001941 ac_aux_dir=$ac_dir
1942 ac_install_sh="$ac_aux_dir/install-sh -c"
1943 break
mmentovai8c2a4de2006-09-20 16:20:15 +00001944 elif test -f "$ac_dir/install.sh"; then
brynercb91a2f2006-08-25 21:14:45 +00001945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/install.sh -c"
1947 break
mmentovai8c2a4de2006-09-20 16:20:15 +00001948 elif test -f "$ac_dir/shtool"; then
brynercb91a2f2006-08-25 21:14:45 +00001949 ac_aux_dir=$ac_dir
1950 ac_install_sh="$ac_aux_dir/shtool install -c"
1951 break
1952 fi
1953done
1954if test -z "$ac_aux_dir"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00001955 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&5
1956echo "$as_me: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00001957 { (exit 1); exit 1; }; }
1958fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001959
1960# These three variables are undocumented and unsupported,
1961# and are intended to be withdrawn in a future Autoconf release.
1962# They can cause serious problems if a builder's source tree is in a directory
1963# whose full name contains unusual characters.
1964ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1965ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1966ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1967
brynercb91a2f2006-08-25 21:14:45 +00001968
mmentovai425d2562006-08-30 20:05:05 +00001969
mmentovaiaf3c43f2007-05-17 18:34:37 +00001970am__api_version='1.10'
1971
brynercb91a2f2006-08-25 21:14:45 +00001972# Find a good install program. We prefer a C program (faster),
1973# so one script is as good as another. But avoid the broken or
1974# incompatible versions:
1975# SysV /etc/install, /usr/sbin/install
1976# SunOS /usr/etc/install
1977# IRIX /sbin/install
1978# AIX /bin/install
1979# AmigaOS /C/install, which installs bootblocks on floppy discs
1980# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1981# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1982# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1983# OS/2's system install, which has a completely different semantic
1984# ./install, which can be erroneously created by make from ./install.sh.
mmentovai8c2a4de2006-09-20 16:20:15 +00001985{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1986echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00001987if test -z "$INSTALL"; then
1988if test "${ac_cv_path_install+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990else
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992for as_dir in $PATH
1993do
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 # Account for people who put trailing slashes in PATH elements.
1997case $as_dir/ in
1998 ./ | .// | /cC/* | \
1999 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2000 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2001 /usr/ucb/* ) ;;
2002 *)
2003 # OSF1 and SCO ODT 3.0 have their own names for install.
2004 # Don't use installbsd from OSF since it installs stuff as root
2005 # by default.
2006 for ac_prog in ginstall scoinst install; do
2007 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002008 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 +00002009 if test $ac_prog = install &&
2010 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2011 # AIX install. It has an incompatible calling convention.
2012 :
2013 elif test $ac_prog = install &&
2014 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # program-specific install script used by HP pwplus--don't use.
2016 :
2017 else
2018 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2019 break 3
2020 fi
2021 fi
2022 done
2023 done
2024 ;;
2025esac
2026done
mmentovai8c2a4de2006-09-20 16:20:15 +00002027IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002028
2029
2030fi
2031 if test "${ac_cv_path_install+set}" = set; then
2032 INSTALL=$ac_cv_path_install
2033 else
mmentovai8c2a4de2006-09-20 16:20:15 +00002034 # As a last resort, use the slow shell script. Don't cache a
2035 # value for INSTALL within a source directory, because that will
brynercb91a2f2006-08-25 21:14:45 +00002036 # break other packages using the cache if that directory is
mmentovai8c2a4de2006-09-20 16:20:15 +00002037 # removed, or if the value is a relative name.
brynercb91a2f2006-08-25 21:14:45 +00002038 INSTALL=$ac_install_sh
2039 fi
2040fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002041{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2042echo "${ECHO_T}$INSTALL" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002043
2044# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2045# It thinks the first close brace ends the variable substitution.
2046test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2047
2048test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2049
2050test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2051
mmentovai8c2a4de2006-09-20 16:20:15 +00002052{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2053echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002054# Just in case
2055sleep 1
2056echo timestamp > conftest.file
2057# Do `set' in a subshell so we don't clobber the current shell's
2058# arguments. Must try -L first in case configure is actually a
2059# symlink; some systems play weird games with the mod time of symlinks
2060# (eg FreeBSD returns the mod time of the symlink's containing
2061# directory).
2062if (
2063 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2064 if test "$*" = "X"; then
2065 # -L didn't work.
2066 set X `ls -t $srcdir/configure conftest.file`
2067 fi
2068 rm -f conftest.file
2069 if test "$*" != "X $srcdir/configure conftest.file" \
2070 && test "$*" != "X conftest.file $srcdir/configure"; then
2071
2072 # If neither matched, then we have a broken ls. This can happen
2073 # if, for instance, CONFIG_SHELL is bash and it inherits a
2074 # broken ls alias from the environment. This has actually
2075 # happened. Such a system could not be considered "sane".
2076 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2077alias in your environment" >&5
2078echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2079alias in your environment" >&2;}
2080 { (exit 1); exit 1; }; }
2081 fi
2082
2083 test "$2" = conftest.file
2084 )
2085then
2086 # Ok.
2087 :
2088else
2089 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2090Check your system clock" >&5
2091echo "$as_me: error: newly created file is older than distributed files!
2092Check your system clock" >&2;}
2093 { (exit 1); exit 1; }; }
2094fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002095{ echo "$as_me:$LINENO: result: yes" >&5
2096echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002097test "$program_prefix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002098 program_transform_name="s&^&$program_prefix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002099# Use a double $ so make ignores it.
2100test "$program_suffix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002101 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002102# Double any \ or $. echo might interpret backslashes.
2103# By default was `s,x,x', remove it if useless.
2104cat <<\_ACEOF >conftest.sed
2105s/[\\$]/&&/g;s/;s,x,x,$//
2106_ACEOF
2107program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
mmentovai8c2a4de2006-09-20 16:20:15 +00002108rm -f conftest.sed
brynercb91a2f2006-08-25 21:14:45 +00002109
2110# expand $ac_aux_dir to an absolute path
2111am_aux_dir=`cd $ac_aux_dir && pwd`
2112
2113test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2114# Use eval to expand $SHELL
2115if eval "$MISSING --run true"; then
2116 am_missing_run="$MISSING --run "
2117else
2118 am_missing_run=
2119 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2120echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2121fi
2122
mmentovaiaf3c43f2007-05-17 18:34:37 +00002123{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2124echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2125if test -z "$MKDIR_P"; then
2126 if test "${ac_cv_path_mkdir+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
brynercb91a2f2006-08-25 21:14:45 +00002128else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2131do
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 for ac_prog in mkdir gmkdir; do
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2137 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2138 'mkdir (GNU coreutils) '* | \
2139 'mkdir (coreutils) '* | \
2140 'mkdir (fileutils) '4.1*)
2141 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2142 break 3;;
2143 esac
2144 done
2145 done
2146done
2147IFS=$as_save_IFS
2148
2149fi
2150
2151 if test "${ac_cv_path_mkdir+set}" = set; then
2152 MKDIR_P="$ac_cv_path_mkdir -p"
brynercb91a2f2006-08-25 21:14:45 +00002153 else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002154 # As a last resort, use the slow shell script. Don't cache a
2155 # value for MKDIR_P within a source directory, because that will
2156 # break other packages using the cache if that directory is
2157 # removed, or if the value is a relative name.
2158 test -d ./--version && rmdir ./--version
2159 MKDIR_P="$ac_install_sh -d"
brynercb91a2f2006-08-25 21:14:45 +00002160 fi
2161fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00002162{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2163echo "${ECHO_T}$MKDIR_P" >&6; }
2164
2165mkdir_p="$MKDIR_P"
2166case $mkdir_p in
2167 [\\/$]* | ?:[\\/]*) ;;
2168 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2169esac
brynercb91a2f2006-08-25 21:14:45 +00002170
2171for ac_prog in gawk mawk nawk awk
2172do
2173 # Extract the first word of "$ac_prog", so it can be a program name with args.
2174set dummy $ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002177if test "${ac_cv_prog_AWK+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180 if test -n "$AWK"; then
2181 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2182else
2183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184for as_dir in $PATH
2185do
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002189 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 +00002190 ac_cv_prog_AWK="$ac_prog"
2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 break 2
2193 fi
2194done
2195done
mmentovai8c2a4de2006-09-20 16:20:15 +00002196IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002197
2198fi
2199fi
2200AWK=$ac_cv_prog_AWK
2201if test -n "$AWK"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002202 { echo "$as_me:$LINENO: result: $AWK" >&5
2203echo "${ECHO_T}$AWK" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002204else
mmentovai8c2a4de2006-09-20 16:20:15 +00002205 { echo "$as_me:$LINENO: result: no" >&5
2206echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002207fi
2208
mmentovai8c2a4de2006-09-20 16:20:15 +00002209
brynercb91a2f2006-08-25 21:14:45 +00002210 test -n "$AWK" && break
2211done
2212
mmentovai8c2a4de2006-09-20 16:20:15 +00002213{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2214echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2215set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2216if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218else
2219 cat >conftest.make <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002220SHELL = /bin/sh
brynercb91a2f2006-08-25 21:14:45 +00002221all:
mmentovai8c2a4de2006-09-20 16:20:15 +00002222 @echo '@@@%%%=$(MAKE)=@@@%%%'
brynercb91a2f2006-08-25 21:14:45 +00002223_ACEOF
2224# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
mmentovai8c2a4de2006-09-20 16:20:15 +00002225case `${MAKE-make} -f conftest.make 2>/dev/null` in
2226 *@@@%%%=?*=@@@%%%*)
2227 eval ac_cv_prog_make_${ac_make}_set=yes;;
2228 *)
2229 eval ac_cv_prog_make_${ac_make}_set=no;;
2230esac
brynercb91a2f2006-08-25 21:14:45 +00002231rm -f conftest.make
2232fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002233if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2234 { echo "$as_me:$LINENO: result: yes" >&5
2235echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002236 SET_MAKE=
2237else
mmentovai8c2a4de2006-09-20 16:20:15 +00002238 { echo "$as_me:$LINENO: result: no" >&5
2239echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002240 SET_MAKE="MAKE=${MAKE-make}"
2241fi
2242
2243rm -rf .tst 2>/dev/null
2244mkdir .tst 2>/dev/null
2245if test -d .tst; then
2246 am__leading_dot=.
2247else
2248 am__leading_dot=_
2249fi
2250rmdir .tst 2>/dev/null
2251
mmentovaiaf3c43f2007-05-17 18:34:37 +00002252if test "`cd $srcdir && pwd`" != "`pwd`"; then
2253 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2254 # is not polluted with repeated "-I."
2255 am__isrc=' -I$(srcdir)'
2256 # test to see if srcdir already configured
2257 if test -f $srcdir/config.status; then
2258 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
brynercb91a2f2006-08-25 21:14:45 +00002259echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2260 { (exit 1); exit 1; }; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002261 fi
brynercb91a2f2006-08-25 21:14:45 +00002262fi
2263
2264# test whether we have cygpath
2265if test -z "$CYGPATH_W"; then
2266 if (cygpath --version) >/dev/null 2>/dev/null; then
2267 CYGPATH_W='cygpath -w'
2268 else
2269 CYGPATH_W=echo
2270 fi
2271fi
2272
2273
2274# Define the identity of the package.
mmentovaie5dc6082007-02-14 19:51:05 +00002275 PACKAGE='breakpad'
brynercb91a2f2006-08-25 21:14:45 +00002276 VERSION='0.1'
2277
2278
2279cat >>confdefs.h <<_ACEOF
2280#define PACKAGE "$PACKAGE"
2281_ACEOF
2282
2283
2284cat >>confdefs.h <<_ACEOF
2285#define VERSION "$VERSION"
2286_ACEOF
2287
2288# Some tools Automake needs.
2289
2290ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2291
2292
2293AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2294
2295
2296AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2297
2298
2299AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2300
2301
2302MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2303
mmentovaiaf3c43f2007-05-17 18:34:37 +00002304install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
brynercb91a2f2006-08-25 21:14:45 +00002305
2306# Installed binaries are usually stripped using `strip' when the user
2307# run `make install-strip'. However `strip' might not be the right
2308# tool to use in cross-compilation environments, therefore Automake
2309# will honor the `STRIP' environment variable to overrule this program.
2310if test "$cross_compiling" != no; then
2311 if test -n "$ac_tool_prefix"; then
2312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2313set dummy ${ac_tool_prefix}strip; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002316if test "${ac_cv_prog_STRIP+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2318else
2319 if test -n "$STRIP"; then
2320 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2321else
2322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323for as_dir in $PATH
2324do
2325 IFS=$as_save_IFS
2326 test -z "$as_dir" && as_dir=.
2327 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002328 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 +00002329 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2331 break 2
2332 fi
2333done
2334done
mmentovai8c2a4de2006-09-20 16:20:15 +00002335IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002336
2337fi
2338fi
2339STRIP=$ac_cv_prog_STRIP
2340if test -n "$STRIP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002341 { echo "$as_me:$LINENO: result: $STRIP" >&5
2342echo "${ECHO_T}$STRIP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002343else
mmentovai8c2a4de2006-09-20 16:20:15 +00002344 { echo "$as_me:$LINENO: result: no" >&5
2345echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002346fi
2347
mmentovai8c2a4de2006-09-20 16:20:15 +00002348
brynercb91a2f2006-08-25 21:14:45 +00002349fi
2350if test -z "$ac_cv_prog_STRIP"; then
2351 ac_ct_STRIP=$STRIP
2352 # Extract the first word of "strip", so it can be a program name with args.
2353set dummy strip; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002356if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2358else
2359 if test -n "$ac_ct_STRIP"; then
2360 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2361else
2362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363for as_dir in $PATH
2364do
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002368 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 +00002369 ac_cv_prog_ac_ct_STRIP="strip"
2370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 break 2
2372 fi
2373done
2374done
mmentovai8c2a4de2006-09-20 16:20:15 +00002375IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002376
brynercb91a2f2006-08-25 21:14:45 +00002377fi
2378fi
2379ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2380if test -n "$ac_ct_STRIP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002381 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2382echo "${ECHO_T}$ac_ct_STRIP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002383else
mmentovai8c2a4de2006-09-20 16:20:15 +00002384 { echo "$as_me:$LINENO: result: no" >&5
2385echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002386fi
2387
mmentovai8c2a4de2006-09-20 16:20:15 +00002388 if test "x$ac_ct_STRIP" = x; then
2389 STRIP=":"
2390 else
2391 case $cross_compiling:$ac_tool_warned in
2392yes:)
2393{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2394whose name does not start with the host triplet. If you think this
2395configuration is useful to you, please write to autoconf@gnu.org." >&5
2396echo "$as_me: 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." >&2;}
2399ac_tool_warned=yes ;;
2400esac
2401 STRIP=$ac_ct_STRIP
2402 fi
brynercb91a2f2006-08-25 21:14:45 +00002403else
2404 STRIP="$ac_cv_prog_STRIP"
2405fi
2406
2407fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00002408INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
brynercb91a2f2006-08-25 21:14:45 +00002409
2410# We need awk for the "check" target. The system "awk" is bad on
2411# some platforms.
2412# Always define AMTAR for backward compatibility.
2413
2414AMTAR=${AMTAR-"${am_missing_run}tar"}
2415
mmentovaidb3342a2006-12-05 22:52:28 +00002416
2417{ echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2418echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
2419# Loop over all known methods to create a tar archive until one works.
2420_am_tools='gnutar plaintar pax cpio none'
2421_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2422# Do not fold the above two line into one, because Tru64 sh and
2423# Solaris sh will not grok spaces in the rhs of `-'.
2424for _am_tool in $_am_tools
2425do
2426 case $_am_tool in
2427 gnutar)
2428 for _am_tar in tar gnutar gtar;
2429 do
2430 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2431 ($_am_tar --version) >&5 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } && break
2435 done
2436 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2437 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2438 am__untar="$_am_tar -xf -"
2439 ;;
2440 plaintar)
2441 # Must skip GNU tar: if it does not support --format= it doesn't create
2442 # ustar tarball either.
2443 (tar --version) >/dev/null 2>&1 && continue
2444 am__tar='tar chf - "$$tardir"'
2445 am__tar_='tar chf - "$tardir"'
2446 am__untar='tar xf -'
2447 ;;
2448 pax)
2449 am__tar='pax -L -x ustar -w "$$tardir"'
2450 am__tar_='pax -L -x ustar -w "$tardir"'
2451 am__untar='pax -r'
2452 ;;
2453 cpio)
2454 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2455 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2456 am__untar='cpio -i -H ustar -d'
2457 ;;
2458 none)
2459 am__tar=false
2460 am__tar_=false
2461 am__untar=false
2462 ;;
2463 esac
2464
2465 # If the value was cached, stop now. We just wanted to have am__tar
2466 # and am__untar set.
2467 test -n "${am_cv_prog_tar_ustar}" && break
2468
2469 # tar/untar a dummy directory, and stop if the command works
2470 rm -rf conftest.dir
2471 mkdir conftest.dir
2472 echo GrepMe > conftest.dir/file
2473 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2474 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2475 ac_status=$?
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }
2478 rm -rf conftest.dir
2479 if test -s conftest.tar; then
2480 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2481 ($am__untar <conftest.tar) >&5 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }
2485 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2486 fi
2487done
2488rm -rf conftest.dir
2489
2490if test "${am_cv_prog_tar_ustar+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2492else
2493 am_cv_prog_tar_ustar=$_am_tool
2494fi
2495
2496{ echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2497echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002498
2499
2500
2501
2502
mmentovai8c2a4de2006-09-20 16:20:15 +00002503ac_config_headers="$ac_config_headers src/config.h"
brynercb91a2f2006-08-25 21:14:45 +00002504
2505
brynercb91a2f2006-08-25 21:14:45 +00002506ac_ext=c
2507ac_cpp='$CPP $CPPFLAGS'
2508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511if test -n "$ac_tool_prefix"; then
2512 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2513set dummy ${ac_tool_prefix}gcc; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002516if test "${ac_cv_prog_CC+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2518else
2519 if test -n "$CC"; then
2520 ac_cv_prog_CC="$CC" # Let the user override the test.
2521else
2522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523for as_dir in $PATH
2524do
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002528 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 +00002529 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 break 2
2532 fi
2533done
2534done
mmentovai8c2a4de2006-09-20 16:20:15 +00002535IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002536
2537fi
2538fi
2539CC=$ac_cv_prog_CC
2540if test -n "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002541 { echo "$as_me:$LINENO: result: $CC" >&5
2542echo "${ECHO_T}$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002543else
mmentovai8c2a4de2006-09-20 16:20:15 +00002544 { echo "$as_me:$LINENO: result: no" >&5
2545echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002546fi
2547
mmentovai8c2a4de2006-09-20 16:20:15 +00002548
brynercb91a2f2006-08-25 21:14:45 +00002549fi
2550if test -z "$ac_cv_prog_CC"; then
2551 ac_ct_CC=$CC
2552 # Extract the first word of "gcc", so it can be a program name with args.
2553set dummy gcc; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002556if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2558else
2559 if test -n "$ac_ct_CC"; then
2560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2561else
2562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH
2564do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002568 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 +00002569 ac_cv_prog_ac_ct_CC="gcc"
2570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 break 2
2572 fi
2573done
2574done
mmentovai8c2a4de2006-09-20 16:20:15 +00002575IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002576
2577fi
2578fi
2579ac_ct_CC=$ac_cv_prog_ac_ct_CC
2580if test -n "$ac_ct_CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002581 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2582echo "${ECHO_T}$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002583else
mmentovai8c2a4de2006-09-20 16:20:15 +00002584 { echo "$as_me:$LINENO: result: no" >&5
2585echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002586fi
2587
mmentovai8c2a4de2006-09-20 16:20:15 +00002588 if test "x$ac_ct_CC" = x; then
2589 CC=""
2590 else
2591 case $cross_compiling:$ac_tool_warned in
2592yes:)
2593{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2594whose name does not start with the host triplet. If you think this
2595configuration is useful to you, please write to autoconf@gnu.org." >&5
2596echo "$as_me: 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." >&2;}
2599ac_tool_warned=yes ;;
2600esac
2601 CC=$ac_ct_CC
2602 fi
brynercb91a2f2006-08-25 21:14:45 +00002603else
2604 CC="$ac_cv_prog_CC"
2605fi
2606
2607if test -z "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002608 if test -n "$ac_tool_prefix"; then
2609 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
brynercb91a2f2006-08-25 21:14:45 +00002610set dummy ${ac_tool_prefix}cc; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002613if test "${ac_cv_prog_CC+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615else
2616 if test -n "$CC"; then
2617 ac_cv_prog_CC="$CC" # Let the user override the test.
2618else
2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620for as_dir in $PATH
2621do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002625 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 +00002626 ac_cv_prog_CC="${ac_tool_prefix}cc"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630done
2631done
mmentovai8c2a4de2006-09-20 16:20:15 +00002632IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002633
2634fi
2635fi
2636CC=$ac_cv_prog_CC
2637if test -n "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002638 { echo "$as_me:$LINENO: result: $CC" >&5
2639echo "${ECHO_T}$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002640else
mmentovai8c2a4de2006-09-20 16:20:15 +00002641 { echo "$as_me:$LINENO: result: no" >&5
2642echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002643fi
2644
mmentovai8c2a4de2006-09-20 16:20:15 +00002645
brynercb91a2f2006-08-25 21:14:45 +00002646 fi
brynercb91a2f2006-08-25 21:14:45 +00002647fi
2648if test -z "$CC"; then
2649 # Extract the first word of "cc", so it can be a program name with args.
2650set dummy cc; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002653if test "${ac_cv_prog_CC+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2655else
2656 if test -n "$CC"; then
2657 ac_cv_prog_CC="$CC" # Let the user override the test.
2658else
2659 ac_prog_rejected=no
2660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661for as_dir in $PATH
2662do
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002666 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 +00002667 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2668 ac_prog_rejected=yes
2669 continue
2670 fi
2671 ac_cv_prog_CC="cc"
2672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2674 fi
2675done
2676done
mmentovai8c2a4de2006-09-20 16:20:15 +00002677IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002678
2679if test $ac_prog_rejected = yes; then
2680 # We found a bogon in the path, so make sure we never use it.
2681 set dummy $ac_cv_prog_CC
2682 shift
2683 if test $# != 0; then
2684 # We chose a different compiler from the bogus one.
2685 # However, it has the same basename, so the bogon will be chosen
2686 # first if we set CC to just the basename; use the full file name.
2687 shift
2688 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2689 fi
2690fi
2691fi
2692fi
2693CC=$ac_cv_prog_CC
2694if test -n "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002695 { echo "$as_me:$LINENO: result: $CC" >&5
2696echo "${ECHO_T}$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002697else
mmentovai8c2a4de2006-09-20 16:20:15 +00002698 { echo "$as_me:$LINENO: result: no" >&5
2699echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002700fi
2701
mmentovai8c2a4de2006-09-20 16:20:15 +00002702
brynercb91a2f2006-08-25 21:14:45 +00002703fi
2704if test -z "$CC"; then
2705 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002706 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00002707 do
2708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2709set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002710{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002712if test "${ac_cv_prog_CC+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2714else
2715 if test -n "$CC"; then
2716 ac_cv_prog_CC="$CC" # Let the user override the test.
2717else
2718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH
2720do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002724 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 +00002725 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2728 fi
2729done
2730done
mmentovai8c2a4de2006-09-20 16:20:15 +00002731IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002732
2733fi
2734fi
2735CC=$ac_cv_prog_CC
2736if test -n "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002737 { echo "$as_me:$LINENO: result: $CC" >&5
2738echo "${ECHO_T}$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002739else
mmentovai8c2a4de2006-09-20 16:20:15 +00002740 { echo "$as_me:$LINENO: result: no" >&5
2741echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002742fi
2743
mmentovai8c2a4de2006-09-20 16:20:15 +00002744
brynercb91a2f2006-08-25 21:14:45 +00002745 test -n "$CC" && break
2746 done
2747fi
2748if test -z "$CC"; then
2749 ac_ct_CC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00002750 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00002751do
2752 # Extract the first word of "$ac_prog", so it can be a program name with args.
2753set dummy $ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002754{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002756if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758else
2759 if test -n "$ac_ct_CC"; then
2760 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2761else
2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763for as_dir in $PATH
2764do
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002768 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 +00002769 ac_cv_prog_ac_ct_CC="$ac_prog"
2770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 break 2
2772 fi
2773done
2774done
mmentovai8c2a4de2006-09-20 16:20:15 +00002775IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002776
2777fi
2778fi
2779ac_ct_CC=$ac_cv_prog_ac_ct_CC
2780if test -n "$ac_ct_CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002781 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2782echo "${ECHO_T}$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002783else
mmentovai8c2a4de2006-09-20 16:20:15 +00002784 { echo "$as_me:$LINENO: result: no" >&5
2785echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002786fi
2787
mmentovai8c2a4de2006-09-20 16:20:15 +00002788
brynercb91a2f2006-08-25 21:14:45 +00002789 test -n "$ac_ct_CC" && break
2790done
2791
mmentovai8c2a4de2006-09-20 16:20:15 +00002792 if test "x$ac_ct_CC" = x; then
2793 CC=""
2794 else
2795 case $cross_compiling:$ac_tool_warned in
2796yes:)
2797{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2798whose name does not start with the host triplet. If you think this
2799configuration is useful to you, please write to autoconf@gnu.org." >&5
2800echo "$as_me: 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." >&2;}
2803ac_tool_warned=yes ;;
2804esac
2805 CC=$ac_ct_CC
2806 fi
brynercb91a2f2006-08-25 21:14:45 +00002807fi
2808
2809fi
2810
2811
2812test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2813See \`config.log' for more details." >&5
2814echo "$as_me: error: no acceptable C compiler found in \$PATH
2815See \`config.log' for more details." >&2;}
2816 { (exit 1); exit 1; }; }
2817
2818# Provide some information about the compiler.
mmentovai8c2a4de2006-09-20 16:20:15 +00002819echo "$as_me:$LINENO: checking for C compiler version" >&5
brynercb91a2f2006-08-25 21:14:45 +00002820ac_compiler=`set X $ac_compile; echo $2`
mmentovai8c2a4de2006-09-20 16:20:15 +00002821{ (ac_try="$ac_compiler --version >&5"
2822case "(($ac_try" in
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2825esac
2826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827 (eval "$ac_compiler --version >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }
mmentovai8c2a4de2006-09-20 16:20:15 +00002831{ (ac_try="$ac_compiler -v >&5"
2832case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2835esac
2836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_compiler -v >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }
mmentovai8c2a4de2006-09-20 16:20:15 +00002841{ (ac_try="$ac_compiler -V >&5"
2842case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845esac
2846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_compiler -V >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }
2851
2852cat >conftest.$ac_ext <<_ACEOF
2853/* confdefs.h. */
2854_ACEOF
2855cat confdefs.h >>conftest.$ac_ext
2856cat >>conftest.$ac_ext <<_ACEOF
2857/* end confdefs.h. */
2858
2859int
2860main ()
2861{
2862
2863 ;
2864 return 0;
2865}
2866_ACEOF
2867ac_clean_files_save=$ac_clean_files
2868ac_clean_files="$ac_clean_files a.out a.exe b.out"
2869# Try to create an executable without -o first, disregard a.out.
2870# It will help us diagnose broken compilers, and finding out an intuition
2871# of exeext.
mmentovai8c2a4de2006-09-20 16:20:15 +00002872{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2873echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002874ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
mmentovai8c2a4de2006-09-20 16:20:15 +00002875#
2876# List of possible output files, starting from the most likely.
2877# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2878# only as a last resort. b.out is created by i960 compilers.
2879ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2880#
2881# The IRIX 6 linker writes into existing files which may not be
2882# executable, retaining their permissions. Remove them first so a
2883# subsequent execution test works.
2884ac_rmfiles=
2885for ac_file in $ac_files
2886do
2887 case $ac_file in
2888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2889 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2890 esac
2891done
2892rm -f $ac_rmfiles
2893
2894if { (ac_try="$ac_link_default"
2895case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_link_default") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002904 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2905# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2906# in a Makefile. We should not override ac_cv_exeext if it was cached,
2907# so that the user can short-circuit this test for compilers unknown to
2908# Autoconf.
mmentovaiaf3c43f2007-05-17 18:34:37 +00002909for ac_file in $ac_files ''
brynercb91a2f2006-08-25 21:14:45 +00002910do
2911 test -f "$ac_file" || continue
2912 case $ac_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
brynercb91a2f2006-08-25 21:14:45 +00002914 ;;
2915 [ab].out )
2916 # We found the default executable, but exeext='' is most
2917 # certainly right.
2918 break;;
2919 *.* )
mmentovai8c2a4de2006-09-20 16:20:15 +00002920 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2921 then :; else
2922 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2923 fi
2924 # We set ac_cv_exeext here because the later test for it is not
2925 # safe: cross compilers may not add the suffix if given an `-o'
2926 # argument, so we may need to know it at that point already.
2927 # Even if this section looks crufty: it has the advantage of
2928 # actually working.
brynercb91a2f2006-08-25 21:14:45 +00002929 break;;
2930 * )
2931 break;;
2932 esac
2933done
mmentovai8c2a4de2006-09-20 16:20:15 +00002934test "$ac_cv_exeext" = no && ac_cv_exeext=
2935
brynercb91a2f2006-08-25 21:14:45 +00002936else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002937 ac_file=''
2938fi
2939
2940{ echo "$as_me:$LINENO: result: $ac_file" >&5
2941echo "${ECHO_T}$ac_file" >&6; }
2942if test -z "$ac_file"; then
brynercb91a2f2006-08-25 21:14:45 +00002943 echo "$as_me: failed program was:" >&5
2944sed 's/^/| /' conftest.$ac_ext >&5
2945
2946{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2947See \`config.log' for more details." >&5
2948echo "$as_me: error: C compiler cannot create executables
2949See \`config.log' for more details." >&2;}
2950 { (exit 77); exit 77; }; }
2951fi
2952
2953ac_exeext=$ac_cv_exeext
brynercb91a2f2006-08-25 21:14:45 +00002954
mmentovai8c2a4de2006-09-20 16:20:15 +00002955# Check that the compiler produces executables we can run. If not, either
brynercb91a2f2006-08-25 21:14:45 +00002956# the compiler is broken, or we cross compile.
mmentovai8c2a4de2006-09-20 16:20:15 +00002957{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2958echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002959# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2960# If not cross compiling, check that we can run a simple program.
2961if test "$cross_compiling" != yes; then
2962 if { ac_try='./$ac_file'
mmentovai8c2a4de2006-09-20 16:20:15 +00002963 { (case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2966esac
2967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2972 cross_compiling=no
2973 else
2974 if test "$cross_compiling" = maybe; then
2975 cross_compiling=yes
2976 else
2977 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2978If you meant to cross compile, use \`--host'.
2979See \`config.log' for more details." >&5
2980echo "$as_me: error: cannot run C compiled programs.
2981If you meant to cross compile, use \`--host'.
2982See \`config.log' for more details." >&2;}
2983 { (exit 1); exit 1; }; }
2984 fi
2985 fi
2986fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002987{ echo "$as_me:$LINENO: result: yes" >&5
2988echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002989
2990rm -f a.out a.exe conftest$ac_cv_exeext b.out
2991ac_clean_files=$ac_clean_files_save
mmentovai8c2a4de2006-09-20 16:20:15 +00002992# Check that the compiler produces executables we can run. If not, either
brynercb91a2f2006-08-25 21:14:45 +00002993# the compiler is broken, or we cross compile.
mmentovai8c2a4de2006-09-20 16:20:15 +00002994{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2995echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2996{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2997echo "${ECHO_T}$cross_compiling" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002998
mmentovai8c2a4de2006-09-20 16:20:15 +00002999{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3000echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3001if { (ac_try="$ac_link"
3002case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005esac
3006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; then
3011 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3012# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3013# work properly (i.e., refer to `conftest.exe'), while it won't with
3014# `rm'.
3015for ac_file in conftest.exe conftest conftest.*; do
3016 test -f "$ac_file" || continue
3017 case $ac_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00003018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
brynercb91a2f2006-08-25 21:14:45 +00003020 break;;
3021 * ) break;;
3022 esac
3023done
3024else
3025 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3026See \`config.log' for more details." >&5
3027echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3028See \`config.log' for more details." >&2;}
3029 { (exit 1); exit 1; }; }
3030fi
3031
3032rm -f conftest$ac_cv_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00003033{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3034echo "${ECHO_T}$ac_cv_exeext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003035
3036rm -f conftest.$ac_ext
3037EXEEXT=$ac_cv_exeext
3038ac_exeext=$EXEEXT
mmentovai8c2a4de2006-09-20 16:20:15 +00003039{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3040echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003041if test "${ac_cv_objext+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3043else
3044 cat >conftest.$ac_ext <<_ACEOF
3045/* confdefs.h. */
3046_ACEOF
3047cat confdefs.h >>conftest.$ac_ext
3048cat >>conftest.$ac_ext <<_ACEOF
3049/* end confdefs.h. */
3050
3051int
3052main ()
3053{
3054
3055 ;
3056 return 0;
3057}
3058_ACEOF
3059rm -f conftest.o conftest.obj
mmentovai8c2a4de2006-09-20 16:20:15 +00003060if { (ac_try="$ac_compile"
3061case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064esac
3065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_compile") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003070 for ac_file in conftest.o conftest.obj conftest.*; do
3071 test -f "$ac_file" || continue;
brynercb91a2f2006-08-25 21:14:45 +00003072 case $ac_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00003073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003074 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3075 break;;
3076 esac
3077done
3078else
3079 echo "$as_me: failed program was:" >&5
3080sed 's/^/| /' conftest.$ac_ext >&5
3081
3082{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3083See \`config.log' for more details." >&5
3084echo "$as_me: error: cannot compute suffix of object files: cannot compile
3085See \`config.log' for more details." >&2;}
3086 { (exit 1); exit 1; }; }
3087fi
3088
3089rm -f conftest.$ac_cv_objext conftest.$ac_ext
3090fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003091{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3092echo "${ECHO_T}$ac_cv_objext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003093OBJEXT=$ac_cv_objext
3094ac_objext=$OBJEXT
mmentovai8c2a4de2006-09-20 16:20:15 +00003095{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3096echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003097if test "${ac_cv_c_compiler_gnu+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3099else
3100 cat >conftest.$ac_ext <<_ACEOF
3101/* confdefs.h. */
3102_ACEOF
3103cat confdefs.h >>conftest.$ac_ext
3104cat >>conftest.$ac_ext <<_ACEOF
3105/* end confdefs.h. */
3106
3107int
3108main ()
3109{
3110#ifndef __GNUC__
3111 choke me
3112#endif
3113
3114 ;
3115 return 0;
3116}
3117_ACEOF
3118rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00003119if { (ac_try="$ac_compile"
3120case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123esac
3124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003126 ac_status=$?
3127 grep -v '^ *+' conftest.er1 >conftest.err
3128 rm -f conftest.er1
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00003131 (exit $ac_status); } && {
3132 test -z "$ac_c_werror_flag" ||
3133 test ! -s conftest.err
3134 } && test -s conftest.$ac_objext; then
brynercb91a2f2006-08-25 21:14:45 +00003135 ac_compiler_gnu=yes
3136else
3137 echo "$as_me: failed program was:" >&5
3138sed 's/^/| /' conftest.$ac_ext >&5
3139
mmentovai8c2a4de2006-09-20 16:20:15 +00003140 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00003141fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003142
3143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003144ac_cv_c_compiler_gnu=$ac_compiler_gnu
3145
3146fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003147{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3148echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003149GCC=`test $ac_compiler_gnu = yes && echo yes`
3150ac_test_CFLAGS=${CFLAGS+set}
3151ac_save_CFLAGS=$CFLAGS
mmentovai8c2a4de2006-09-20 16:20:15 +00003152{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3153echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003154if test "${ac_cv_prog_cc_g+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3156else
mmentovai8c2a4de2006-09-20 16:20:15 +00003157 ac_save_c_werror_flag=$ac_c_werror_flag
3158 ac_c_werror_flag=yes
3159 ac_cv_prog_cc_g=no
3160 CFLAGS="-g"
3161 cat >conftest.$ac_ext <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00003162/* confdefs.h. */
3163_ACEOF
3164cat confdefs.h >>conftest.$ac_ext
3165cat >>conftest.$ac_ext <<_ACEOF
3166/* end confdefs.h. */
3167
3168int
3169main ()
3170{
3171
3172 ;
3173 return 0;
3174}
3175_ACEOF
3176rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00003177if { (ac_try="$ac_compile"
3178case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181esac
3182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003184 ac_status=$?
3185 grep -v '^ *+' conftest.er1 >conftest.err
3186 rm -f conftest.er1
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00003189 (exit $ac_status); } && {
3190 test -z "$ac_c_werror_flag" ||
3191 test ! -s conftest.err
3192 } && test -s conftest.$ac_objext; then
brynercb91a2f2006-08-25 21:14:45 +00003193 ac_cv_prog_cc_g=yes
3194else
3195 echo "$as_me: failed program was:" >&5
3196sed 's/^/| /' conftest.$ac_ext >&5
3197
mmentovai8c2a4de2006-09-20 16:20:15 +00003198 CFLAGS=""
3199 cat >conftest.$ac_ext <<_ACEOF
3200/* confdefs.h. */
3201_ACEOF
3202cat confdefs.h >>conftest.$ac_ext
3203cat >>conftest.$ac_ext <<_ACEOF
3204/* end confdefs.h. */
3205
3206int
3207main ()
3208{
3209
3210 ;
3211 return 0;
3212}
3213_ACEOF
3214rm -f conftest.$ac_objext
3215if { (ac_try="$ac_compile"
3216case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3219esac
3220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_compile") 2>conftest.er1
3222 ac_status=$?
3223 grep -v '^ *+' conftest.er1 >conftest.err
3224 rm -f conftest.er1
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00003227 (exit $ac_status); } && {
3228 test -z "$ac_c_werror_flag" ||
3229 test ! -s conftest.err
3230 } && test -s conftest.$ac_objext; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003231 :
3232else
3233 echo "$as_me: failed program was:" >&5
3234sed 's/^/| /' conftest.$ac_ext >&5
3235
3236 ac_c_werror_flag=$ac_save_c_werror_flag
3237 CFLAGS="-g"
3238 cat >conftest.$ac_ext <<_ACEOF
3239/* confdefs.h. */
3240_ACEOF
3241cat confdefs.h >>conftest.$ac_ext
3242cat >>conftest.$ac_ext <<_ACEOF
3243/* end confdefs.h. */
3244
3245int
3246main ()
3247{
3248
3249 ;
3250 return 0;
3251}
3252_ACEOF
3253rm -f conftest.$ac_objext
3254if { (ac_try="$ac_compile"
3255case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258esac
3259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260 (eval "$ac_compile") 2>conftest.er1
3261 ac_status=$?
3262 grep -v '^ *+' conftest.er1 >conftest.err
3263 rm -f conftest.er1
3264 cat conftest.err >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00003266 (exit $ac_status); } && {
3267 test -z "$ac_c_werror_flag" ||
3268 test ! -s conftest.err
3269 } && test -s conftest.$ac_objext; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003270 ac_cv_prog_cc_g=yes
3271else
3272 echo "$as_me: failed program was:" >&5
3273sed 's/^/| /' conftest.$ac_ext >&5
3274
3275
brynercb91a2f2006-08-25 21:14:45 +00003276fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003277
3278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
3282fi
3283
3284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 ac_c_werror_flag=$ac_save_c_werror_flag
3286fi
3287{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3288echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003289if test "$ac_test_CFLAGS" = set; then
3290 CFLAGS=$ac_save_CFLAGS
3291elif test $ac_cv_prog_cc_g = yes; then
3292 if test "$GCC" = yes; then
3293 CFLAGS="-g -O2"
3294 else
3295 CFLAGS="-g"
3296 fi
3297else
3298 if test "$GCC" = yes; then
3299 CFLAGS="-O2"
3300 else
3301 CFLAGS=
3302 fi
3303fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003304{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3305echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3306if test "${ac_cv_prog_cc_c89+set}" = set; then
brynercb91a2f2006-08-25 21:14:45 +00003307 echo $ECHO_N "(cached) $ECHO_C" >&6
3308else
mmentovai8c2a4de2006-09-20 16:20:15 +00003309 ac_cv_prog_cc_c89=no
brynercb91a2f2006-08-25 21:14:45 +00003310ac_save_CC=$CC
3311cat >conftest.$ac_ext <<_ACEOF
3312/* confdefs.h. */
3313_ACEOF
3314cat confdefs.h >>conftest.$ac_ext
3315cat >>conftest.$ac_ext <<_ACEOF
3316/* end confdefs.h. */
3317#include <stdarg.h>
3318#include <stdio.h>
3319#include <sys/types.h>
3320#include <sys/stat.h>
3321/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3322struct buf { int x; };
3323FILE * (*rcsopen) (struct buf *, struct stat *, int);
3324static char *e (p, i)
3325 char **p;
3326 int i;
3327{
3328 return p[i];
3329}
3330static char *f (char * (*g) (char **, int), char **p, ...)
3331{
3332 char *s;
3333 va_list v;
3334 va_start (v,p);
3335 s = g (p, va_arg (v,int));
3336 va_end (v);
3337 return s;
3338}
3339
3340/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3341 function prototypes and stuff, but not '\xHH' hex character constants.
3342 These don't provoke an error unfortunately, instead are silently treated
mmentovai8c2a4de2006-09-20 16:20:15 +00003343 as 'x'. The following induces an error, until -std is added to get
brynercb91a2f2006-08-25 21:14:45 +00003344 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3345 array size at least. It's necessary to write '\x00'==0 to get something
mmentovai8c2a4de2006-09-20 16:20:15 +00003346 that's true only with -std. */
brynercb91a2f2006-08-25 21:14:45 +00003347int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3348
mmentovai8c2a4de2006-09-20 16:20:15 +00003349/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3350 inside strings and character constants. */
3351#define FOO(x) 'x'
3352int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3353
brynercb91a2f2006-08-25 21:14:45 +00003354int test (int i, double x);
3355struct s1 {int (*f) (int a);};
3356struct s2 {int (*f) (double a);};
3357int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3358int argc;
3359char **argv;
3360int
3361main ()
3362{
3363return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3364 ;
3365 return 0;
3366}
3367_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003368for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3369 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
brynercb91a2f2006-08-25 21:14:45 +00003370do
3371 CC="$ac_save_CC $ac_arg"
3372 rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00003373if { (ac_try="$ac_compile"
3374case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377esac
3378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003380 ac_status=$?
3381 grep -v '^ *+' conftest.er1 >conftest.err
3382 rm -f conftest.er1
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00003385 (exit $ac_status); } && {
3386 test -z "$ac_c_werror_flag" ||
3387 test ! -s conftest.err
3388 } && test -s conftest.$ac_objext; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003389 ac_cv_prog_cc_c89=$ac_arg
brynercb91a2f2006-08-25 21:14:45 +00003390else
3391 echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
mmentovai8c2a4de2006-09-20 16:20:15 +00003394
brynercb91a2f2006-08-25 21:14:45 +00003395fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003396
3397rm -f core conftest.err conftest.$ac_objext
3398 test "x$ac_cv_prog_cc_c89" != "xno" && break
brynercb91a2f2006-08-25 21:14:45 +00003399done
mmentovai8c2a4de2006-09-20 16:20:15 +00003400rm -f conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003401CC=$ac_save_CC
3402
3403fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003404# AC_CACHE_VAL
3405case "x$ac_cv_prog_cc_c89" in
3406 x)
3407 { echo "$as_me:$LINENO: result: none needed" >&5
3408echo "${ECHO_T}none needed" >&6; } ;;
3409 xno)
3410 { echo "$as_me:$LINENO: result: unsupported" >&5
3411echo "${ECHO_T}unsupported" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003412 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00003413 CC="$CC $ac_cv_prog_cc_c89"
3414 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3415echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003416esac
3417
brynercb91a2f2006-08-25 21:14:45 +00003418
brynercb91a2f2006-08-25 21:14:45 +00003419ac_ext=c
3420ac_cpp='$CPP $CPPFLAGS'
3421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424DEPDIR="${am__leading_dot}deps"
3425
mmentovai8c2a4de2006-09-20 16:20:15 +00003426ac_config_commands="$ac_config_commands depfiles"
brynercb91a2f2006-08-25 21:14:45 +00003427
3428
3429am_make=${MAKE-make}
3430cat > confinc << 'END'
3431am__doit:
3432 @echo done
3433.PHONY: am__doit
3434END
3435# If we don't find an include directive, just comment out the code.
mmentovai8c2a4de2006-09-20 16:20:15 +00003436{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3437echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003438am__include="#"
3439am__quote=
3440_am_result=none
3441# First try GNU make style include.
3442echo "include confinc" > confmf
3443# We grep out `Entering directory' and `Leaving directory'
3444# messages which can occur if `w' ends up in MAKEFLAGS.
3445# In particular we don't look at `^make:' because GNU make might
3446# be invoked under some other name (usually "gmake"), in which
3447# case it prints its new name instead of `make'.
3448if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3449 am__include=include
3450 am__quote=
3451 _am_result=GNU
3452fi
3453# Now try BSD make style include.
3454if test "$am__include" = "#"; then
3455 echo '.include "confinc"' > confmf
3456 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3457 am__include=.include
3458 am__quote="\""
3459 _am_result=BSD
3460 fi
3461fi
3462
3463
mmentovai8c2a4de2006-09-20 16:20:15 +00003464{ echo "$as_me:$LINENO: result: $_am_result" >&5
3465echo "${ECHO_T}$_am_result" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003466rm -f confinc confmf
3467
mmentovai8c2a4de2006-09-20 16:20:15 +00003468# Check whether --enable-dependency-tracking was given.
brynercb91a2f2006-08-25 21:14:45 +00003469if test "${enable_dependency_tracking+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003470 enableval=$enable_dependency_tracking;
3471fi
brynercb91a2f2006-08-25 21:14:45 +00003472
brynercb91a2f2006-08-25 21:14:45 +00003473if test "x$enable_dependency_tracking" != xno; then
3474 am_depcomp="$ac_aux_dir/depcomp"
3475 AMDEPBACKSLASH='\'
3476fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00003477 if test "x$enable_dependency_tracking" != xno; then
brynercb91a2f2006-08-25 21:14:45 +00003478 AMDEP_TRUE=
3479 AMDEP_FALSE='#'
3480else
3481 AMDEP_TRUE='#'
3482 AMDEP_FALSE=
3483fi
3484
3485
3486
brynercb91a2f2006-08-25 21:14:45 +00003487depcc="$CC" am_compiler_list=
3488
mmentovai8c2a4de2006-09-20 16:20:15 +00003489{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3490echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003491if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493else
3494 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3495 # We make a subdir and do the tests there. Otherwise we can end up
3496 # making bogus files that we don't know about and never remove. For
3497 # instance it was reported that on HP-UX the gcc test will end up
3498 # making a dummy file named `D' -- because `-MD' means `put the output
3499 # in D'.
3500 mkdir conftest.dir
3501 # Copy depcomp to subdir because otherwise we won't find it if we're
3502 # using a relative directory.
3503 cp "$am_depcomp" conftest.dir
3504 cd conftest.dir
3505 # We will build objects and dependencies in a subdirectory because
3506 # it helps to detect inapplicable dependency modes. For instance
3507 # both Tru64's cc and ICC support -MD to output dependencies as a
3508 # side effect of compilation, but ICC will put the dependencies in
3509 # the current directory while Tru64 will put them in the object
3510 # directory.
3511 mkdir sub
3512
3513 am_cv_CC_dependencies_compiler_type=none
3514 if test "$am_compiler_list" = ""; then
3515 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3516 fi
3517 for depmode in $am_compiler_list; do
3518 # Setup a source with many dependencies, because some compilers
3519 # like to wrap large dependency lists on column 80 (with \), and
3520 # we should not choose a depcomp mode which is confused by this.
3521 #
3522 # We need to recreate these files for each test, as the compiler may
3523 # overwrite some of them when testing with obscure command lines.
3524 # This happens at least with the AIX C compiler.
3525 : > sub/conftest.c
3526 for i in 1 2 3 4 5 6; do
3527 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3528 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3529 # Solaris 8's {/usr,}/bin/sh.
3530 touch sub/conftst$i.h
3531 done
3532 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3533
3534 case $depmode in
3535 nosideeffect)
3536 # after this tag, mechanisms are not by side-effect, so they'll
3537 # only be used when explicitly requested
3538 if test "x$enable_dependency_tracking" = xyes; then
3539 continue
3540 else
3541 break
3542 fi
3543 ;;
3544 none) break ;;
3545 esac
3546 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3547 # mode. It turns out that the SunPro C++ compiler does not properly
3548 # handle `-M -o', and we need to detect this.
3549 if depmode=$depmode \
3550 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3551 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3552 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3553 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00003554 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00003555 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3556 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3557 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3558 # icc doesn't choke on unknown options, it will just issue warnings
3559 # or remarks (even with -Werror). So we grep stderr for any message
3560 # that says an option was ignored or not supported.
3561 # When given -MP, icc 7.0 and 7.1 complain thusly:
3562 # icc: Command line warning: ignoring option '-M'; no argument required
3563 # The diagnosis changed in icc 8.0:
3564 # icc: Command line remark: option '-MP' not supported
3565 if (grep 'ignoring option' conftest.err ||
3566 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3567 am_cv_CC_dependencies_compiler_type=$depmode
3568 break
3569 fi
3570 fi
3571 done
3572
3573 cd ..
3574 rm -rf conftest.dir
3575else
3576 am_cv_CC_dependencies_compiler_type=none
3577fi
3578
3579fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003580{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3581echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003582CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3583
mmentovaiaf3c43f2007-05-17 18:34:37 +00003584 if
brynercb91a2f2006-08-25 21:14:45 +00003585 test "x$enable_dependency_tracking" != xno \
3586 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3587 am__fastdepCC_TRUE=
3588 am__fastdepCC_FALSE='#'
3589else
3590 am__fastdepCC_TRUE='#'
3591 am__fastdepCC_FALSE=
3592fi
3593
3594
3595ac_ext=c
3596ac_cpp='$CPP $CPPFLAGS'
3597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599ac_compiler_gnu=$ac_cv_c_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00003600{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3601echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003602# On Suns, sometimes $CPP names a directory.
3603if test -n "$CPP" && test -d "$CPP"; then
3604 CPP=
3605fi
3606if test -z "$CPP"; then
3607 if test "${ac_cv_prog_CPP+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609else
3610 # Double quotes because CPP needs to be expanded
3611 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3612 do
3613 ac_preproc_ok=false
3614for ac_c_preproc_warn_flag in '' yes
3615do
3616 # Use a header file that comes with gcc, so configuring glibc
3617 # with a fresh cross-compiler works.
3618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3619 # <limits.h> exists even on freestanding compilers.
3620 # On the NeXT, cc -E runs the code through the compiler's parser,
3621 # not just through cpp. "Syntax error" is here to catch this case.
3622 cat >conftest.$ac_ext <<_ACEOF
3623/* confdefs.h. */
3624_ACEOF
3625cat confdefs.h >>conftest.$ac_ext
3626cat >>conftest.$ac_ext <<_ACEOF
3627/* end confdefs.h. */
3628#ifdef __STDC__
3629# include <limits.h>
3630#else
3631# include <assert.h>
3632#endif
3633 Syntax error
3634_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003635if { (ac_try="$ac_cpp conftest.$ac_ext"
3636case "(($ac_try" in
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3639esac
3640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003642 ac_status=$?
3643 grep -v '^ *+' conftest.er1 >conftest.err
3644 rm -f conftest.er1
3645 cat conftest.err >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00003647 (exit $ac_status); } >/dev/null && {
3648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3649 test ! -s conftest.err
3650 }; then
brynercb91a2f2006-08-25 21:14:45 +00003651 :
3652else
3653 echo "$as_me: failed program was:" >&5
3654sed 's/^/| /' conftest.$ac_ext >&5
3655
3656 # Broken: fails on valid input.
3657continue
3658fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003659
brynercb91a2f2006-08-25 21:14:45 +00003660rm -f conftest.err conftest.$ac_ext
3661
mmentovai8c2a4de2006-09-20 16:20:15 +00003662 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00003663 # can be detected and how.
3664 cat >conftest.$ac_ext <<_ACEOF
3665/* confdefs.h. */
3666_ACEOF
3667cat confdefs.h >>conftest.$ac_ext
3668cat >>conftest.$ac_ext <<_ACEOF
3669/* end confdefs.h. */
3670#include <ac_nonexistent.h>
3671_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003672if { (ac_try="$ac_cpp conftest.$ac_ext"
3673case "(($ac_try" in
3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675 *) ac_try_echo=$ac_try;;
3676esac
3677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003679 ac_status=$?
3680 grep -v '^ *+' conftest.er1 >conftest.err
3681 rm -f conftest.er1
3682 cat conftest.err >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00003684 (exit $ac_status); } >/dev/null && {
3685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3686 test ! -s conftest.err
3687 }; then
brynercb91a2f2006-08-25 21:14:45 +00003688 # Broken: success on invalid input.
3689continue
3690else
3691 echo "$as_me: failed program was:" >&5
3692sed 's/^/| /' conftest.$ac_ext >&5
3693
3694 # Passes both tests.
3695ac_preproc_ok=:
3696break
3697fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003698
brynercb91a2f2006-08-25 21:14:45 +00003699rm -f conftest.err conftest.$ac_ext
3700
3701done
3702# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3703rm -f conftest.err conftest.$ac_ext
3704if $ac_preproc_ok; then
3705 break
3706fi
3707
3708 done
3709 ac_cv_prog_CPP=$CPP
3710
3711fi
3712 CPP=$ac_cv_prog_CPP
3713else
3714 ac_cv_prog_CPP=$CPP
3715fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003716{ echo "$as_me:$LINENO: result: $CPP" >&5
3717echo "${ECHO_T}$CPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003718ac_preproc_ok=false
3719for ac_c_preproc_warn_flag in '' yes
3720do
3721 # Use a header file that comes with gcc, so configuring glibc
3722 # with a fresh cross-compiler works.
3723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3724 # <limits.h> exists even on freestanding compilers.
3725 # On the NeXT, cc -E runs the code through the compiler's parser,
3726 # not just through cpp. "Syntax error" is here to catch this case.
3727 cat >conftest.$ac_ext <<_ACEOF
3728/* confdefs.h. */
3729_ACEOF
3730cat confdefs.h >>conftest.$ac_ext
3731cat >>conftest.$ac_ext <<_ACEOF
3732/* end confdefs.h. */
3733#ifdef __STDC__
3734# include <limits.h>
3735#else
3736# include <assert.h>
3737#endif
3738 Syntax error
3739_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003740if { (ac_try="$ac_cpp conftest.$ac_ext"
3741case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3744esac
3745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003747 ac_status=$?
3748 grep -v '^ *+' conftest.er1 >conftest.err
3749 rm -f conftest.er1
3750 cat conftest.err >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00003752 (exit $ac_status); } >/dev/null && {
3753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3754 test ! -s conftest.err
3755 }; then
brynercb91a2f2006-08-25 21:14:45 +00003756 :
3757else
3758 echo "$as_me: failed program was:" >&5
3759sed 's/^/| /' conftest.$ac_ext >&5
3760
3761 # Broken: fails on valid input.
3762continue
3763fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003764
brynercb91a2f2006-08-25 21:14:45 +00003765rm -f conftest.err conftest.$ac_ext
3766
mmentovai8c2a4de2006-09-20 16:20:15 +00003767 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00003768 # can be detected and how.
3769 cat >conftest.$ac_ext <<_ACEOF
3770/* confdefs.h. */
3771_ACEOF
3772cat confdefs.h >>conftest.$ac_ext
3773cat >>conftest.$ac_ext <<_ACEOF
3774/* end confdefs.h. */
3775#include <ac_nonexistent.h>
3776_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003777if { (ac_try="$ac_cpp conftest.$ac_ext"
3778case "(($ac_try" in
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3781esac
3782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003784 ac_status=$?
3785 grep -v '^ *+' conftest.er1 >conftest.err
3786 rm -f conftest.er1
3787 cat conftest.err >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00003789 (exit $ac_status); } >/dev/null && {
3790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3791 test ! -s conftest.err
3792 }; then
brynercb91a2f2006-08-25 21:14:45 +00003793 # Broken: success on invalid input.
3794continue
3795else
3796 echo "$as_me: failed program was:" >&5
3797sed 's/^/| /' conftest.$ac_ext >&5
3798
3799 # Passes both tests.
3800ac_preproc_ok=:
3801break
3802fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003803
brynercb91a2f2006-08-25 21:14:45 +00003804rm -f conftest.err conftest.$ac_ext
3805
3806done
3807# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3808rm -f conftest.err conftest.$ac_ext
3809if $ac_preproc_ok; then
3810 :
3811else
3812 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3813See \`config.log' for more details." >&5
3814echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3815See \`config.log' for more details." >&2;}
3816 { (exit 1); exit 1; }; }
3817fi
3818
3819ac_ext=c
3820ac_cpp='$CPP $CPPFLAGS'
3821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823ac_compiler_gnu=$ac_cv_c_compiler_gnu
3824
mmentovai8c2a4de2006-09-20 16:20:15 +00003825ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00003826ac_cpp='$CXXCPP $CPPFLAGS'
3827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00003830if test -z "$CXX"; then
3831 if test -n "$CCC"; then
3832 CXX=$CCC
3833 else
3834 if test -n "$ac_tool_prefix"; then
3835 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 +00003836 do
3837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3838set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00003839{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003841if test "${ac_cv_prog_CXX+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3843else
3844 if test -n "$CXX"; then
3845 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3846else
3847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848for as_dir in $PATH
3849do
3850 IFS=$as_save_IFS
3851 test -z "$as_dir" && as_dir=.
3852 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003853 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 +00003854 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3856 break 2
3857 fi
3858done
3859done
mmentovai8c2a4de2006-09-20 16:20:15 +00003860IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003861
3862fi
3863fi
3864CXX=$ac_cv_prog_CXX
3865if test -n "$CXX"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003866 { echo "$as_me:$LINENO: result: $CXX" >&5
3867echo "${ECHO_T}$CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003868else
mmentovai8c2a4de2006-09-20 16:20:15 +00003869 { echo "$as_me:$LINENO: result: no" >&5
3870echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003871fi
3872
mmentovai8c2a4de2006-09-20 16:20:15 +00003873
brynercb91a2f2006-08-25 21:14:45 +00003874 test -n "$CXX" && break
3875 done
3876fi
3877if test -z "$CXX"; then
3878 ac_ct_CXX=$CXX
mmentovai8c2a4de2006-09-20 16:20:15 +00003879 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 +00003880do
3881 # Extract the first word of "$ac_prog", so it can be a program name with args.
3882set dummy $ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00003883{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003885if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887else
3888 if test -n "$ac_ct_CXX"; then
3889 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3890else
3891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892for as_dir in $PATH
3893do
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003897 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 +00003898 ac_cv_prog_ac_ct_CXX="$ac_prog"
3899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3901 fi
3902done
3903done
mmentovai8c2a4de2006-09-20 16:20:15 +00003904IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003905
3906fi
3907fi
3908ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3909if test -n "$ac_ct_CXX"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003910 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3911echo "${ECHO_T}$ac_ct_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003912else
mmentovai8c2a4de2006-09-20 16:20:15 +00003913 { echo "$as_me:$LINENO: result: no" >&5
3914echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003915fi
3916
mmentovai8c2a4de2006-09-20 16:20:15 +00003917
brynercb91a2f2006-08-25 21:14:45 +00003918 test -n "$ac_ct_CXX" && break
3919done
brynercb91a2f2006-08-25 21:14:45 +00003920
mmentovai8c2a4de2006-09-20 16:20:15 +00003921 if test "x$ac_ct_CXX" = x; then
3922 CXX="g++"
3923 else
3924 case $cross_compiling:$ac_tool_warned in
3925yes:)
3926{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3927whose name does not start with the host triplet. If you think this
3928configuration is useful to you, please write to autoconf@gnu.org." >&5
3929echo "$as_me: 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." >&2;}
3932ac_tool_warned=yes ;;
3933esac
3934 CXX=$ac_ct_CXX
3935 fi
brynercb91a2f2006-08-25 21:14:45 +00003936fi
3937
mmentovai8c2a4de2006-09-20 16:20:15 +00003938 fi
3939fi
brynercb91a2f2006-08-25 21:14:45 +00003940# Provide some information about the compiler.
mmentovai8c2a4de2006-09-20 16:20:15 +00003941echo "$as_me:$LINENO: checking for C++ compiler version" >&5
brynercb91a2f2006-08-25 21:14:45 +00003942ac_compiler=`set X $ac_compile; echo $2`
mmentovai8c2a4de2006-09-20 16:20:15 +00003943{ (ac_try="$ac_compiler --version >&5"
3944case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947esac
3948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949 (eval "$ac_compiler --version >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003950 ac_status=$?
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }
mmentovai8c2a4de2006-09-20 16:20:15 +00003953{ (ac_try="$ac_compiler -v >&5"
3954case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957esac
3958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959 (eval "$ac_compiler -v >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003960 ac_status=$?
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }
mmentovai8c2a4de2006-09-20 16:20:15 +00003963{ (ac_try="$ac_compiler -V >&5"
3964case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967esac
3968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969 (eval "$ac_compiler -V >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }
3973
mmentovai8c2a4de2006-09-20 16:20:15 +00003974{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3975echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003976if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3978else
3979 cat >conftest.$ac_ext <<_ACEOF
3980/* confdefs.h. */
3981_ACEOF
3982cat confdefs.h >>conftest.$ac_ext
3983cat >>conftest.$ac_ext <<_ACEOF
3984/* end confdefs.h. */
3985
3986int
3987main ()
3988{
3989#ifndef __GNUC__
3990 choke me
3991#endif
3992
3993 ;
3994 return 0;
3995}
3996_ACEOF
3997rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00003998if { (ac_try="$ac_compile"
3999case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4002esac
4003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00004005 ac_status=$?
4006 grep -v '^ *+' conftest.er1 >conftest.err
4007 rm -f conftest.er1
4008 cat conftest.err >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00004010 (exit $ac_status); } && {
4011 test -z "$ac_cxx_werror_flag" ||
4012 test ! -s conftest.err
4013 } && test -s conftest.$ac_objext; then
brynercb91a2f2006-08-25 21:14:45 +00004014 ac_compiler_gnu=yes
4015else
4016 echo "$as_me: failed program was:" >&5
4017sed 's/^/| /' conftest.$ac_ext >&5
4018
mmentovai8c2a4de2006-09-20 16:20:15 +00004019 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00004020fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004021
4022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004023ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4024
4025fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004026{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4027echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004028GXX=`test $ac_compiler_gnu = yes && echo yes`
4029ac_test_CXXFLAGS=${CXXFLAGS+set}
4030ac_save_CXXFLAGS=$CXXFLAGS
mmentovai8c2a4de2006-09-20 16:20:15 +00004031{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4032echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004033if test "${ac_cv_prog_cxx_g+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4035else
mmentovai8c2a4de2006-09-20 16:20:15 +00004036 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4037 ac_cxx_werror_flag=yes
4038 ac_cv_prog_cxx_g=no
4039 CXXFLAGS="-g"
4040 cat >conftest.$ac_ext <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00004041/* confdefs.h. */
4042_ACEOF
4043cat confdefs.h >>conftest.$ac_ext
4044cat >>conftest.$ac_ext <<_ACEOF
4045/* end confdefs.h. */
4046
4047int
4048main ()
4049{
4050
4051 ;
4052 return 0;
4053}
4054_ACEOF
4055rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00004056if { (ac_try="$ac_compile"
4057case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060esac
4061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4062 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00004063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00004068 (exit $ac_status); } && {
4069 test -z "$ac_cxx_werror_flag" ||
4070 test ! -s conftest.err
4071 } && test -s conftest.$ac_objext; then
brynercb91a2f2006-08-25 21:14:45 +00004072 ac_cv_prog_cxx_g=yes
4073else
4074 echo "$as_me: failed program was:" >&5
4075sed 's/^/| /' conftest.$ac_ext >&5
4076
mmentovai8c2a4de2006-09-20 16:20:15 +00004077 CXXFLAGS=""
4078 cat >conftest.$ac_ext <<_ACEOF
4079/* confdefs.h. */
4080_ACEOF
4081cat confdefs.h >>conftest.$ac_ext
4082cat >>conftest.$ac_ext <<_ACEOF
4083/* end confdefs.h. */
4084
4085int
4086main ()
4087{
4088
4089 ;
4090 return 0;
4091}
4092_ACEOF
4093rm -f conftest.$ac_objext
4094if { (ac_try="$ac_compile"
4095case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4098esac
4099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4100 (eval "$ac_compile") 2>conftest.er1
4101 ac_status=$?
4102 grep -v '^ *+' conftest.er1 >conftest.err
4103 rm -f conftest.er1
4104 cat conftest.err >&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00004106 (exit $ac_status); } && {
4107 test -z "$ac_cxx_werror_flag" ||
4108 test ! -s conftest.err
4109 } && test -s conftest.$ac_objext; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004110 :
4111else
4112 echo "$as_me: failed program was:" >&5
4113sed 's/^/| /' conftest.$ac_ext >&5
4114
4115 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4116 CXXFLAGS="-g"
4117 cat >conftest.$ac_ext <<_ACEOF
4118/* confdefs.h. */
4119_ACEOF
4120cat confdefs.h >>conftest.$ac_ext
4121cat >>conftest.$ac_ext <<_ACEOF
4122/* end confdefs.h. */
4123
4124int
4125main ()
4126{
4127
4128 ;
4129 return 0;
4130}
4131_ACEOF
4132rm -f conftest.$ac_objext
4133if { (ac_try="$ac_compile"
4134case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137esac
4138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_compile") 2>conftest.er1
4140 ac_status=$?
4141 grep -v '^ *+' conftest.er1 >conftest.err
4142 rm -f conftest.er1
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00004145 (exit $ac_status); } && {
4146 test -z "$ac_cxx_werror_flag" ||
4147 test ! -s conftest.err
4148 } && test -s conftest.$ac_objext; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004149 ac_cv_prog_cxx_g=yes
4150else
4151 echo "$as_me: failed program was:" >&5
4152sed 's/^/| /' conftest.$ac_ext >&5
4153
4154
brynercb91a2f2006-08-25 21:14:45 +00004155fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004156
4157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
4161fi
4162
4163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4165fi
4166{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4167echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004168if test "$ac_test_CXXFLAGS" = set; then
4169 CXXFLAGS=$ac_save_CXXFLAGS
4170elif test $ac_cv_prog_cxx_g = yes; then
4171 if test "$GXX" = yes; then
4172 CXXFLAGS="-g -O2"
4173 else
4174 CXXFLAGS="-g"
4175 fi
4176else
4177 if test "$GXX" = yes; then
4178 CXXFLAGS="-O2"
4179 else
4180 CXXFLAGS=
4181 fi
4182fi
brynercb91a2f2006-08-25 21:14:45 +00004183ac_ext=c
4184ac_cpp='$CPP $CPPFLAGS'
4185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188
4189depcc="$CXX" am_compiler_list=
4190
mmentovai8c2a4de2006-09-20 16:20:15 +00004191{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4192echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004193if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4195else
4196 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4197 # We make a subdir and do the tests there. Otherwise we can end up
4198 # making bogus files that we don't know about and never remove. For
4199 # instance it was reported that on HP-UX the gcc test will end up
4200 # making a dummy file named `D' -- because `-MD' means `put the output
4201 # in D'.
4202 mkdir conftest.dir
4203 # Copy depcomp to subdir because otherwise we won't find it if we're
4204 # using a relative directory.
4205 cp "$am_depcomp" conftest.dir
4206 cd conftest.dir
4207 # We will build objects and dependencies in a subdirectory because
4208 # it helps to detect inapplicable dependency modes. For instance
4209 # both Tru64's cc and ICC support -MD to output dependencies as a
4210 # side effect of compilation, but ICC will put the dependencies in
4211 # the current directory while Tru64 will put them in the object
4212 # directory.
4213 mkdir sub
4214
4215 am_cv_CXX_dependencies_compiler_type=none
4216 if test "$am_compiler_list" = ""; then
4217 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4218 fi
4219 for depmode in $am_compiler_list; do
4220 # Setup a source with many dependencies, because some compilers
4221 # like to wrap large dependency lists on column 80 (with \), and
4222 # we should not choose a depcomp mode which is confused by this.
4223 #
4224 # We need to recreate these files for each test, as the compiler may
4225 # overwrite some of them when testing with obscure command lines.
4226 # This happens at least with the AIX C compiler.
4227 : > sub/conftest.c
4228 for i in 1 2 3 4 5 6; do
4229 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4230 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4231 # Solaris 8's {/usr,}/bin/sh.
4232 touch sub/conftst$i.h
4233 done
4234 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4235
4236 case $depmode in
4237 nosideeffect)
4238 # after this tag, mechanisms are not by side-effect, so they'll
4239 # only be used when explicitly requested
4240 if test "x$enable_dependency_tracking" = xyes; then
4241 continue
4242 else
4243 break
4244 fi
4245 ;;
4246 none) break ;;
4247 esac
4248 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4249 # mode. It turns out that the SunPro C++ compiler does not properly
4250 # handle `-M -o', and we need to detect this.
4251 if depmode=$depmode \
4252 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4253 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4254 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4255 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00004256 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004257 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4258 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4259 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4260 # icc doesn't choke on unknown options, it will just issue warnings
4261 # or remarks (even with -Werror). So we grep stderr for any message
4262 # that says an option was ignored or not supported.
4263 # When given -MP, icc 7.0 and 7.1 complain thusly:
4264 # icc: Command line warning: ignoring option '-M'; no argument required
4265 # The diagnosis changed in icc 8.0:
4266 # icc: Command line remark: option '-MP' not supported
4267 if (grep 'ignoring option' conftest.err ||
4268 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4269 am_cv_CXX_dependencies_compiler_type=$depmode
4270 break
4271 fi
4272 fi
4273 done
4274
4275 cd ..
4276 rm -rf conftest.dir
4277else
4278 am_cv_CXX_dependencies_compiler_type=none
4279fi
4280
4281fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004282{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4283echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004284CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4285
mmentovaiaf3c43f2007-05-17 18:34:37 +00004286 if
brynercb91a2f2006-08-25 21:14:45 +00004287 test "x$enable_dependency_tracking" != xno \
4288 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4289 am__fastdepCXX_TRUE=
4290 am__fastdepCXX_FALSE='#'
4291else
4292 am__fastdepCXX_TRUE='#'
4293 am__fastdepCXX_FALSE=
4294fi
4295
4296
4297
mmentovai8c2a4de2006-09-20 16:20:15 +00004298# Check whether --enable-shared was given.
brynercb91a2f2006-08-25 21:14:45 +00004299if test "${enable_shared+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004300 enableval=$enable_shared; p=${PACKAGE-default}
brynercb91a2f2006-08-25 21:14:45 +00004301 case $enableval in
4302 yes) enable_shared=yes ;;
4303 no) enable_shared=no ;;
4304 *)
4305 enable_shared=no
4306 # Look at the argument we got. We use all the common list separators.
4307 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4308 for pkg in $enableval; do
4309 IFS="$lt_save_ifs"
4310 if test "X$pkg" = "X$p"; then
4311 enable_shared=yes
4312 fi
4313 done
4314 IFS="$lt_save_ifs"
4315 ;;
4316 esac
4317else
4318 enable_shared=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00004319fi
brynercb91a2f2006-08-25 21:14:45 +00004320
mmentovai8c2a4de2006-09-20 16:20:15 +00004321
4322# Check whether --enable-static was given.
brynercb91a2f2006-08-25 21:14:45 +00004323if test "${enable_static+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004324 enableval=$enable_static; p=${PACKAGE-default}
brynercb91a2f2006-08-25 21:14:45 +00004325 case $enableval in
4326 yes) enable_static=yes ;;
4327 no) enable_static=no ;;
4328 *)
4329 enable_static=no
4330 # Look at the argument we got. We use all the common list separators.
4331 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4332 for pkg in $enableval; do
4333 IFS="$lt_save_ifs"
4334 if test "X$pkg" = "X$p"; then
4335 enable_static=yes
4336 fi
4337 done
4338 IFS="$lt_save_ifs"
4339 ;;
4340 esac
4341else
4342 enable_static=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00004343fi
brynercb91a2f2006-08-25 21:14:45 +00004344
mmentovai8c2a4de2006-09-20 16:20:15 +00004345
4346# Check whether --enable-fast-install was given.
brynercb91a2f2006-08-25 21:14:45 +00004347if test "${enable_fast_install+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004348 enableval=$enable_fast_install; p=${PACKAGE-default}
brynercb91a2f2006-08-25 21:14:45 +00004349 case $enableval in
4350 yes) enable_fast_install=yes ;;
4351 no) enable_fast_install=no ;;
4352 *)
4353 enable_fast_install=no
4354 # Look at the argument we got. We use all the common list separators.
4355 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4356 for pkg in $enableval; do
4357 IFS="$lt_save_ifs"
4358 if test "X$pkg" = "X$p"; then
4359 enable_fast_install=yes
4360 fi
4361 done
4362 IFS="$lt_save_ifs"
4363 ;;
4364 esac
4365else
4366 enable_fast_install=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00004367fi
4368
brynercb91a2f2006-08-25 21:14:45 +00004369
4370# Make sure we can run config.sub.
mmentovai8c2a4de2006-09-20 16:20:15 +00004371$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4372 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4373echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00004374 { (exit 1); exit 1; }; }
4375
mmentovai8c2a4de2006-09-20 16:20:15 +00004376{ echo "$as_me:$LINENO: checking build system type" >&5
4377echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004378if test "${ac_cv_build+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4380else
mmentovai8c2a4de2006-09-20 16:20:15 +00004381 ac_build_alias=$build_alias
4382test "x$ac_build_alias" = x &&
4383 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4384test "x$ac_build_alias" = x &&
brynercb91a2f2006-08-25 21:14:45 +00004385 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4386echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4387 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004388ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4389 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4390echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00004391 { (exit 1); exit 1; }; }
4392
4393fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004394{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4395echo "${ECHO_T}$ac_cv_build" >&6; }
4396case $ac_cv_build in
4397*-*-*) ;;
4398*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4399echo "$as_me: error: invalid value of canonical build" >&2;}
4400 { (exit 1); exit 1; }; };;
4401esac
brynercb91a2f2006-08-25 21:14:45 +00004402build=$ac_cv_build
mmentovai8c2a4de2006-09-20 16:20:15 +00004403ac_save_IFS=$IFS; IFS='-'
4404set x $ac_cv_build
4405shift
4406build_cpu=$1
4407build_vendor=$2
4408shift; shift
4409# Remember, the first character of IFS is used to create $*,
4410# except with old shells:
4411build_os=$*
4412IFS=$ac_save_IFS
4413case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
brynercb91a2f2006-08-25 21:14:45 +00004414
4415
mmentovai8c2a4de2006-09-20 16:20:15 +00004416{ echo "$as_me:$LINENO: checking host system type" >&5
4417echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004418if test "${ac_cv_host+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4420else
mmentovai8c2a4de2006-09-20 16:20:15 +00004421 if test "x$host_alias" = x; then
4422 ac_cv_host=$ac_cv_build
4423else
4424 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4425 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4426echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00004427 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004428fi
brynercb91a2f2006-08-25 21:14:45 +00004429
4430fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004431{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4432echo "${ECHO_T}$ac_cv_host" >&6; }
4433case $ac_cv_host in
4434*-*-*) ;;
4435*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4436echo "$as_me: error: invalid value of canonical host" >&2;}
4437 { (exit 1); exit 1; }; };;
4438esac
brynercb91a2f2006-08-25 21:14:45 +00004439host=$ac_cv_host
mmentovai8c2a4de2006-09-20 16:20:15 +00004440ac_save_IFS=$IFS; IFS='-'
4441set x $ac_cv_host
4442shift
4443host_cpu=$1
4444host_vendor=$2
4445shift; shift
4446# Remember, the first character of IFS is used to create $*,
4447# except with old shells:
4448host_os=$*
4449IFS=$ac_save_IFS
4450case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
brynercb91a2f2006-08-25 21:14:45 +00004451
4452
mmentovai8c2a4de2006-09-20 16:20:15 +00004453{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4454echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004455if test "${lt_cv_path_SED+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457else
4458 # Loop through the user's path and test for sed and gsed.
4459# Then use that list of sed's as ones to test for truncation.
4460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461for as_dir in $PATH
4462do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for lt_ac_prog in sed gsed; do
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4468 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4469 fi
4470 done
4471 done
4472done
4473lt_ac_max=0
4474lt_ac_count=0
4475# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4476# along with /bin/sed that truncates output.
4477for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
mmentovai8c2a4de2006-09-20 16:20:15 +00004478 test ! -f $lt_ac_sed && continue
brynercb91a2f2006-08-25 21:14:45 +00004479 cat /dev/null > conftest.in
4480 lt_ac_count=0
4481 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4482 # Check for GNU sed and select it if it is found.
4483 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4484 lt_cv_path_SED=$lt_ac_sed
4485 break
4486 fi
4487 while true; do
4488 cat conftest.in conftest.in >conftest.tmp
4489 mv conftest.tmp conftest.in
4490 cp conftest.in conftest.nl
4491 echo >>conftest.nl
4492 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4493 cmp -s conftest.out conftest.nl || break
4494 # 10000 chars as input seems more than enough
4495 test $lt_ac_count -gt 10 && break
4496 lt_ac_count=`expr $lt_ac_count + 1`
4497 if test $lt_ac_count -gt $lt_ac_max; then
4498 lt_ac_max=$lt_ac_count
4499 lt_cv_path_SED=$lt_ac_sed
4500 fi
4501 done
4502done
brynercb91a2f2006-08-25 21:14:45 +00004503
4504fi
4505
mmentovai8c2a4de2006-09-20 16:20:15 +00004506SED=$lt_cv_path_SED
4507{ echo "$as_me:$LINENO: result: $SED" >&5
4508echo "${ECHO_T}$SED" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004509
mmentovai8c2a4de2006-09-20 16:20:15 +00004510{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4511echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4512if test "${ac_cv_path_GREP+set}" = set; then
brynercb91a2f2006-08-25 21:14:45 +00004513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514else
mmentovai8c2a4de2006-09-20 16:20:15 +00004515 # Extract the first word of "grep ggrep" to use in msg output
4516if test -z "$GREP"; then
4517set dummy grep ggrep; ac_prog_name=$2
4518if test "${ac_cv_path_GREP+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4520else
4521 ac_path_GREP_found=false
4522# Loop through the user's path and test for each of PROGNAME-LIST
4523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4525do
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_prog in grep ggrep; do
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
mmentovaiaf3c43f2007-05-17 18:34:37 +00004531 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
mmentovai8c2a4de2006-09-20 16:20:15 +00004532 # Check for GNU ac_path_GREP and select it if it is found.
4533 # Check for GNU $ac_path_GREP
4534case `"$ac_path_GREP" --version 2>&1` in
4535*GNU*)
4536 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4537*)
4538 ac_count=0
4539 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4540 while :
4541 do
4542 cat "conftest.in" "conftest.in" >"conftest.tmp"
4543 mv "conftest.tmp" "conftest.in"
4544 cp "conftest.in" "conftest.nl"
4545 echo 'GREP' >> "conftest.nl"
4546 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4548 ac_count=`expr $ac_count + 1`
4549 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4550 # Best one so far, save it but keep looking for a better one
4551 ac_cv_path_GREP="$ac_path_GREP"
4552 ac_path_GREP_max=$ac_count
brynercb91a2f2006-08-25 21:14:45 +00004553 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004554 # 10*(2^10) chars as input seems more than enough
4555 test $ac_count -gt 10 && break
4556 done
4557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4558esac
4559
4560
4561 $ac_path_GREP_found && break 3
4562 done
4563done
4564
4565done
4566IFS=$as_save_IFS
4567
4568
brynercb91a2f2006-08-25 21:14:45 +00004569fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004570
4571GREP="$ac_cv_path_GREP"
4572if test -z "$GREP"; then
4573 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4574echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4575 { (exit 1); exit 1; }; }
4576fi
4577
4578else
4579 ac_cv_path_GREP=$GREP
4580fi
4581
4582
4583fi
4584{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4585echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4586 GREP="$ac_cv_path_GREP"
4587
4588
4589{ echo "$as_me:$LINENO: checking for egrep" >&5
4590echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4591if test "${ac_cv_path_EGREP+set}" = set; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4593else
4594 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4595 then ac_cv_path_EGREP="$GREP -E"
4596 else
4597 # Extract the first word of "egrep" to use in msg output
4598if test -z "$EGREP"; then
4599set dummy egrep; ac_prog_name=$2
4600if test "${ac_cv_path_EGREP+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602else
4603 ac_path_EGREP_found=false
4604# Loop through the user's path and test for each of PROGNAME-LIST
4605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4607do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_prog in egrep; do
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
mmentovaiaf3c43f2007-05-17 18:34:37 +00004613 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
mmentovai8c2a4de2006-09-20 16:20:15 +00004614 # Check for GNU ac_path_EGREP and select it if it is found.
4615 # Check for GNU $ac_path_EGREP
4616case `"$ac_path_EGREP" --version 2>&1` in
4617*GNU*)
4618 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4619*)
4620 ac_count=0
4621 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4622 while :
4623 do
4624 cat "conftest.in" "conftest.in" >"conftest.tmp"
4625 mv "conftest.tmp" "conftest.in"
4626 cp "conftest.in" "conftest.nl"
4627 echo 'EGREP' >> "conftest.nl"
4628 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4630 ac_count=`expr $ac_count + 1`
4631 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4632 # Best one so far, save it but keep looking for a better one
4633 ac_cv_path_EGREP="$ac_path_EGREP"
4634 ac_path_EGREP_max=$ac_count
4635 fi
4636 # 10*(2^10) chars as input seems more than enough
4637 test $ac_count -gt 10 && break
4638 done
4639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4640esac
4641
4642
4643 $ac_path_EGREP_found && break 3
4644 done
4645done
4646
4647done
4648IFS=$as_save_IFS
4649
4650
4651fi
4652
4653EGREP="$ac_cv_path_EGREP"
4654if test -z "$EGREP"; then
4655 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4656echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4657 { (exit 1); exit 1; }; }
4658fi
4659
4660else
4661 ac_cv_path_EGREP=$EGREP
4662fi
4663
4664
4665 fi
4666fi
4667{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4668echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4669 EGREP="$ac_cv_path_EGREP"
brynercb91a2f2006-08-25 21:14:45 +00004670
4671
4672
mmentovai8c2a4de2006-09-20 16:20:15 +00004673# Check whether --with-gnu-ld was given.
brynercb91a2f2006-08-25 21:14:45 +00004674if test "${with_gnu_ld+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004675 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +00004676else
4677 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +00004678fi
4679
brynercb91a2f2006-08-25 21:14:45 +00004680ac_prog=ld
4681if test "$GCC" = yes; then
4682 # Check if gcc -print-prog-name=ld gives a path.
mmentovai8c2a4de2006-09-20 16:20:15 +00004683 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4684echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004685 case $host in
4686 *-*-mingw*)
4687 # gcc leaves a trailing carriage return which upsets mingw
4688 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4689 *)
4690 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4691 esac
4692 case $ac_prog in
4693 # Accept absolute paths.
4694 [\\/]* | ?:[\\/]*)
4695 re_direlt='/[^/][^/]*/\.\./'
4696 # Canonicalize the pathname of ld
4697 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4698 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4699 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4700 done
4701 test -z "$LD" && LD="$ac_prog"
4702 ;;
4703 "")
4704 # If it fails, then pretend we aren't using GCC.
4705 ac_prog=ld
4706 ;;
4707 *)
4708 # If it is relative, then search for the first ld in PATH.
4709 with_gnu_ld=unknown
4710 ;;
4711 esac
4712elif test "$with_gnu_ld" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004713 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4714echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004715else
mmentovai8c2a4de2006-09-20 16:20:15 +00004716 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4717echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004718fi
4719if test "${lt_cv_path_LD+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721else
4722 if test -z "$LD"; then
4723 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4724 for ac_dir in $PATH; do
4725 IFS="$lt_save_ifs"
4726 test -z "$ac_dir" && ac_dir=.
4727 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4728 lt_cv_path_LD="$ac_dir/$ac_prog"
4729 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +00004730 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004731 # Break only if it was the GNU/non-GNU ld that we prefer.
4732 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4733 *GNU* | *'with BFD'*)
4734 test "$with_gnu_ld" != no && break
4735 ;;
4736 *)
4737 test "$with_gnu_ld" != yes && break
4738 ;;
4739 esac
4740 fi
4741 done
4742 IFS="$lt_save_ifs"
4743else
4744 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4745fi
4746fi
4747
4748LD="$lt_cv_path_LD"
4749if test -n "$LD"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004750 { echo "$as_me:$LINENO: result: $LD" >&5
4751echo "${ECHO_T}$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004752else
mmentovai8c2a4de2006-09-20 16:20:15 +00004753 { echo "$as_me:$LINENO: result: no" >&5
4754echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004755fi
4756test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4757echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4758 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004759{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4760echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004761if test "${lt_cv_prog_gnu_ld+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4763else
mmentovai8c2a4de2006-09-20 16:20:15 +00004764 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004765case `$LD -v 2>&1 </dev/null` in
4766*GNU* | *'with BFD'*)
4767 lt_cv_prog_gnu_ld=yes
4768 ;;
4769*)
4770 lt_cv_prog_gnu_ld=no
4771 ;;
4772esac
4773fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004774{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4775echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004776with_gnu_ld=$lt_cv_prog_gnu_ld
4777
4778
mmentovai8c2a4de2006-09-20 16:20:15 +00004779{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4780echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004781if test "${lt_cv_ld_reload_flag+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783else
4784 lt_cv_ld_reload_flag='-r'
4785fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004786{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4787echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004788reload_flag=$lt_cv_ld_reload_flag
4789case $reload_flag in
4790"" | " "*) ;;
4791*) reload_flag=" $reload_flag" ;;
4792esac
4793reload_cmds='$LD$reload_flag -o $output$reload_objs'
mmentovai8c2a4de2006-09-20 16:20:15 +00004794case $host_os in
4795 darwin*)
4796 if test "$GCC" = yes; then
4797 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4798 else
4799 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4800 fi
4801 ;;
4802esac
brynercb91a2f2006-08-25 21:14:45 +00004803
mmentovai8c2a4de2006-09-20 16:20:15 +00004804{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4805echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004806if test "${lt_cv_path_NM+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808else
4809 if test -n "$NM"; then
4810 # Let the user override the test.
4811 lt_cv_path_NM="$NM"
4812else
mmentovai8c2a4de2006-09-20 16:20:15 +00004813 lt_nm_to_check="${ac_tool_prefix}nm"
4814 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4815 lt_nm_to_check="$lt_nm_to_check nm"
4816 fi
4817 for lt_tmp_nm in $lt_nm_to_check; do
4818 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4819 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4820 IFS="$lt_save_ifs"
4821 test -z "$ac_dir" && ac_dir=.
4822 tmp_nm="$ac_dir/$lt_tmp_nm"
4823 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4824 # Check to see if the nm accepts a BSD-compat flag.
4825 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4826 # nm: unknown option "B" ignored
4827 # Tru64's nm complains that /dev/null is an invalid object file
4828 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4829 */dev/null* | *'Invalid file or object type'*)
4830 lt_cv_path_NM="$tmp_nm -B"
brynercb91a2f2006-08-25 21:14:45 +00004831 break
4832 ;;
4833 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00004834 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4835 */dev/null*)
4836 lt_cv_path_NM="$tmp_nm -p"
4837 break
4838 ;;
4839 *)
4840 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4841 continue # so that we can try to find one that supports BSD flags
4842 ;;
4843 esac
brynercb91a2f2006-08-25 21:14:45 +00004844 ;;
4845 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00004846 fi
4847 done
4848 IFS="$lt_save_ifs"
brynercb91a2f2006-08-25 21:14:45 +00004849 done
brynercb91a2f2006-08-25 21:14:45 +00004850 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4851fi
4852fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004853{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4854echo "${ECHO_T}$lt_cv_path_NM" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004855NM="$lt_cv_path_NM"
4856
mmentovai8c2a4de2006-09-20 16:20:15 +00004857{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4858echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004859LN_S=$as_ln_s
4860if test "$LN_S" = "ln -s"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004861 { echo "$as_me:$LINENO: result: yes" >&5
4862echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004863else
mmentovai8c2a4de2006-09-20 16:20:15 +00004864 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4865echo "${ECHO_T}no, using $LN_S" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004866fi
4867
mmentovai8c2a4de2006-09-20 16:20:15 +00004868{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4869echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004870if test "${lt_cv_deplibs_check_method+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4872else
4873 lt_cv_file_magic_cmd='$MAGIC_CMD'
4874lt_cv_file_magic_test_file=
4875lt_cv_deplibs_check_method='unknown'
4876# Need to set the preceding variable on all platforms that support
4877# interlibrary dependencies.
4878# 'none' -- dependencies not supported.
4879# `unknown' -- same as none, but documents that we really don't know.
4880# 'pass_all' -- all dependencies passed with no checks.
4881# 'test_compile' -- check by making test program.
4882# 'file_magic [[regex]]' -- check by looking for files in library path
4883# which responds to the $file_magic_cmd with a given extended regex.
4884# If you have `file' or equivalent on your system and you're not sure
4885# whether `pass_all' will *always* work, you probably want this one.
4886
4887case $host_os in
4888aix4* | aix5*)
4889 lt_cv_deplibs_check_method=pass_all
4890 ;;
4891
4892beos*)
4893 lt_cv_deplibs_check_method=pass_all
4894 ;;
4895
mmentovai8c2a4de2006-09-20 16:20:15 +00004896bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00004897 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4898 lt_cv_file_magic_cmd='/usr/bin/file -L'
4899 lt_cv_file_magic_test_file=/shlib/libc.so
4900 ;;
4901
4902cygwin*)
4903 # func_win32_libid is a shell function defined in ltmain.sh
4904 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4905 lt_cv_file_magic_cmd='func_win32_libid'
4906 ;;
4907
4908mingw* | pw32*)
4909 # Base MSYS/MinGW do not provide the 'file' command needed by
4910 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4911 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4912 lt_cv_file_magic_cmd='$OBJDUMP -f'
4913 ;;
4914
4915darwin* | rhapsody*)
4916 lt_cv_deplibs_check_method=pass_all
4917 ;;
4918
mmentovai8c2a4de2006-09-20 16:20:15 +00004919freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +00004920 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4921 case $host_cpu in
4922 i*86 )
4923 # Not sure whether the presence of OpenBSD here was a mistake.
4924 # Let's accept both of them until this is cleared up.
mmentovai8c2a4de2006-09-20 16:20:15 +00004925 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 +00004926 lt_cv_file_magic_cmd=/usr/bin/file
4927 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4928 ;;
4929 esac
4930 else
4931 lt_cv_deplibs_check_method=pass_all
4932 fi
4933 ;;
4934
4935gnu*)
4936 lt_cv_deplibs_check_method=pass_all
4937 ;;
4938
4939hpux10.20* | hpux11*)
4940 lt_cv_file_magic_cmd=/usr/bin/file
mmentovai8c2a4de2006-09-20 16:20:15 +00004941 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00004942 ia64*)
4943 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4944 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4945 ;;
4946 hppa*64*)
4947 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]'
4948 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4949 ;;
4950 *)
4951 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4952 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4953 ;;
4954 esac
4955 ;;
4956
mmentovai8c2a4de2006-09-20 16:20:15 +00004957interix3*)
4958 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4960 ;;
4961
brynercb91a2f2006-08-25 21:14:45 +00004962irix5* | irix6* | nonstopux*)
4963 case $LD in
4964 *-32|*"-32 ") libmagic=32-bit;;
4965 *-n32|*"-n32 ") libmagic=N32;;
4966 *-64|*"-64 ") libmagic=64-bit;;
4967 *) libmagic=never-match;;
4968 esac
4969 lt_cv_deplibs_check_method=pass_all
4970 ;;
4971
4972# This must be Linux ELF.
4973linux*)
4974 lt_cv_deplibs_check_method=pass_all
4975 ;;
4976
mmentovai8c2a4de2006-09-20 16:20:15 +00004977netbsd*)
brynercb91a2f2006-08-25 21:14:45 +00004978 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4980 else
4981 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4982 fi
4983 ;;
4984
4985newos6*)
4986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4987 lt_cv_file_magic_cmd=/usr/bin/file
4988 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4989 ;;
4990
4991nto-qnx*)
4992 lt_cv_deplibs_check_method=unknown
4993 ;;
4994
4995openbsd*)
brynercb91a2f2006-08-25 21:14:45 +00004996 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004997 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00004998 else
mmentovai8c2a4de2006-09-20 16:20:15 +00004999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005000 fi
5001 ;;
5002
5003osf3* | osf4* | osf5*)
5004 lt_cv_deplibs_check_method=pass_all
5005 ;;
5006
brynercb91a2f2006-08-25 21:14:45 +00005007solaris*)
5008 lt_cv_deplibs_check_method=pass_all
5009 ;;
5010
mmentovai8c2a4de2006-09-20 16:20:15 +00005011sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00005012 case $host_vendor in
5013 motorola)
5014 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]'
5015 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5016 ;;
5017 ncr)
5018 lt_cv_deplibs_check_method=pass_all
5019 ;;
5020 sequent)
5021 lt_cv_file_magic_cmd='/bin/file'
5022 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5023 ;;
5024 sni)
5025 lt_cv_file_magic_cmd='/bin/file'
5026 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5027 lt_cv_file_magic_test_file=/lib/libc.so
5028 ;;
5029 siemens)
5030 lt_cv_deplibs_check_method=pass_all
5031 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005032 pc)
5033 lt_cv_deplibs_check_method=pass_all
5034 ;;
brynercb91a2f2006-08-25 21:14:45 +00005035 esac
5036 ;;
5037
mmentovai8c2a4de2006-09-20 16:20:15 +00005038sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
brynercb91a2f2006-08-25 21:14:45 +00005039 lt_cv_deplibs_check_method=pass_all
5040 ;;
5041esac
5042
5043fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005044{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5045echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005046file_magic_cmd=$lt_cv_file_magic_cmd
5047deplibs_check_method=$lt_cv_deplibs_check_method
5048test -z "$deplibs_check_method" && deplibs_check_method=unknown
5049
5050
5051
5052
5053# If no C compiler was specified, use CC.
5054LTCC=${LTCC-"$CC"}
5055
mmentovai8c2a4de2006-09-20 16:20:15 +00005056# If no C compiler flags were specified, use CFLAGS.
5057LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5058
brynercb91a2f2006-08-25 21:14:45 +00005059# Allow CC to be a program name with arguments.
5060compiler=$CC
5061
5062
mmentovai8c2a4de2006-09-20 16:20:15 +00005063# Check whether --enable-libtool-lock was given.
brynercb91a2f2006-08-25 21:14:45 +00005064if test "${enable_libtool_lock+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005065 enableval=$enable_libtool_lock;
5066fi
brynercb91a2f2006-08-25 21:14:45 +00005067
brynercb91a2f2006-08-25 21:14:45 +00005068test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5069
5070# Some flags need to be propagated to the compiler or linker for good
5071# libtool support.
5072case $host in
5073ia64-*-hpux*)
5074 # Find out which ABI we are using.
5075 echo 'int i;' > conftest.$ac_ext
5076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5077 (eval $ac_compile) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; then
5081 case `/usr/bin/file conftest.$ac_objext` in
5082 *ELF-32*)
5083 HPUX_IA64_MODE="32"
5084 ;;
5085 *ELF-64*)
5086 HPUX_IA64_MODE="64"
5087 ;;
5088 esac
5089 fi
5090 rm -rf conftest*
5091 ;;
5092*-*-irix6*)
5093 # Find out which ABI we are using.
mmentovaiaf3c43f2007-05-17 18:34:37 +00005094 echo '#line 5094 "configure"' > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>&5
5097 ac_status=$?
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; then
5100 if test "$lt_cv_prog_gnu_ld" = yes; then
5101 case `/usr/bin/file conftest.$ac_objext` in
5102 *32-bit*)
5103 LD="${LD-ld} -melf32bsmip"
5104 ;;
5105 *N32*)
5106 LD="${LD-ld} -melf32bmipn32"
5107 ;;
5108 *64-bit*)
5109 LD="${LD-ld} -melf64bmip"
5110 ;;
5111 esac
5112 else
5113 case `/usr/bin/file conftest.$ac_objext` in
5114 *32-bit*)
5115 LD="${LD-ld} -32"
5116 ;;
5117 *N32*)
5118 LD="${LD-ld} -n32"
5119 ;;
5120 *64-bit*)
5121 LD="${LD-ld} -64"
5122 ;;
5123 esac
5124 fi
5125 fi
5126 rm -rf conftest*
5127 ;;
5128
5129x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5130 # Find out which ABI we are using.
5131 echo 'int i;' > conftest.$ac_ext
5132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5133 (eval $ac_compile) 2>&5
5134 ac_status=$?
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005137 case `/usr/bin/file conftest.o` in
brynercb91a2f2006-08-25 21:14:45 +00005138 *32-bit*)
5139 case $host in
5140 x86_64-*linux*)
5141 LD="${LD-ld} -m elf_i386"
5142 ;;
5143 ppc64-*linux*|powerpc64-*linux*)
5144 LD="${LD-ld} -m elf32ppclinux"
5145 ;;
5146 s390x-*linux*)
5147 LD="${LD-ld} -m elf_s390"
5148 ;;
5149 sparc64-*linux*)
5150 LD="${LD-ld} -m elf32_sparc"
5151 ;;
5152 esac
5153 ;;
5154 *64-bit*)
5155 case $host in
5156 x86_64-*linux*)
5157 LD="${LD-ld} -m elf_x86_64"
5158 ;;
5159 ppc*-*linux*|powerpc*-*linux*)
5160 LD="${LD-ld} -m elf64ppc"
5161 ;;
5162 s390*-*linux*)
5163 LD="${LD-ld} -m elf64_s390"
5164 ;;
5165 sparc*-*linux*)
5166 LD="${LD-ld} -m elf64_sparc"
5167 ;;
5168 esac
5169 ;;
5170 esac
5171 fi
5172 rm -rf conftest*
5173 ;;
5174
5175*-*-sco3.2v5*)
5176 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5177 SAVE_CFLAGS="$CFLAGS"
5178 CFLAGS="$CFLAGS -belf"
mmentovai8c2a4de2006-09-20 16:20:15 +00005179 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5180echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005181if test "${lt_cv_cc_needs_belf+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5183else
5184 ac_ext=c
5185ac_cpp='$CPP $CPPFLAGS'
5186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5188ac_compiler_gnu=$ac_cv_c_compiler_gnu
5189
5190 cat >conftest.$ac_ext <<_ACEOF
5191/* confdefs.h. */
5192_ACEOF
5193cat confdefs.h >>conftest.$ac_ext
5194cat >>conftest.$ac_ext <<_ACEOF
5195/* end confdefs.h. */
5196
5197int
5198main ()
5199{
5200
5201 ;
5202 return 0;
5203}
5204_ACEOF
5205rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00005206if { (ac_try="$ac_link"
5207case "(($ac_try" in
5208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209 *) ac_try_echo=$ac_try;;
5210esac
5211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005213 ac_status=$?
5214 grep -v '^ *+' conftest.er1 >conftest.err
5215 rm -f conftest.er1
5216 cat conftest.err >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00005218 (exit $ac_status); } && {
5219 test -z "$ac_c_werror_flag" ||
5220 test ! -s conftest.err
5221 } && test -s conftest$ac_exeext &&
5222 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +00005223 lt_cv_cc_needs_belf=yes
5224else
5225 echo "$as_me: failed program was:" >&5
5226sed 's/^/| /' conftest.$ac_ext >&5
5227
mmentovai8c2a4de2006-09-20 16:20:15 +00005228 lt_cv_cc_needs_belf=no
brynercb91a2f2006-08-25 21:14:45 +00005229fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005230
mmentovaiaf3c43f2007-05-17 18:34:37 +00005231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +00005232 conftest$ac_exeext conftest.$ac_ext
5233 ac_ext=c
5234ac_cpp='$CPP $CPPFLAGS'
5235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5237ac_compiler_gnu=$ac_cv_c_compiler_gnu
5238
5239fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005240{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5241echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005242 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5243 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5244 CFLAGS="$SAVE_CFLAGS"
5245 fi
5246 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005247sparc*-*solaris*)
5248 # Find out which ABI we are using.
5249 echo 'int i;' > conftest.$ac_ext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251 (eval $ac_compile) 2>&5
5252 ac_status=$?
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }; then
5255 case `/usr/bin/file conftest.o` in
5256 *64-bit*)
5257 case $lt_cv_prog_gnu_ld in
5258 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5259 *) LD="${LD-ld} -64" ;;
5260 esac
5261 ;;
5262 esac
5263 fi
5264 rm -rf conftest*
5265 ;;
5266
brynercb91a2f2006-08-25 21:14:45 +00005267
5268esac
5269
5270need_locks="$enable_libtool_lock"
5271
5272
5273
mmentovai8c2a4de2006-09-20 16:20:15 +00005274{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5275echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005276if test "${ac_cv_header_stdc+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278else
5279 cat >conftest.$ac_ext <<_ACEOF
5280/* confdefs.h. */
5281_ACEOF
5282cat confdefs.h >>conftest.$ac_ext
5283cat >>conftest.$ac_ext <<_ACEOF
5284/* end confdefs.h. */
5285#include <stdlib.h>
5286#include <stdarg.h>
5287#include <string.h>
5288#include <float.h>
5289
5290int
5291main ()
5292{
5293
5294 ;
5295 return 0;
5296}
5297_ACEOF
5298rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00005299if { (ac_try="$ac_compile"
5300case "(($ac_try" in
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5303esac
5304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005306 ac_status=$?
5307 grep -v '^ *+' conftest.er1 >conftest.err
5308 rm -f conftest.er1
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00005311 (exit $ac_status); } && {
5312 test -z "$ac_c_werror_flag" ||
5313 test ! -s conftest.err
5314 } && test -s conftest.$ac_objext; then
brynercb91a2f2006-08-25 21:14:45 +00005315 ac_cv_header_stdc=yes
5316else
5317 echo "$as_me: failed program was:" >&5
5318sed 's/^/| /' conftest.$ac_ext >&5
5319
mmentovai8c2a4de2006-09-20 16:20:15 +00005320 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +00005321fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005322
5323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005324
5325if test $ac_cv_header_stdc = yes; then
5326 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5327 cat >conftest.$ac_ext <<_ACEOF
5328/* confdefs.h. */
5329_ACEOF
5330cat confdefs.h >>conftest.$ac_ext
5331cat >>conftest.$ac_ext <<_ACEOF
5332/* end confdefs.h. */
5333#include <string.h>
5334
5335_ACEOF
5336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5337 $EGREP "memchr" >/dev/null 2>&1; then
5338 :
5339else
5340 ac_cv_header_stdc=no
5341fi
5342rm -f conftest*
5343
5344fi
5345
5346if test $ac_cv_header_stdc = yes; then
5347 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5348 cat >conftest.$ac_ext <<_ACEOF
5349/* confdefs.h. */
5350_ACEOF
5351cat confdefs.h >>conftest.$ac_ext
5352cat >>conftest.$ac_ext <<_ACEOF
5353/* end confdefs.h. */
5354#include <stdlib.h>
5355
5356_ACEOF
5357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5358 $EGREP "free" >/dev/null 2>&1; then
5359 :
5360else
5361 ac_cv_header_stdc=no
5362fi
5363rm -f conftest*
5364
5365fi
5366
5367if test $ac_cv_header_stdc = yes; then
5368 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5369 if test "$cross_compiling" = yes; then
5370 :
5371else
5372 cat >conftest.$ac_ext <<_ACEOF
5373/* confdefs.h. */
5374_ACEOF
5375cat confdefs.h >>conftest.$ac_ext
5376cat >>conftest.$ac_ext <<_ACEOF
5377/* end confdefs.h. */
5378#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +00005379#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +00005380#if ((' ' & 0x0FF) == 0x020)
5381# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5382# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5383#else
5384# define ISLOWER(c) \
5385 (('a' <= (c) && (c) <= 'i') \
5386 || ('j' <= (c) && (c) <= 'r') \
5387 || ('s' <= (c) && (c) <= 'z'))
5388# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5389#endif
5390
5391#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5392int
5393main ()
5394{
5395 int i;
5396 for (i = 0; i < 256; i++)
5397 if (XOR (islower (i), ISLOWER (i))
5398 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +00005399 return 2;
5400 return 0;
brynercb91a2f2006-08-25 21:14:45 +00005401}
5402_ACEOF
5403rm -f conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00005404if { (ac_try="$ac_link"
5405case "(($ac_try" in
5406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407 *) ac_try_echo=$ac_try;;
5408esac
5409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005411 ac_status=$?
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00005414 { (case "(($ac_try" in
5415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416 *) ac_try_echo=$ac_try;;
5417esac
5418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 :
5424else
5425 echo "$as_me: program exited with status $ac_status" >&5
5426echo "$as_me: failed program was:" >&5
5427sed 's/^/| /' conftest.$ac_ext >&5
5428
5429( exit $ac_status )
5430ac_cv_header_stdc=no
5431fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5433fi
5434
5435
brynercb91a2f2006-08-25 21:14:45 +00005436fi
5437fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005438{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5439echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005440if test $ac_cv_header_stdc = yes; then
5441
5442cat >>confdefs.h <<\_ACEOF
5443#define STDC_HEADERS 1
5444_ACEOF
5445
5446fi
5447
5448# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5459 inttypes.h stdint.h unistd.h
5460do
5461as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mmentovai8c2a4de2006-09-20 16:20:15 +00005462{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5464if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
brynercb91a2f2006-08-25 21:14:45 +00005465 echo $ECHO_N "(cached) $ECHO_C" >&6
5466else
5467 cat >conftest.$ac_ext <<_ACEOF
5468/* confdefs.h. */
5469_ACEOF
5470cat confdefs.h >>conftest.$ac_ext
5471cat >>conftest.$ac_ext <<_ACEOF
5472/* end confdefs.h. */
5473$ac_includes_default
5474
5475#include <$ac_header>
5476_ACEOF
5477rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00005478if { (ac_try="$ac_compile"
5479case "(($ac_try" in
5480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5481 *) ac_try_echo=$ac_try;;
5482esac
5483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5484 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005485 ac_status=$?
5486 grep -v '^ *+' conftest.er1 >conftest.err
5487 rm -f conftest.er1
5488 cat conftest.err >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00005490 (exit $ac_status); } && {
5491 test -z "$ac_c_werror_flag" ||
5492 test ! -s conftest.err
5493 } && test -s conftest.$ac_objext; then
brynercb91a2f2006-08-25 21:14:45 +00005494 eval "$as_ac_Header=yes"
5495else
5496 echo "$as_me: failed program was:" >&5
5497sed 's/^/| /' conftest.$ac_ext >&5
5498
mmentovai8c2a4de2006-09-20 16:20:15 +00005499 eval "$as_ac_Header=no"
brynercb91a2f2006-08-25 21:14:45 +00005500fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005501
5502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005503fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005504ac_res=`eval echo '${'$as_ac_Header'}'`
5505 { echo "$as_me:$LINENO: result: $ac_res" >&5
5506echo "${ECHO_T}$ac_res" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005507if test `eval echo '${'$as_ac_Header'}'` = yes; then
5508 cat >>confdefs.h <<_ACEOF
5509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5510_ACEOF
5511
5512fi
5513
5514done
5515
5516
5517
5518for ac_header in dlfcn.h
5519do
5520as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mmentovai8c2a4de2006-09-20 16:20:15 +00005521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
brynercb91a2f2006-08-25 21:14:45 +00005525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005527ac_res=`eval echo '${'$as_ac_Header'}'`
5528 { echo "$as_me:$LINENO: result: $ac_res" >&5
5529echo "${ECHO_T}$ac_res" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005530else
5531 # Is the header compilable?
mmentovai8c2a4de2006-09-20 16:20:15 +00005532{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5533echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005534cat >conftest.$ac_ext <<_ACEOF
5535/* confdefs.h. */
5536_ACEOF
5537cat confdefs.h >>conftest.$ac_ext
5538cat >>conftest.$ac_ext <<_ACEOF
5539/* end confdefs.h. */
5540$ac_includes_default
5541#include <$ac_header>
5542_ACEOF
5543rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00005544if { (ac_try="$ac_compile"
5545case "(($ac_try" in
5546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547 *) ac_try_echo=$ac_try;;
5548esac
5549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5550 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005551 ac_status=$?
5552 grep -v '^ *+' conftest.er1 >conftest.err
5553 rm -f conftest.er1
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00005556 (exit $ac_status); } && {
5557 test -z "$ac_c_werror_flag" ||
5558 test ! -s conftest.err
5559 } && test -s conftest.$ac_objext; then
brynercb91a2f2006-08-25 21:14:45 +00005560 ac_header_compiler=yes
5561else
5562 echo "$as_me: failed program was:" >&5
5563sed 's/^/| /' conftest.$ac_ext >&5
5564
mmentovai8c2a4de2006-09-20 16:20:15 +00005565 ac_header_compiler=no
brynercb91a2f2006-08-25 21:14:45 +00005566fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005567
5568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5570echo "${ECHO_T}$ac_header_compiler" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005571
5572# Is the header present?
mmentovai8c2a4de2006-09-20 16:20:15 +00005573{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5574echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005575cat >conftest.$ac_ext <<_ACEOF
5576/* confdefs.h. */
5577_ACEOF
5578cat confdefs.h >>conftest.$ac_ext
5579cat >>conftest.$ac_ext <<_ACEOF
5580/* end confdefs.h. */
5581#include <$ac_header>
5582_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005583if { (ac_try="$ac_cpp conftest.$ac_ext"
5584case "(($ac_try" in
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5587esac
5588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005590 ac_status=$?
5591 grep -v '^ *+' conftest.er1 >conftest.err
5592 rm -f conftest.er1
5593 cat conftest.err >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00005595 (exit $ac_status); } >/dev/null && {
5596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5597 test ! -s conftest.err
5598 }; then
brynercb91a2f2006-08-25 21:14:45 +00005599 ac_header_preproc=yes
5600else
5601 echo "$as_me: failed program was:" >&5
5602sed 's/^/| /' conftest.$ac_ext >&5
5603
5604 ac_header_preproc=no
5605fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005606
brynercb91a2f2006-08-25 21:14:45 +00005607rm -f conftest.err conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00005608{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5609echo "${ECHO_T}$ac_header_preproc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005610
5611# So? What about this header?
5612case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5613 yes:no: )
5614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5615echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5617echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5618 ac_header_preproc=yes
5619 ;;
5620 no:yes:* )
5621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5622echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5624echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5626echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5628echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5630echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5632echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00005633 ( cat <<\_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00005634## ------------------------------------ ##
5635## Report this to opensource@google.com ##
5636## ------------------------------------ ##
5637_ASBOX
mmentovai8c2a4de2006-09-20 16:20:15 +00005638 ) | sed "s/^/$as_me: WARNING: /" >&2
brynercb91a2f2006-08-25 21:14:45 +00005639 ;;
5640esac
mmentovai8c2a4de2006-09-20 16:20:15 +00005641{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
brynercb91a2f2006-08-25 21:14:45 +00005644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645else
5646 eval "$as_ac_Header=\$ac_header_preproc"
5647fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005648ac_res=`eval echo '${'$as_ac_Header'}'`
5649 { echo "$as_me:$LINENO: result: $ac_res" >&5
5650echo "${ECHO_T}$ac_res" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005651
5652fi
5653if test `eval echo '${'$as_ac_Header'}'` = yes; then
5654 cat >>confdefs.h <<_ACEOF
5655#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5656_ACEOF
5657
5658fi
5659
5660done
5661
mmentovai8c2a4de2006-09-20 16:20:15 +00005662
5663
5664if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5665 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5666 (test "X$CXX" != "Xg++"))) ; then
5667 ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00005668ac_cpp='$CXXCPP $CPPFLAGS'
5669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00005672{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5673echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005674if test -z "$CXXCPP"; then
5675 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5677else
5678 # Double quotes because CXXCPP needs to be expanded
5679 for CXXCPP in "$CXX -E" "/lib/cpp"
5680 do
5681 ac_preproc_ok=false
5682for ac_cxx_preproc_warn_flag in '' yes
5683do
5684 # Use a header file that comes with gcc, so configuring glibc
5685 # with a fresh cross-compiler works.
5686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5687 # <limits.h> exists even on freestanding compilers.
5688 # On the NeXT, cc -E runs the code through the compiler's parser,
5689 # not just through cpp. "Syntax error" is here to catch this case.
5690 cat >conftest.$ac_ext <<_ACEOF
5691/* confdefs.h. */
5692_ACEOF
5693cat confdefs.h >>conftest.$ac_ext
5694cat >>conftest.$ac_ext <<_ACEOF
5695/* end confdefs.h. */
5696#ifdef __STDC__
5697# include <limits.h>
5698#else
5699# include <assert.h>
5700#endif
5701 Syntax error
5702_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005703if { (ac_try="$ac_cpp conftest.$ac_ext"
5704case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707esac
5708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005710 ac_status=$?
5711 grep -v '^ *+' conftest.er1 >conftest.err
5712 rm -f conftest.er1
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00005715 (exit $ac_status); } >/dev/null && {
5716 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5717 test ! -s conftest.err
5718 }; then
brynercb91a2f2006-08-25 21:14:45 +00005719 :
5720else
5721 echo "$as_me: failed program was:" >&5
5722sed 's/^/| /' conftest.$ac_ext >&5
5723
5724 # Broken: fails on valid input.
5725continue
5726fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005727
brynercb91a2f2006-08-25 21:14:45 +00005728rm -f conftest.err conftest.$ac_ext
5729
mmentovai8c2a4de2006-09-20 16:20:15 +00005730 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00005731 # can be detected and how.
5732 cat >conftest.$ac_ext <<_ACEOF
5733/* confdefs.h. */
5734_ACEOF
5735cat confdefs.h >>conftest.$ac_ext
5736cat >>conftest.$ac_ext <<_ACEOF
5737/* end confdefs.h. */
5738#include <ac_nonexistent.h>
5739_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005740if { (ac_try="$ac_cpp conftest.$ac_ext"
5741case "(($ac_try" in
5742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743 *) ac_try_echo=$ac_try;;
5744esac
5745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005747 ac_status=$?
5748 grep -v '^ *+' conftest.er1 >conftest.err
5749 rm -f conftest.er1
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00005752 (exit $ac_status); } >/dev/null && {
5753 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5754 test ! -s conftest.err
5755 }; then
brynercb91a2f2006-08-25 21:14:45 +00005756 # Broken: success on invalid input.
5757continue
5758else
5759 echo "$as_me: failed program was:" >&5
5760sed 's/^/| /' conftest.$ac_ext >&5
5761
5762 # Passes both tests.
5763ac_preproc_ok=:
5764break
5765fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005766
brynercb91a2f2006-08-25 21:14:45 +00005767rm -f conftest.err conftest.$ac_ext
5768
5769done
5770# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5771rm -f conftest.err conftest.$ac_ext
5772if $ac_preproc_ok; then
5773 break
5774fi
5775
5776 done
5777 ac_cv_prog_CXXCPP=$CXXCPP
5778
5779fi
5780 CXXCPP=$ac_cv_prog_CXXCPP
5781else
5782 ac_cv_prog_CXXCPP=$CXXCPP
5783fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005784{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5785echo "${ECHO_T}$CXXCPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005786ac_preproc_ok=false
5787for ac_cxx_preproc_warn_flag in '' yes
5788do
5789 # Use a header file that comes with gcc, so configuring glibc
5790 # with a fresh cross-compiler works.
5791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5792 # <limits.h> exists even on freestanding compilers.
5793 # On the NeXT, cc -E runs the code through the compiler's parser,
5794 # not just through cpp. "Syntax error" is here to catch this case.
5795 cat >conftest.$ac_ext <<_ACEOF
5796/* confdefs.h. */
5797_ACEOF
5798cat confdefs.h >>conftest.$ac_ext
5799cat >>conftest.$ac_ext <<_ACEOF
5800/* end confdefs.h. */
5801#ifdef __STDC__
5802# include <limits.h>
5803#else
5804# include <assert.h>
5805#endif
5806 Syntax error
5807_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005808if { (ac_try="$ac_cpp conftest.$ac_ext"
5809case "(($ac_try" in
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5812esac
5813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00005820 (exit $ac_status); } >/dev/null && {
5821 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5822 test ! -s conftest.err
5823 }; then
brynercb91a2f2006-08-25 21:14:45 +00005824 :
5825else
5826 echo "$as_me: failed program was:" >&5
5827sed 's/^/| /' conftest.$ac_ext >&5
5828
5829 # Broken: fails on valid input.
5830continue
5831fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005832
brynercb91a2f2006-08-25 21:14:45 +00005833rm -f conftest.err conftest.$ac_ext
5834
mmentovai8c2a4de2006-09-20 16:20:15 +00005835 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00005836 # can be detected and how.
5837 cat >conftest.$ac_ext <<_ACEOF
5838/* confdefs.h. */
5839_ACEOF
5840cat confdefs.h >>conftest.$ac_ext
5841cat >>conftest.$ac_ext <<_ACEOF
5842/* end confdefs.h. */
5843#include <ac_nonexistent.h>
5844_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005845if { (ac_try="$ac_cpp conftest.$ac_ext"
5846case "(($ac_try" in
5847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848 *) ac_try_echo=$ac_try;;
5849esac
5850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005852 ac_status=$?
5853 grep -v '^ *+' conftest.er1 >conftest.err
5854 rm -f conftest.er1
5855 cat conftest.err >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00005857 (exit $ac_status); } >/dev/null && {
5858 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5859 test ! -s conftest.err
5860 }; then
brynercb91a2f2006-08-25 21:14:45 +00005861 # Broken: success on invalid input.
5862continue
5863else
5864 echo "$as_me: failed program was:" >&5
5865sed 's/^/| /' conftest.$ac_ext >&5
5866
5867 # Passes both tests.
5868ac_preproc_ok=:
5869break
5870fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005871
brynercb91a2f2006-08-25 21:14:45 +00005872rm -f conftest.err conftest.$ac_ext
5873
5874done
5875# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5876rm -f conftest.err conftest.$ac_ext
5877if $ac_preproc_ok; then
5878 :
5879else
5880 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5881See \`config.log' for more details." >&5
5882echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5883See \`config.log' for more details." >&2;}
5884 { (exit 1); exit 1; }; }
5885fi
5886
mmentovai8c2a4de2006-09-20 16:20:15 +00005887ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00005888ac_cpp='$CXXCPP $CPPFLAGS'
5889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5892
mmentovai8c2a4de2006-09-20 16:20:15 +00005893fi
5894
5895
5896ac_ext=f
5897ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5898ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5899ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5900if test -n "$ac_tool_prefix"; then
mmentovaiaf3c43f2007-05-17 18:34:37 +00005901 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 +00005902 do
5903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5904set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5905{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5907if test "${ac_cv_prog_F77+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5909else
5910 if test -n "$F77"; then
5911 ac_cv_prog_F77="$F77" # Let the user override the test.
5912else
5913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914for as_dir in $PATH
5915do
5916 IFS=$as_save_IFS
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00005919 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 +00005920 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 break 2
5923 fi
5924done
5925done
5926IFS=$as_save_IFS
5927
5928fi
5929fi
5930F77=$ac_cv_prog_F77
5931if test -n "$F77"; then
5932 { echo "$as_me:$LINENO: result: $F77" >&5
5933echo "${ECHO_T}$F77" >&6; }
5934else
5935 { echo "$as_me:$LINENO: result: no" >&5
5936echo "${ECHO_T}no" >&6; }
5937fi
5938
5939
5940 test -n "$F77" && break
5941 done
5942fi
5943if test -z "$F77"; then
5944 ac_ct_F77=$F77
mmentovaiaf3c43f2007-05-17 18:34:37 +00005945 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 +00005946do
5947 # Extract the first word of "$ac_prog", so it can be a program name with args.
5948set dummy $ac_prog; ac_word=$2
5949{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5951if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5953else
5954 if test -n "$ac_ct_F77"; then
5955 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5956else
5957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958for as_dir in $PATH
5959do
5960 IFS=$as_save_IFS
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00005963 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 +00005964 ac_cv_prog_ac_ct_F77="$ac_prog"
5965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 break 2
5967 fi
5968done
5969done
5970IFS=$as_save_IFS
5971
5972fi
5973fi
5974ac_ct_F77=$ac_cv_prog_ac_ct_F77
5975if test -n "$ac_ct_F77"; then
5976 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5977echo "${ECHO_T}$ac_ct_F77" >&6; }
5978else
5979 { echo "$as_me:$LINENO: result: no" >&5
5980echo "${ECHO_T}no" >&6; }
5981fi
5982
5983
5984 test -n "$ac_ct_F77" && break
5985done
5986
5987 if test "x$ac_ct_F77" = x; then
5988 F77=""
5989 else
5990 case $cross_compiling:$ac_tool_warned in
5991yes:)
5992{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5993whose name does not start with the host triplet. If you think this
5994configuration is useful to you, please write to autoconf@gnu.org." >&5
5995echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5996whose name does not start with the host triplet. If you think this
5997configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5998ac_tool_warned=yes ;;
5999esac
6000 F77=$ac_ct_F77
6001 fi
6002fi
6003
6004
6005# Provide some information about the compiler.
6006echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6007ac_compiler=`set X $ac_compile; echo $2`
6008{ (ac_try="$ac_compiler --version >&5"
6009case "(($ac_try" in
6010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6011 *) ac_try_echo=$ac_try;;
6012esac
6013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6014 (eval "$ac_compiler --version >&5") 2>&5
6015 ac_status=$?
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); }
6018{ (ac_try="$ac_compiler -v >&5"
6019case "(($ac_try" in
6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021 *) ac_try_echo=$ac_try;;
6022esac
6023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024 (eval "$ac_compiler -v >&5") 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }
6028{ (ac_try="$ac_compiler -V >&5"
6029case "(($ac_try" in
6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031 *) ac_try_echo=$ac_try;;
6032esac
6033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034 (eval "$ac_compiler -V >&5") 2>&5
6035 ac_status=$?
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }
6038rm -f a.out
6039
6040# If we don't use `.F' as extension, the preprocessor is not run on the
6041# input file. (Note that this only needs to work for GNU compilers.)
6042ac_save_ext=$ac_ext
6043ac_ext=F
6044{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6045echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6046if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6048else
6049 cat >conftest.$ac_ext <<_ACEOF
6050 program main
6051#ifndef __GNUC__
6052 choke me
6053#endif
6054
6055 end
6056_ACEOF
6057rm -f conftest.$ac_objext
6058if { (ac_try="$ac_compile"
6059case "(($ac_try" in
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6062esac
6063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064 (eval "$ac_compile") 2>conftest.er1
6065 ac_status=$?
6066 grep -v '^ *+' conftest.er1 >conftest.err
6067 rm -f conftest.er1
6068 cat conftest.err >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00006070 (exit $ac_status); } && {
6071 test -z "$ac_f77_werror_flag" ||
6072 test ! -s conftest.err
6073 } && test -s conftest.$ac_objext; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006074 ac_compiler_gnu=yes
6075else
6076 echo "$as_me: failed program was:" >&5
6077sed 's/^/| /' conftest.$ac_ext >&5
6078
6079 ac_compiler_gnu=no
6080fi
6081
6082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6083ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6084
6085fi
6086{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6087echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6088ac_ext=$ac_save_ext
6089ac_test_FFLAGS=${FFLAGS+set}
6090ac_save_FFLAGS=$FFLAGS
6091FFLAGS=
6092{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6093echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6094if test "${ac_cv_prog_f77_g+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096else
6097 FFLAGS=-g
6098cat >conftest.$ac_ext <<_ACEOF
6099 program main
6100
6101 end
6102_ACEOF
6103rm -f conftest.$ac_objext
6104if { (ac_try="$ac_compile"
6105case "(($ac_try" in
6106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107 *) ac_try_echo=$ac_try;;
6108esac
6109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00006116 (exit $ac_status); } && {
6117 test -z "$ac_f77_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.$ac_objext; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006120 ac_cv_prog_f77_g=yes
6121else
6122 echo "$as_me: failed program was:" >&5
6123sed 's/^/| /' conftest.$ac_ext >&5
6124
6125 ac_cv_prog_f77_g=no
6126fi
6127
6128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129
6130fi
6131{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6132echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6133if test "$ac_test_FFLAGS" = set; then
6134 FFLAGS=$ac_save_FFLAGS
6135elif test $ac_cv_prog_f77_g = yes; then
6136 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6137 FFLAGS="-g -O2"
6138 else
6139 FFLAGS="-g"
6140 fi
6141else
6142 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6143 FFLAGS="-O2"
6144 else
6145 FFLAGS=
6146 fi
6147fi
6148
6149G77=`test $ac_compiler_gnu = yes && echo yes`
6150ac_ext=c
6151ac_cpp='$CPP $CPPFLAGS'
6152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6154ac_compiler_gnu=$ac_cv_c_compiler_gnu
brynercb91a2f2006-08-25 21:14:45 +00006155
6156
6157
6158# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6159
6160# find the maximum length of command line arguments
mmentovai8c2a4de2006-09-20 16:20:15 +00006161{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6162echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006163if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6165else
6166 i=0
6167 teststring="ABCD"
6168
6169 case $build_os in
6170 msdosdjgpp*)
6171 # On DJGPP, this test can blow up pretty badly due to problems in libc
6172 # (any single argument exceeding 2000 bytes causes a buffer overrun
6173 # during glob expansion). Even if it were fixed, the result of this
6174 # check would be larger than it should be.
6175 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6176 ;;
6177
6178 gnu*)
6179 # Under GNU Hurd, this test is not required because there is
6180 # no limit to the length of command line arguments.
6181 # Libtool will interpret -1 as no limit whatsoever
6182 lt_cv_sys_max_cmd_len=-1;
6183 ;;
6184
6185 cygwin* | mingw*)
6186 # On Win9x/ME, this test blows up -- it succeeds, but takes
6187 # about 5 minutes as the teststring grows exponentially.
6188 # Worse, since 9x/ME are not pre-emptively multitasking,
6189 # you end up with a "frozen" computer, even though with patience
6190 # the test eventually succeeds (with a max line length of 256k).
6191 # Instead, let's just punt: use the minimum linelength reported by
6192 # all of the supported platforms: 8192 (on NT/2K/XP).
6193 lt_cv_sys_max_cmd_len=8192;
6194 ;;
6195
6196 amigaos*)
6197 # On AmigaOS with pdksh, this test takes hours, literally.
6198 # So we just punt and use a minimum line length of 8192.
6199 lt_cv_sys_max_cmd_len=8192;
6200 ;;
6201
mmentovai8c2a4de2006-09-20 16:20:15 +00006202 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6203 # This has been around since 386BSD, at least. Likely further.
6204 if test -x /sbin/sysctl; then
6205 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6206 elif test -x /usr/sbin/sysctl; then
6207 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6208 else
6209 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6210 fi
6211 # And add a safety zone
6212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6213 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6214 ;;
6215
6216 interix*)
6217 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6218 lt_cv_sys_max_cmd_len=196608
6219 ;;
6220
6221 osf*)
6222 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6223 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6224 # nice to cause kernel panics so lets avoid the loop below.
6225 # First set a reasonable default.
6226 lt_cv_sys_max_cmd_len=16384
6227 #
6228 if test -x /sbin/sysconfig; then
6229 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6230 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6231 esac
6232 fi
6233 ;;
6234 sco3.2v5*)
6235 lt_cv_sys_max_cmd_len=102400
6236 ;;
6237 sysv5* | sco5v6* | sysv4.2uw2*)
6238 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6239 if test -n "$kargmax"; then
6240 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6241 else
6242 lt_cv_sys_max_cmd_len=32768
6243 fi
6244 ;;
6245 *)
brynercb91a2f2006-08-25 21:14:45 +00006246 # If test is not a shell built-in, we'll probably end up computing a
6247 # maximum length that is only half of the actual maximum length, but
6248 # we can't tell.
mmentovai8c2a4de2006-09-20 16:20:15 +00006249 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6250 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
brynercb91a2f2006-08-25 21:14:45 +00006251 = "XX$teststring") >/dev/null 2>&1 &&
6252 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6253 lt_cv_sys_max_cmd_len=$new_result &&
6254 test $i != 17 # 1/2 MB should be enough
6255 do
6256 i=`expr $i + 1`
6257 teststring=$teststring$teststring
6258 done
6259 teststring=
6260 # Add a significant safety factor because C++ compilers can tack on massive
6261 # amounts of additional arguments before passing them to the linker.
6262 # It appears as though 1/2 is a usable value.
6263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6264 ;;
6265 esac
6266
6267fi
6268
6269if test -n $lt_cv_sys_max_cmd_len ; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006270 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6271echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006272else
mmentovai8c2a4de2006-09-20 16:20:15 +00006273 { echo "$as_me:$LINENO: result: none" >&5
6274echo "${ECHO_T}none" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006275fi
6276
6277
6278
6279
6280# Check for command to grab the raw symbol name followed by C symbol from nm.
mmentovai8c2a4de2006-09-20 16:20:15 +00006281{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6282echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006283if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6285else
6286
6287# These are sane defaults that work on at least a few old systems.
6288# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6289
6290# Character class describing NM global symbol codes.
6291symcode='[BCDEGRST]'
6292
6293# Regexp to match symbols that can be accessed directly from C.
6294sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6295
brynercb91a2f2006-08-25 21:14:45 +00006296# Transform an extracted symbol line into a proper C declaration
6297lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6298
6299# Transform an extracted symbol line into symbol name and symbol address
6300lt_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'"
6301
6302# Define system-specific variables.
6303case $host_os in
6304aix*)
6305 symcode='[BCDT]'
6306 ;;
6307cygwin* | mingw* | pw32*)
6308 symcode='[ABCDGISTW]'
6309 ;;
6310hpux*) # Its linker distinguishes data from code symbols
6311 if test "$host_cpu" = ia64; then
6312 symcode='[ABCDEGRST]'
6313 fi
6314 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6315 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'"
6316 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006317linux*)
6318 if test "$host_cpu" = ia64; then
6319 symcode='[ABCDGIRSTW]'
6320 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6321 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'"
6322 fi
6323 ;;
brynercb91a2f2006-08-25 21:14:45 +00006324irix* | nonstopux*)
6325 symcode='[BCDEGRST]'
6326 ;;
6327osf*)
6328 symcode='[BCDEGQRST]'
6329 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006330solaris*)
brynercb91a2f2006-08-25 21:14:45 +00006331 symcode='[BDRT]'
6332 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006333sco3.2v5*)
6334 symcode='[DT]'
6335 ;;
6336sysv4.2uw2*)
6337 symcode='[DT]'
6338 ;;
6339sysv5* | sco5v6* | unixware* | OpenUNIX*)
6340 symcode='[ABDT]'
6341 ;;
brynercb91a2f2006-08-25 21:14:45 +00006342sysv4)
6343 symcode='[DFNSTU]'
6344 ;;
6345esac
6346
6347# Handle CRLF in mingw tool chain
6348opt_cr=
6349case $build_os in
6350mingw*)
6351 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6352 ;;
6353esac
6354
6355# If we're using GNU nm, then use its standard symbol codes.
6356case `$NM -V 2>&1` in
6357*GNU* | *'with BFD'*)
6358 symcode='[ABCDGIRSTW]' ;;
6359esac
6360
6361# Try without a prefix undercore, then with it.
6362for ac_symprfx in "" "_"; do
6363
mmentovai8c2a4de2006-09-20 16:20:15 +00006364 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6365 symxfrm="\\1 $ac_symprfx\\2 \\2"
6366
brynercb91a2f2006-08-25 21:14:45 +00006367 # Write the raw and C identifiers.
mmentovai8c2a4de2006-09-20 16:20:15 +00006368 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 +00006369
6370 # Check to see that the pipe works correctly.
6371 pipe_works=no
6372
6373 rm -f conftest*
6374 cat > conftest.$ac_ext <<EOF
6375#ifdef __cplusplus
6376extern "C" {
6377#endif
6378char nm_test_var;
6379void nm_test_func(){}
6380#ifdef __cplusplus
6381}
6382#endif
6383int main(){nm_test_var='a';nm_test_func();return(0);}
6384EOF
6385
6386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6387 (eval $ac_compile) 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; then
6391 # Now try to grab the symbols.
6392 nlist=conftest.nm
6393 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6394 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } && test -s "$nlist"; then
6398 # Try sorting and uniquifying the output.
6399 if sort "$nlist" | uniq > "$nlist"T; then
6400 mv -f "$nlist"T "$nlist"
6401 else
6402 rm -f "$nlist"T
6403 fi
6404
6405 # Make sure that we snagged all the symbols we need.
6406 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6407 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6408 cat <<EOF > conftest.$ac_ext
6409#ifdef __cplusplus
6410extern "C" {
6411#endif
6412
6413EOF
6414 # Now generate the symbol file.
6415 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6416
6417 cat <<EOF >> conftest.$ac_ext
6418#if defined (__STDC__) && __STDC__
6419# define lt_ptr_t void *
6420#else
6421# define lt_ptr_t char *
6422# define const
6423#endif
6424
6425/* The mapping between symbol names and symbols. */
6426const struct {
6427 const char *name;
6428 lt_ptr_t address;
6429}
6430lt_preloaded_symbols[] =
6431{
6432EOF
6433 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6434 cat <<\EOF >> conftest.$ac_ext
6435 {0, (lt_ptr_t) 0}
6436};
6437
6438#ifdef __cplusplus
6439}
6440#endif
6441EOF
6442 # Now try linking the two files.
6443 mv conftest.$ac_objext conftstm.$ac_objext
6444 lt_save_LIBS="$LIBS"
6445 lt_save_CFLAGS="$CFLAGS"
6446 LIBS="conftstm.$ac_objext"
6447 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6449 (eval $ac_link) 2>&5
6450 ac_status=$?
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6453 pipe_works=yes
6454 fi
6455 LIBS="$lt_save_LIBS"
6456 CFLAGS="$lt_save_CFLAGS"
6457 else
6458 echo "cannot find nm_test_func in $nlist" >&5
6459 fi
6460 else
6461 echo "cannot find nm_test_var in $nlist" >&5
6462 fi
6463 else
6464 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6465 fi
6466 else
6467 echo "$progname: failed program was:" >&5
6468 cat conftest.$ac_ext >&5
6469 fi
6470 rm -f conftest* conftst*
6471
6472 # Do not use the global_symbol_pipe unless it works.
6473 if test "$pipe_works" = yes; then
6474 break
6475 else
6476 lt_cv_sys_global_symbol_pipe=
6477 fi
6478done
6479
6480fi
6481
6482if test -z "$lt_cv_sys_global_symbol_pipe"; then
6483 lt_cv_sys_global_symbol_to_cdecl=
6484fi
6485if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006486 { echo "$as_me:$LINENO: result: failed" >&5
6487echo "${ECHO_T}failed" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006488else
mmentovai8c2a4de2006-09-20 16:20:15 +00006489 { echo "$as_me:$LINENO: result: ok" >&5
6490echo "${ECHO_T}ok" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006491fi
6492
mmentovai8c2a4de2006-09-20 16:20:15 +00006493{ echo "$as_me:$LINENO: checking for objdir" >&5
6494echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006495if test "${lt_cv_objdir+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6497else
6498 rm -f .libs 2>/dev/null
6499mkdir .libs 2>/dev/null
6500if test -d .libs; then
6501 lt_cv_objdir=.libs
6502else
6503 # MS-DOS does not allow filenames that begin with a dot.
6504 lt_cv_objdir=_libs
6505fi
6506rmdir .libs 2>/dev/null
6507fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006508{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6509echo "${ECHO_T}$lt_cv_objdir" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006510objdir=$lt_cv_objdir
6511
6512
6513
6514
6515
6516case $host_os in
6517aix3*)
6518 # AIX sometimes has problems with the GCC collect2 program. For some
6519 # reason, if we set the COLLECT_NAMES environment variable, the problems
6520 # vanish in a puff of smoke.
6521 if test "X${COLLECT_NAMES+set}" != Xset; then
6522 COLLECT_NAMES=
6523 export COLLECT_NAMES
6524 fi
6525 ;;
6526esac
6527
6528# Sed substitution that helps us do robust quoting. It backslashifies
6529# metacharacters that are still active within double-quoted strings.
mmentovai8c2a4de2006-09-20 16:20:15 +00006530Xsed='sed -e 1s/^X//'
brynercb91a2f2006-08-25 21:14:45 +00006531sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6532
6533# Same as above, but do not quote variable references.
6534double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6535
6536# Sed substitution to delay expansion of an escaped shell variable in a
6537# double_quote_subst'ed string.
6538delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6539
6540# Sed substitution to avoid accidental globbing in evaled expressions
6541no_glob_subst='s/\*/\\\*/g'
6542
6543# Constants:
6544rm="rm -f"
6545
6546# Global variables:
6547default_ofile=libtool
6548can_build_shared=yes
6549
mmentovai8c2a4de2006-09-20 16:20:15 +00006550# All known linkers require a `.a' archive for static linking (except MSVC,
brynercb91a2f2006-08-25 21:14:45 +00006551# which needs '.lib').
6552libext=a
6553ltmain="$ac_aux_dir/ltmain.sh"
6554ofile="$default_ofile"
6555with_gnu_ld="$lt_cv_prog_gnu_ld"
6556
6557if test -n "$ac_tool_prefix"; then
6558 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6559set dummy ${ac_tool_prefix}ar; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006560{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006562if test "${ac_cv_prog_AR+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6564else
6565 if test -n "$AR"; then
6566 ac_cv_prog_AR="$AR" # Let the user override the test.
6567else
6568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569for as_dir in $PATH
6570do
6571 IFS=$as_save_IFS
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00006574 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 +00006575 ac_cv_prog_AR="${ac_tool_prefix}ar"
6576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 break 2
6578 fi
6579done
6580done
mmentovai8c2a4de2006-09-20 16:20:15 +00006581IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006582
6583fi
6584fi
6585AR=$ac_cv_prog_AR
6586if test -n "$AR"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006587 { echo "$as_me:$LINENO: result: $AR" >&5
6588echo "${ECHO_T}$AR" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006589else
mmentovai8c2a4de2006-09-20 16:20:15 +00006590 { echo "$as_me:$LINENO: result: no" >&5
6591echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006592fi
6593
mmentovai8c2a4de2006-09-20 16:20:15 +00006594
brynercb91a2f2006-08-25 21:14:45 +00006595fi
6596if test -z "$ac_cv_prog_AR"; then
6597 ac_ct_AR=$AR
6598 # Extract the first word of "ar", so it can be a program name with args.
6599set dummy ar; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006602if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6604else
6605 if test -n "$ac_ct_AR"; then
6606 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6607else
6608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609for as_dir in $PATH
6610do
6611 IFS=$as_save_IFS
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00006614 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 +00006615 ac_cv_prog_ac_ct_AR="ar"
6616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 break 2
6618 fi
6619done
6620done
mmentovai8c2a4de2006-09-20 16:20:15 +00006621IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006622
brynercb91a2f2006-08-25 21:14:45 +00006623fi
6624fi
6625ac_ct_AR=$ac_cv_prog_ac_ct_AR
6626if test -n "$ac_ct_AR"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006627 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6628echo "${ECHO_T}$ac_ct_AR" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006629else
mmentovai8c2a4de2006-09-20 16:20:15 +00006630 { echo "$as_me:$LINENO: result: no" >&5
6631echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006632fi
6633
mmentovai8c2a4de2006-09-20 16:20:15 +00006634 if test "x$ac_ct_AR" = x; then
6635 AR="false"
6636 else
6637 case $cross_compiling:$ac_tool_warned in
6638yes:)
6639{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6640whose name does not start with the host triplet. If you think this
6641configuration is useful to you, please write to autoconf@gnu.org." >&5
6642echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6643whose name does not start with the host triplet. If you think this
6644configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6645ac_tool_warned=yes ;;
6646esac
6647 AR=$ac_ct_AR
6648 fi
brynercb91a2f2006-08-25 21:14:45 +00006649else
6650 AR="$ac_cv_prog_AR"
6651fi
6652
6653if test -n "$ac_tool_prefix"; then
6654 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6655set dummy ${ac_tool_prefix}ranlib; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006658if test "${ac_cv_prog_RANLIB+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6660else
6661 if test -n "$RANLIB"; then
6662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6663else
6664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665for as_dir in $PATH
6666do
6667 IFS=$as_save_IFS
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00006670 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 +00006671 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 break 2
6674 fi
6675done
6676done
mmentovai8c2a4de2006-09-20 16:20:15 +00006677IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006678
6679fi
6680fi
6681RANLIB=$ac_cv_prog_RANLIB
6682if test -n "$RANLIB"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006683 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6684echo "${ECHO_T}$RANLIB" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006685else
mmentovai8c2a4de2006-09-20 16:20:15 +00006686 { echo "$as_me:$LINENO: result: no" >&5
6687echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006688fi
6689
mmentovai8c2a4de2006-09-20 16:20:15 +00006690
brynercb91a2f2006-08-25 21:14:45 +00006691fi
6692if test -z "$ac_cv_prog_RANLIB"; then
6693 ac_ct_RANLIB=$RANLIB
6694 # Extract the first word of "ranlib", so it can be a program name with args.
6695set dummy ranlib; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006698if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6700else
6701 if test -n "$ac_ct_RANLIB"; then
6702 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6703else
6704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705for as_dir in $PATH
6706do
6707 IFS=$as_save_IFS
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00006710 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 +00006711 ac_cv_prog_ac_ct_RANLIB="ranlib"
6712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 break 2
6714 fi
6715done
6716done
mmentovai8c2a4de2006-09-20 16:20:15 +00006717IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006718
brynercb91a2f2006-08-25 21:14:45 +00006719fi
6720fi
6721ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6722if test -n "$ac_ct_RANLIB"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006723 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6724echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006725else
mmentovai8c2a4de2006-09-20 16:20:15 +00006726 { echo "$as_me:$LINENO: result: no" >&5
6727echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006728fi
6729
mmentovai8c2a4de2006-09-20 16:20:15 +00006730 if test "x$ac_ct_RANLIB" = x; then
6731 RANLIB=":"
6732 else
6733 case $cross_compiling:$ac_tool_warned in
6734yes:)
6735{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6736whose name does not start with the host triplet. If you think this
6737configuration is useful to you, please write to autoconf@gnu.org." >&5
6738echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6739whose name does not start with the host triplet. If you think this
6740configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6741ac_tool_warned=yes ;;
6742esac
6743 RANLIB=$ac_ct_RANLIB
6744 fi
brynercb91a2f2006-08-25 21:14:45 +00006745else
6746 RANLIB="$ac_cv_prog_RANLIB"
6747fi
6748
6749if test -n "$ac_tool_prefix"; then
6750 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6751set dummy ${ac_tool_prefix}strip; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006752{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006754if test "${ac_cv_prog_STRIP+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6756else
6757 if test -n "$STRIP"; then
6758 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6759else
6760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00006766 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 +00006767 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 break 2
6770 fi
6771done
6772done
mmentovai8c2a4de2006-09-20 16:20:15 +00006773IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006774
6775fi
6776fi
6777STRIP=$ac_cv_prog_STRIP
6778if test -n "$STRIP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006779 { echo "$as_me:$LINENO: result: $STRIP" >&5
6780echo "${ECHO_T}$STRIP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006781else
mmentovai8c2a4de2006-09-20 16:20:15 +00006782 { echo "$as_me:$LINENO: result: no" >&5
6783echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006784fi
6785
mmentovai8c2a4de2006-09-20 16:20:15 +00006786
brynercb91a2f2006-08-25 21:14:45 +00006787fi
6788if test -z "$ac_cv_prog_STRIP"; then
6789 ac_ct_STRIP=$STRIP
6790 # Extract the first word of "strip", so it can be a program name with args.
6791set dummy strip; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006794if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796else
6797 if test -n "$ac_ct_STRIP"; then
6798 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6799else
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00006806 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 +00006807 ac_cv_prog_ac_ct_STRIP="strip"
6808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6810 fi
6811done
6812done
mmentovai8c2a4de2006-09-20 16:20:15 +00006813IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006814
brynercb91a2f2006-08-25 21:14:45 +00006815fi
6816fi
6817ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6818if test -n "$ac_ct_STRIP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006819 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6820echo "${ECHO_T}$ac_ct_STRIP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006821else
mmentovai8c2a4de2006-09-20 16:20:15 +00006822 { echo "$as_me:$LINENO: result: no" >&5
6823echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006824fi
6825
mmentovai8c2a4de2006-09-20 16:20:15 +00006826 if test "x$ac_ct_STRIP" = x; then
6827 STRIP=":"
6828 else
6829 case $cross_compiling:$ac_tool_warned in
6830yes:)
6831{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6832whose name does not start with the host triplet. If you think this
6833configuration is useful to you, please write to autoconf@gnu.org." >&5
6834echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6835whose name does not start with the host triplet. If you think this
6836configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6837ac_tool_warned=yes ;;
6838esac
6839 STRIP=$ac_ct_STRIP
6840 fi
brynercb91a2f2006-08-25 21:14:45 +00006841else
6842 STRIP="$ac_cv_prog_STRIP"
6843fi
6844
6845
6846old_CC="$CC"
6847old_CFLAGS="$CFLAGS"
6848
6849# Set sane defaults for various variables
6850test -z "$AR" && AR=ar
6851test -z "$AR_FLAGS" && AR_FLAGS=cru
6852test -z "$AS" && AS=as
6853test -z "$CC" && CC=cc
6854test -z "$LTCC" && LTCC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00006855test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
brynercb91a2f2006-08-25 21:14:45 +00006856test -z "$DLLTOOL" && DLLTOOL=dlltool
6857test -z "$LD" && LD=ld
6858test -z "$LN_S" && LN_S="ln -s"
6859test -z "$MAGIC_CMD" && MAGIC_CMD=file
6860test -z "$NM" && NM=nm
6861test -z "$SED" && SED=sed
6862test -z "$OBJDUMP" && OBJDUMP=objdump
6863test -z "$RANLIB" && RANLIB=:
6864test -z "$STRIP" && STRIP=:
6865test -z "$ac_objext" && ac_objext=o
6866
6867# Determine commands to create old-style static archives.
6868old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6869old_postinstall_cmds='chmod 644 $oldlib'
6870old_postuninstall_cmds=
6871
6872if test -n "$RANLIB"; then
6873 case $host_os in
6874 openbsd*)
mmentovai8c2a4de2006-09-20 16:20:15 +00006875 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
brynercb91a2f2006-08-25 21:14:45 +00006876 ;;
6877 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00006878 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
brynercb91a2f2006-08-25 21:14:45 +00006879 ;;
6880 esac
6881 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6882fi
6883
mmentovai8c2a4de2006-09-20 16:20:15 +00006884for cc_temp in $compiler""; do
6885 case $cc_temp in
6886 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6887 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6888 \-*) ;;
6889 *) break;;
6890 esac
6891done
6892cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6893
6894
brynercb91a2f2006-08-25 21:14:45 +00006895# Only perform the check for file, if the check method requires it
6896case $deplibs_check_method in
6897file_magic*)
6898 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006899 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6900echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006901if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
6903else
6904 case $MAGIC_CMD in
6905[\\/*] | ?:[\\/]*)
6906 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6907 ;;
6908*)
6909 lt_save_MAGIC_CMD="$MAGIC_CMD"
6910 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6911 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6912 for ac_dir in $ac_dummy; do
6913 IFS="$lt_save_ifs"
6914 test -z "$ac_dir" && ac_dir=.
6915 if test -f $ac_dir/${ac_tool_prefix}file; then
6916 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6917 if test -n "$file_magic_test_file"; then
6918 case $deplibs_check_method in
6919 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00006920 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00006921 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6922 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6923 $EGREP "$file_magic_regex" > /dev/null; then
6924 :
6925 else
6926 cat <<EOF 1>&2
6927
6928*** Warning: the command libtool uses to detect shared libraries,
6929*** $file_magic_cmd, produces output that libtool cannot recognize.
6930*** The result is that libtool may fail to recognize shared libraries
6931*** as such. This will affect the creation of libtool libraries that
6932*** depend on shared libraries, but programs linked with such libtool
6933*** libraries will work regardless of this problem. Nevertheless, you
6934*** may want to report the problem to your system manager and/or to
6935*** bug-libtool@gnu.org
6936
6937EOF
6938 fi ;;
6939 esac
6940 fi
6941 break
6942 fi
6943 done
6944 IFS="$lt_save_ifs"
6945 MAGIC_CMD="$lt_save_MAGIC_CMD"
6946 ;;
6947esac
6948fi
6949
6950MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6951if test -n "$MAGIC_CMD"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006952 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6953echo "${ECHO_T}$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006954else
mmentovai8c2a4de2006-09-20 16:20:15 +00006955 { echo "$as_me:$LINENO: result: no" >&5
6956echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006957fi
6958
6959if test -z "$lt_cv_path_MAGIC_CMD"; then
6960 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006961 { echo "$as_me:$LINENO: checking for file" >&5
6962echo $ECHO_N "checking for file... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006963if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6965else
6966 case $MAGIC_CMD in
6967[\\/*] | ?:[\\/]*)
6968 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6969 ;;
6970*)
6971 lt_save_MAGIC_CMD="$MAGIC_CMD"
6972 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6973 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6974 for ac_dir in $ac_dummy; do
6975 IFS="$lt_save_ifs"
6976 test -z "$ac_dir" && ac_dir=.
6977 if test -f $ac_dir/file; then
6978 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6979 if test -n "$file_magic_test_file"; then
6980 case $deplibs_check_method in
6981 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00006982 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00006983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6984 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6985 $EGREP "$file_magic_regex" > /dev/null; then
6986 :
6987 else
6988 cat <<EOF 1>&2
6989
6990*** Warning: the command libtool uses to detect shared libraries,
6991*** $file_magic_cmd, produces output that libtool cannot recognize.
6992*** The result is that libtool may fail to recognize shared libraries
6993*** as such. This will affect the creation of libtool libraries that
6994*** depend on shared libraries, but programs linked with such libtool
6995*** libraries will work regardless of this problem. Nevertheless, you
6996*** may want to report the problem to your system manager and/or to
6997*** bug-libtool@gnu.org
6998
6999EOF
7000 fi ;;
7001 esac
7002 fi
7003 break
7004 fi
7005 done
7006 IFS="$lt_save_ifs"
7007 MAGIC_CMD="$lt_save_MAGIC_CMD"
7008 ;;
7009esac
7010fi
7011
7012MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7013if test -n "$MAGIC_CMD"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007014 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7015echo "${ECHO_T}$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007016else
mmentovai8c2a4de2006-09-20 16:20:15 +00007017 { echo "$as_me:$LINENO: result: no" >&5
7018echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007019fi
7020
7021 else
7022 MAGIC_CMD=:
7023 fi
7024fi
7025
7026 fi
7027 ;;
7028esac
7029
7030enable_dlopen=no
7031enable_win32_dll=no
7032
mmentovai8c2a4de2006-09-20 16:20:15 +00007033# Check whether --enable-libtool-lock was given.
brynercb91a2f2006-08-25 21:14:45 +00007034if test "${enable_libtool_lock+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007035 enableval=$enable_libtool_lock;
7036fi
brynercb91a2f2006-08-25 21:14:45 +00007037
brynercb91a2f2006-08-25 21:14:45 +00007038test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7039
7040
mmentovai8c2a4de2006-09-20 16:20:15 +00007041# Check whether --with-pic was given.
brynercb91a2f2006-08-25 21:14:45 +00007042if test "${with_pic+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007043 withval=$with_pic; pic_mode="$withval"
brynercb91a2f2006-08-25 21:14:45 +00007044else
7045 pic_mode=default
mmentovai8c2a4de2006-09-20 16:20:15 +00007046fi
7047
brynercb91a2f2006-08-25 21:14:45 +00007048test -z "$pic_mode" && pic_mode=default
7049
7050# Use C for the default configuration in the libtool script
7051tagname=
7052lt_save_CC="$CC"
7053ac_ext=c
7054ac_cpp='$CPP $CPPFLAGS'
7055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7057ac_compiler_gnu=$ac_cv_c_compiler_gnu
7058
7059
7060# Source file extension for C test sources.
7061ac_ext=c
7062
7063# Object file extension for compiled C test sources.
7064objext=o
7065objext=$objext
7066
7067# Code to be used in simple compile tests
7068lt_simple_compile_test_code="int some_variable = 0;\n"
7069
7070# Code to be used in simple link tests
7071lt_simple_link_test_code='int main(){return(0);}\n'
7072
7073
7074# If no C compiler was specified, use CC.
7075LTCC=${LTCC-"$CC"}
7076
mmentovai8c2a4de2006-09-20 16:20:15 +00007077# If no C compiler flags were specified, use CFLAGS.
7078LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7079
brynercb91a2f2006-08-25 21:14:45 +00007080# Allow CC to be a program name with arguments.
7081compiler=$CC
7082
7083
mmentovai8c2a4de2006-09-20 16:20:15 +00007084# save warnings/boilerplate of simple test code
7085ac_outfile=conftest.$ac_objext
7086printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7087eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7088_lt_compiler_boilerplate=`cat conftest.err`
7089$rm conftest*
brynercb91a2f2006-08-25 21:14:45 +00007090
mmentovai8c2a4de2006-09-20 16:20:15 +00007091ac_outfile=conftest.$ac_objext
7092printf "$lt_simple_link_test_code" >conftest.$ac_ext
7093eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7094_lt_linker_boilerplate=`cat conftest.err`
7095$rm conftest*
brynercb91a2f2006-08-25 21:14:45 +00007096
7097
7098
7099lt_prog_compiler_no_builtin_flag=
7100
7101if test "$GCC" = yes; then
7102 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7103
7104
mmentovai8c2a4de2006-09-20 16:20:15 +00007105{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7106echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007107if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109else
7110 lt_cv_prog_compiler_rtti_exceptions=no
7111 ac_outfile=conftest.$ac_objext
7112 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7113 lt_compiler_flag="-fno-rtti -fno-exceptions"
7114 # Insert the option either (1) after the last *FLAGS variable, or
7115 # (2) before a word containing "conftest.", or (3) at the end.
7116 # Note that $ac_compile itself does not contain backslashes and begins
7117 # with a dollar sign (not a hyphen), so the echo should work correctly.
7118 # The option is referenced via a variable to avoid confusing sed.
7119 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00007120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00007121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7122 -e 's:$: $lt_compiler_flag:'`
mmentovaiaf3c43f2007-05-17 18:34:37 +00007123 (eval echo "\"\$as_me:7123: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00007124 (eval "$lt_compile" 2>conftest.err)
7125 ac_status=$?
7126 cat conftest.err >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00007127 echo "$as_me:7127: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00007128 if (exit $ac_status) && test -s "$ac_outfile"; then
7129 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00007130 # So say no if there are warnings other than the usual output.
7131 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7133 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00007134 lt_cv_prog_compiler_rtti_exceptions=yes
7135 fi
7136 fi
7137 $rm conftest*
7138
7139fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007140{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7141echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007142
7143if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7144 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7145else
7146 :
7147fi
7148
7149fi
7150
7151lt_prog_compiler_wl=
7152lt_prog_compiler_pic=
7153lt_prog_compiler_static=
7154
mmentovai8c2a4de2006-09-20 16:20:15 +00007155{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7156echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007157
7158 if test "$GCC" = yes; then
7159 lt_prog_compiler_wl='-Wl,'
7160 lt_prog_compiler_static='-static'
7161
7162 case $host_os in
7163 aix*)
7164 # All AIX code is PIC.
7165 if test "$host_cpu" = ia64; then
7166 # AIX 5 now supports IA64 processor
7167 lt_prog_compiler_static='-Bstatic'
7168 fi
7169 ;;
7170
7171 amigaos*)
7172 # FIXME: we need at least 68020 code to build shared libraries, but
7173 # adding the `-m68020' flag to GCC prevents building anything better,
7174 # like `-m68040'.
7175 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7176 ;;
7177
7178 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7179 # PIC is the default for these OSes.
7180 ;;
7181
7182 mingw* | pw32* | os2*)
7183 # This hack is so that the source file can tell whether it is being
7184 # built for inclusion in a dll (and should export symbols for example).
7185 lt_prog_compiler_pic='-DDLL_EXPORT'
7186 ;;
7187
7188 darwin* | rhapsody*)
7189 # PIC is the default on this platform
7190 # Common symbols not allowed in MH_DYLIB files
7191 lt_prog_compiler_pic='-fno-common'
7192 ;;
7193
mmentovai8c2a4de2006-09-20 16:20:15 +00007194 interix3*)
7195 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7196 # Instead, we relocate shared libraries at runtime.
7197 ;;
7198
brynercb91a2f2006-08-25 21:14:45 +00007199 msdosdjgpp*)
7200 # Just because we use GCC doesn't mean we suddenly get shared libraries
7201 # on systems that don't support them.
7202 lt_prog_compiler_can_build_shared=no
7203 enable_shared=no
7204 ;;
7205
7206 sysv4*MP*)
7207 if test -d /usr/nec; then
7208 lt_prog_compiler_pic=-Kconform_pic
7209 fi
7210 ;;
7211
7212 hpux*)
7213 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7214 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +00007215 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00007216 hppa*64*|ia64*)
7217 # +Z the default
7218 ;;
7219 *)
7220 lt_prog_compiler_pic='-fPIC'
7221 ;;
7222 esac
7223 ;;
7224
7225 *)
7226 lt_prog_compiler_pic='-fPIC'
7227 ;;
7228 esac
7229 else
7230 # PORTME Check for flag to pass linker flags through the system compiler.
7231 case $host_os in
7232 aix*)
7233 lt_prog_compiler_wl='-Wl,'
7234 if test "$host_cpu" = ia64; then
7235 # AIX 5 now supports IA64 processor
7236 lt_prog_compiler_static='-Bstatic'
7237 else
7238 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7239 fi
7240 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007241 darwin*)
7242 # PIC is the default on this platform
7243 # Common symbols not allowed in MH_DYLIB files
7244 case $cc_basename in
7245 xlc*)
7246 lt_prog_compiler_pic='-qnocommon'
7247 lt_prog_compiler_wl='-Wl,'
7248 ;;
7249 esac
7250 ;;
brynercb91a2f2006-08-25 21:14:45 +00007251
7252 mingw* | pw32* | os2*)
7253 # This hack is so that the source file can tell whether it is being
7254 # built for inclusion in a dll (and should export symbols for example).
7255 lt_prog_compiler_pic='-DDLL_EXPORT'
7256 ;;
7257
7258 hpux9* | hpux10* | hpux11*)
7259 lt_prog_compiler_wl='-Wl,'
7260 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7261 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +00007262 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00007263 hppa*64*|ia64*)
7264 # +Z the default
7265 ;;
7266 *)
7267 lt_prog_compiler_pic='+Z'
7268 ;;
7269 esac
7270 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7271 lt_prog_compiler_static='${wl}-a ${wl}archive'
7272 ;;
7273
7274 irix5* | irix6* | nonstopux*)
7275 lt_prog_compiler_wl='-Wl,'
7276 # PIC (with -KPIC) is the default.
7277 lt_prog_compiler_static='-non_shared'
7278 ;;
7279
7280 newsos6)
7281 lt_prog_compiler_pic='-KPIC'
7282 lt_prog_compiler_static='-Bstatic'
7283 ;;
7284
7285 linux*)
mmentovai8c2a4de2006-09-20 16:20:15 +00007286 case $cc_basename in
brynercb91a2f2006-08-25 21:14:45 +00007287 icc* | ecc*)
7288 lt_prog_compiler_wl='-Wl,'
7289 lt_prog_compiler_pic='-KPIC'
7290 lt_prog_compiler_static='-static'
7291 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007292 pgcc* | pgf77* | pgf90* | pgf95*)
7293 # Portland Group compilers (*not* the Pentium gcc compiler,
7294 # which looks to be a dead project)
7295 lt_prog_compiler_wl='-Wl,'
7296 lt_prog_compiler_pic='-fpic'
7297 lt_prog_compiler_static='-Bstatic'
7298 ;;
brynercb91a2f2006-08-25 21:14:45 +00007299 ccc*)
7300 lt_prog_compiler_wl='-Wl,'
7301 # All Alpha code is PIC.
7302 lt_prog_compiler_static='-non_shared'
7303 ;;
7304 esac
7305 ;;
7306
7307 osf3* | osf4* | osf5*)
7308 lt_prog_compiler_wl='-Wl,'
7309 # All OSF/1 code is PIC.
7310 lt_prog_compiler_static='-non_shared'
7311 ;;
7312
brynercb91a2f2006-08-25 21:14:45 +00007313 solaris*)
brynercb91a2f2006-08-25 21:14:45 +00007314 lt_prog_compiler_pic='-KPIC'
7315 lt_prog_compiler_static='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +00007316 case $cc_basename in
7317 f77* | f90* | f95*)
7318 lt_prog_compiler_wl='-Qoption ld ';;
7319 *)
7320 lt_prog_compiler_wl='-Wl,';;
7321 esac
brynercb91a2f2006-08-25 21:14:45 +00007322 ;;
7323
7324 sunos4*)
7325 lt_prog_compiler_wl='-Qoption ld '
7326 lt_prog_compiler_pic='-PIC'
7327 lt_prog_compiler_static='-Bstatic'
7328 ;;
7329
mmentovai8c2a4de2006-09-20 16:20:15 +00007330 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00007331 lt_prog_compiler_wl='-Wl,'
7332 lt_prog_compiler_pic='-KPIC'
7333 lt_prog_compiler_static='-Bstatic'
7334 ;;
7335
7336 sysv4*MP*)
7337 if test -d /usr/nec ;then
7338 lt_prog_compiler_pic='-Kconform_pic'
7339 lt_prog_compiler_static='-Bstatic'
7340 fi
7341 ;;
7342
mmentovai8c2a4de2006-09-20 16:20:15 +00007343 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7344 lt_prog_compiler_wl='-Wl,'
7345 lt_prog_compiler_pic='-KPIC'
7346 lt_prog_compiler_static='-Bstatic'
7347 ;;
7348
7349 unicos*)
7350 lt_prog_compiler_wl='-Wl,'
7351 lt_prog_compiler_can_build_shared=no
7352 ;;
7353
brynercb91a2f2006-08-25 21:14:45 +00007354 uts4*)
7355 lt_prog_compiler_pic='-pic'
7356 lt_prog_compiler_static='-Bstatic'
7357 ;;
7358
7359 *)
7360 lt_prog_compiler_can_build_shared=no
7361 ;;
7362 esac
7363 fi
7364
mmentovai8c2a4de2006-09-20 16:20:15 +00007365{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7366echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007367
7368#
7369# Check to make sure the PIC flag actually works.
7370#
7371if test -n "$lt_prog_compiler_pic"; then
7372
mmentovai8c2a4de2006-09-20 16:20:15 +00007373{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7374echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007375if test "${lt_prog_compiler_pic_works+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377else
7378 lt_prog_compiler_pic_works=no
7379 ac_outfile=conftest.$ac_objext
7380 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7381 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7382 # Insert the option either (1) after the last *FLAGS variable, or
7383 # (2) before a word containing "conftest.", or (3) at the end.
7384 # Note that $ac_compile itself does not contain backslashes and begins
7385 # with a dollar sign (not a hyphen), so the echo should work correctly.
7386 # The option is referenced via a variable to avoid confusing sed.
7387 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00007388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00007389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7390 -e 's:$: $lt_compiler_flag:'`
mmentovaiaf3c43f2007-05-17 18:34:37 +00007391 (eval echo "\"\$as_me:7391: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00007392 (eval "$lt_compile" 2>conftest.err)
7393 ac_status=$?
7394 cat conftest.err >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00007395 echo "$as_me:7395: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00007396 if (exit $ac_status) && test -s "$ac_outfile"; then
7397 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00007398 # So say no if there are warnings other than the usual output.
7399 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7401 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00007402 lt_prog_compiler_pic_works=yes
7403 fi
7404 fi
7405 $rm conftest*
7406
7407fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007408{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7409echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007410
7411if test x"$lt_prog_compiler_pic_works" = xyes; then
7412 case $lt_prog_compiler_pic in
7413 "" | " "*) ;;
7414 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7415 esac
7416else
7417 lt_prog_compiler_pic=
7418 lt_prog_compiler_can_build_shared=no
7419fi
7420
7421fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007422case $host_os in
brynercb91a2f2006-08-25 21:14:45 +00007423 # For platforms which do not support PIC, -DPIC is meaningless:
7424 *djgpp*)
7425 lt_prog_compiler_pic=
7426 ;;
7427 *)
7428 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7429 ;;
7430esac
7431
mmentovai8c2a4de2006-09-20 16:20:15 +00007432#
7433# Check to make sure the static flag actually works.
7434#
7435wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7436{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7437echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7438if test "${lt_prog_compiler_static_works+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7440else
7441 lt_prog_compiler_static_works=no
7442 save_LDFLAGS="$LDFLAGS"
7443 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7444 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7446 # The linker can only warn and ignore the option if not recognized
7447 # So say no if there are warnings
7448 if test -s conftest.err; then
7449 # Append any errors to the config.log.
7450 cat conftest.err 1>&5
7451 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7453 if diff conftest.exp conftest.er2 >/dev/null; then
7454 lt_prog_compiler_static_works=yes
7455 fi
7456 else
7457 lt_prog_compiler_static_works=yes
7458 fi
7459 fi
7460 $rm conftest*
7461 LDFLAGS="$save_LDFLAGS"
7462
7463fi
7464{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7465echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7466
7467if test x"$lt_prog_compiler_static_works" = xyes; then
7468 :
7469else
7470 lt_prog_compiler_static=
7471fi
7472
7473
7474{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7475echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007476if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7478else
7479 lt_cv_prog_compiler_c_o=no
7480 $rm -r conftest 2>/dev/null
7481 mkdir conftest
7482 cd conftest
7483 mkdir out
7484 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7485
7486 lt_compiler_flag="-o out/conftest2.$ac_objext"
7487 # Insert the option either (1) after the last *FLAGS variable, or
7488 # (2) before a word containing "conftest.", or (3) at the end.
7489 # Note that $ac_compile itself does not contain backslashes and begins
7490 # with a dollar sign (not a hyphen), so the echo should work correctly.
7491 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00007492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00007493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7494 -e 's:$: $lt_compiler_flag:'`
mmentovaiaf3c43f2007-05-17 18:34:37 +00007495 (eval echo "\"\$as_me:7495: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00007496 (eval "$lt_compile" 2>out/conftest.err)
7497 ac_status=$?
7498 cat out/conftest.err >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00007499 echo "$as_me:7499: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00007500 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7501 then
7502 # The compiler can only warn and ignore the option if not recognized
7503 # So say no if there are warnings
mmentovai8c2a4de2006-09-20 16:20:15 +00007504 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7505 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7506 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00007507 lt_cv_prog_compiler_c_o=yes
7508 fi
7509 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007510 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +00007511 $rm conftest*
7512 # SGI C++ compiler will create directory out/ii_files/ for
7513 # template instantiation
7514 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7515 $rm out/* && rmdir out
7516 cd ..
7517 rmdir conftest
7518 $rm conftest*
7519
7520fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007521{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7522echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007523
7524
7525hard_links="nottested"
7526if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7527 # do not overwrite the value of need_locks provided by the user
mmentovai8c2a4de2006-09-20 16:20:15 +00007528 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7529echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007530 hard_links=yes
7531 $rm conftest*
7532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7533 touch conftest.a
7534 ln conftest.a conftest.b 2>&5 || hard_links=no
7535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mmentovai8c2a4de2006-09-20 16:20:15 +00007536 { echo "$as_me:$LINENO: result: $hard_links" >&5
7537echo "${ECHO_T}$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007538 if test "$hard_links" = no; then
7539 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7540echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7541 need_locks=warn
7542 fi
7543else
7544 need_locks=no
7545fi
7546
mmentovai8c2a4de2006-09-20 16:20:15 +00007547{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7548echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007549
7550 runpath_var=
7551 allow_undefined_flag=
7552 enable_shared_with_static_runtimes=no
7553 archive_cmds=
7554 archive_expsym_cmds=
7555 old_archive_From_new_cmds=
7556 old_archive_from_expsyms_cmds=
7557 export_dynamic_flag_spec=
7558 whole_archive_flag_spec=
7559 thread_safe_flag_spec=
7560 hardcode_libdir_flag_spec=
7561 hardcode_libdir_flag_spec_ld=
7562 hardcode_libdir_separator=
7563 hardcode_direct=no
7564 hardcode_minus_L=no
7565 hardcode_shlibpath_var=unsupported
7566 link_all_deplibs=unknown
7567 hardcode_automatic=no
7568 module_cmds=
7569 module_expsym_cmds=
7570 always_export_symbols=no
7571 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7572 # include_expsyms should be a list of space-separated symbols to be *always*
7573 # included in the symbol list
7574 include_expsyms=
7575 # exclude_expsyms can be an extended regexp of symbols to exclude
7576 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7577 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7578 # as well as any symbol that contains `d'.
7579 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7580 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7581 # platforms (ab)use it in PIC code, but their linkers get confused if
7582 # the symbol is explicitly referenced. Since portable code cannot
7583 # rely on this symbol name, it's probably fine to never include it in
7584 # preloaded symbol tables.
7585 extract_expsyms_cmds=
mmentovai8c2a4de2006-09-20 16:20:15 +00007586 # Just being paranoid about ensuring that cc_basename is set.
7587 for cc_temp in $compiler""; do
7588 case $cc_temp in
7589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7591 \-*) ;;
7592 *) break;;
7593 esac
7594done
7595cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +00007596
7597 case $host_os in
7598 cygwin* | mingw* | pw32*)
7599 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7600 # When not using gcc, we currently assume that we are using
7601 # Microsoft Visual C++.
7602 if test "$GCC" != yes; then
7603 with_gnu_ld=no
7604 fi
7605 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007606 interix*)
7607 # we just hope/assume this is gcc and not c89 (= MSVC++)
7608 with_gnu_ld=yes
7609 ;;
brynercb91a2f2006-08-25 21:14:45 +00007610 openbsd*)
7611 with_gnu_ld=no
7612 ;;
7613 esac
7614
7615 ld_shlibs=yes
7616 if test "$with_gnu_ld" = yes; then
7617 # If archive_cmds runs LD, not CC, wlarc should be empty
7618 wlarc='${wl}'
7619
mmentovai8c2a4de2006-09-20 16:20:15 +00007620 # Set some defaults for GNU ld with shared library support. These
7621 # are reset later if shared libraries are not supported. Putting them
7622 # here allows them to be overridden if necessary.
7623 runpath_var=LD_RUN_PATH
7624 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7625 export_dynamic_flag_spec='${wl}--export-dynamic'
7626 # ancient GNU ld didn't support --whole-archive et. al.
7627 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7628 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7629 else
7630 whole_archive_flag_spec=
7631 fi
7632 supports_anon_versioning=no
7633 case `$LD -v 2>/dev/null` in
7634 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7635 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7636 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7637 *\ 2.11.*) ;; # other 2.11 versions
7638 *) supports_anon_versioning=yes ;;
7639 esac
7640
brynercb91a2f2006-08-25 21:14:45 +00007641 # See if GNU ld supports shared libraries.
7642 case $host_os in
7643 aix3* | aix4* | aix5*)
7644 # On AIX/PPC, the GNU linker is very broken
7645 if test "$host_cpu" != ia64; then
7646 ld_shlibs=no
7647 cat <<EOF 1>&2
7648
7649*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7650*** to be unable to reliably create shared libraries on AIX.
7651*** Therefore, libtool is disabling shared libraries support. If you
7652*** really care for shared libraries, you may want to modify your PATH
7653*** so that a non-GNU linker is found, and then restart.
7654
7655EOF
7656 fi
7657 ;;
7658
7659 amigaos*)
7660 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)'
7661 hardcode_libdir_flag_spec='-L$libdir'
7662 hardcode_minus_L=yes
7663
7664 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7665 # that the semantics of dynamic libraries on AmigaOS, at least up
7666 # to version 4, is to share data among multiple programs linked
7667 # with the same dynamic library. Since this doesn't match the
7668 # behavior of shared libraries on other platforms, we can't use
7669 # them.
7670 ld_shlibs=no
7671 ;;
7672
7673 beos*)
7674 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7675 allow_undefined_flag=unsupported
7676 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7677 # support --undefined. This deserves some investigation. FIXME
7678 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7679 else
7680 ld_shlibs=no
7681 fi
7682 ;;
7683
7684 cygwin* | mingw* | pw32*)
7685 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7686 # as there is no search path for DLLs.
7687 hardcode_libdir_flag_spec='-L$libdir'
7688 allow_undefined_flag=unsupported
7689 always_export_symbols=no
7690 enable_shared_with_static_runtimes=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00007691 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +00007692
7693 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007694 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 +00007695 # If the export-symbols file already is a .def file (1st line
7696 # is EXPORTS), use it as is; otherwise, prepend...
7697 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7698 cp $export_symbols $output_objdir/$soname.def;
7699 else
7700 echo EXPORTS > $output_objdir/$soname.def;
7701 cat $export_symbols >> $output_objdir/$soname.def;
7702 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +00007703 $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 +00007704 else
7705 ld_shlibs=no
7706 fi
7707 ;;
7708
mmentovai8c2a4de2006-09-20 16:20:15 +00007709 interix3*)
7710 hardcode_direct=no
7711 hardcode_shlibpath_var=no
7712 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7713 export_dynamic_flag_spec='${wl}-E'
7714 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7715 # Instead, shared libraries are loaded at an image base (0x10000000 by
7716 # default) and relocated if they conflict, which is a slow very memory
7717 # consuming and fragmenting process. To avoid this, we pick a random,
7718 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7719 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7720 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7721 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'
7722 ;;
7723
7724 linux*)
7725 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7726 tmp_addflag=
7727 case $cc_basename,$host_cpu in
7728 pgcc*) # Portland Group C compiler
7729 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'
7730 tmp_addflag=' $pic_flag'
7731 ;;
7732 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7733 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'
7734 tmp_addflag=' $pic_flag -Mnomain' ;;
7735 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7736 tmp_addflag=' -i_dynamic' ;;
7737 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7738 tmp_addflag=' -i_dynamic -nofor_main' ;;
7739 ifc* | ifort*) # Intel Fortran compiler
7740 tmp_addflag=' -nofor_main' ;;
7741 esac
7742 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7743
7744 if test $supports_anon_versioning = yes; then
7745 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7747 $echo "local: *; };" >> $output_objdir/$libname.ver~
7748 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7749 fi
7750 else
7751 ld_shlibs=no
7752 fi
7753 ;;
7754
7755 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +00007756 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7757 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7758 wlarc=
7759 else
7760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7761 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7762 fi
7763 ;;
7764
mmentovai8c2a4de2006-09-20 16:20:15 +00007765 solaris*)
brynercb91a2f2006-08-25 21:14:45 +00007766 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7767 ld_shlibs=no
7768 cat <<EOF 1>&2
7769
7770*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7771*** create shared libraries on Solaris systems. Therefore, libtool
7772*** is disabling shared libraries support. We urge you to upgrade GNU
7773*** binutils to release 2.9.1 or newer. Another option is to modify
7774*** your PATH or compiler configuration so that the native linker is
7775*** used, and then restart.
7776
7777EOF
7778 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7781 else
7782 ld_shlibs=no
7783 fi
7784 ;;
7785
mmentovai8c2a4de2006-09-20 16:20:15 +00007786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7787 case `$LD -v 2>&1` in
7788 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7789 ld_shlibs=no
7790 cat <<_LT_EOF 1>&2
7791
7792*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7793*** reliably create shared libraries on SCO systems. Therefore, libtool
7794*** is disabling shared libraries support. We urge you to upgrade GNU
7795*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7796*** your PATH or compiler configuration so that the native linker is
7797*** used, and then restart.
7798
7799_LT_EOF
7800 ;;
7801 *)
7802 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7803 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7805 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7806 else
7807 ld_shlibs=no
7808 fi
7809 ;;
7810 esac
7811 ;;
7812
brynercb91a2f2006-08-25 21:14:45 +00007813 sunos4*)
7814 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7815 wlarc=
7816 hardcode_direct=yes
7817 hardcode_shlibpath_var=no
7818 ;;
7819
brynercb91a2f2006-08-25 21:14:45 +00007820 *)
7821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7823 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7824 else
7825 ld_shlibs=no
7826 fi
7827 ;;
7828 esac
7829
mmentovai8c2a4de2006-09-20 16:20:15 +00007830 if test "$ld_shlibs" = no; then
7831 runpath_var=
7832 hardcode_libdir_flag_spec=
7833 export_dynamic_flag_spec=
7834 whole_archive_flag_spec=
brynercb91a2f2006-08-25 21:14:45 +00007835 fi
7836 else
7837 # PORTME fill in a description of your system's linker (not GNU ld)
7838 case $host_os in
7839 aix3*)
7840 allow_undefined_flag=unsupported
7841 always_export_symbols=yes
7842 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'
7843 # Note: this linker hardcodes the directories in LIBPATH if there
7844 # are no directories specified by -L.
7845 hardcode_minus_L=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00007846 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +00007847 # Neither direct hardcoding nor static linking is supported with a
7848 # broken collect2.
7849 hardcode_direct=unsupported
7850 fi
7851 ;;
7852
7853 aix4* | aix5*)
7854 if test "$host_cpu" = ia64; then
7855 # On IA64, the linker does run time linking by default, so we don't
7856 # have to do anything special.
7857 aix_use_runtimelinking=no
7858 exp_sym_flag='-Bexport'
7859 no_entry_flag=""
7860 else
7861 # If we're using GNU nm, then we don't want the "-C" option.
7862 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7863 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7864 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'
7865 else
7866 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'
7867 fi
7868 aix_use_runtimelinking=no
7869
7870 # Test if we are trying to use run time linking or normal
7871 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7872 # need to do runtime linking.
7873 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7874 for ld_flag in $LDFLAGS; do
7875 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7876 aix_use_runtimelinking=yes
7877 break
7878 fi
7879 done
mmentovai8c2a4de2006-09-20 16:20:15 +00007880 ;;
brynercb91a2f2006-08-25 21:14:45 +00007881 esac
7882
7883 exp_sym_flag='-bexport'
7884 no_entry_flag='-bnoentry'
7885 fi
7886
7887 # When large executables or shared objects are built, AIX ld can
7888 # have problems creating the table of contents. If linking a library
7889 # or program results in "error TOC overflow" add -mminimal-toc to
7890 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7891 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7892
7893 archive_cmds=''
7894 hardcode_direct=yes
7895 hardcode_libdir_separator=':'
7896 link_all_deplibs=yes
7897
7898 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007899 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +00007900 # We only want to do this on AIX 4.2 and lower, the check
7901 # below for broken collect2 doesn't work under 4.3+
7902 collect2name=`${CC} -print-prog-name=collect2`
7903 if test -f "$collect2name" && \
7904 strings "$collect2name" | grep resolve_lib_name >/dev/null
7905 then
7906 # We have reworked collect2
7907 hardcode_direct=yes
7908 else
7909 # We have old collect2
7910 hardcode_direct=unsupported
7911 # It fails to find uninstalled libraries when the uninstalled
7912 # path is not listed in the libpath. Setting hardcode_minus_L
7913 # to unsupported forces relinking
7914 hardcode_minus_L=yes
7915 hardcode_libdir_flag_spec='-L$libdir'
7916 hardcode_libdir_separator=
7917 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007918 ;;
brynercb91a2f2006-08-25 21:14:45 +00007919 esac
7920 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +00007921 if test "$aix_use_runtimelinking" = yes; then
7922 shared_flag="$shared_flag "'${wl}-G'
7923 fi
brynercb91a2f2006-08-25 21:14:45 +00007924 else
7925 # not using gcc
7926 if test "$host_cpu" = ia64; then
7927 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7928 # chokes on -Wl,-G. The following line is correct:
7929 shared_flag='-G'
7930 else
mmentovai8c2a4de2006-09-20 16:20:15 +00007931 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +00007932 shared_flag='${wl}-G'
7933 else
7934 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +00007935 fi
brynercb91a2f2006-08-25 21:14:45 +00007936 fi
7937 fi
7938
7939 # It seems that -bexpall does not export symbols beginning with
7940 # underscore (_), so it is better to generate a list of symbols to export.
7941 always_export_symbols=yes
7942 if test "$aix_use_runtimelinking" = yes; then
7943 # Warning - without using the other runtime loading flags (-brtl),
7944 # -berok will link without error, but may produce a broken library.
7945 allow_undefined_flag='-berok'
7946 # Determine the default libpath from the value encoded in an empty executable.
7947 cat >conftest.$ac_ext <<_ACEOF
7948/* confdefs.h. */
7949_ACEOF
7950cat confdefs.h >>conftest.$ac_ext
7951cat >>conftest.$ac_ext <<_ACEOF
7952/* end confdefs.h. */
7953
7954int
7955main ()
7956{
7957
7958 ;
7959 return 0;
7960}
7961_ACEOF
7962rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00007963if { (ac_try="$ac_link"
7964case "(($ac_try" in
7965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966 *) ac_try_echo=$ac_try;;
7967esac
7968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00007970 ac_status=$?
7971 grep -v '^ *+' conftest.er1 >conftest.err
7972 rm -f conftest.er1
7973 cat conftest.err >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00007975 (exit $ac_status); } && {
7976 test -z "$ac_c_werror_flag" ||
7977 test ! -s conftest.err
7978 } && test -s conftest$ac_exeext &&
7979 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +00007980
7981aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7982}'`
7983# Check for a 64-bit object if we didn't find anything.
7984if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7985}'`; fi
7986else
7987 echo "$as_me: failed program was:" >&5
7988sed 's/^/| /' conftest.$ac_ext >&5
7989
mmentovai8c2a4de2006-09-20 16:20:15 +00007990
brynercb91a2f2006-08-25 21:14:45 +00007991fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007992
mmentovaiaf3c43f2007-05-17 18:34:37 +00007993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +00007994 conftest$ac_exeext conftest.$ac_ext
7995if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7996
7997 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
mmentovai8c2a4de2006-09-20 16:20:15 +00007998 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 +00007999 else
8000 if test "$host_cpu" = ia64; then
8001 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8002 allow_undefined_flag="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +00008003 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 +00008004 else
8005 # Determine the default libpath from the value encoded in an empty executable.
8006 cat >conftest.$ac_ext <<_ACEOF
8007/* confdefs.h. */
8008_ACEOF
8009cat confdefs.h >>conftest.$ac_ext
8010cat >>conftest.$ac_ext <<_ACEOF
8011/* end confdefs.h. */
8012
8013int
8014main ()
8015{
8016
8017 ;
8018 return 0;
8019}
8020_ACEOF
8021rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00008022if { (ac_try="$ac_link"
8023case "(($ac_try" in
8024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025 *) ac_try_echo=$ac_try;;
8026esac
8027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8028 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00008029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00008034 (exit $ac_status); } && {
8035 test -z "$ac_c_werror_flag" ||
8036 test ! -s conftest.err
8037 } && test -s conftest$ac_exeext &&
8038 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +00008039
8040aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8041}'`
8042# Check for a 64-bit object if we didn't find anything.
8043if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8044}'`; fi
8045else
8046 echo "$as_me: failed program was:" >&5
8047sed 's/^/| /' conftest.$ac_ext >&5
8048
mmentovai8c2a4de2006-09-20 16:20:15 +00008049
brynercb91a2f2006-08-25 21:14:45 +00008050fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008051
mmentovaiaf3c43f2007-05-17 18:34:37 +00008052rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +00008053 conftest$ac_exeext conftest.$ac_ext
8054if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8055
8056 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8057 # Warning - without using the other run time loading flags,
8058 # -berok will link without error, but may produce a broken library.
8059 no_undefined_flag=' ${wl}-bernotok'
8060 allow_undefined_flag=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +00008061 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +00008062 whole_archive_flag_spec='$convenience'
brynercb91a2f2006-08-25 21:14:45 +00008063 archive_cmds_need_lc=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008064 # This is similar to how AIX traditionally builds its shared libraries.
8065 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 +00008066 fi
8067 fi
8068 ;;
8069
8070 amigaos*)
8071 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)'
8072 hardcode_libdir_flag_spec='-L$libdir'
8073 hardcode_minus_L=yes
8074 # see comment about different semantics on the GNU ld section
8075 ld_shlibs=no
8076 ;;
8077
mmentovai8c2a4de2006-09-20 16:20:15 +00008078 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00008079 export_dynamic_flag_spec=-rdynamic
8080 ;;
8081
8082 cygwin* | mingw* | pw32*)
8083 # When not using gcc, we currently assume that we are using
8084 # Microsoft Visual C++.
8085 # hardcode_libdir_flag_spec is actually meaningless, as there is
8086 # no search path for DLLs.
8087 hardcode_libdir_flag_spec=' '
8088 allow_undefined_flag=unsupported
8089 # Tell ltmain to make .lib files, not .a files.
8090 libext=lib
8091 # Tell ltmain to make .dll files, not .so files.
8092 shrext_cmds=".dll"
8093 # FIXME: Setting linknames here is a bad hack.
8094 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8095 # The linker will automatically build a .lib file if we build a DLL.
8096 old_archive_From_new_cmds='true'
8097 # FIXME: Should let the user specify the lib program.
8098 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8099 fix_srcfile_path='`cygpath -w "$srcfile"`'
8100 enable_shared_with_static_runtimes=yes
8101 ;;
8102
8103 darwin* | rhapsody*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008104 case $host_os in
8105 rhapsody* | darwin1.[012])
8106 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8107 ;;
8108 *) # Darwin 1.3 on
8109 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8110 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8111 else
8112 case ${MACOSX_DEPLOYMENT_TARGET} in
8113 10.[012])
8114 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8115 ;;
8116 10.*)
8117 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8118 ;;
8119 esac
8120 fi
8121 ;;
brynerd5e66382006-09-08 02:35:53 +00008122 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00008123 archive_cmds_need_lc=no
brynercb91a2f2006-08-25 21:14:45 +00008124 hardcode_direct=no
8125 hardcode_automatic=yes
8126 hardcode_shlibpath_var=unsupported
mmentovai8c2a4de2006-09-20 16:20:15 +00008127 whole_archive_flag_spec=''
brynercb91a2f2006-08-25 21:14:45 +00008128 link_all_deplibs=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008129 if test "$GCC" = yes ; then
8130 output_verbose_link_cmd='echo'
8131 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8132 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8133 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8134 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8135 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
brynercb91a2f2006-08-25 21:14:45 +00008136 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008137 case $cc_basename in
8138 xlc*)
8139 output_verbose_link_cmd='echo'
8140 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8141 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8142 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8143 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8144 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}'
8145 ;;
8146 *)
8147 ld_shlibs=no
8148 ;;
8149 esac
brynercb91a2f2006-08-25 21:14:45 +00008150 fi
8151 ;;
8152
8153 dgux*)
8154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8155 hardcode_libdir_flag_spec='-L$libdir'
8156 hardcode_shlibpath_var=no
8157 ;;
8158
8159 freebsd1*)
8160 ld_shlibs=no
8161 ;;
8162
8163 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8164 # support. Future versions do this automatically, but an explicit c++rt0.o
8165 # does not break anything, and helps significantly (at the cost of a little
8166 # extra space).
8167 freebsd2.2*)
8168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8169 hardcode_libdir_flag_spec='-R$libdir'
8170 hardcode_direct=yes
8171 hardcode_shlibpath_var=no
8172 ;;
8173
8174 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8175 freebsd2*)
8176 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8177 hardcode_direct=yes
8178 hardcode_minus_L=yes
8179 hardcode_shlibpath_var=no
8180 ;;
8181
8182 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mmentovai8c2a4de2006-09-20 16:20:15 +00008183 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +00008184 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8185 hardcode_libdir_flag_spec='-R$libdir'
8186 hardcode_direct=yes
8187 hardcode_shlibpath_var=no
8188 ;;
8189
8190 hpux9*)
8191 if test "$GCC" = yes; then
8192 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'
8193 else
8194 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'
8195 fi
8196 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8197 hardcode_libdir_separator=:
8198 hardcode_direct=yes
8199
8200 # hardcode_minus_L: Not really in the search PATH,
8201 # but as the default location of the library.
8202 hardcode_minus_L=yes
8203 export_dynamic_flag_spec='${wl}-E'
8204 ;;
8205
mmentovai8c2a4de2006-09-20 16:20:15 +00008206 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +00008207 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008208 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8209 else
8210 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8211 fi
8212 if test "$with_gnu_ld" = no; then
8213 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8214 hardcode_libdir_separator=:
8215
8216 hardcode_direct=yes
8217 export_dynamic_flag_spec='${wl}-E'
8218
8219 # hardcode_minus_L: Not really in the search PATH,
8220 # but as the default location of the library.
8221 hardcode_minus_L=yes
8222 fi
8223 ;;
8224
8225 hpux11*)
8226 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8227 case $host_cpu in
8228 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +00008229 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8230 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008231 ia64*)
8232 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8233 ;;
brynercb91a2f2006-08-25 21:14:45 +00008234 *)
8235 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8236 ;;
8237 esac
8238 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008239 case $host_cpu in
8240 hppa*64*)
8241 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8242 ;;
8243 ia64*)
8244 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +00008245 ;;
8246 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00008247 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 +00008248 ;;
8249 esac
8250 fi
8251 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008252 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8253 hardcode_libdir_separator=:
brynerd5e66382006-09-08 02:35:53 +00008254
mmentovai8c2a4de2006-09-20 16:20:15 +00008255 case $host_cpu in
8256 hppa*64*|ia64*)
8257 hardcode_libdir_flag_spec_ld='+b $libdir'
8258 hardcode_direct=no
8259 hardcode_shlibpath_var=no
brynerd5e66382006-09-08 02:35:53 +00008260 ;;
brynercb91a2f2006-08-25 21:14:45 +00008261 *)
brynercb91a2f2006-08-25 21:14:45 +00008262 hardcode_direct=yes
8263 export_dynamic_flag_spec='${wl}-E'
8264
8265 # hardcode_minus_L: Not really in the search PATH,
8266 # but as the default location of the library.
8267 hardcode_minus_L=yes
8268 ;;
8269 esac
8270 fi
8271 ;;
8272
8273 irix5* | irix6* | nonstopux*)
8274 if test "$GCC" = yes; then
8275 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'
8276 else
8277 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'
8278 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8279 fi
8280 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8281 hardcode_libdir_separator=:
8282 link_all_deplibs=yes
8283 ;;
8284
mmentovai8c2a4de2006-09-20 16:20:15 +00008285 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +00008286 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8287 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8288 else
8289 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8290 fi
8291 hardcode_libdir_flag_spec='-R$libdir'
8292 hardcode_direct=yes
8293 hardcode_shlibpath_var=no
8294 ;;
8295
8296 newsos6)
8297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8298 hardcode_direct=yes
8299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8300 hardcode_libdir_separator=:
8301 hardcode_shlibpath_var=no
8302 ;;
8303
8304 openbsd*)
8305 hardcode_direct=yes
8306 hardcode_shlibpath_var=no
8307 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8308 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00008309 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
brynercb91a2f2006-08-25 21:14:45 +00008310 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8311 export_dynamic_flag_spec='${wl}-E'
8312 else
8313 case $host_os in
8314 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8315 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8316 hardcode_libdir_flag_spec='-R$libdir'
8317 ;;
8318 *)
8319 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8320 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8321 ;;
8322 esac
8323 fi
8324 ;;
8325
8326 os2*)
8327 hardcode_libdir_flag_spec='-L$libdir'
8328 hardcode_minus_L=yes
8329 allow_undefined_flag=unsupported
8330 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'
8331 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8332 ;;
8333
8334 osf3*)
8335 if test "$GCC" = yes; then
8336 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8337 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'
8338 else
8339 allow_undefined_flag=' -expect_unresolved \*'
8340 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'
8341 fi
8342 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8343 hardcode_libdir_separator=:
8344 ;;
8345
8346 osf4* | osf5*) # as osf3* with the addition of -msym flag
8347 if test "$GCC" = yes; then
8348 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8349 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'
8350 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8351 else
8352 allow_undefined_flag=' -expect_unresolved \*'
8353 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'
8354 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 +00008355 $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 +00008356
8357 # Both c and cxx compiler support -rpath directly
8358 hardcode_libdir_flag_spec='-rpath $libdir'
8359 fi
8360 hardcode_libdir_separator=:
8361 ;;
8362
brynercb91a2f2006-08-25 21:14:45 +00008363 solaris*)
8364 no_undefined_flag=' -z text'
8365 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008366 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +00008367 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8368 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8369 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8370 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008371 wlarc=''
brynercb91a2f2006-08-25 21:14:45 +00008372 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8373 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8374 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8375 fi
8376 hardcode_libdir_flag_spec='-R$libdir'
8377 hardcode_shlibpath_var=no
8378 case $host_os in
8379 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008380 *)
8381 # The compiler driver will combine linker options so we
8382 # cannot just pass the convience library names through
8383 # without $wl, iff we do not link with $LD.
8384 # Luckily, gcc supports the same syntax we need for Sun Studio.
8385 # Supported since Solaris 2.6 (maybe 2.5.1?)
8386 case $wlarc in
8387 '')
8388 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8389 *)
8390 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8391 esac ;;
brynercb91a2f2006-08-25 21:14:45 +00008392 esac
8393 link_all_deplibs=yes
8394 ;;
8395
8396 sunos4*)
8397 if test "x$host_vendor" = xsequent; then
8398 # Use $CC to link under sequent, because it throws in some extra .o
8399 # files that make .init and .fini sections work.
8400 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8401 else
8402 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8403 fi
8404 hardcode_libdir_flag_spec='-L$libdir'
8405 hardcode_direct=yes
8406 hardcode_minus_L=yes
8407 hardcode_shlibpath_var=no
8408 ;;
8409
8410 sysv4)
8411 case $host_vendor in
8412 sni)
8413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8414 hardcode_direct=yes # is this really true???
8415 ;;
8416 siemens)
8417 ## LD is ld it makes a PLAMLIB
8418 ## CC just makes a GrossModule.
8419 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8420 reload_cmds='$CC -r -o $output$reload_objs'
8421 hardcode_direct=no
8422 ;;
8423 motorola)
8424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8425 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8426 ;;
8427 esac
8428 runpath_var='LD_RUN_PATH'
8429 hardcode_shlibpath_var=no
8430 ;;
8431
8432 sysv4.3*)
8433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8434 hardcode_shlibpath_var=no
8435 export_dynamic_flag_spec='-Bexport'
8436 ;;
8437
8438 sysv4*MP*)
8439 if test -d /usr/nec; then
8440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8441 hardcode_shlibpath_var=no
8442 runpath_var=LD_RUN_PATH
8443 hardcode_runpath_var=yes
8444 ld_shlibs=yes
8445 fi
8446 ;;
8447
mmentovai8c2a4de2006-09-20 16:20:15 +00008448 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8449 no_undefined_flag='${wl}-z,text'
8450 archive_cmds_need_lc=no
brynercb91a2f2006-08-25 21:14:45 +00008451 hardcode_shlibpath_var=no
mmentovai8c2a4de2006-09-20 16:20:15 +00008452 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +00008453
mmentovai3261e8b2006-09-06 02:56:44 +00008454 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008455 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8456 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00008457 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008458 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8459 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00008460 fi
brynerd5e66382006-09-08 02:35:53 +00008461 ;;
8462
mmentovai8c2a4de2006-09-20 16:20:15 +00008463 sysv5* | sco3.2v5* | sco5v6*)
8464 # Note: We can NOT use -z defs as we might desire, because we do not
8465 # link with -lc, and that would cause any symbols used from libc to
8466 # always be unresolved, which means just about no library would
8467 # ever link correctly. If we're not using GNU ld we use -z text
8468 # though, which does catch some bad symbols but isn't as heavy-handed
8469 # as -z defs.
8470 no_undefined_flag='${wl}-z,text'
8471 allow_undefined_flag='${wl}-z,nodefs'
8472 archive_cmds_need_lc=no
brynerd5e66382006-09-08 02:35:53 +00008473 hardcode_shlibpath_var=no
mmentovai8c2a4de2006-09-20 16:20:15 +00008474 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8475 hardcode_libdir_separator=':'
8476 link_all_deplibs=yes
8477 export_dynamic_flag_spec='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +00008478 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +00008479
8480 if test "$GCC" = yes; then
8481 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8482 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8483 else
8484 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8485 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8486 fi
brynercb91a2f2006-08-25 21:14:45 +00008487 ;;
8488
8489 uts4*)
8490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8491 hardcode_libdir_flag_spec='-L$libdir'
8492 hardcode_shlibpath_var=no
8493 ;;
8494
8495 *)
8496 ld_shlibs=no
8497 ;;
8498 esac
8499 fi
8500
mmentovai8c2a4de2006-09-20 16:20:15 +00008501{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8502echo "${ECHO_T}$ld_shlibs" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008503test "$ld_shlibs" = no && can_build_shared=no
8504
brynercb91a2f2006-08-25 21:14:45 +00008505#
8506# Do we need to explicitly link libc?
8507#
8508case "x$archive_cmds_need_lc" in
8509x|xyes)
8510 # Assume -lc should be added
8511 archive_cmds_need_lc=yes
8512
8513 if test "$enable_shared" = yes && test "$GCC" = yes; then
8514 case $archive_cmds in
8515 *'~'*)
8516 # FIXME: we may have to deal with multi-command sequences.
8517 ;;
8518 '$CC '*)
8519 # Test whether the compiler implicitly links with -lc since on some
8520 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8521 # to ld, don't add -lc before -lgcc.
mmentovai8c2a4de2006-09-20 16:20:15 +00008522 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8523echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008524 $rm conftest*
8525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8526
8527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8528 (eval $ac_compile) 2>&5
8529 ac_status=$?
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } 2>conftest.err; then
8532 soname=conftest
8533 lib=conftest
8534 libobjs=conftest.$ac_objext
8535 deplibs=
8536 wl=$lt_prog_compiler_wl
mmentovai8c2a4de2006-09-20 16:20:15 +00008537 pic_flag=$lt_prog_compiler_pic
brynercb91a2f2006-08-25 21:14:45 +00008538 compiler_flags=-v
8539 linker_flags=-v
8540 verstring=
8541 output_objdir=.
8542 libname=conftest
8543 lt_save_allow_undefined_flag=$allow_undefined_flag
8544 allow_undefined_flag=
8545 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8546 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8547 ac_status=$?
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }
8550 then
8551 archive_cmds_need_lc=no
8552 else
8553 archive_cmds_need_lc=yes
8554 fi
8555 allow_undefined_flag=$lt_save_allow_undefined_flag
8556 else
8557 cat conftest.err 1>&5
8558 fi
8559 $rm conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +00008560 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8561echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008562 ;;
8563 esac
8564 fi
8565 ;;
8566esac
8567
mmentovai8c2a4de2006-09-20 16:20:15 +00008568{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8569echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008570library_names_spec=
8571libname_spec='lib$name'
8572soname_spec=
8573shrext_cmds=".so"
8574postinstall_cmds=
8575postuninstall_cmds=
8576finish_cmds=
8577finish_eval=
8578shlibpath_var=
8579shlibpath_overrides_runpath=unknown
8580version_type=none
8581dynamic_linker="$host_os ld.so"
8582sys_lib_dlsearch_path_spec="/lib /usr/lib"
8583if test "$GCC" = yes; then
8584 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8585 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8586 # if the path contains ";" then we assume it to be the separator
8587 # otherwise default to the standard path separator (i.e. ":") - it is
8588 # assumed that no part of a normal pathname contains ";" but that should
8589 # okay in the real world where ";" in dirpaths is itself problematic.
8590 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8591 else
8592 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8593 fi
8594else
8595 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8596fi
8597need_lib_prefix=unknown
8598hardcode_into_libs=no
8599
8600# when you set need_version to no, make sure it does not cause -set_version
8601# flags to be left without arguments
8602need_version=unknown
8603
8604case $host_os in
8605aix3*)
8606 version_type=linux
8607 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8608 shlibpath_var=LIBPATH
8609
8610 # AIX 3 has no versioning support, so we append a major version to the name.
8611 soname_spec='${libname}${release}${shared_ext}$major'
8612 ;;
8613
8614aix4* | aix5*)
8615 version_type=linux
8616 need_lib_prefix=no
8617 need_version=no
8618 hardcode_into_libs=yes
8619 if test "$host_cpu" = ia64; then
8620 # AIX 5 supports IA64
8621 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8622 shlibpath_var=LD_LIBRARY_PATH
8623 else
8624 # With GCC up to 2.95.x, collect2 would create an import file
8625 # for dependence libraries. The import file would start with
8626 # the line `#! .'. This would cause the generated library to
8627 # depend on `.', always an invalid library. This was fixed in
8628 # development snapshots of GCC prior to 3.0.
8629 case $host_os in
8630 aix4 | aix4.[01] | aix4.[01].*)
8631 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8632 echo ' yes '
8633 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8634 :
8635 else
8636 can_build_shared=no
8637 fi
8638 ;;
8639 esac
8640 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8641 # soname into executable. Probably we can add versioning support to
8642 # collect2, so additional links can be useful in future.
8643 if test "$aix_use_runtimelinking" = yes; then
8644 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8645 # instead of lib<name>.a to let people know that these are not
8646 # typical AIX shared libraries.
8647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8648 else
8649 # We preserve .a as extension for shared libraries through AIX4.2
8650 # and later when we are not doing run time linking.
8651 library_names_spec='${libname}${release}.a $libname.a'
8652 soname_spec='${libname}${release}${shared_ext}$major'
8653 fi
8654 shlibpath_var=LIBPATH
8655 fi
8656 ;;
8657
8658amigaos*)
8659 library_names_spec='$libname.ixlibrary $libname.a'
8660 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8661 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'
8662 ;;
8663
8664beos*)
8665 library_names_spec='${libname}${shared_ext}'
8666 dynamic_linker="$host_os ld.so"
8667 shlibpath_var=LIBRARY_PATH
8668 ;;
8669
mmentovai8c2a4de2006-09-20 16:20:15 +00008670bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00008671 version_type=linux
8672 need_version=no
8673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8674 soname_spec='${libname}${release}${shared_ext}$major'
8675 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8676 shlibpath_var=LD_LIBRARY_PATH
8677 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8678 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8679 # the default ld.so.conf also contains /usr/contrib/lib and
8680 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8681 # libtool to hard-code these into programs
8682 ;;
8683
8684cygwin* | mingw* | pw32*)
8685 version_type=windows
8686 shrext_cmds=".dll"
8687 need_version=no
8688 need_lib_prefix=no
8689
8690 case $GCC,$host_os in
8691 yes,cygwin* | yes,mingw* | yes,pw32*)
8692 library_names_spec='$libname.dll.a'
8693 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8694 postinstall_cmds='base_file=`basename \${file}`~
8695 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8696 dldir=$destdir/`dirname \$dlpath`~
8697 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +00008698 $install_prog $dir/$dlname \$dldir/$dlname~
8699 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +00008700 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8701 dlpath=$dir/\$dldll~
8702 $rm \$dlpath'
8703 shlibpath_overrides_runpath=yes
8704
8705 case $host_os in
8706 cygwin*)
8707 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8708 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8709 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8710 ;;
8711 mingw*)
8712 # MinGW DLLs use traditional 'lib' prefix
8713 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8714 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8715 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8716 # It is most probably a Windows format PATH printed by
8717 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8718 # path with ; separators, and with drive letters. We can handle the
8719 # drive letters (cygwin fileutils understands them), so leave them,
8720 # especially as we might pass files found there to a mingw objdump,
8721 # which wouldn't understand a cygwinified path. Ahh.
8722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8723 else
8724 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8725 fi
8726 ;;
8727 pw32*)
8728 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +00008729 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 +00008730 ;;
8731 esac
8732 ;;
8733
8734 *)
8735 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8736 ;;
8737 esac
8738 dynamic_linker='Win32 ld.exe'
8739 # FIXME: first we should search . and the directory the executable is in
8740 shlibpath_var=PATH
8741 ;;
8742
8743darwin* | rhapsody*)
8744 dynamic_linker="$host_os dyld"
8745 version_type=darwin
8746 need_lib_prefix=no
8747 need_version=no
8748 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8749 soname_spec='${libname}${release}${major}$shared_ext'
8750 shlibpath_overrides_runpath=yes
8751 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +00008752 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
brynercb91a2f2006-08-25 21:14:45 +00008753 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8754 if test "$GCC" = yes; then
8755 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8756 else
8757 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8758 fi
8759 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8760 ;;
8761
8762dgux*)
8763 version_type=linux
8764 need_lib_prefix=no
8765 need_version=no
8766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8767 soname_spec='${libname}${release}${shared_ext}$major'
8768 shlibpath_var=LD_LIBRARY_PATH
8769 ;;
8770
8771freebsd1*)
8772 dynamic_linker=no
8773 ;;
8774
8775kfreebsd*-gnu)
8776 version_type=linux
8777 need_lib_prefix=no
8778 need_version=no
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8780 soname_spec='${libname}${release}${shared_ext}$major'
8781 shlibpath_var=LD_LIBRARY_PATH
8782 shlibpath_overrides_runpath=no
8783 hardcode_into_libs=yes
8784 dynamic_linker='GNU ld.so'
8785 ;;
8786
mmentovai8c2a4de2006-09-20 16:20:15 +00008787freebsd* | dragonfly*)
8788 # DragonFly does not have aout. When/if they implement a new
8789 # versioning mechanism, adjust this.
8790 if test -x /usr/bin/objformat; then
8791 objformat=`/usr/bin/objformat`
8792 else
8793 case $host_os in
8794 freebsd[123]*) objformat=aout ;;
8795 *) objformat=elf ;;
8796 esac
8797 fi
brynercb91a2f2006-08-25 21:14:45 +00008798 version_type=freebsd-$objformat
8799 case $version_type in
8800 freebsd-elf*)
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8802 need_version=no
8803 need_lib_prefix=no
8804 ;;
8805 freebsd-*)
8806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8807 need_version=yes
8808 ;;
8809 esac
8810 shlibpath_var=LD_LIBRARY_PATH
8811 case $host_os in
8812 freebsd2*)
8813 shlibpath_overrides_runpath=yes
8814 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008815 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +00008816 shlibpath_overrides_runpath=yes
8817 hardcode_into_libs=yes
8818 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008819 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8820 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +00008821 shlibpath_overrides_runpath=no
8822 hardcode_into_libs=yes
8823 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008824 freebsd*) # from 4.6 on
8825 shlibpath_overrides_runpath=yes
8826 hardcode_into_libs=yes
8827 ;;
brynercb91a2f2006-08-25 21:14:45 +00008828 esac
8829 ;;
8830
8831gnu*)
8832 version_type=linux
8833 need_lib_prefix=no
8834 need_version=no
8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8836 soname_spec='${libname}${release}${shared_ext}$major'
8837 shlibpath_var=LD_LIBRARY_PATH
8838 hardcode_into_libs=yes
8839 ;;
8840
8841hpux9* | hpux10* | hpux11*)
8842 # Give a soname corresponding to the major version so that dld.sl refuses to
8843 # link against other versions.
8844 version_type=sunos
8845 need_lib_prefix=no
8846 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +00008847 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00008848 ia64*)
8849 shrext_cmds='.so'
8850 hardcode_into_libs=yes
8851 dynamic_linker="$host_os dld.so"
8852 shlibpath_var=LD_LIBRARY_PATH
8853 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8855 soname_spec='${libname}${release}${shared_ext}$major'
8856 if test "X$HPUX_IA64_MODE" = X32; then
8857 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8858 else
8859 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8860 fi
8861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8862 ;;
8863 hppa*64*)
8864 shrext_cmds='.sl'
8865 hardcode_into_libs=yes
8866 dynamic_linker="$host_os dld.sl"
8867 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8868 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8870 soname_spec='${libname}${release}${shared_ext}$major'
8871 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8873 ;;
8874 *)
8875 shrext_cmds='.sl'
8876 dynamic_linker="$host_os dld.sl"
8877 shlibpath_var=SHLIB_PATH
8878 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8880 soname_spec='${libname}${release}${shared_ext}$major'
8881 ;;
8882 esac
8883 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8884 postinstall_cmds='chmod 555 $lib'
8885 ;;
8886
mmentovai8c2a4de2006-09-20 16:20:15 +00008887interix3*)
8888 version_type=linux
8889 need_lib_prefix=no
8890 need_version=no
8891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8892 soname_spec='${libname}${release}${shared_ext}$major'
8893 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8894 shlibpath_var=LD_LIBRARY_PATH
8895 shlibpath_overrides_runpath=no
8896 hardcode_into_libs=yes
8897 ;;
8898
brynercb91a2f2006-08-25 21:14:45 +00008899irix5* | irix6* | nonstopux*)
8900 case $host_os in
8901 nonstopux*) version_type=nonstopux ;;
8902 *)
8903 if test "$lt_cv_prog_gnu_ld" = yes; then
8904 version_type=linux
8905 else
8906 version_type=irix
8907 fi ;;
8908 esac
8909 need_lib_prefix=no
8910 need_version=no
8911 soname_spec='${libname}${release}${shared_ext}$major'
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8913 case $host_os in
8914 irix5* | nonstopux*)
8915 libsuff= shlibsuff=
8916 ;;
8917 *)
8918 case $LD in # libtool.m4 will add one of these switches to LD
8919 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8920 libsuff= shlibsuff= libmagic=32-bit;;
8921 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8922 libsuff=32 shlibsuff=N32 libmagic=N32;;
8923 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8924 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8925 *) libsuff= shlibsuff= libmagic=never-match;;
8926 esac
8927 ;;
8928 esac
8929 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8930 shlibpath_overrides_runpath=no
8931 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8932 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8933 hardcode_into_libs=yes
8934 ;;
8935
8936# No shared lib support for Linux oldld, aout, or coff.
8937linux*oldld* | linux*aout* | linux*coff*)
8938 dynamic_linker=no
8939 ;;
8940
8941# This must be Linux ELF.
8942linux*)
8943 version_type=linux
8944 need_lib_prefix=no
8945 need_version=no
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947 soname_spec='${libname}${release}${shared_ext}$major'
8948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8949 shlibpath_var=LD_LIBRARY_PATH
8950 shlibpath_overrides_runpath=no
8951 # This implies no fast_install, which is unacceptable.
8952 # Some rework will be needed to allow for fast_install
8953 # before this can be enabled.
8954 hardcode_into_libs=yes
8955
8956 # Append ld.so.conf contents to the search path
8957 if test -f /etc/ld.so.conf; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008958 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
brynercb91a2f2006-08-25 21:14:45 +00008959 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8960 fi
8961
8962 # We used to test for /lib/ld.so.1 and disable shared libraries on
8963 # powerpc, because MkLinux only supported shared libraries with the
8964 # GNU dynamic linker. Since this was broken with cross compilers,
8965 # most powerpc-linux boxes support dynamic linking these days and
8966 # people can always --disable-shared, the test was removed, and we
8967 # assume the GNU/Linux dynamic linker is in use.
8968 dynamic_linker='GNU/Linux ld.so'
8969 ;;
8970
brynercb91a2f2006-08-25 21:14:45 +00008971knetbsd*-gnu)
8972 version_type=linux
8973 need_lib_prefix=no
8974 need_version=no
8975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8976 soname_spec='${libname}${release}${shared_ext}$major'
8977 shlibpath_var=LD_LIBRARY_PATH
8978 shlibpath_overrides_runpath=no
8979 hardcode_into_libs=yes
8980 dynamic_linker='GNU ld.so'
8981 ;;
8982
8983netbsd*)
8984 version_type=sunos
8985 need_lib_prefix=no
8986 need_version=no
8987 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8990 dynamic_linker='NetBSD (a.out) ld.so'
8991 else
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 dynamic_linker='NetBSD ld.elf_so'
8995 fi
8996 shlibpath_var=LD_LIBRARY_PATH
8997 shlibpath_overrides_runpath=yes
8998 hardcode_into_libs=yes
8999 ;;
9000
9001newsos6)
9002 version_type=linux
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9004 shlibpath_var=LD_LIBRARY_PATH
9005 shlibpath_overrides_runpath=yes
9006 ;;
9007
9008nto-qnx*)
9009 version_type=linux
9010 need_lib_prefix=no
9011 need_version=no
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9013 soname_spec='${libname}${release}${shared_ext}$major'
9014 shlibpath_var=LD_LIBRARY_PATH
9015 shlibpath_overrides_runpath=yes
9016 ;;
9017
9018openbsd*)
9019 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +00009020 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +00009021 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009022 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9023 case $host_os in
9024 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9025 *) need_version=no ;;
9026 esac
brynercb91a2f2006-08-25 21:14:45 +00009027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9029 shlibpath_var=LD_LIBRARY_PATH
9030 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9031 case $host_os in
9032 openbsd2.[89] | openbsd2.[89].*)
9033 shlibpath_overrides_runpath=no
9034 ;;
9035 *)
9036 shlibpath_overrides_runpath=yes
9037 ;;
9038 esac
9039 else
9040 shlibpath_overrides_runpath=yes
9041 fi
9042 ;;
9043
9044os2*)
9045 libname_spec='$name'
9046 shrext_cmds=".dll"
9047 need_lib_prefix=no
9048 library_names_spec='$libname${shared_ext} $libname.a'
9049 dynamic_linker='OS/2 ld.exe'
9050 shlibpath_var=LIBPATH
9051 ;;
9052
9053osf3* | osf4* | osf5*)
9054 version_type=osf
9055 need_lib_prefix=no
9056 need_version=no
9057 soname_spec='${libname}${release}${shared_ext}$major'
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 shlibpath_var=LD_LIBRARY_PATH
9060 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9061 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9062 ;;
9063
brynercb91a2f2006-08-25 21:14:45 +00009064solaris*)
9065 version_type=linux
9066 need_lib_prefix=no
9067 need_version=no
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9069 soname_spec='${libname}${release}${shared_ext}$major'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 shlibpath_overrides_runpath=yes
9072 hardcode_into_libs=yes
9073 # ldd complains unless libraries are executable
9074 postinstall_cmds='chmod +x $lib'
9075 ;;
9076
9077sunos4*)
9078 version_type=sunos
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9080 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9081 shlibpath_var=LD_LIBRARY_PATH
9082 shlibpath_overrides_runpath=yes
9083 if test "$with_gnu_ld" = yes; then
9084 need_lib_prefix=no
9085 fi
9086 need_version=yes
9087 ;;
9088
mmentovai8c2a4de2006-09-20 16:20:15 +00009089sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00009090 version_type=linux
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 shlibpath_var=LD_LIBRARY_PATH
9094 case $host_vendor in
9095 sni)
9096 shlibpath_overrides_runpath=no
9097 need_lib_prefix=no
9098 export_dynamic_flag_spec='${wl}-Blargedynsym'
9099 runpath_var=LD_RUN_PATH
9100 ;;
9101 siemens)
9102 need_lib_prefix=no
9103 ;;
9104 motorola)
9105 need_lib_prefix=no
9106 need_version=no
9107 shlibpath_overrides_runpath=no
9108 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9109 ;;
9110 esac
9111 ;;
9112
9113sysv4*MP*)
9114 if test -d /usr/nec ;then
9115 version_type=linux
9116 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9117 soname_spec='$libname${shared_ext}.$major'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 fi
9120 ;;
9121
mmentovai8c2a4de2006-09-20 16:20:15 +00009122sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9123 version_type=freebsd-elf
9124 need_lib_prefix=no
9125 need_version=no
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9127 soname_spec='${libname}${release}${shared_ext}$major'
9128 shlibpath_var=LD_LIBRARY_PATH
9129 hardcode_into_libs=yes
9130 if test "$with_gnu_ld" = yes; then
9131 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9132 shlibpath_overrides_runpath=no
9133 else
9134 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9135 shlibpath_overrides_runpath=yes
9136 case $host_os in
9137 sco3.2v5*)
9138 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9139 ;;
9140 esac
9141 fi
9142 sys_lib_dlsearch_path_spec='/usr/lib'
9143 ;;
9144
brynercb91a2f2006-08-25 21:14:45 +00009145uts4*)
9146 version_type=linux
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 shlibpath_var=LD_LIBRARY_PATH
9150 ;;
9151
9152*)
9153 dynamic_linker=no
9154 ;;
9155esac
mmentovai8c2a4de2006-09-20 16:20:15 +00009156{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9157echo "${ECHO_T}$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009158test "$dynamic_linker" = no && can_build_shared=no
9159
mmentovai8c2a4de2006-09-20 16:20:15 +00009160variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9161if test "$GCC" = yes; then
9162 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9163fi
9164
9165{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9166echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009167hardcode_action=
9168if test -n "$hardcode_libdir_flag_spec" || \
mmentovai8c2a4de2006-09-20 16:20:15 +00009169 test -n "$runpath_var" || \
9170 test "X$hardcode_automatic" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +00009171
9172 # We can hardcode non-existant directories.
9173 if test "$hardcode_direct" != no &&
9174 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9175 # have to relink, otherwise we might link with an installed library
9176 # when we should be linking with a yet-to-be-installed one
9177 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9178 test "$hardcode_minus_L" != no; then
9179 # Linking always hardcodes the temporary library directory.
9180 hardcode_action=relink
9181 else
9182 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9183 hardcode_action=immediate
9184 fi
9185else
9186 # We cannot hardcode anything, or else we can only hardcode existing
9187 # directories.
9188 hardcode_action=unsupported
9189fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009190{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9191echo "${ECHO_T}$hardcode_action" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009192
9193if test "$hardcode_action" = relink; then
9194 # Fast installation is not supported
9195 enable_fast_install=no
9196elif test "$shlibpath_overrides_runpath" = yes ||
9197 test "$enable_shared" = no; then
9198 # Fast installation is not necessary
9199 enable_fast_install=needless
9200fi
9201
9202striplib=
9203old_striplib=
mmentovai8c2a4de2006-09-20 16:20:15 +00009204{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9205echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009206if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9207 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9208 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
mmentovai8c2a4de2006-09-20 16:20:15 +00009209 { echo "$as_me:$LINENO: result: yes" >&5
9210echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009211else
9212# FIXME - insert some real tests, host_os isn't really good enough
9213 case $host_os in
9214 darwin*)
9215 if test -n "$STRIP" ; then
9216 striplib="$STRIP -x"
mmentovai8c2a4de2006-09-20 16:20:15 +00009217 { echo "$as_me:$LINENO: result: yes" >&5
9218echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009219 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009220 { echo "$as_me:$LINENO: result: no" >&5
9221echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009222fi
9223 ;;
9224 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00009225 { echo "$as_me:$LINENO: result: no" >&5
9226echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009227 ;;
9228 esac
9229fi
9230
9231if test "x$enable_dlopen" != xyes; then
9232 enable_dlopen=unknown
9233 enable_dlopen_self=unknown
9234 enable_dlopen_self_static=unknown
9235else
9236 lt_cv_dlopen=no
9237 lt_cv_dlopen_libs=
9238
9239 case $host_os in
9240 beos*)
9241 lt_cv_dlopen="load_add_on"
9242 lt_cv_dlopen_libs=
9243 lt_cv_dlopen_self=yes
9244 ;;
9245
9246 mingw* | pw32*)
9247 lt_cv_dlopen="LoadLibrary"
9248 lt_cv_dlopen_libs=
9249 ;;
9250
9251 cygwin*)
9252 lt_cv_dlopen="dlopen"
9253 lt_cv_dlopen_libs=
9254 ;;
9255
9256 darwin*)
9257 # if libdl is installed we need to link against it
mmentovai8c2a4de2006-09-20 16:20:15 +00009258 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9259echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009260if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9262else
9263 ac_check_lib_save_LIBS=$LIBS
9264LIBS="-ldl $LIBS"
9265cat >conftest.$ac_ext <<_ACEOF
9266/* confdefs.h. */
9267_ACEOF
9268cat confdefs.h >>conftest.$ac_ext
9269cat >>conftest.$ac_ext <<_ACEOF
9270/* end confdefs.h. */
9271
mmentovai8c2a4de2006-09-20 16:20:15 +00009272/* Override any GCC internal prototype to avoid an error.
9273 Use char because int might match the return type of a GCC
9274 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009275#ifdef __cplusplus
9276extern "C"
9277#endif
brynercb91a2f2006-08-25 21:14:45 +00009278char dlopen ();
9279int
9280main ()
9281{
mmentovai8c2a4de2006-09-20 16:20:15 +00009282return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +00009283 ;
9284 return 0;
9285}
9286_ACEOF
9287rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009288if { (ac_try="$ac_link"
9289case "(($ac_try" in
9290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291 *) ac_try_echo=$ac_try;;
9292esac
9293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9294 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009295 ac_status=$?
9296 grep -v '^ *+' conftest.er1 >conftest.err
9297 rm -f conftest.er1
9298 cat conftest.err >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00009300 (exit $ac_status); } && {
9301 test -z "$ac_c_werror_flag" ||
9302 test ! -s conftest.err
9303 } && test -s conftest$ac_exeext &&
9304 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +00009305 ac_cv_lib_dl_dlopen=yes
9306else
9307 echo "$as_me: failed program was:" >&5
9308sed 's/^/| /' conftest.$ac_ext >&5
9309
mmentovai8c2a4de2006-09-20 16:20:15 +00009310 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +00009311fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009312
mmentovaiaf3c43f2007-05-17 18:34:37 +00009313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +00009314 conftest$ac_exeext conftest.$ac_ext
9315LIBS=$ac_check_lib_save_LIBS
9316fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009317{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9318echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009319if test $ac_cv_lib_dl_dlopen = yes; then
9320 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9321else
9322
9323 lt_cv_dlopen="dyld"
9324 lt_cv_dlopen_libs=
9325 lt_cv_dlopen_self=yes
9326
9327fi
9328
9329 ;;
9330
9331 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00009332 { echo "$as_me:$LINENO: checking for shl_load" >&5
9333echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009334if test "${ac_cv_func_shl_load+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9336else
9337 cat >conftest.$ac_ext <<_ACEOF
9338/* confdefs.h. */
9339_ACEOF
9340cat confdefs.h >>conftest.$ac_ext
9341cat >>conftest.$ac_ext <<_ACEOF
9342/* end confdefs.h. */
9343/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9345#define shl_load innocuous_shl_load
9346
9347/* System header to define __stub macros and hopefully few prototypes,
9348 which can conflict with char shl_load (); below.
9349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9350 <limits.h> exists even on freestanding compilers. */
9351
9352#ifdef __STDC__
9353# include <limits.h>
9354#else
9355# include <assert.h>
9356#endif
9357
9358#undef shl_load
9359
mmentovai8c2a4de2006-09-20 16:20:15 +00009360/* Override any GCC internal prototype to avoid an error.
9361 Use char because int might match the return type of a GCC
9362 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009363#ifdef __cplusplus
9364extern "C"
brynercb91a2f2006-08-25 21:14:45 +00009365#endif
brynercb91a2f2006-08-25 21:14:45 +00009366char shl_load ();
9367/* The GNU C library defines this for functions which it implements
9368 to always fail with ENOSYS. Some functions are actually named
9369 something starting with __ and the normal name is an alias. */
mmentovai8c2a4de2006-09-20 16:20:15 +00009370#if defined __stub_shl_load || defined __stub___shl_load
brynercb91a2f2006-08-25 21:14:45 +00009371choke me
brynercb91a2f2006-08-25 21:14:45 +00009372#endif
9373
9374int
9375main ()
9376{
mmentovai8c2a4de2006-09-20 16:20:15 +00009377return shl_load ();
brynercb91a2f2006-08-25 21:14:45 +00009378 ;
9379 return 0;
9380}
9381_ACEOF
9382rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009383if { (ac_try="$ac_link"
9384case "(($ac_try" in
9385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9386 *) ac_try_echo=$ac_try;;
9387esac
9388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9389 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009390 ac_status=$?
9391 grep -v '^ *+' conftest.er1 >conftest.err
9392 rm -f conftest.er1
9393 cat conftest.err >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00009395 (exit $ac_status); } && {
9396 test -z "$ac_c_werror_flag" ||
9397 test ! -s conftest.err
9398 } && test -s conftest$ac_exeext &&
9399 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +00009400 ac_cv_func_shl_load=yes
9401else
9402 echo "$as_me: failed program was:" >&5
9403sed 's/^/| /' conftest.$ac_ext >&5
9404
mmentovai8c2a4de2006-09-20 16:20:15 +00009405 ac_cv_func_shl_load=no
brynercb91a2f2006-08-25 21:14:45 +00009406fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009407
mmentovaiaf3c43f2007-05-17 18:34:37 +00009408rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +00009409 conftest$ac_exeext conftest.$ac_ext
9410fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009411{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9412echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009413if test $ac_cv_func_shl_load = yes; then
9414 lt_cv_dlopen="shl_load"
9415else
mmentovai8c2a4de2006-09-20 16:20:15 +00009416 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9417echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009418if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9420else
9421 ac_check_lib_save_LIBS=$LIBS
9422LIBS="-ldld $LIBS"
9423cat >conftest.$ac_ext <<_ACEOF
9424/* confdefs.h. */
9425_ACEOF
9426cat confdefs.h >>conftest.$ac_ext
9427cat >>conftest.$ac_ext <<_ACEOF
9428/* end confdefs.h. */
9429
mmentovai8c2a4de2006-09-20 16:20:15 +00009430/* Override any GCC internal prototype to avoid an error.
9431 Use char because int might match the return type of a GCC
9432 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009433#ifdef __cplusplus
9434extern "C"
9435#endif
brynercb91a2f2006-08-25 21:14:45 +00009436char shl_load ();
9437int
9438main ()
9439{
mmentovai8c2a4de2006-09-20 16:20:15 +00009440return shl_load ();
brynercb91a2f2006-08-25 21:14:45 +00009441 ;
9442 return 0;
9443}
9444_ACEOF
9445rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009446if { (ac_try="$ac_link"
9447case "(($ac_try" in
9448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449 *) ac_try_echo=$ac_try;;
9450esac
9451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009453 ac_status=$?
9454 grep -v '^ *+' conftest.er1 >conftest.err
9455 rm -f conftest.er1
9456 cat conftest.err >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00009458 (exit $ac_status); } && {
9459 test -z "$ac_c_werror_flag" ||
9460 test ! -s conftest.err
9461 } && test -s conftest$ac_exeext &&
9462 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +00009463 ac_cv_lib_dld_shl_load=yes
9464else
9465 echo "$as_me: failed program was:" >&5
9466sed 's/^/| /' conftest.$ac_ext >&5
9467
mmentovai8c2a4de2006-09-20 16:20:15 +00009468 ac_cv_lib_dld_shl_load=no
brynercb91a2f2006-08-25 21:14:45 +00009469fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009470
mmentovaiaf3c43f2007-05-17 18:34:37 +00009471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +00009472 conftest$ac_exeext conftest.$ac_ext
9473LIBS=$ac_check_lib_save_LIBS
9474fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009475{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9476echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009477if test $ac_cv_lib_dld_shl_load = yes; then
9478 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9479else
mmentovai8c2a4de2006-09-20 16:20:15 +00009480 { echo "$as_me:$LINENO: checking for dlopen" >&5
9481echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009482if test "${ac_cv_func_dlopen+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9484else
9485 cat >conftest.$ac_ext <<_ACEOF
9486/* confdefs.h. */
9487_ACEOF
9488cat confdefs.h >>conftest.$ac_ext
9489cat >>conftest.$ac_ext <<_ACEOF
9490/* end confdefs.h. */
9491/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9493#define dlopen innocuous_dlopen
9494
9495/* System header to define __stub macros and hopefully few prototypes,
9496 which can conflict with char dlopen (); below.
9497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9498 <limits.h> exists even on freestanding compilers. */
9499
9500#ifdef __STDC__
9501# include <limits.h>
9502#else
9503# include <assert.h>
9504#endif
9505
9506#undef dlopen
9507
mmentovai8c2a4de2006-09-20 16:20:15 +00009508/* Override any GCC internal prototype to avoid an error.
9509 Use char because int might match the return type of a GCC
9510 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009511#ifdef __cplusplus
9512extern "C"
brynercb91a2f2006-08-25 21:14:45 +00009513#endif
brynercb91a2f2006-08-25 21:14:45 +00009514char dlopen ();
9515/* The GNU C library defines this for functions which it implements
9516 to always fail with ENOSYS. Some functions are actually named
9517 something starting with __ and the normal name is an alias. */
mmentovai8c2a4de2006-09-20 16:20:15 +00009518#if defined __stub_dlopen || defined __stub___dlopen
brynercb91a2f2006-08-25 21:14:45 +00009519choke me
brynercb91a2f2006-08-25 21:14:45 +00009520#endif
9521
9522int
9523main ()
9524{
mmentovai8c2a4de2006-09-20 16:20:15 +00009525return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +00009526 ;
9527 return 0;
9528}
9529_ACEOF
9530rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009531if { (ac_try="$ac_link"
9532case "(($ac_try" in
9533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534 *) ac_try_echo=$ac_try;;
9535esac
9536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00009543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest$ac_exeext &&
9547 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +00009548 ac_cv_func_dlopen=yes
9549else
9550 echo "$as_me: failed program was:" >&5
9551sed 's/^/| /' conftest.$ac_ext >&5
9552
mmentovai8c2a4de2006-09-20 16:20:15 +00009553 ac_cv_func_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +00009554fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009555
mmentovaiaf3c43f2007-05-17 18:34:37 +00009556rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +00009557 conftest$ac_exeext conftest.$ac_ext
9558fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009559{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9560echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009561if test $ac_cv_func_dlopen = yes; then
9562 lt_cv_dlopen="dlopen"
9563else
mmentovai8c2a4de2006-09-20 16:20:15 +00009564 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9565echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009566if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9568else
9569 ac_check_lib_save_LIBS=$LIBS
9570LIBS="-ldl $LIBS"
9571cat >conftest.$ac_ext <<_ACEOF
9572/* confdefs.h. */
9573_ACEOF
9574cat confdefs.h >>conftest.$ac_ext
9575cat >>conftest.$ac_ext <<_ACEOF
9576/* end confdefs.h. */
9577
mmentovai8c2a4de2006-09-20 16:20:15 +00009578/* Override any GCC internal prototype to avoid an error.
9579 Use char because int might match the return type of a GCC
9580 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009581#ifdef __cplusplus
9582extern "C"
9583#endif
brynercb91a2f2006-08-25 21:14:45 +00009584char dlopen ();
9585int
9586main ()
9587{
mmentovai8c2a4de2006-09-20 16:20:15 +00009588return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +00009589 ;
9590 return 0;
9591}
9592_ACEOF
9593rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009594if { (ac_try="$ac_link"
9595case "(($ac_try" in
9596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597 *) ac_try_echo=$ac_try;;
9598esac
9599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009601 ac_status=$?
9602 grep -v '^ *+' conftest.er1 >conftest.err
9603 rm -f conftest.er1
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00009606 (exit $ac_status); } && {
9607 test -z "$ac_c_werror_flag" ||
9608 test ! -s conftest.err
9609 } && test -s conftest$ac_exeext &&
9610 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +00009611 ac_cv_lib_dl_dlopen=yes
9612else
9613 echo "$as_me: failed program was:" >&5
9614sed 's/^/| /' conftest.$ac_ext >&5
9615
mmentovai8c2a4de2006-09-20 16:20:15 +00009616 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +00009617fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009618
mmentovaiaf3c43f2007-05-17 18:34:37 +00009619rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +00009620 conftest$ac_exeext conftest.$ac_ext
9621LIBS=$ac_check_lib_save_LIBS
9622fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009623{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9624echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009625if test $ac_cv_lib_dl_dlopen = yes; then
9626 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9627else
mmentovai8c2a4de2006-09-20 16:20:15 +00009628 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9629echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009630if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9632else
9633 ac_check_lib_save_LIBS=$LIBS
9634LIBS="-lsvld $LIBS"
9635cat >conftest.$ac_ext <<_ACEOF
9636/* confdefs.h. */
9637_ACEOF
9638cat confdefs.h >>conftest.$ac_ext
9639cat >>conftest.$ac_ext <<_ACEOF
9640/* end confdefs.h. */
9641
mmentovai8c2a4de2006-09-20 16:20:15 +00009642/* Override any GCC internal prototype to avoid an error.
9643 Use char because int might match the return type of a GCC
9644 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009645#ifdef __cplusplus
9646extern "C"
9647#endif
brynercb91a2f2006-08-25 21:14:45 +00009648char dlopen ();
9649int
9650main ()
9651{
mmentovai8c2a4de2006-09-20 16:20:15 +00009652return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +00009653 ;
9654 return 0;
9655}
9656_ACEOF
9657rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009658if { (ac_try="$ac_link"
9659case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9662esac
9663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009665 ac_status=$?
9666 grep -v '^ *+' conftest.er1 >conftest.err
9667 rm -f conftest.er1
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00009670 (exit $ac_status); } && {
9671 test -z "$ac_c_werror_flag" ||
9672 test ! -s conftest.err
9673 } && test -s conftest$ac_exeext &&
9674 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +00009675 ac_cv_lib_svld_dlopen=yes
9676else
9677 echo "$as_me: failed program was:" >&5
9678sed 's/^/| /' conftest.$ac_ext >&5
9679
mmentovai8c2a4de2006-09-20 16:20:15 +00009680 ac_cv_lib_svld_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +00009681fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009682
mmentovaiaf3c43f2007-05-17 18:34:37 +00009683rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +00009684 conftest$ac_exeext conftest.$ac_ext
9685LIBS=$ac_check_lib_save_LIBS
9686fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009687{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9688echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009689if test $ac_cv_lib_svld_dlopen = yes; then
9690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9691else
mmentovai8c2a4de2006-09-20 16:20:15 +00009692 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9693echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009694if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9696else
9697 ac_check_lib_save_LIBS=$LIBS
9698LIBS="-ldld $LIBS"
9699cat >conftest.$ac_ext <<_ACEOF
9700/* confdefs.h. */
9701_ACEOF
9702cat confdefs.h >>conftest.$ac_ext
9703cat >>conftest.$ac_ext <<_ACEOF
9704/* end confdefs.h. */
9705
mmentovai8c2a4de2006-09-20 16:20:15 +00009706/* Override any GCC internal prototype to avoid an error.
9707 Use char because int might match the return type of a GCC
9708 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009709#ifdef __cplusplus
9710extern "C"
9711#endif
brynercb91a2f2006-08-25 21:14:45 +00009712char dld_link ();
9713int
9714main ()
9715{
mmentovai8c2a4de2006-09-20 16:20:15 +00009716return dld_link ();
brynercb91a2f2006-08-25 21:14:45 +00009717 ;
9718 return 0;
9719}
9720_ACEOF
9721rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009722if { (ac_try="$ac_link"
9723case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9726esac
9727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009729 ac_status=$?
9730 grep -v '^ *+' conftest.er1 >conftest.err
9731 rm -f conftest.er1
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +00009734 (exit $ac_status); } && {
9735 test -z "$ac_c_werror_flag" ||
9736 test ! -s conftest.err
9737 } && test -s conftest$ac_exeext &&
9738 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +00009739 ac_cv_lib_dld_dld_link=yes
9740else
9741 echo "$as_me: failed program was:" >&5
9742sed 's/^/| /' conftest.$ac_ext >&5
9743
mmentovai8c2a4de2006-09-20 16:20:15 +00009744 ac_cv_lib_dld_dld_link=no
brynercb91a2f2006-08-25 21:14:45 +00009745fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009746
mmentovaiaf3c43f2007-05-17 18:34:37 +00009747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +00009748 conftest$ac_exeext conftest.$ac_ext
9749LIBS=$ac_check_lib_save_LIBS
9750fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009751{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9752echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009753if test $ac_cv_lib_dld_dld_link = yes; then
9754 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9755fi
9756
9757
9758fi
9759
9760
9761fi
9762
9763
9764fi
9765
9766
9767fi
9768
9769
9770fi
9771
9772 ;;
9773 esac
9774
9775 if test "x$lt_cv_dlopen" != xno; then
9776 enable_dlopen=yes
9777 else
9778 enable_dlopen=no
9779 fi
9780
9781 case $lt_cv_dlopen in
9782 dlopen)
9783 save_CPPFLAGS="$CPPFLAGS"
9784 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9785
9786 save_LDFLAGS="$LDFLAGS"
mmentovai8c2a4de2006-09-20 16:20:15 +00009787 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
brynercb91a2f2006-08-25 21:14:45 +00009788
9789 save_LIBS="$LIBS"
9790 LIBS="$lt_cv_dlopen_libs $LIBS"
9791
mmentovai8c2a4de2006-09-20 16:20:15 +00009792 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9793echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009794if test "${lt_cv_dlopen_self+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
9796else
9797 if test "$cross_compiling" = yes; then :
9798 lt_cv_dlopen_self=cross
9799else
9800 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9801 lt_status=$lt_dlunknown
9802 cat > conftest.$ac_ext <<EOF
mmentovaiaf3c43f2007-05-17 18:34:37 +00009803#line 9803 "configure"
brynercb91a2f2006-08-25 21:14:45 +00009804#include "confdefs.h"
9805
9806#if HAVE_DLFCN_H
9807#include <dlfcn.h>
9808#endif
9809
9810#include <stdio.h>
9811
9812#ifdef RTLD_GLOBAL
9813# define LT_DLGLOBAL RTLD_GLOBAL
9814#else
9815# ifdef DL_GLOBAL
9816# define LT_DLGLOBAL DL_GLOBAL
9817# else
9818# define LT_DLGLOBAL 0
9819# endif
9820#endif
9821
9822/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9823 find out it does not work in some platform. */
9824#ifndef LT_DLLAZY_OR_NOW
9825# ifdef RTLD_LAZY
9826# define LT_DLLAZY_OR_NOW RTLD_LAZY
9827# else
9828# ifdef DL_LAZY
9829# define LT_DLLAZY_OR_NOW DL_LAZY
9830# else
9831# ifdef RTLD_NOW
9832# define LT_DLLAZY_OR_NOW RTLD_NOW
9833# else
9834# ifdef DL_NOW
9835# define LT_DLLAZY_OR_NOW DL_NOW
9836# else
9837# define LT_DLLAZY_OR_NOW 0
9838# endif
9839# endif
9840# endif
9841# endif
9842#endif
9843
9844#ifdef __cplusplus
9845extern "C" void exit (int);
9846#endif
9847
9848void fnord() { int i=42;}
9849int main ()
9850{
9851 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9852 int status = $lt_dlunknown;
9853
9854 if (self)
9855 {
9856 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9857 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9858 /* dlclose (self); */
9859 }
mmentovai8c2a4de2006-09-20 16:20:15 +00009860 else
9861 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +00009862
9863 exit (status);
9864}
9865EOF
9866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9867 (eval $ac_link) 2>&5
9868 ac_status=$?
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009871 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +00009872 lt_status=$?
9873 case x$lt_status in
9874 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9875 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009876 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
brynercb91a2f2006-08-25 21:14:45 +00009877 esac
9878 else :
9879 # compilation failed
9880 lt_cv_dlopen_self=no
9881 fi
9882fi
9883rm -fr conftest*
9884
9885
9886fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009887{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9888echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009889
9890 if test "x$lt_cv_dlopen_self" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009891 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9892 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9893echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009894if test "${lt_cv_dlopen_self_static+set}" = set; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9896else
9897 if test "$cross_compiling" = yes; then :
9898 lt_cv_dlopen_self_static=cross
9899else
9900 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9901 lt_status=$lt_dlunknown
9902 cat > conftest.$ac_ext <<EOF
mmentovaiaf3c43f2007-05-17 18:34:37 +00009903#line 9903 "configure"
brynercb91a2f2006-08-25 21:14:45 +00009904#include "confdefs.h"
9905
9906#if HAVE_DLFCN_H
9907#include <dlfcn.h>
9908#endif
9909
9910#include <stdio.h>
9911
9912#ifdef RTLD_GLOBAL
9913# define LT_DLGLOBAL RTLD_GLOBAL
9914#else
9915# ifdef DL_GLOBAL
9916# define LT_DLGLOBAL DL_GLOBAL
9917# else
9918# define LT_DLGLOBAL 0
9919# endif
9920#endif
9921
9922/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9923 find out it does not work in some platform. */
9924#ifndef LT_DLLAZY_OR_NOW
9925# ifdef RTLD_LAZY
9926# define LT_DLLAZY_OR_NOW RTLD_LAZY
9927# else
9928# ifdef DL_LAZY
9929# define LT_DLLAZY_OR_NOW DL_LAZY
9930# else
9931# ifdef RTLD_NOW
9932# define LT_DLLAZY_OR_NOW RTLD_NOW
9933# else
9934# ifdef DL_NOW
9935# define LT_DLLAZY_OR_NOW DL_NOW
9936# else
9937# define LT_DLLAZY_OR_NOW 0
9938# endif
9939# endif
9940# endif
9941# endif
9942#endif
9943
9944#ifdef __cplusplus
9945extern "C" void exit (int);
9946#endif
9947
9948void fnord() { int i=42;}
9949int main ()
9950{
9951 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9952 int status = $lt_dlunknown;
9953
9954 if (self)
9955 {
9956 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9957 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9958 /* dlclose (self); */
9959 }
mmentovai8c2a4de2006-09-20 16:20:15 +00009960 else
9961 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +00009962
9963 exit (status);
9964}
9965EOF
9966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9967 (eval $ac_link) 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009971 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +00009972 lt_status=$?
9973 case x$lt_status in
9974 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9975 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009976 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
brynercb91a2f2006-08-25 21:14:45 +00009977 esac
9978 else :
9979 # compilation failed
9980 lt_cv_dlopen_self_static=no
9981 fi
9982fi
9983rm -fr conftest*
9984
9985
9986fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009987{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9988echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009989 fi
9990
9991 CPPFLAGS="$save_CPPFLAGS"
9992 LDFLAGS="$save_LDFLAGS"
9993 LIBS="$save_LIBS"
9994 ;;
9995 esac
9996
9997 case $lt_cv_dlopen_self in
9998 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9999 *) enable_dlopen_self=unknown ;;
10000 esac
10001
10002 case $lt_cv_dlopen_self_static in
10003 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10004 *) enable_dlopen_self_static=unknown ;;
10005 esac
10006fi
10007
10008
mmentovai8c2a4de2006-09-20 16:20:15 +000010009# Report which library types will actually be built
10010{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10011echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10012{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10013echo "${ECHO_T}$can_build_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010014
mmentovai8c2a4de2006-09-20 16:20:15 +000010015{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10016echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010017test "$can_build_shared" = "no" && enable_shared=no
10018
10019# On AIX, shared libraries and static libraries use the same namespace, and
10020# are all built from PIC.
mmentovai8c2a4de2006-09-20 16:20:15 +000010021case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000010022aix3*)
10023 test "$enable_shared" = yes && enable_static=no
10024 if test -n "$RANLIB"; then
10025 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10026 postinstall_cmds='$RANLIB $lib'
10027 fi
10028 ;;
10029
10030aix4* | aix5*)
10031 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10032 test "$enable_shared" = yes && enable_static=no
10033 fi
brynercb91a2f2006-08-25 21:14:45 +000010034 ;;
10035esac
mmentovai8c2a4de2006-09-20 16:20:15 +000010036{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10037echo "${ECHO_T}$enable_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010038
mmentovai8c2a4de2006-09-20 16:20:15 +000010039{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10040echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010041# Make sure either enable_shared or enable_static is yes.
10042test "$enable_shared" = yes || enable_static=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000010043{ echo "$as_me:$LINENO: result: $enable_static" >&5
10044echo "${ECHO_T}$enable_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010045
10046# The else clause should only fire when bootstrapping the
10047# libtool distribution, otherwise you forgot to ship ltmain.sh
10048# with your package, and you will get complaints that there are
10049# no rules to generate ltmain.sh.
10050if test -f "$ltmain"; then
10051 # See if we are running on zsh, and set the options which allow our commands through
10052 # without removal of \ escapes.
10053 if test -n "${ZSH_VERSION+set}" ; then
10054 setopt NO_GLOB_SUBST
10055 fi
10056 # Now quote all the things that may contain metacharacters while being
10057 # careful not to overquote the AC_SUBSTed values. We take copies of the
10058 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000010059 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000010060 SED SHELL STRIP \
10061 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10062 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10063 deplibs_check_method reload_flag reload_cmds need_locks \
10064 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10065 lt_cv_sys_global_symbol_to_c_name_address \
10066 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10067 old_postinstall_cmds old_postuninstall_cmds \
10068 compiler \
10069 CC \
10070 LD \
10071 lt_prog_compiler_wl \
10072 lt_prog_compiler_pic \
10073 lt_prog_compiler_static \
10074 lt_prog_compiler_no_builtin_flag \
10075 export_dynamic_flag_spec \
10076 thread_safe_flag_spec \
10077 whole_archive_flag_spec \
10078 enable_shared_with_static_runtimes \
10079 old_archive_cmds \
10080 old_archive_from_new_cmds \
10081 predep_objects \
10082 postdep_objects \
10083 predeps \
10084 postdeps \
10085 compiler_lib_search_path \
10086 archive_cmds \
10087 archive_expsym_cmds \
10088 postinstall_cmds \
10089 postuninstall_cmds \
10090 old_archive_from_expsyms_cmds \
10091 allow_undefined_flag \
10092 no_undefined_flag \
10093 export_symbols_cmds \
10094 hardcode_libdir_flag_spec \
10095 hardcode_libdir_flag_spec_ld \
10096 hardcode_libdir_separator \
10097 hardcode_automatic \
10098 module_cmds \
10099 module_expsym_cmds \
10100 lt_cv_prog_compiler_c_o \
10101 exclude_expsyms \
10102 include_expsyms; do
10103
10104 case $var in
10105 old_archive_cmds | \
10106 old_archive_from_new_cmds | \
10107 archive_cmds | \
10108 archive_expsym_cmds | \
10109 module_cmds | \
10110 module_expsym_cmds | \
10111 old_archive_from_expsyms_cmds | \
10112 export_symbols_cmds | \
10113 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10114 postinstall_cmds | postuninstall_cmds | \
10115 old_postinstall_cmds | old_postuninstall_cmds | \
10116 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10117 # Double-quote double-evaled strings.
10118 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10119 ;;
10120 *)
10121 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10122 ;;
10123 esac
10124 done
10125
10126 case $lt_echo in
10127 *'\$0 --fallback-echo"')
10128 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10129 ;;
10130 esac
10131
10132cfgfile="${ofile}T"
10133 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10134 $rm -f "$cfgfile"
10135 { echo "$as_me:$LINENO: creating $ofile" >&5
10136echo "$as_me: creating $ofile" >&6;}
10137
10138 cat <<__EOF__ >> "$cfgfile"
10139#! $SHELL
10140
10141# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10142# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10143# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10144#
10145# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10146# Free Software Foundation, Inc.
10147#
10148# This file is part of GNU Libtool:
10149# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10150#
10151# This program is free software; you can redistribute it and/or modify
10152# it under the terms of the GNU General Public License as published by
10153# the Free Software Foundation; either version 2 of the License, or
10154# (at your option) any later version.
10155#
10156# This program is distributed in the hope that it will be useful, but
10157# WITHOUT ANY WARRANTY; without even the implied warranty of
10158# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10159# General Public License for more details.
10160#
10161# You should have received a copy of the GNU General Public License
10162# along with this program; if not, write to the Free Software
mmentovai8c2a4de2006-09-20 16:20:15 +000010163# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
brynercb91a2f2006-08-25 21:14:45 +000010164#
10165# As a special exception to the GNU General Public License, if you
10166# distribute this file as part of a program that contains a
10167# configuration script generated by Autoconf, you may include it under
10168# the same distribution terms that you use for the rest of that program.
10169
10170# A sed program that does not truncate output.
10171SED=$lt_SED
10172
10173# Sed that helps us avoid accidentally triggering echo(1) options like -n.
mmentovai8c2a4de2006-09-20 16:20:15 +000010174Xsed="$SED -e 1s/^X//"
brynercb91a2f2006-08-25 21:14:45 +000010175
10176# The HP-UX ksh and POSIX shell print the target directory to stdout
10177# if CDPATH is set.
mmentovai8c2a4de2006-09-20 16:20:15 +000010178(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
brynercb91a2f2006-08-25 21:14:45 +000010179
10180# The names of the tagged configurations supported by this script.
10181available_tags=
10182
10183# ### BEGIN LIBTOOL CONFIG
10184
10185# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10186
10187# Shell to use when invoking shell scripts.
10188SHELL=$lt_SHELL
10189
10190# Whether or not to build shared libraries.
10191build_libtool_libs=$enable_shared
10192
10193# Whether or not to build static libraries.
10194build_old_libs=$enable_static
10195
10196# Whether or not to add -lc for building shared libraries.
10197build_libtool_need_lc=$archive_cmds_need_lc
10198
10199# Whether or not to disallow shared libs when runtime libs are static
10200allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10201
10202# Whether or not to optimize for fast installation.
10203fast_install=$enable_fast_install
10204
10205# The host system.
10206host_alias=$host_alias
10207host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000010208host_os=$host_os
10209
10210# The build system.
10211build_alias=$build_alias
10212build=$build
10213build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000010214
10215# An echo program that does not interpret backslashes.
10216echo=$lt_echo
10217
10218# The archiver.
10219AR=$lt_AR
10220AR_FLAGS=$lt_AR_FLAGS
10221
10222# A C compiler.
10223LTCC=$lt_LTCC
10224
mmentovai8c2a4de2006-09-20 16:20:15 +000010225# LTCC compiler flags.
10226LTCFLAGS=$lt_LTCFLAGS
10227
brynercb91a2f2006-08-25 21:14:45 +000010228# A language-specific compiler.
10229CC=$lt_compiler
10230
10231# Is the compiler the GNU C compiler?
10232with_gcc=$GCC
10233
10234# An ERE matcher.
10235EGREP=$lt_EGREP
10236
10237# The linker used to build libraries.
10238LD=$lt_LD
10239
10240# Whether we need hard or soft links.
10241LN_S=$lt_LN_S
10242
10243# A BSD-compatible nm program.
10244NM=$lt_NM
10245
10246# A symbol stripping program
10247STRIP=$lt_STRIP
10248
10249# Used to examine libraries when file_magic_cmd begins "file"
10250MAGIC_CMD=$MAGIC_CMD
10251
10252# Used on cygwin: DLL creation program.
10253DLLTOOL="$DLLTOOL"
10254
10255# Used on cygwin: object dumper.
10256OBJDUMP="$OBJDUMP"
10257
10258# Used on cygwin: assembler.
10259AS="$AS"
10260
10261# The name of the directory that contains temporary libtool files.
10262objdir=$objdir
10263
10264# How to create reloadable object files.
10265reload_flag=$lt_reload_flag
10266reload_cmds=$lt_reload_cmds
10267
10268# How to pass a linker flag through the compiler.
10269wl=$lt_lt_prog_compiler_wl
10270
10271# Object file suffix (normally "o").
10272objext="$ac_objext"
10273
10274# Old archive suffix (normally "a").
10275libext="$libext"
10276
10277# Shared library suffix (normally ".so").
10278shrext_cmds='$shrext_cmds'
10279
10280# Executable file suffix (normally "").
10281exeext="$exeext"
10282
10283# Additional compiler flags for building library objects.
10284pic_flag=$lt_lt_prog_compiler_pic
10285pic_mode=$pic_mode
10286
10287# What is the maximum length of a command?
10288max_cmd_len=$lt_cv_sys_max_cmd_len
10289
10290# Does compiler simultaneously support -c and -o options?
10291compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10292
mmentovai8c2a4de2006-09-20 16:20:15 +000010293# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000010294need_locks=$lt_need_locks
10295
10296# Do we need the lib prefix for modules?
10297need_lib_prefix=$need_lib_prefix
10298
10299# Do we need a version for libraries?
10300need_version=$need_version
10301
10302# Whether dlopen is supported.
10303dlopen_support=$enable_dlopen
10304
10305# Whether dlopen of programs is supported.
10306dlopen_self=$enable_dlopen_self
10307
10308# Whether dlopen of statically linked programs is supported.
10309dlopen_self_static=$enable_dlopen_self_static
10310
10311# Compiler flag to prevent dynamic linking.
10312link_static_flag=$lt_lt_prog_compiler_static
10313
10314# Compiler flag to turn off builtin functions.
10315no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10316
10317# Compiler flag to allow reflexive dlopens.
10318export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10319
10320# Compiler flag to generate shared objects directly from archives.
10321whole_archive_flag_spec=$lt_whole_archive_flag_spec
10322
10323# Compiler flag to generate thread-safe objects.
10324thread_safe_flag_spec=$lt_thread_safe_flag_spec
10325
10326# Library versioning type.
10327version_type=$version_type
10328
10329# Format of library name prefix.
10330libname_spec=$lt_libname_spec
10331
10332# List of archive names. First name is the real one, the rest are links.
10333# The last name is the one that the linker finds with -lNAME.
10334library_names_spec=$lt_library_names_spec
10335
10336# The coded name of the library, if different from the real name.
10337soname_spec=$lt_soname_spec
10338
10339# Commands used to build and install an old-style archive.
10340RANLIB=$lt_RANLIB
10341old_archive_cmds=$lt_old_archive_cmds
10342old_postinstall_cmds=$lt_old_postinstall_cmds
10343old_postuninstall_cmds=$lt_old_postuninstall_cmds
10344
10345# Create an old-style archive from a shared archive.
10346old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10347
10348# Create a temporary old-style archive to link instead of a shared archive.
10349old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10350
10351# Commands used to build and install a shared archive.
10352archive_cmds=$lt_archive_cmds
10353archive_expsym_cmds=$lt_archive_expsym_cmds
10354postinstall_cmds=$lt_postinstall_cmds
10355postuninstall_cmds=$lt_postuninstall_cmds
10356
10357# Commands used to build a loadable module (assumed same as above if empty)
10358module_cmds=$lt_module_cmds
10359module_expsym_cmds=$lt_module_expsym_cmds
10360
10361# Commands to strip libraries.
10362old_striplib=$lt_old_striplib
10363striplib=$lt_striplib
10364
10365# Dependencies to place before the objects being linked to create a
10366# shared library.
10367predep_objects=$lt_predep_objects
10368
10369# Dependencies to place after the objects being linked to create a
10370# shared library.
10371postdep_objects=$lt_postdep_objects
10372
10373# Dependencies to place before the objects being linked to create a
10374# shared library.
10375predeps=$lt_predeps
10376
10377# Dependencies to place after the objects being linked to create a
10378# shared library.
10379postdeps=$lt_postdeps
10380
10381# The library search path used internally by the compiler when linking
10382# a shared library.
10383compiler_lib_search_path=$lt_compiler_lib_search_path
10384
10385# Method to check whether dependent libraries are shared objects.
10386deplibs_check_method=$lt_deplibs_check_method
10387
10388# Command to use when deplibs_check_method == file_magic.
10389file_magic_cmd=$lt_file_magic_cmd
10390
10391# Flag that allows shared libraries with undefined symbols to be built.
10392allow_undefined_flag=$lt_allow_undefined_flag
10393
10394# Flag that forces no undefined symbols.
10395no_undefined_flag=$lt_no_undefined_flag
10396
10397# Commands used to finish a libtool library installation in a directory.
10398finish_cmds=$lt_finish_cmds
10399
10400# Same as above, but a single script fragment to be evaled but not shown.
10401finish_eval=$lt_finish_eval
10402
10403# Take the output of nm and produce a listing of raw symbols and C names.
10404global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10405
10406# Transform the output of nm in a proper C declaration
10407global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10408
10409# Transform the output of nm in a C name address pair
10410global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10411
10412# This is the shared library runtime path variable.
10413runpath_var=$runpath_var
10414
10415# This is the shared library path variable.
10416shlibpath_var=$shlibpath_var
10417
10418# Is shlibpath searched before the hard-coded library search path?
10419shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10420
10421# How to hardcode a shared library path into an executable.
10422hardcode_action=$hardcode_action
10423
10424# Whether we should hardcode library paths into libraries.
10425hardcode_into_libs=$hardcode_into_libs
10426
10427# Flag to hardcode \$libdir into a binary during linking.
10428# This must work even if \$libdir does not exist.
10429hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10430
10431# If ld is used when linking, flag to hardcode \$libdir into
10432# a binary during linking. This must work even if \$libdir does
10433# not exist.
10434hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10435
10436# Whether we need a single -rpath flag with a separated argument.
10437hardcode_libdir_separator=$lt_hardcode_libdir_separator
10438
10439# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10440# resulting binary.
10441hardcode_direct=$hardcode_direct
10442
10443# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10444# resulting binary.
10445hardcode_minus_L=$hardcode_minus_L
10446
10447# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10448# the resulting binary.
10449hardcode_shlibpath_var=$hardcode_shlibpath_var
10450
10451# Set to yes if building a shared library automatically hardcodes DIR into the library
10452# and all subsequent libraries and executables linked against it.
10453hardcode_automatic=$hardcode_automatic
10454
10455# Variables whose values should be saved in libtool wrapper scripts and
10456# restored at relink time.
10457variables_saved_for_relink="$variables_saved_for_relink"
10458
10459# Whether libtool must link a program against all its dependency libraries.
10460link_all_deplibs=$link_all_deplibs
10461
10462# Compile-time system search path for libraries
10463sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10464
10465# Run-time system search path for libraries
10466sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10467
10468# Fix the shell variable \$srcfile for the compiler.
10469fix_srcfile_path="$fix_srcfile_path"
10470
10471# Set to yes if exported symbols are required.
10472always_export_symbols=$always_export_symbols
10473
10474# The commands to list exported symbols.
10475export_symbols_cmds=$lt_export_symbols_cmds
10476
10477# The commands to extract the exported symbol list from a shared archive.
10478extract_expsyms_cmds=$lt_extract_expsyms_cmds
10479
10480# Symbols that should not be listed in the preloaded symbols.
10481exclude_expsyms=$lt_exclude_expsyms
10482
10483# Symbols that must always be exported.
10484include_expsyms=$lt_include_expsyms
10485
10486# ### END LIBTOOL CONFIG
10487
10488__EOF__
10489
10490
10491 case $host_os in
10492 aix3*)
10493 cat <<\EOF >> "$cfgfile"
10494
10495# AIX sometimes has problems with the GCC collect2 program. For some
10496# reason, if we set the COLLECT_NAMES environment variable, the problems
10497# vanish in a puff of smoke.
10498if test "X${COLLECT_NAMES+set}" != Xset; then
10499 COLLECT_NAMES=
10500 export COLLECT_NAMES
10501fi
10502EOF
10503 ;;
10504 esac
10505
10506 # We use sed instead of cat because bash on DJGPP gets confused if
10507 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10508 # text mode, it properly converts lines to CR/LF. This bash problem
10509 # is reportedly fixed, but why not run on old versions too?
10510 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10511
10512 mv -f "$cfgfile" "$ofile" || \
10513 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10514 chmod +x "$ofile"
10515
10516else
10517 # If there is no Makefile yet, we rely on a make rule to execute
10518 # `config.status --recheck' to rerun these tests and create the
10519 # libtool script then.
10520 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10521 if test -f "$ltmain_in"; then
10522 test -f Makefile && make "$ltmain"
10523 fi
10524fi
10525
10526
10527ac_ext=c
10528ac_cpp='$CPP $CPPFLAGS'
10529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10531ac_compiler_gnu=$ac_cv_c_compiler_gnu
10532
10533CC="$lt_save_CC"
10534
10535
mmentovai8c2a4de2006-09-20 16:20:15 +000010536# Check whether --with-tags was given.
brynercb91a2f2006-08-25 21:14:45 +000010537if test "${with_tags+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010538 withval=$with_tags; tagnames="$withval"
10539fi
10540
brynercb91a2f2006-08-25 21:14:45 +000010541
10542if test -f "$ltmain" && test -n "$tagnames"; then
10543 if test ! -f "${ofile}"; then
10544 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10545echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10546 fi
10547
10548 if test -z "$LTCC"; then
10549 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10550 if test -z "$LTCC"; then
10551 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10552echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10553 else
10554 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10555echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10556 fi
10557 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010558 if test -z "$LTCFLAGS"; then
10559 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10560 fi
brynercb91a2f2006-08-25 21:14:45 +000010561
10562 # Extract list of available tagged configurations in $ofile.
10563 # Note that this assumes the entire list is on one line.
10564 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10565
10566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10567 for tagname in $tagnames; do
10568 IFS="$lt_save_ifs"
10569 # Check whether tagname contains only valid characters
10570 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10571 "") ;;
10572 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10573echo "$as_me: error: invalid tag name: $tagname" >&2;}
10574 { (exit 1); exit 1; }; }
10575 ;;
10576 esac
10577
10578 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10579 then
10580 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10581echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10582 { (exit 1); exit 1; }; }
10583 fi
10584
10585 # Update the list of available tags.
10586 if test -n "$tagname"; then
10587 echo appending configuration tag \"$tagname\" to $ofile
10588
10589 case $tagname in
10590 CXX)
mmentovai8c2a4de2006-09-20 16:20:15 +000010591 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10592 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10593 (test "X$CXX" != "Xg++"))) ; then
10594 ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000010595ac_cpp='$CXXCPP $CPPFLAGS'
10596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10599
10600
10601
10602
10603archive_cmds_need_lc_CXX=no
10604allow_undefined_flag_CXX=
10605always_export_symbols_CXX=no
10606archive_expsym_cmds_CXX=
10607export_dynamic_flag_spec_CXX=
10608hardcode_direct_CXX=no
10609hardcode_libdir_flag_spec_CXX=
10610hardcode_libdir_flag_spec_ld_CXX=
10611hardcode_libdir_separator_CXX=
10612hardcode_minus_L_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000010613hardcode_shlibpath_var_CXX=unsupported
brynercb91a2f2006-08-25 21:14:45 +000010614hardcode_automatic_CXX=no
10615module_cmds_CXX=
10616module_expsym_cmds_CXX=
10617link_all_deplibs_CXX=unknown
10618old_archive_cmds_CXX=$old_archive_cmds
10619no_undefined_flag_CXX=
10620whole_archive_flag_spec_CXX=
10621enable_shared_with_static_runtimes_CXX=no
10622
10623# Dependencies to place before and after the object being linked:
10624predep_objects_CXX=
10625postdep_objects_CXX=
10626predeps_CXX=
10627postdeps_CXX=
10628compiler_lib_search_path_CXX=
10629
10630# Source file extension for C++ test sources.
mmentovai8c2a4de2006-09-20 16:20:15 +000010631ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000010632
10633# Object file extension for compiled C++ test sources.
10634objext=o
10635objext_CXX=$objext
10636
10637# Code to be used in simple compile tests
10638lt_simple_compile_test_code="int some_variable = 0;\n"
10639
10640# Code to be used in simple link tests
mmentovai8c2a4de2006-09-20 16:20:15 +000010641lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
brynercb91a2f2006-08-25 21:14:45 +000010642
10643# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10644
10645# If no C compiler was specified, use CC.
10646LTCC=${LTCC-"$CC"}
10647
mmentovai8c2a4de2006-09-20 16:20:15 +000010648# If no C compiler flags were specified, use CFLAGS.
10649LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10650
brynercb91a2f2006-08-25 21:14:45 +000010651# Allow CC to be a program name with arguments.
10652compiler=$CC
10653
10654
mmentovai8c2a4de2006-09-20 16:20:15 +000010655# save warnings/boilerplate of simple test code
10656ac_outfile=conftest.$ac_objext
10657printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10658eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10659_lt_compiler_boilerplate=`cat conftest.err`
10660$rm conftest*
10661
10662ac_outfile=conftest.$ac_objext
10663printf "$lt_simple_link_test_code" >conftest.$ac_ext
10664eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10665_lt_linker_boilerplate=`cat conftest.err`
10666$rm conftest*
10667
10668
brynercb91a2f2006-08-25 21:14:45 +000010669# Allow CC to be a program name with arguments.
10670lt_save_CC=$CC
10671lt_save_LD=$LD
10672lt_save_GCC=$GCC
10673GCC=$GXX
10674lt_save_with_gnu_ld=$with_gnu_ld
10675lt_save_path_LD=$lt_cv_path_LD
10676if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10677 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10678else
mmentovai8c2a4de2006-09-20 16:20:15 +000010679 $as_unset lt_cv_prog_gnu_ld
brynercb91a2f2006-08-25 21:14:45 +000010680fi
10681if test -n "${lt_cv_path_LDCXX+set}"; then
10682 lt_cv_path_LD=$lt_cv_path_LDCXX
10683else
mmentovai8c2a4de2006-09-20 16:20:15 +000010684 $as_unset lt_cv_path_LD
brynercb91a2f2006-08-25 21:14:45 +000010685fi
10686test -z "${LDCXX+set}" || LD=$LDCXX
10687CC=${CXX-"c++"}
10688compiler=$CC
10689compiler_CXX=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +000010690for cc_temp in $compiler""; do
10691 case $cc_temp in
10692 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10693 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10694 \-*) ;;
10695 *) break;;
10696 esac
10697done
10698cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10699
brynercb91a2f2006-08-25 21:14:45 +000010700
10701# We don't want -fno-exception wen compiling C++ code, so set the
10702# no_builtin_flag separately
10703if test "$GXX" = yes; then
10704 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10705else
10706 lt_prog_compiler_no_builtin_flag_CXX=
10707fi
10708
10709if test "$GXX" = yes; then
10710 # Set up default GNU C++ configuration
10711
10712
mmentovai8c2a4de2006-09-20 16:20:15 +000010713# Check whether --with-gnu-ld was given.
brynercb91a2f2006-08-25 21:14:45 +000010714if test "${with_gnu_ld+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010715 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +000010716else
10717 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +000010718fi
10719
brynercb91a2f2006-08-25 21:14:45 +000010720ac_prog=ld
10721if test "$GCC" = yes; then
10722 # Check if gcc -print-prog-name=ld gives a path.
mmentovai8c2a4de2006-09-20 16:20:15 +000010723 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10724echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010725 case $host in
10726 *-*-mingw*)
10727 # gcc leaves a trailing carriage return which upsets mingw
10728 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10729 *)
10730 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10731 esac
10732 case $ac_prog in
10733 # Accept absolute paths.
10734 [\\/]* | ?:[\\/]*)
10735 re_direlt='/[^/][^/]*/\.\./'
10736 # Canonicalize the pathname of ld
10737 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10738 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10739 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10740 done
10741 test -z "$LD" && LD="$ac_prog"
10742 ;;
10743 "")
10744 # If it fails, then pretend we aren't using GCC.
10745 ac_prog=ld
10746 ;;
10747 *)
10748 # If it is relative, then search for the first ld in PATH.
10749 with_gnu_ld=unknown
10750 ;;
10751 esac
10752elif test "$with_gnu_ld" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010753 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10754echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010755else
mmentovai8c2a4de2006-09-20 16:20:15 +000010756 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10757echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010758fi
10759if test "${lt_cv_path_LD+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10761else
10762 if test -z "$LD"; then
10763 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10764 for ac_dir in $PATH; do
10765 IFS="$lt_save_ifs"
10766 test -z "$ac_dir" && ac_dir=.
10767 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10768 lt_cv_path_LD="$ac_dir/$ac_prog"
10769 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +000010770 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000010771 # Break only if it was the GNU/non-GNU ld that we prefer.
10772 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10773 *GNU* | *'with BFD'*)
10774 test "$with_gnu_ld" != no && break
10775 ;;
10776 *)
10777 test "$with_gnu_ld" != yes && break
10778 ;;
10779 esac
10780 fi
10781 done
10782 IFS="$lt_save_ifs"
10783else
10784 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10785fi
10786fi
10787
10788LD="$lt_cv_path_LD"
10789if test -n "$LD"; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010790 { echo "$as_me:$LINENO: result: $LD" >&5
10791echo "${ECHO_T}$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010792else
mmentovai8c2a4de2006-09-20 16:20:15 +000010793 { echo "$as_me:$LINENO: result: no" >&5
10794echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010795fi
10796test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10797echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10798 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +000010799{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10800echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010801if test "${lt_cv_prog_gnu_ld+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10803else
mmentovai8c2a4de2006-09-20 16:20:15 +000010804 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000010805case `$LD -v 2>&1 </dev/null` in
10806*GNU* | *'with BFD'*)
10807 lt_cv_prog_gnu_ld=yes
10808 ;;
10809*)
10810 lt_cv_prog_gnu_ld=no
10811 ;;
10812esac
10813fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010814{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10815echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010816with_gnu_ld=$lt_cv_prog_gnu_ld
10817
10818
10819
10820 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10821 # archiving commands below assume that GNU ld is being used.
10822 if test "$with_gnu_ld" = yes; then
10823 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10824 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'
10825
10826 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10827 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10828
10829 # If archive_cmds runs LD, not CC, wlarc should be empty
10830 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10831 # investigate it a little bit more. (MM)
10832 wlarc='${wl}'
10833
10834 # ancient GNU ld didn't support --whole-archive et. al.
10835 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10836 grep 'no-whole-archive' > /dev/null; then
10837 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10838 else
10839 whole_archive_flag_spec_CXX=
10840 fi
10841 else
10842 with_gnu_ld=no
10843 wlarc=
10844
10845 # A generic and very simple default shared library creation
10846 # command for GNU C++ for the case where it uses the native
10847 # linker, instead of GNU ld. If possible, this setting should
10848 # overridden to take advantage of the native linker features on
10849 # the platform it is being used on.
10850 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10851 fi
10852
10853 # Commands to make compiler produce verbose output that lists
10854 # what "hidden" libraries, object files and flags are used when
10855 # linking a shared library.
10856 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10857
10858else
10859 GXX=no
10860 with_gnu_ld=no
10861 wlarc=
10862fi
10863
10864# PORTME: fill in a description of your system's C++ link characteristics
mmentovai8c2a4de2006-09-20 16:20:15 +000010865{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10866echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010867ld_shlibs_CXX=yes
10868case $host_os in
10869 aix3*)
10870 # FIXME: insert proper C++ library support
10871 ld_shlibs_CXX=no
10872 ;;
10873 aix4* | aix5*)
10874 if test "$host_cpu" = ia64; then
10875 # On IA64, the linker does run time linking by default, so we don't
10876 # have to do anything special.
10877 aix_use_runtimelinking=no
10878 exp_sym_flag='-Bexport'
10879 no_entry_flag=""
10880 else
10881 aix_use_runtimelinking=no
10882
10883 # Test if we are trying to use run time linking or normal
10884 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10885 # need to do runtime linking.
10886 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10887 for ld_flag in $LDFLAGS; do
10888 case $ld_flag in
10889 *-brtl*)
10890 aix_use_runtimelinking=yes
10891 break
10892 ;;
10893 esac
10894 done
mmentovai8c2a4de2006-09-20 16:20:15 +000010895 ;;
brynercb91a2f2006-08-25 21:14:45 +000010896 esac
10897
10898 exp_sym_flag='-bexport'
10899 no_entry_flag='-bnoentry'
10900 fi
10901
10902 # When large executables or shared objects are built, AIX ld can
10903 # have problems creating the table of contents. If linking a library
10904 # or program results in "error TOC overflow" add -mminimal-toc to
10905 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10906 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10907
10908 archive_cmds_CXX=''
10909 hardcode_direct_CXX=yes
10910 hardcode_libdir_separator_CXX=':'
10911 link_all_deplibs_CXX=yes
10912
10913 if test "$GXX" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010914 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +000010915 # We only want to do this on AIX 4.2 and lower, the check
10916 # below for broken collect2 doesn't work under 4.3+
10917 collect2name=`${CC} -print-prog-name=collect2`
10918 if test -f "$collect2name" && \
10919 strings "$collect2name" | grep resolve_lib_name >/dev/null
10920 then
10921 # We have reworked collect2
10922 hardcode_direct_CXX=yes
10923 else
10924 # We have old collect2
10925 hardcode_direct_CXX=unsupported
10926 # It fails to find uninstalled libraries when the uninstalled
10927 # path is not listed in the libpath. Setting hardcode_minus_L
10928 # to unsupported forces relinking
10929 hardcode_minus_L_CXX=yes
10930 hardcode_libdir_flag_spec_CXX='-L$libdir'
10931 hardcode_libdir_separator_CXX=
10932 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010933 ;;
brynercb91a2f2006-08-25 21:14:45 +000010934 esac
10935 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +000010936 if test "$aix_use_runtimelinking" = yes; then
10937 shared_flag="$shared_flag "'${wl}-G'
10938 fi
brynercb91a2f2006-08-25 21:14:45 +000010939 else
10940 # not using gcc
10941 if test "$host_cpu" = ia64; then
10942 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10943 # chokes on -Wl,-G. The following line is correct:
10944 shared_flag='-G'
10945 else
10946 if test "$aix_use_runtimelinking" = yes; then
10947 shared_flag='${wl}-G'
10948 else
10949 shared_flag='${wl}-bM:SRE'
10950 fi
10951 fi
10952 fi
10953
10954 # It seems that -bexpall does not export symbols beginning with
10955 # underscore (_), so it is better to generate a list of symbols to export.
10956 always_export_symbols_CXX=yes
10957 if test "$aix_use_runtimelinking" = yes; then
10958 # Warning - without using the other runtime loading flags (-brtl),
10959 # -berok will link without error, but may produce a broken library.
10960 allow_undefined_flag_CXX='-berok'
10961 # Determine the default libpath from the value encoded in an empty executable.
10962 cat >conftest.$ac_ext <<_ACEOF
10963/* confdefs.h. */
10964_ACEOF
10965cat confdefs.h >>conftest.$ac_ext
10966cat >>conftest.$ac_ext <<_ACEOF
10967/* end confdefs.h. */
10968
10969int
10970main ()
10971{
10972
10973 ;
10974 return 0;
10975}
10976_ACEOF
10977rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000010978if { (ac_try="$ac_link"
10979case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10982esac
10983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000010985 ac_status=$?
10986 grep -v '^ *+' conftest.er1 >conftest.err
10987 rm -f conftest.er1
10988 cat conftest.err >&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000010990 (exit $ac_status); } && {
10991 test -z "$ac_cxx_werror_flag" ||
10992 test ! -s conftest.err
10993 } && test -s conftest$ac_exeext &&
10994 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +000010995
10996aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10997}'`
10998# Check for a 64-bit object if we didn't find anything.
10999if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11000}'`; fi
11001else
11002 echo "$as_me: failed program was:" >&5
11003sed 's/^/| /' conftest.$ac_ext >&5
11004
mmentovai8c2a4de2006-09-20 16:20:15 +000011005
brynercb91a2f2006-08-25 21:14:45 +000011006fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011007
mmentovaiaf3c43f2007-05-17 18:34:37 +000011008rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +000011009 conftest$ac_exeext conftest.$ac_ext
11010if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11011
11012 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11013
mmentovai8c2a4de2006-09-20 16:20:15 +000011014 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 +000011015 else
11016 if test "$host_cpu" = ia64; then
11017 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11018 allow_undefined_flag_CXX="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +000011019 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 +000011020 else
11021 # Determine the default libpath from the value encoded in an empty executable.
11022 cat >conftest.$ac_ext <<_ACEOF
11023/* confdefs.h. */
11024_ACEOF
11025cat confdefs.h >>conftest.$ac_ext
11026cat >>conftest.$ac_ext <<_ACEOF
11027/* end confdefs.h. */
11028
11029int
11030main ()
11031{
11032
11033 ;
11034 return 0;
11035}
11036_ACEOF
11037rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000011038if { (ac_try="$ac_link"
11039case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042esac
11043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000011045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000011050 (exit $ac_status); } && {
11051 test -z "$ac_cxx_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest$ac_exeext &&
11054 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +000011055
11056aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11057}'`
11058# Check for a 64-bit object if we didn't find anything.
11059if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11060}'`; fi
11061else
11062 echo "$as_me: failed program was:" >&5
11063sed 's/^/| /' conftest.$ac_ext >&5
11064
mmentovai8c2a4de2006-09-20 16:20:15 +000011065
brynercb91a2f2006-08-25 21:14:45 +000011066fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011067
mmentovaiaf3c43f2007-05-17 18:34:37 +000011068rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +000011069 conftest$ac_exeext conftest.$ac_ext
11070if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11071
11072 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11073 # Warning - without using the other run time loading flags,
11074 # -berok will link without error, but may produce a broken library.
11075 no_undefined_flag_CXX=' ${wl}-bernotok'
11076 allow_undefined_flag_CXX=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +000011077 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +000011078 whole_archive_flag_spec_CXX='$convenience'
brynercb91a2f2006-08-25 21:14:45 +000011079 archive_cmds_need_lc_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000011080 # This is similar to how AIX traditionally builds its shared libraries.
11081 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 +000011082 fi
11083 fi
11084 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011085
11086 beos*)
11087 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11088 allow_undefined_flag_CXX=unsupported
11089 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11090 # support --undefined. This deserves some investigation. FIXME
11091 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11092 else
11093 ld_shlibs_CXX=no
11094 fi
11095 ;;
11096
brynercb91a2f2006-08-25 21:14:45 +000011097 chorus*)
11098 case $cc_basename in
11099 *)
11100 # FIXME: insert proper C++ library support
11101 ld_shlibs_CXX=no
11102 ;;
11103 esac
11104 ;;
11105
11106 cygwin* | mingw* | pw32*)
11107 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11108 # as there is no search path for DLLs.
11109 hardcode_libdir_flag_spec_CXX='-L$libdir'
11110 allow_undefined_flag_CXX=unsupported
11111 always_export_symbols_CXX=no
11112 enable_shared_with_static_runtimes_CXX=yes
11113
11114 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011115 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 +000011116 # If the export-symbols file already is a .def file (1st line
11117 # is EXPORTS), use it as is; otherwise, prepend...
11118 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11119 cp $export_symbols $output_objdir/$soname.def;
11120 else
11121 echo EXPORTS > $output_objdir/$soname.def;
11122 cat $export_symbols >> $output_objdir/$soname.def;
11123 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +000011124 $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 +000011125 else
11126 ld_shlibs_CXX=no
11127 fi
11128 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011129 darwin* | rhapsody*)
11130 case $host_os in
11131 rhapsody* | darwin1.[012])
11132 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11133 ;;
11134 *) # Darwin 1.3 on
11135 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11136 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11137 else
11138 case ${MACOSX_DEPLOYMENT_TARGET} in
11139 10.[012])
11140 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11141 ;;
11142 10.*)
11143 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11144 ;;
11145 esac
11146 fi
11147 ;;
brynerd5e66382006-09-08 02:35:53 +000011148 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000011149 archive_cmds_need_lc_CXX=no
11150 hardcode_direct_CXX=no
11151 hardcode_automatic_CXX=yes
11152 hardcode_shlibpath_var_CXX=unsupported
11153 whole_archive_flag_spec_CXX=''
11154 link_all_deplibs_CXX=yes
brynerd5e66382006-09-08 02:35:53 +000011155
mmentovai8c2a4de2006-09-20 16:20:15 +000011156 if test "$GXX" = yes ; then
11157 lt_int_apple_cc_single_mod=no
11158 output_verbose_link_cmd='echo'
11159 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11160 lt_int_apple_cc_single_mod=yes
11161 fi
11162 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11163 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11164 else
11165 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'
11166 fi
11167 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11168 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11169 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11170 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11171 else
11172 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11173 fi
11174 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}'
11175 else
11176 case $cc_basename in
11177 xlc*)
11178 output_verbose_link_cmd='echo'
11179 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11180 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11181 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11182 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11183 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}'
11184 ;;
11185 *)
11186 ld_shlibs_CXX=no
11187 ;;
11188 esac
11189 fi
11190 ;;
brynercb91a2f2006-08-25 21:14:45 +000011191
11192 dgux*)
11193 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011194 ec++*)
brynercb91a2f2006-08-25 21:14:45 +000011195 # FIXME: insert proper C++ library support
11196 ld_shlibs_CXX=no
11197 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011198 ghcx*)
brynercb91a2f2006-08-25 21:14:45 +000011199 # Green Hills C++ Compiler
11200 # FIXME: insert proper C++ library support
11201 ld_shlibs_CXX=no
11202 ;;
11203 *)
11204 # FIXME: insert proper C++ library support
11205 ld_shlibs_CXX=no
11206 ;;
11207 esac
11208 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011209 freebsd[12]*)
brynercb91a2f2006-08-25 21:14:45 +000011210 # C++ shared libraries reported to be fairly broken before switch to ELF
11211 ld_shlibs_CXX=no
11212 ;;
11213 freebsd-elf*)
11214 archive_cmds_need_lc_CXX=no
11215 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011216 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000011217 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11218 # conventions
11219 ld_shlibs_CXX=yes
11220 ;;
11221 gnu*)
11222 ;;
11223 hpux9*)
11224 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11225 hardcode_libdir_separator_CXX=:
11226 export_dynamic_flag_spec_CXX='${wl}-E'
11227 hardcode_direct_CXX=yes
11228 hardcode_minus_L_CXX=yes # Not in the search PATH,
11229 # but as the default
11230 # location of the library.
11231
11232 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011233 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011234 # FIXME: insert proper C++ library support
11235 ld_shlibs_CXX=no
11236 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011237 aCC*)
brynercb91a2f2006-08-25 21:14:45 +000011238 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'
11239 # Commands to make compiler produce verbose output that lists
11240 # what "hidden" libraries, object files and flags are used when
11241 # linking a shared library.
11242 #
11243 # There doesn't appear to be a way to prevent this compiler from
11244 # explicitly linking system object files so we need to strip them
11245 # from the output so that they don't get included in the library
11246 # dependencies.
mmentovai8c2a4de2006-09-20 16:20:15 +000011247 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 +000011248 ;;
11249 *)
11250 if test "$GXX" = yes; then
11251 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'
11252 else
11253 # FIXME: insert proper C++ library support
11254 ld_shlibs_CXX=no
11255 fi
11256 ;;
11257 esac
11258 ;;
11259 hpux10*|hpux11*)
11260 if test $with_gnu_ld = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011261 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11262 hardcode_libdir_separator_CXX=:
11263
11264 case $host_cpu in
11265 hppa*64*|ia64*)
brynercb91a2f2006-08-25 21:14:45 +000011266 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
brynercb91a2f2006-08-25 21:14:45 +000011267 ;;
11268 *)
brynercb91a2f2006-08-25 21:14:45 +000011269 export_dynamic_flag_spec_CXX='${wl}-E'
11270 ;;
11271 esac
11272 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011273 case $host_cpu in
11274 hppa*64*|ia64*)
brynercb91a2f2006-08-25 21:14:45 +000011275 hardcode_direct_CXX=no
11276 hardcode_shlibpath_var_CXX=no
11277 ;;
brynercb91a2f2006-08-25 21:14:45 +000011278 *)
11279 hardcode_direct_CXX=yes
11280 hardcode_minus_L_CXX=yes # Not in the search PATH,
11281 # but as the default
11282 # location of the library.
11283 ;;
11284 esac
11285
11286 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011287 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011288 # FIXME: insert proper C++ library support
11289 ld_shlibs_CXX=no
11290 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011291 aCC*)
11292 case $host_cpu in
11293 hppa*64*)
11294 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11295 ;;
11296 ia64*)
11297 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 +000011298 ;;
11299 *)
11300 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11301 ;;
11302 esac
11303 # Commands to make compiler produce verbose output that lists
11304 # what "hidden" libraries, object files and flags are used when
11305 # linking a shared library.
11306 #
11307 # There doesn't appear to be a way to prevent this compiler from
11308 # explicitly linking system object files so we need to strip them
11309 # from the output so that they don't get included in the library
11310 # dependencies.
11311 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'
11312 ;;
11313 *)
11314 if test "$GXX" = yes; then
11315 if test $with_gnu_ld = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011316 case $host_cpu in
11317 hppa*64*)
11318 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11319 ;;
11320 ia64*)
11321 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 +000011322 ;;
11323 *)
11324 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'
11325 ;;
11326 esac
11327 fi
11328 else
11329 # FIXME: insert proper C++ library support
11330 ld_shlibs_CXX=no
11331 fi
11332 ;;
11333 esac
11334 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011335 interix3*)
11336 hardcode_direct_CXX=no
11337 hardcode_shlibpath_var_CXX=no
11338 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11339 export_dynamic_flag_spec_CXX='${wl}-E'
11340 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11341 # Instead, shared libraries are loaded at an image base (0x10000000 by
11342 # default) and relocated if they conflict, which is a slow very memory
11343 # consuming and fragmenting process. To avoid this, we pick a random,
11344 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11345 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11346 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'
11347 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'
11348 ;;
brynercb91a2f2006-08-25 21:14:45 +000011349 irix5* | irix6*)
11350 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011351 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011352 # SGI C++
mmentovai8c2a4de2006-09-20 16:20:15 +000011353 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 +000011354
11355 # Archives containing C++ object files must be created using
11356 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11357 # necessary to make sure instantiated templates are included
11358 # in the archive.
11359 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11360 ;;
11361 *)
11362 if test "$GXX" = yes; then
11363 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011364 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 +000011365 else
11366 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'
11367 fi
11368 fi
11369 link_all_deplibs_CXX=yes
11370 ;;
11371 esac
11372 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11373 hardcode_libdir_separator_CXX=:
11374 ;;
11375 linux*)
11376 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011377 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000011378 # Kuck and Associates, Inc. (KAI) C++ Compiler
11379
11380 # KCC will only create a shared library if the output file
11381 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11382 # to its proper name (with version) after linking.
11383 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'
11384 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'
11385 # Commands to make compiler produce verbose output that lists
11386 # what "hidden" libraries, object files and flags are used when
11387 # linking a shared library.
11388 #
11389 # There doesn't appear to be a way to prevent this compiler from
11390 # explicitly linking system object files so we need to strip them
11391 # from the output so that they don't get included in the library
11392 # dependencies.
11393 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'
11394
11395 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11396 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11397
11398 # Archives containing C++ object files must be created using
11399 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11400 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11401 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011402 icpc*)
brynercb91a2f2006-08-25 21:14:45 +000011403 # Intel C++
11404 with_gnu_ld=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000011405 # version 8.0 and above of icpc choke on multiply defined symbols
11406 # if we add $predep_objects and $postdep_objects, however 7.1 and
11407 # earlier do not add the objects themselves.
11408 case `$CC -V 2>&1` in
11409 *"Version 7."*)
11410 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11411 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'
11412 ;;
11413 *) # Version 8.0 or newer
11414 tmp_idyn=
11415 case $host_cpu in
11416 ia64*) tmp_idyn=' -i_dynamic';;
11417 esac
11418 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11419 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'
11420 ;;
11421 esac
brynercb91a2f2006-08-25 21:14:45 +000011422 archive_cmds_need_lc_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011423 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11424 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11425 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11426 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011427 pgCC*)
11428 # Portland Group C++ compiler
11429 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11430 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'
11431
11432 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11433 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11434 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'
11435 ;;
11436 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011437 # Compaq C++
11438 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11439 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'
11440
11441 runpath_var=LD_RUN_PATH
11442 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11443 hardcode_libdir_separator_CXX=:
11444
11445 # Commands to make compiler produce verbose output that lists
11446 # what "hidden" libraries, object files and flags are used when
11447 # linking a shared library.
11448 #
11449 # There doesn't appear to be a way to prevent this compiler from
11450 # explicitly linking system object files so we need to strip them
11451 # from the output so that they don't get included in the library
11452 # dependencies.
11453 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'
11454 ;;
11455 esac
11456 ;;
11457 lynxos*)
11458 # FIXME: insert proper C++ library support
11459 ld_shlibs_CXX=no
11460 ;;
11461 m88k*)
11462 # FIXME: insert proper C++ library support
11463 ld_shlibs_CXX=no
11464 ;;
11465 mvs*)
11466 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011467 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011468 # FIXME: insert proper C++ library support
11469 ld_shlibs_CXX=no
11470 ;;
11471 *)
11472 # FIXME: insert proper C++ library support
11473 ld_shlibs_CXX=no
11474 ;;
11475 esac
11476 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011477 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000011478 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11479 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11480 wlarc=
11481 hardcode_libdir_flag_spec_CXX='-R$libdir'
11482 hardcode_direct_CXX=yes
11483 hardcode_shlibpath_var_CXX=no
11484 fi
11485 # Workaround some broken pre-1.5 toolchains
11486 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11487 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011488 openbsd2*)
11489 # C++ shared libraries are fairly broken
11490 ld_shlibs_CXX=no
11491 ;;
11492 openbsd*)
11493 hardcode_direct_CXX=yes
11494 hardcode_shlibpath_var_CXX=no
11495 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11496 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11497 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11498 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11499 export_dynamic_flag_spec_CXX='${wl}-E'
11500 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11501 fi
11502 output_verbose_link_cmd='echo'
11503 ;;
brynercb91a2f2006-08-25 21:14:45 +000011504 osf3*)
11505 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011506 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000011507 # Kuck and Associates, Inc. (KAI) C++ Compiler
11508
11509 # KCC will only create a shared library if the output file
11510 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11511 # to its proper name (with version) after linking.
11512 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'
11513
11514 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11515 hardcode_libdir_separator_CXX=:
11516
11517 # Archives containing C++ object files must be created using
11518 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11519 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11520
11521 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011522 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000011523 # Rational C++ 2.4.1
11524 # FIXME: insert proper C++ library support
11525 ld_shlibs_CXX=no
11526 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011527 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011528 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
mmentovai8c2a4de2006-09-20 16:20:15 +000011529 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 +000011530
11531 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11532 hardcode_libdir_separator_CXX=:
11533
11534 # Commands to make compiler produce verbose output that lists
11535 # what "hidden" libraries, object files and flags are used when
11536 # linking a shared library.
11537 #
11538 # There doesn't appear to be a way to prevent this compiler from
11539 # explicitly linking system object files so we need to strip them
11540 # from the output so that they don't get included in the library
11541 # dependencies.
11542 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'
11543 ;;
11544 *)
11545 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11546 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
mmentovai8c2a4de2006-09-20 16:20:15 +000011547 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 +000011548
11549 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11550 hardcode_libdir_separator_CXX=:
11551
11552 # Commands to make compiler produce verbose output that lists
11553 # what "hidden" libraries, object files and flags are used when
11554 # linking a shared library.
11555 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11556
11557 else
11558 # FIXME: insert proper C++ library support
11559 ld_shlibs_CXX=no
11560 fi
11561 ;;
11562 esac
11563 ;;
11564 osf4* | osf5*)
11565 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011566 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000011567 # Kuck and Associates, Inc. (KAI) C++ Compiler
11568
11569 # KCC will only create a shared library if the output file
11570 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11571 # to its proper name (with version) after linking.
11572 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'
11573
11574 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11575 hardcode_libdir_separator_CXX=:
11576
11577 # Archives containing C++ object files must be created using
11578 # the KAI C++ compiler.
11579 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11580 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011581 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000011582 # Rational C++ 2.4.1
11583 # FIXME: insert proper C++ library support
11584 ld_shlibs_CXX=no
11585 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011586 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011587 allow_undefined_flag_CXX=' -expect_unresolved \*'
mmentovai8c2a4de2006-09-20 16:20:15 +000011588 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 +000011589 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11590 echo "-hidden">> $lib.exp~
mmentovai8c2a4de2006-09-20 16:20:15 +000011591 $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 +000011592 $rm $lib.exp'
11593
11594 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11595 hardcode_libdir_separator_CXX=:
11596
11597 # Commands to make compiler produce verbose output that lists
11598 # what "hidden" libraries, object files and flags are used when
11599 # linking a shared library.
11600 #
11601 # There doesn't appear to be a way to prevent this compiler from
11602 # explicitly linking system object files so we need to strip them
11603 # from the output so that they don't get included in the library
11604 # dependencies.
11605 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'
11606 ;;
11607 *)
11608 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11609 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
mmentovai8c2a4de2006-09-20 16:20:15 +000011610 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 +000011611
11612 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11613 hardcode_libdir_separator_CXX=:
11614
11615 # Commands to make compiler produce verbose output that lists
11616 # what "hidden" libraries, object files and flags are used when
11617 # linking a shared library.
11618 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11619
11620 else
11621 # FIXME: insert proper C++ library support
11622 ld_shlibs_CXX=no
11623 fi
11624 ;;
11625 esac
11626 ;;
11627 psos*)
11628 # FIXME: insert proper C++ library support
11629 ld_shlibs_CXX=no
11630 ;;
brynercb91a2f2006-08-25 21:14:45 +000011631 sunos4*)
11632 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011633 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011634 # Sun C++ 4.x
11635 # FIXME: insert proper C++ library support
11636 ld_shlibs_CXX=no
11637 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011638 lcc*)
brynercb91a2f2006-08-25 21:14:45 +000011639 # Lucid
11640 # FIXME: insert proper C++ library support
11641 ld_shlibs_CXX=no
11642 ;;
11643 *)
11644 # FIXME: insert proper C++ library support
11645 ld_shlibs_CXX=no
11646 ;;
11647 esac
11648 ;;
11649 solaris*)
11650 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011651 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011652 # Sun C++ 4.2, 5.x and Centerline C++
mmentovai8c2a4de2006-09-20 16:20:15 +000011653 archive_cmds_need_lc_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000011654 no_undefined_flag_CXX=' -zdefs'
mmentovai8c2a4de2006-09-20 16:20:15 +000011655 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 +000011656 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 +000011657 $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 +000011658
11659 hardcode_libdir_flag_spec_CXX='-R$libdir'
11660 hardcode_shlibpath_var_CXX=no
11661 case $host_os in
mmentovai8c2a4de2006-09-20 16:20:15 +000011662 solaris2.[0-5] | solaris2.[0-5].*) ;;
brynercb91a2f2006-08-25 21:14:45 +000011663 *)
11664 # The C++ compiler is used as linker so we must use $wl
11665 # flag to pass the commands to the underlying system
mmentovai8c2a4de2006-09-20 16:20:15 +000011666 # linker. We must also pass each convience library through
11667 # to the system linker between allextract/defaultextract.
11668 # The C++ compiler will combine linker options so we
11669 # cannot just pass the convience library names through
11670 # without $wl.
brynercb91a2f2006-08-25 21:14:45 +000011671 # Supported since Solaris 2.6 (maybe 2.5.1?)
mmentovai8c2a4de2006-09-20 16:20:15 +000011672 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
brynercb91a2f2006-08-25 21:14:45 +000011673 ;;
11674 esac
11675 link_all_deplibs_CXX=yes
11676
mmentovai8c2a4de2006-09-20 16:20:15 +000011677 output_verbose_link_cmd='echo'
brynercb91a2f2006-08-25 21:14:45 +000011678
11679 # Archives containing C++ object files must be created using
11680 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11681 # necessary to make sure instantiated templates are included
11682 # in the archive.
11683 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11684 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011685 gcx*)
brynercb91a2f2006-08-25 21:14:45 +000011686 # Green Hills C++ Compiler
11687 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11688
11689 # The C++ compiler must be used to create the archive.
11690 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11691 ;;
11692 *)
11693 # GNU C++ compiler with Solaris linker
11694 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11695 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11696 if $CC --version | grep -v '^2\.7' > /dev/null; then
11697 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11698 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11699 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11700
11701 # Commands to make compiler produce verbose output that lists
11702 # what "hidden" libraries, object files and flags are used when
11703 # linking a shared library.
11704 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11705 else
11706 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11707 # platform.
11708 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11709 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11710 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11711
11712 # Commands to make compiler produce verbose output that lists
11713 # what "hidden" libraries, object files and flags are used when
11714 # linking a shared library.
11715 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11716 fi
11717
11718 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11719 fi
11720 ;;
11721 esac
11722 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011723 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11724 no_undefined_flag_CXX='${wl}-z,text'
brynercb91a2f2006-08-25 21:14:45 +000011725 archive_cmds_need_lc_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011726 hardcode_shlibpath_var_CXX=no
11727 runpath_var='LD_RUN_PATH'
11728
11729 case $cc_basename in
11730 CC*)
11731 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11732 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11733 ;;
11734 *)
11735 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11736 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11737 ;;
11738 esac
11739 ;;
11740 sysv5* | sco3.2v5* | sco5v6*)
11741 # Note: We can NOT use -z defs as we might desire, because we do not
11742 # link with -lc, and that would cause any symbols used from libc to
11743 # always be unresolved, which means just about no library would
11744 # ever link correctly. If we're not using GNU ld we use -z text
11745 # though, which does catch some bad symbols but isn't as heavy-handed
11746 # as -z defs.
11747 # For security reasons, it is highly recommended that you always
11748 # use absolute paths for naming shared libraries, and exclude the
11749 # DT_RUNPATH tag from executables and libraries. But doing so
11750 # requires that you compile everything twice, which is a pain.
11751 # So that behaviour is only enabled if SCOABSPATH is set to a
11752 # non-empty value in the environment. Most likely only useful for
11753 # creating official distributions of packages.
11754 # This is a hack until libtool officially supports absolute path
11755 # names for shared libraries.
11756 no_undefined_flag_CXX='${wl}-z,text'
11757 allow_undefined_flag_CXX='${wl}-z,nodefs'
11758 archive_cmds_need_lc_CXX=no
11759 hardcode_shlibpath_var_CXX=no
11760 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11761 hardcode_libdir_separator_CXX=':'
11762 link_all_deplibs_CXX=yes
11763 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11764 runpath_var='LD_RUN_PATH'
11765
11766 case $cc_basename in
11767 CC*)
11768 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11769 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11770 ;;
11771 *)
11772 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11773 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11774 ;;
11775 esac
brynercb91a2f2006-08-25 21:14:45 +000011776 ;;
11777 tandem*)
11778 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011779 NCC*)
brynercb91a2f2006-08-25 21:14:45 +000011780 # NonStop-UX NCC 3.20
11781 # FIXME: insert proper C++ library support
11782 ld_shlibs_CXX=no
11783 ;;
11784 *)
11785 # FIXME: insert proper C++ library support
11786 ld_shlibs_CXX=no
11787 ;;
11788 esac
11789 ;;
11790 vxworks*)
11791 # FIXME: insert proper C++ library support
11792 ld_shlibs_CXX=no
11793 ;;
11794 *)
11795 # FIXME: insert proper C++ library support
11796 ld_shlibs_CXX=no
11797 ;;
11798esac
mmentovai8c2a4de2006-09-20 16:20:15 +000011799{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11800echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011801test "$ld_shlibs_CXX" = no && can_build_shared=no
11802
11803GCC_CXX="$GXX"
11804LD_CXX="$LD"
11805
11806
11807cat > conftest.$ac_ext <<EOF
11808class Foo
11809{
11810public:
11811 Foo (void) { a = 0; }
11812private:
11813 int a;
11814};
11815EOF
11816
11817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11818 (eval $ac_compile) 2>&5
11819 ac_status=$?
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; then
11822 # Parse the compiler output and extract the necessary
11823 # objects, libraries and library flags.
11824
11825 # Sentinel used to keep track of whether or not we are before
11826 # the conftest object file.
11827 pre_test_object_deps_done=no
11828
11829 # The `*' in the case matches for architectures that use `case' in
11830 # $output_verbose_cmd can trigger glob expansion during the loop
11831 # eval without this substitution.
mmentovai8c2a4de2006-09-20 16:20:15 +000011832 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
brynercb91a2f2006-08-25 21:14:45 +000011833
11834 for p in `eval $output_verbose_link_cmd`; do
11835 case $p in
11836
11837 -L* | -R* | -l*)
11838 # Some compilers place space between "-{L,R}" and the path.
11839 # Remove the space.
11840 if test $p = "-L" \
11841 || test $p = "-R"; then
11842 prev=$p
11843 continue
11844 else
11845 prev=
11846 fi
11847
11848 if test "$pre_test_object_deps_done" = no; then
11849 case $p in
11850 -L* | -R*)
11851 # Internal compiler library paths should come after those
11852 # provided the user. The postdeps already come after the
11853 # user supplied libs so there is no need to process them.
11854 if test -z "$compiler_lib_search_path_CXX"; then
11855 compiler_lib_search_path_CXX="${prev}${p}"
11856 else
11857 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11858 fi
11859 ;;
11860 # The "-l" case would never come before the object being
11861 # linked, so don't bother handling this case.
11862 esac
11863 else
11864 if test -z "$postdeps_CXX"; then
11865 postdeps_CXX="${prev}${p}"
11866 else
11867 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11868 fi
11869 fi
11870 ;;
11871
11872 *.$objext)
11873 # This assumes that the test object file only shows up
11874 # once in the compiler output.
11875 if test "$p" = "conftest.$objext"; then
11876 pre_test_object_deps_done=yes
11877 continue
11878 fi
11879
11880 if test "$pre_test_object_deps_done" = no; then
11881 if test -z "$predep_objects_CXX"; then
11882 predep_objects_CXX="$p"
11883 else
11884 predep_objects_CXX="$predep_objects_CXX $p"
11885 fi
11886 else
11887 if test -z "$postdep_objects_CXX"; then
11888 postdep_objects_CXX="$p"
11889 else
11890 postdep_objects_CXX="$postdep_objects_CXX $p"
11891 fi
11892 fi
11893 ;;
11894
11895 *) ;; # Ignore the rest.
11896
11897 esac
11898 done
11899
11900 # Clean up.
11901 rm -f a.out a.exe
11902else
11903 echo "libtool.m4: error: problem compiling CXX test program"
11904fi
11905
11906$rm -f confest.$objext
11907
mmentovai8c2a4de2006-09-20 16:20:15 +000011908# PORTME: override above test on systems where it is broken
11909case $host_os in
11910interix3*)
11911 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11912 # hack all around it, let's just trust "g++" to DTRT.
11913 predep_objects_CXX=
11914 postdep_objects_CXX=
11915 postdeps_CXX=
11916 ;;
11917
11918solaris*)
11919 case $cc_basename in
11920 CC*)
11921 # Adding this requires a known-good setup of shared libraries for
11922 # Sun compiler versions before 5.6, else PIC objects from an old
11923 # archive will be linked into the output, leading to subtle bugs.
11924 postdeps_CXX='-lCstd -lCrun'
11925 ;;
11926 esac
11927 ;;
11928esac
11929
11930
brynercb91a2f2006-08-25 21:14:45 +000011931case " $postdeps_CXX " in
11932*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11933esac
11934
11935lt_prog_compiler_wl_CXX=
11936lt_prog_compiler_pic_CXX=
11937lt_prog_compiler_static_CXX=
11938
mmentovai8c2a4de2006-09-20 16:20:15 +000011939{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11940echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011941
11942 # C++ specific cases for pic, static, wl, etc.
11943 if test "$GXX" = yes; then
11944 lt_prog_compiler_wl_CXX='-Wl,'
11945 lt_prog_compiler_static_CXX='-static'
11946
11947 case $host_os in
11948 aix*)
11949 # All AIX code is PIC.
11950 if test "$host_cpu" = ia64; then
11951 # AIX 5 now supports IA64 processor
11952 lt_prog_compiler_static_CXX='-Bstatic'
11953 fi
11954 ;;
11955 amigaos*)
11956 # FIXME: we need at least 68020 code to build shared libraries, but
11957 # adding the `-m68020' flag to GCC prevents building anything better,
11958 # like `-m68040'.
11959 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11960 ;;
11961 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11962 # PIC is the default for these OSes.
11963 ;;
11964 mingw* | os2* | pw32*)
11965 # This hack is so that the source file can tell whether it is being
11966 # built for inclusion in a dll (and should export symbols for example).
11967 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11968 ;;
11969 darwin* | rhapsody*)
11970 # PIC is the default on this platform
11971 # Common symbols not allowed in MH_DYLIB files
11972 lt_prog_compiler_pic_CXX='-fno-common'
11973 ;;
11974 *djgpp*)
11975 # DJGPP does not support shared libraries at all
11976 lt_prog_compiler_pic_CXX=
11977 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011978 interix3*)
11979 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11980 # Instead, we relocate shared libraries at runtime.
11981 ;;
brynercb91a2f2006-08-25 21:14:45 +000011982 sysv4*MP*)
11983 if test -d /usr/nec; then
11984 lt_prog_compiler_pic_CXX=-Kconform_pic
11985 fi
11986 ;;
11987 hpux*)
11988 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11989 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000011990 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000011991 hppa*64*|ia64*)
11992 ;;
11993 *)
11994 lt_prog_compiler_pic_CXX='-fPIC'
11995 ;;
11996 esac
11997 ;;
11998 *)
11999 lt_prog_compiler_pic_CXX='-fPIC'
12000 ;;
12001 esac
12002 else
12003 case $host_os in
12004 aix4* | aix5*)
12005 # All AIX code is PIC.
12006 if test "$host_cpu" = ia64; then
12007 # AIX 5 now supports IA64 processor
12008 lt_prog_compiler_static_CXX='-Bstatic'
12009 else
12010 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12011 fi
12012 ;;
12013 chorus*)
12014 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012015 cxch68*)
brynercb91a2f2006-08-25 21:14:45 +000012016 # Green Hills C++ Compiler
12017 # _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"
12018 ;;
12019 esac
12020 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012021 darwin*)
12022 # PIC is the default on this platform
12023 # Common symbols not allowed in MH_DYLIB files
12024 case $cc_basename in
12025 xlc*)
12026 lt_prog_compiler_pic_CXX='-qnocommon'
12027 lt_prog_compiler_wl_CXX='-Wl,'
12028 ;;
12029 esac
12030 ;;
brynercb91a2f2006-08-25 21:14:45 +000012031 dgux*)
12032 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012033 ec++*)
brynercb91a2f2006-08-25 21:14:45 +000012034 lt_prog_compiler_pic_CXX='-KPIC'
12035 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012036 ghcx*)
brynercb91a2f2006-08-25 21:14:45 +000012037 # Green Hills C++ Compiler
12038 lt_prog_compiler_pic_CXX='-pic'
12039 ;;
12040 *)
12041 ;;
12042 esac
12043 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012044 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000012045 # FreeBSD uses GNU C++
12046 ;;
12047 hpux9* | hpux10* | hpux11*)
12048 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012049 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012050 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000012051 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
brynercb91a2f2006-08-25 21:14:45 +000012052 if test "$host_cpu" != ia64; then
12053 lt_prog_compiler_pic_CXX='+Z'
12054 fi
12055 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012056 aCC*)
brynercb91a2f2006-08-25 21:14:45 +000012057 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000012058 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12059 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000012060 hppa*64*|ia64*)
12061 # +Z the default
12062 ;;
12063 *)
12064 lt_prog_compiler_pic_CXX='+Z'
12065 ;;
12066 esac
12067 ;;
12068 *)
12069 ;;
12070 esac
12071 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012072 interix*)
12073 # This is c89, which is MS Visual C++ (no shared libs)
12074 # Anyone wants to do a port?
12075 ;;
brynercb91a2f2006-08-25 21:14:45 +000012076 irix5* | irix6* | nonstopux*)
12077 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012078 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012079 lt_prog_compiler_wl_CXX='-Wl,'
12080 lt_prog_compiler_static_CXX='-non_shared'
12081 # CC pic flag -KPIC is the default.
12082 ;;
12083 *)
12084 ;;
12085 esac
12086 ;;
12087 linux*)
12088 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012089 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000012090 # KAI C++ Compiler
12091 lt_prog_compiler_wl_CXX='--backend -Wl,'
12092 lt_prog_compiler_pic_CXX='-fPIC'
12093 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012094 icpc* | ecpc*)
brynercb91a2f2006-08-25 21:14:45 +000012095 # Intel C++
12096 lt_prog_compiler_wl_CXX='-Wl,'
12097 lt_prog_compiler_pic_CXX='-KPIC'
12098 lt_prog_compiler_static_CXX='-static'
12099 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012100 pgCC*)
12101 # Portland Group C++ compiler.
12102 lt_prog_compiler_wl_CXX='-Wl,'
12103 lt_prog_compiler_pic_CXX='-fpic'
12104 lt_prog_compiler_static_CXX='-Bstatic'
12105 ;;
12106 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000012107 # Compaq C++
12108 # Make sure the PIC flag is empty. It appears that all Alpha
12109 # Linux and Compaq Tru64 Unix objects are PIC.
12110 lt_prog_compiler_pic_CXX=
12111 lt_prog_compiler_static_CXX='-non_shared'
12112 ;;
12113 *)
12114 ;;
12115 esac
12116 ;;
12117 lynxos*)
12118 ;;
12119 m88k*)
12120 ;;
12121 mvs*)
12122 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012123 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000012124 lt_prog_compiler_pic_CXX='-W c,exportall'
12125 ;;
12126 *)
12127 ;;
12128 esac
12129 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012130 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000012131 ;;
12132 osf3* | osf4* | osf5*)
12133 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012134 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000012135 lt_prog_compiler_wl_CXX='--backend -Wl,'
12136 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012137 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000012138 # Rational C++ 2.4.1
12139 lt_prog_compiler_pic_CXX='-pic'
12140 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012141 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000012142 # Digital/Compaq C++
12143 lt_prog_compiler_wl_CXX='-Wl,'
12144 # Make sure the PIC flag is empty. It appears that all Alpha
12145 # Linux and Compaq Tru64 Unix objects are PIC.
12146 lt_prog_compiler_pic_CXX=
12147 lt_prog_compiler_static_CXX='-non_shared'
12148 ;;
12149 *)
12150 ;;
12151 esac
12152 ;;
12153 psos*)
12154 ;;
brynercb91a2f2006-08-25 21:14:45 +000012155 solaris*)
12156 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012157 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012158 # Sun C++ 4.2, 5.x and Centerline C++
12159 lt_prog_compiler_pic_CXX='-KPIC'
12160 lt_prog_compiler_static_CXX='-Bstatic'
12161 lt_prog_compiler_wl_CXX='-Qoption ld '
12162 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012163 gcx*)
brynercb91a2f2006-08-25 21:14:45 +000012164 # Green Hills C++ Compiler
12165 lt_prog_compiler_pic_CXX='-PIC'
12166 ;;
12167 *)
12168 ;;
12169 esac
12170 ;;
12171 sunos4*)
12172 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012173 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012174 # Sun C++ 4.x
12175 lt_prog_compiler_pic_CXX='-pic'
12176 lt_prog_compiler_static_CXX='-Bstatic'
12177 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012178 lcc*)
brynercb91a2f2006-08-25 21:14:45 +000012179 # Lucid
12180 lt_prog_compiler_pic_CXX='-pic'
12181 ;;
12182 *)
12183 ;;
12184 esac
12185 ;;
12186 tandem*)
12187 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012188 NCC*)
brynercb91a2f2006-08-25 21:14:45 +000012189 # NonStop-UX NCC 3.20
12190 lt_prog_compiler_pic_CXX='-KPIC'
12191 ;;
12192 *)
12193 ;;
12194 esac
12195 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012196 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12197 case $cc_basename in
12198 CC*)
12199 lt_prog_compiler_wl_CXX='-Wl,'
12200 lt_prog_compiler_pic_CXX='-KPIC'
12201 lt_prog_compiler_static_CXX='-Bstatic'
12202 ;;
12203 esac
brynercb91a2f2006-08-25 21:14:45 +000012204 ;;
12205 vxworks*)
12206 ;;
12207 *)
12208 lt_prog_compiler_can_build_shared_CXX=no
12209 ;;
12210 esac
12211 fi
12212
mmentovai8c2a4de2006-09-20 16:20:15 +000012213{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12214echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012215
12216#
12217# Check to make sure the PIC flag actually works.
12218#
12219if test -n "$lt_prog_compiler_pic_CXX"; then
12220
mmentovai8c2a4de2006-09-20 16:20:15 +000012221{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12222echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012223if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225else
12226 lt_prog_compiler_pic_works_CXX=no
12227 ac_outfile=conftest.$ac_objext
12228 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12229 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12230 # Insert the option either (1) after the last *FLAGS variable, or
12231 # (2) before a word containing "conftest.", or (3) at the end.
12232 # Note that $ac_compile itself does not contain backslashes and begins
12233 # with a dollar sign (not a hyphen), so the echo should work correctly.
12234 # The option is referenced via a variable to avoid confusing sed.
12235 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000012236 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000012237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12238 -e 's:$: $lt_compiler_flag:'`
mmentovaiaf3c43f2007-05-17 18:34:37 +000012239 (eval echo "\"\$as_me:12239: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000012240 (eval "$lt_compile" 2>conftest.err)
12241 ac_status=$?
12242 cat conftest.err >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000012243 echo "$as_me:12243: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000012244 if (exit $ac_status) && test -s "$ac_outfile"; then
12245 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000012246 # So say no if there are warnings other than the usual output.
12247 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12248 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12249 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000012250 lt_prog_compiler_pic_works_CXX=yes
12251 fi
12252 fi
12253 $rm conftest*
12254
12255fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012256{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12257echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012258
12259if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12260 case $lt_prog_compiler_pic_CXX in
12261 "" | " "*) ;;
12262 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12263 esac
12264else
12265 lt_prog_compiler_pic_CXX=
12266 lt_prog_compiler_can_build_shared_CXX=no
12267fi
12268
12269fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012270case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000012271 # For platforms which do not support PIC, -DPIC is meaningless:
12272 *djgpp*)
12273 lt_prog_compiler_pic_CXX=
12274 ;;
12275 *)
12276 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12277 ;;
12278esac
12279
mmentovai8c2a4de2006-09-20 16:20:15 +000012280#
12281# Check to make sure the static flag actually works.
12282#
12283wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12284{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12285echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12286if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12287 echo $ECHO_N "(cached) $ECHO_C" >&6
12288else
12289 lt_prog_compiler_static_works_CXX=no
12290 save_LDFLAGS="$LDFLAGS"
12291 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12292 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12293 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12294 # The linker can only warn and ignore the option if not recognized
12295 # So say no if there are warnings
12296 if test -s conftest.err; then
12297 # Append any errors to the config.log.
12298 cat conftest.err 1>&5
12299 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12301 if diff conftest.exp conftest.er2 >/dev/null; then
12302 lt_prog_compiler_static_works_CXX=yes
12303 fi
12304 else
12305 lt_prog_compiler_static_works_CXX=yes
12306 fi
12307 fi
12308 $rm conftest*
12309 LDFLAGS="$save_LDFLAGS"
12310
12311fi
12312{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12313echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12314
12315if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12316 :
12317else
12318 lt_prog_compiler_static_CXX=
12319fi
12320
12321
12322{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12323echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012324if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12326else
12327 lt_cv_prog_compiler_c_o_CXX=no
12328 $rm -r conftest 2>/dev/null
12329 mkdir conftest
12330 cd conftest
12331 mkdir out
12332 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12333
12334 lt_compiler_flag="-o out/conftest2.$ac_objext"
12335 # Insert the option either (1) after the last *FLAGS variable, or
12336 # (2) before a word containing "conftest.", or (3) at the end.
12337 # Note that $ac_compile itself does not contain backslashes and begins
12338 # with a dollar sign (not a hyphen), so the echo should work correctly.
12339 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000012340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000012341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12342 -e 's:$: $lt_compiler_flag:'`
mmentovaiaf3c43f2007-05-17 18:34:37 +000012343 (eval echo "\"\$as_me:12343: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000012344 (eval "$lt_compile" 2>out/conftest.err)
12345 ac_status=$?
12346 cat out/conftest.err >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000012347 echo "$as_me:12347: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000012348 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12349 then
12350 # The compiler can only warn and ignore the option if not recognized
12351 # So say no if there are warnings
mmentovai8c2a4de2006-09-20 16:20:15 +000012352 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12353 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12354 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000012355 lt_cv_prog_compiler_c_o_CXX=yes
12356 fi
12357 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012358 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +000012359 $rm conftest*
12360 # SGI C++ compiler will create directory out/ii_files/ for
12361 # template instantiation
12362 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12363 $rm out/* && rmdir out
12364 cd ..
12365 rmdir conftest
12366 $rm conftest*
12367
12368fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012369{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12370echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012371
12372
12373hard_links="nottested"
12374if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12375 # do not overwrite the value of need_locks provided by the user
mmentovai8c2a4de2006-09-20 16:20:15 +000012376 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12377echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012378 hard_links=yes
12379 $rm conftest*
12380 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12381 touch conftest.a
12382 ln conftest.a conftest.b 2>&5 || hard_links=no
12383 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mmentovai8c2a4de2006-09-20 16:20:15 +000012384 { echo "$as_me:$LINENO: result: $hard_links" >&5
12385echo "${ECHO_T}$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012386 if test "$hard_links" = no; then
12387 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12388echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12389 need_locks=warn
12390 fi
12391else
12392 need_locks=no
12393fi
12394
mmentovai8c2a4de2006-09-20 16:20:15 +000012395{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12396echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012397
12398 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12399 case $host_os in
12400 aix4* | aix5*)
12401 # If we're using GNU nm, then we don't want the "-C" option.
12402 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12403 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12404 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'
12405 else
12406 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'
12407 fi
12408 ;;
12409 pw32*)
12410 export_symbols_cmds_CXX="$ltdll_cmds"
12411 ;;
12412 cygwin* | mingw*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012413 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 +000012414 ;;
12415 *)
12416 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12417 ;;
12418 esac
12419
mmentovai8c2a4de2006-09-20 16:20:15 +000012420{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12421echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012422test "$ld_shlibs_CXX" = no && can_build_shared=no
12423
brynercb91a2f2006-08-25 21:14:45 +000012424#
12425# Do we need to explicitly link libc?
12426#
12427case "x$archive_cmds_need_lc_CXX" in
12428x|xyes)
12429 # Assume -lc should be added
12430 archive_cmds_need_lc_CXX=yes
12431
12432 if test "$enable_shared" = yes && test "$GCC" = yes; then
12433 case $archive_cmds_CXX in
12434 *'~'*)
12435 # FIXME: we may have to deal with multi-command sequences.
12436 ;;
12437 '$CC '*)
12438 # Test whether the compiler implicitly links with -lc since on some
12439 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12440 # to ld, don't add -lc before -lgcc.
mmentovai8c2a4de2006-09-20 16:20:15 +000012441 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12442echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012443 $rm conftest*
12444 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12445
12446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12447 (eval $ac_compile) 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } 2>conftest.err; then
12451 soname=conftest
12452 lib=conftest
12453 libobjs=conftest.$ac_objext
12454 deplibs=
12455 wl=$lt_prog_compiler_wl_CXX
mmentovai8c2a4de2006-09-20 16:20:15 +000012456 pic_flag=$lt_prog_compiler_pic_CXX
brynercb91a2f2006-08-25 21:14:45 +000012457 compiler_flags=-v
12458 linker_flags=-v
12459 verstring=
12460 output_objdir=.
12461 libname=conftest
12462 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12463 allow_undefined_flag_CXX=
12464 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12465 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12466 ac_status=$?
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }
12469 then
12470 archive_cmds_need_lc_CXX=no
12471 else
12472 archive_cmds_need_lc_CXX=yes
12473 fi
12474 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12475 else
12476 cat conftest.err 1>&5
12477 fi
12478 $rm conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000012479 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12480echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012481 ;;
12482 esac
12483 fi
12484 ;;
12485esac
12486
mmentovai8c2a4de2006-09-20 16:20:15 +000012487{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12488echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012489library_names_spec=
12490libname_spec='lib$name'
12491soname_spec=
12492shrext_cmds=".so"
12493postinstall_cmds=
12494postuninstall_cmds=
12495finish_cmds=
12496finish_eval=
12497shlibpath_var=
12498shlibpath_overrides_runpath=unknown
12499version_type=none
12500dynamic_linker="$host_os ld.so"
12501sys_lib_dlsearch_path_spec="/lib /usr/lib"
12502if test "$GCC" = yes; then
12503 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12504 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12505 # if the path contains ";" then we assume it to be the separator
12506 # otherwise default to the standard path separator (i.e. ":") - it is
12507 # assumed that no part of a normal pathname contains ";" but that should
12508 # okay in the real world where ";" in dirpaths is itself problematic.
12509 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12510 else
12511 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12512 fi
12513else
12514 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12515fi
12516need_lib_prefix=unknown
12517hardcode_into_libs=no
12518
12519# when you set need_version to no, make sure it does not cause -set_version
12520# flags to be left without arguments
12521need_version=unknown
12522
12523case $host_os in
12524aix3*)
12525 version_type=linux
12526 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12527 shlibpath_var=LIBPATH
12528
12529 # AIX 3 has no versioning support, so we append a major version to the name.
12530 soname_spec='${libname}${release}${shared_ext}$major'
12531 ;;
12532
12533aix4* | aix5*)
12534 version_type=linux
12535 need_lib_prefix=no
12536 need_version=no
12537 hardcode_into_libs=yes
12538 if test "$host_cpu" = ia64; then
12539 # AIX 5 supports IA64
12540 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12541 shlibpath_var=LD_LIBRARY_PATH
12542 else
12543 # With GCC up to 2.95.x, collect2 would create an import file
12544 # for dependence libraries. The import file would start with
12545 # the line `#! .'. This would cause the generated library to
12546 # depend on `.', always an invalid library. This was fixed in
12547 # development snapshots of GCC prior to 3.0.
12548 case $host_os in
12549 aix4 | aix4.[01] | aix4.[01].*)
12550 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12551 echo ' yes '
12552 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12553 :
12554 else
12555 can_build_shared=no
12556 fi
12557 ;;
12558 esac
12559 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12560 # soname into executable. Probably we can add versioning support to
12561 # collect2, so additional links can be useful in future.
12562 if test "$aix_use_runtimelinking" = yes; then
12563 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12564 # instead of lib<name>.a to let people know that these are not
12565 # typical AIX shared libraries.
12566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12567 else
12568 # We preserve .a as extension for shared libraries through AIX4.2
12569 # and later when we are not doing run time linking.
12570 library_names_spec='${libname}${release}.a $libname.a'
12571 soname_spec='${libname}${release}${shared_ext}$major'
12572 fi
12573 shlibpath_var=LIBPATH
12574 fi
12575 ;;
12576
12577amigaos*)
12578 library_names_spec='$libname.ixlibrary $libname.a'
12579 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12580 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'
12581 ;;
12582
12583beos*)
12584 library_names_spec='${libname}${shared_ext}'
12585 dynamic_linker="$host_os ld.so"
12586 shlibpath_var=LIBRARY_PATH
12587 ;;
12588
mmentovai8c2a4de2006-09-20 16:20:15 +000012589bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000012590 version_type=linux
12591 need_version=no
12592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12593 soname_spec='${libname}${release}${shared_ext}$major'
12594 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12595 shlibpath_var=LD_LIBRARY_PATH
12596 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12597 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12598 # the default ld.so.conf also contains /usr/contrib/lib and
12599 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12600 # libtool to hard-code these into programs
12601 ;;
12602
12603cygwin* | mingw* | pw32*)
12604 version_type=windows
12605 shrext_cmds=".dll"
12606 need_version=no
12607 need_lib_prefix=no
12608
12609 case $GCC,$host_os in
12610 yes,cygwin* | yes,mingw* | yes,pw32*)
12611 library_names_spec='$libname.dll.a'
12612 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12613 postinstall_cmds='base_file=`basename \${file}`~
12614 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12615 dldir=$destdir/`dirname \$dlpath`~
12616 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000012617 $install_prog $dir/$dlname \$dldir/$dlname~
12618 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000012619 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12620 dlpath=$dir/\$dldll~
12621 $rm \$dlpath'
12622 shlibpath_overrides_runpath=yes
12623
12624 case $host_os in
12625 cygwin*)
12626 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12627 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12628 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12629 ;;
12630 mingw*)
12631 # MinGW DLLs use traditional 'lib' prefix
12632 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12633 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12634 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12635 # It is most probably a Windows format PATH printed by
12636 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12637 # path with ; separators, and with drive letters. We can handle the
12638 # drive letters (cygwin fileutils understands them), so leave them,
12639 # especially as we might pass files found there to a mingw objdump,
12640 # which wouldn't understand a cygwinified path. Ahh.
12641 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12642 else
12643 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12644 fi
12645 ;;
12646 pw32*)
12647 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000012648 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 +000012649 ;;
12650 esac
12651 ;;
12652
12653 *)
12654 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12655 ;;
12656 esac
12657 dynamic_linker='Win32 ld.exe'
12658 # FIXME: first we should search . and the directory the executable is in
12659 shlibpath_var=PATH
12660 ;;
12661
12662darwin* | rhapsody*)
12663 dynamic_linker="$host_os dyld"
12664 version_type=darwin
12665 need_lib_prefix=no
12666 need_version=no
12667 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12668 soname_spec='${libname}${release}${major}$shared_ext'
12669 shlibpath_overrides_runpath=yes
12670 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000012671 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
brynercb91a2f2006-08-25 21:14:45 +000012672 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12673 if test "$GCC" = yes; then
12674 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12675 else
12676 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12677 fi
12678 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12679 ;;
12680
12681dgux*)
12682 version_type=linux
12683 need_lib_prefix=no
12684 need_version=no
12685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12686 soname_spec='${libname}${release}${shared_ext}$major'
12687 shlibpath_var=LD_LIBRARY_PATH
12688 ;;
12689
12690freebsd1*)
12691 dynamic_linker=no
12692 ;;
12693
12694kfreebsd*-gnu)
12695 version_type=linux
12696 need_lib_prefix=no
12697 need_version=no
12698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12699 soname_spec='${libname}${release}${shared_ext}$major'
12700 shlibpath_var=LD_LIBRARY_PATH
12701 shlibpath_overrides_runpath=no
12702 hardcode_into_libs=yes
12703 dynamic_linker='GNU ld.so'
12704 ;;
12705
mmentovai8c2a4de2006-09-20 16:20:15 +000012706freebsd* | dragonfly*)
12707 # DragonFly does not have aout. When/if they implement a new
12708 # versioning mechanism, adjust this.
12709 if test -x /usr/bin/objformat; then
12710 objformat=`/usr/bin/objformat`
12711 else
12712 case $host_os in
12713 freebsd[123]*) objformat=aout ;;
12714 *) objformat=elf ;;
12715 esac
12716 fi
brynercb91a2f2006-08-25 21:14:45 +000012717 version_type=freebsd-$objformat
12718 case $version_type in
12719 freebsd-elf*)
12720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12721 need_version=no
12722 need_lib_prefix=no
12723 ;;
12724 freebsd-*)
12725 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12726 need_version=yes
12727 ;;
12728 esac
12729 shlibpath_var=LD_LIBRARY_PATH
12730 case $host_os in
12731 freebsd2*)
12732 shlibpath_overrides_runpath=yes
12733 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012734 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000012735 shlibpath_overrides_runpath=yes
12736 hardcode_into_libs=yes
12737 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012738 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12739 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000012740 shlibpath_overrides_runpath=no
12741 hardcode_into_libs=yes
12742 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012743 freebsd*) # from 4.6 on
12744 shlibpath_overrides_runpath=yes
12745 hardcode_into_libs=yes
12746 ;;
brynercb91a2f2006-08-25 21:14:45 +000012747 esac
12748 ;;
12749
12750gnu*)
12751 version_type=linux
12752 need_lib_prefix=no
12753 need_version=no
12754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12755 soname_spec='${libname}${release}${shared_ext}$major'
12756 shlibpath_var=LD_LIBRARY_PATH
12757 hardcode_into_libs=yes
12758 ;;
12759
12760hpux9* | hpux10* | hpux11*)
12761 # Give a soname corresponding to the major version so that dld.sl refuses to
12762 # link against other versions.
12763 version_type=sunos
12764 need_lib_prefix=no
12765 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000012766 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000012767 ia64*)
12768 shrext_cmds='.so'
12769 hardcode_into_libs=yes
12770 dynamic_linker="$host_os dld.so"
12771 shlibpath_var=LD_LIBRARY_PATH
12772 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12774 soname_spec='${libname}${release}${shared_ext}$major'
12775 if test "X$HPUX_IA64_MODE" = X32; then
12776 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12777 else
12778 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12779 fi
12780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12781 ;;
12782 hppa*64*)
12783 shrext_cmds='.sl'
12784 hardcode_into_libs=yes
12785 dynamic_linker="$host_os dld.sl"
12786 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12789 soname_spec='${libname}${release}${shared_ext}$major'
12790 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12792 ;;
12793 *)
12794 shrext_cmds='.sl'
12795 dynamic_linker="$host_os dld.sl"
12796 shlibpath_var=SHLIB_PATH
12797 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12799 soname_spec='${libname}${release}${shared_ext}$major'
12800 ;;
12801 esac
12802 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12803 postinstall_cmds='chmod 555 $lib'
12804 ;;
12805
mmentovai8c2a4de2006-09-20 16:20:15 +000012806interix3*)
12807 version_type=linux
12808 need_lib_prefix=no
12809 need_version=no
12810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12811 soname_spec='${libname}${release}${shared_ext}$major'
12812 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12813 shlibpath_var=LD_LIBRARY_PATH
12814 shlibpath_overrides_runpath=no
12815 hardcode_into_libs=yes
12816 ;;
12817
brynercb91a2f2006-08-25 21:14:45 +000012818irix5* | irix6* | nonstopux*)
12819 case $host_os in
12820 nonstopux*) version_type=nonstopux ;;
12821 *)
12822 if test "$lt_cv_prog_gnu_ld" = yes; then
12823 version_type=linux
12824 else
12825 version_type=irix
12826 fi ;;
12827 esac
12828 need_lib_prefix=no
12829 need_version=no
12830 soname_spec='${libname}${release}${shared_ext}$major'
12831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12832 case $host_os in
12833 irix5* | nonstopux*)
12834 libsuff= shlibsuff=
12835 ;;
12836 *)
12837 case $LD in # libtool.m4 will add one of these switches to LD
12838 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12839 libsuff= shlibsuff= libmagic=32-bit;;
12840 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12841 libsuff=32 shlibsuff=N32 libmagic=N32;;
12842 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12843 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12844 *) libsuff= shlibsuff= libmagic=never-match;;
12845 esac
12846 ;;
12847 esac
12848 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12849 shlibpath_overrides_runpath=no
12850 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12851 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12852 hardcode_into_libs=yes
12853 ;;
12854
12855# No shared lib support for Linux oldld, aout, or coff.
12856linux*oldld* | linux*aout* | linux*coff*)
12857 dynamic_linker=no
12858 ;;
12859
12860# This must be Linux ELF.
12861linux*)
12862 version_type=linux
12863 need_lib_prefix=no
12864 need_version=no
12865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12866 soname_spec='${libname}${release}${shared_ext}$major'
12867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12868 shlibpath_var=LD_LIBRARY_PATH
12869 shlibpath_overrides_runpath=no
12870 # This implies no fast_install, which is unacceptable.
12871 # Some rework will be needed to allow for fast_install
12872 # before this can be enabled.
12873 hardcode_into_libs=yes
12874
12875 # Append ld.so.conf contents to the search path
12876 if test -f /etc/ld.so.conf; then
mmentovai8c2a4de2006-09-20 16:20:15 +000012877 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
brynercb91a2f2006-08-25 21:14:45 +000012878 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12879 fi
12880
12881 # We used to test for /lib/ld.so.1 and disable shared libraries on
12882 # powerpc, because MkLinux only supported shared libraries with the
12883 # GNU dynamic linker. Since this was broken with cross compilers,
12884 # most powerpc-linux boxes support dynamic linking these days and
12885 # people can always --disable-shared, the test was removed, and we
12886 # assume the GNU/Linux dynamic linker is in use.
12887 dynamic_linker='GNU/Linux ld.so'
12888 ;;
12889
brynercb91a2f2006-08-25 21:14:45 +000012890knetbsd*-gnu)
12891 version_type=linux
12892 need_lib_prefix=no
12893 need_version=no
12894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12895 soname_spec='${libname}${release}${shared_ext}$major'
12896 shlibpath_var=LD_LIBRARY_PATH
12897 shlibpath_overrides_runpath=no
12898 hardcode_into_libs=yes
12899 dynamic_linker='GNU ld.so'
12900 ;;
12901
12902netbsd*)
12903 version_type=sunos
12904 need_lib_prefix=no
12905 need_version=no
12906 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12908 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12909 dynamic_linker='NetBSD (a.out) ld.so'
12910 else
12911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12912 soname_spec='${libname}${release}${shared_ext}$major'
12913 dynamic_linker='NetBSD ld.elf_so'
12914 fi
12915 shlibpath_var=LD_LIBRARY_PATH
12916 shlibpath_overrides_runpath=yes
12917 hardcode_into_libs=yes
12918 ;;
12919
12920newsos6)
12921 version_type=linux
12922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12923 shlibpath_var=LD_LIBRARY_PATH
12924 shlibpath_overrides_runpath=yes
12925 ;;
12926
12927nto-qnx*)
12928 version_type=linux
12929 need_lib_prefix=no
12930 need_version=no
12931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12932 soname_spec='${libname}${release}${shared_ext}$major'
12933 shlibpath_var=LD_LIBRARY_PATH
12934 shlibpath_overrides_runpath=yes
12935 ;;
12936
12937openbsd*)
12938 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000012939 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000012940 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000012941 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12942 case $host_os in
12943 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12944 *) need_version=no ;;
12945 esac
brynercb91a2f2006-08-25 21:14:45 +000012946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12948 shlibpath_var=LD_LIBRARY_PATH
12949 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12950 case $host_os in
12951 openbsd2.[89] | openbsd2.[89].*)
12952 shlibpath_overrides_runpath=no
12953 ;;
12954 *)
12955 shlibpath_overrides_runpath=yes
12956 ;;
12957 esac
12958 else
12959 shlibpath_overrides_runpath=yes
12960 fi
12961 ;;
12962
12963os2*)
12964 libname_spec='$name'
12965 shrext_cmds=".dll"
12966 need_lib_prefix=no
12967 library_names_spec='$libname${shared_ext} $libname.a'
12968 dynamic_linker='OS/2 ld.exe'
12969 shlibpath_var=LIBPATH
12970 ;;
12971
12972osf3* | osf4* | osf5*)
12973 version_type=osf
12974 need_lib_prefix=no
12975 need_version=no
12976 soname_spec='${libname}${release}${shared_ext}$major'
12977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12978 shlibpath_var=LD_LIBRARY_PATH
12979 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12980 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12981 ;;
12982
brynercb91a2f2006-08-25 21:14:45 +000012983solaris*)
12984 version_type=linux
12985 need_lib_prefix=no
12986 need_version=no
12987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12988 soname_spec='${libname}${release}${shared_ext}$major'
12989 shlibpath_var=LD_LIBRARY_PATH
12990 shlibpath_overrides_runpath=yes
12991 hardcode_into_libs=yes
12992 # ldd complains unless libraries are executable
12993 postinstall_cmds='chmod +x $lib'
12994 ;;
12995
12996sunos4*)
12997 version_type=sunos
12998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12999 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13000 shlibpath_var=LD_LIBRARY_PATH
13001 shlibpath_overrides_runpath=yes
13002 if test "$with_gnu_ld" = yes; then
13003 need_lib_prefix=no
13004 fi
13005 need_version=yes
13006 ;;
13007
mmentovai8c2a4de2006-09-20 16:20:15 +000013008sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000013009 version_type=linux
13010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13011 soname_spec='${libname}${release}${shared_ext}$major'
13012 shlibpath_var=LD_LIBRARY_PATH
13013 case $host_vendor in
13014 sni)
13015 shlibpath_overrides_runpath=no
13016 need_lib_prefix=no
13017 export_dynamic_flag_spec='${wl}-Blargedynsym'
13018 runpath_var=LD_RUN_PATH
13019 ;;
13020 siemens)
13021 need_lib_prefix=no
13022 ;;
13023 motorola)
13024 need_lib_prefix=no
13025 need_version=no
13026 shlibpath_overrides_runpath=no
13027 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13028 ;;
13029 esac
13030 ;;
13031
13032sysv4*MP*)
13033 if test -d /usr/nec ;then
13034 version_type=linux
13035 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13036 soname_spec='$libname${shared_ext}.$major'
13037 shlibpath_var=LD_LIBRARY_PATH
13038 fi
13039 ;;
13040
mmentovai8c2a4de2006-09-20 16:20:15 +000013041sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13042 version_type=freebsd-elf
13043 need_lib_prefix=no
13044 need_version=no
13045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13046 soname_spec='${libname}${release}${shared_ext}$major'
13047 shlibpath_var=LD_LIBRARY_PATH
13048 hardcode_into_libs=yes
13049 if test "$with_gnu_ld" = yes; then
13050 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13051 shlibpath_overrides_runpath=no
13052 else
13053 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13054 shlibpath_overrides_runpath=yes
13055 case $host_os in
13056 sco3.2v5*)
13057 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13058 ;;
13059 esac
13060 fi
13061 sys_lib_dlsearch_path_spec='/usr/lib'
13062 ;;
13063
brynercb91a2f2006-08-25 21:14:45 +000013064uts4*)
13065 version_type=linux
13066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13067 soname_spec='${libname}${release}${shared_ext}$major'
13068 shlibpath_var=LD_LIBRARY_PATH
13069 ;;
13070
13071*)
13072 dynamic_linker=no
13073 ;;
13074esac
mmentovai8c2a4de2006-09-20 16:20:15 +000013075{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13076echo "${ECHO_T}$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013077test "$dynamic_linker" = no && can_build_shared=no
13078
mmentovai8c2a4de2006-09-20 16:20:15 +000013079variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13080if test "$GCC" = yes; then
13081 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13082fi
13083
13084{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13085echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013086hardcode_action_CXX=
13087if test -n "$hardcode_libdir_flag_spec_CXX" || \
mmentovai8c2a4de2006-09-20 16:20:15 +000013088 test -n "$runpath_var_CXX" || \
13089 test "X$hardcode_automatic_CXX" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000013090
13091 # We can hardcode non-existant directories.
13092 if test "$hardcode_direct_CXX" != no &&
13093 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13094 # have to relink, otherwise we might link with an installed library
13095 # when we should be linking with a yet-to-be-installed one
13096 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13097 test "$hardcode_minus_L_CXX" != no; then
13098 # Linking always hardcodes the temporary library directory.
13099 hardcode_action_CXX=relink
13100 else
13101 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13102 hardcode_action_CXX=immediate
13103 fi
13104else
13105 # We cannot hardcode anything, or else we can only hardcode existing
13106 # directories.
13107 hardcode_action_CXX=unsupported
13108fi
mmentovai8c2a4de2006-09-20 16:20:15 +000013109{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13110echo "${ECHO_T}$hardcode_action_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013111
13112if test "$hardcode_action_CXX" = relink; then
13113 # Fast installation is not supported
13114 enable_fast_install=no
13115elif test "$shlibpath_overrides_runpath" = yes ||
13116 test "$enable_shared" = no; then
13117 # Fast installation is not necessary
13118 enable_fast_install=needless
13119fi
13120
brynercb91a2f2006-08-25 21:14:45 +000013121
13122# The else clause should only fire when bootstrapping the
13123# libtool distribution, otherwise you forgot to ship ltmain.sh
13124# with your package, and you will get complaints that there are
13125# no rules to generate ltmain.sh.
13126if test -f "$ltmain"; then
13127 # See if we are running on zsh, and set the options which allow our commands through
13128 # without removal of \ escapes.
13129 if test -n "${ZSH_VERSION+set}" ; then
13130 setopt NO_GLOB_SUBST
13131 fi
13132 # Now quote all the things that may contain metacharacters while being
13133 # careful not to overquote the AC_SUBSTed values. We take copies of the
13134 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000013135 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000013136 SED SHELL STRIP \
13137 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13138 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13139 deplibs_check_method reload_flag reload_cmds need_locks \
13140 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13141 lt_cv_sys_global_symbol_to_c_name_address \
13142 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13143 old_postinstall_cmds old_postuninstall_cmds \
13144 compiler_CXX \
13145 CC_CXX \
13146 LD_CXX \
13147 lt_prog_compiler_wl_CXX \
13148 lt_prog_compiler_pic_CXX \
13149 lt_prog_compiler_static_CXX \
13150 lt_prog_compiler_no_builtin_flag_CXX \
13151 export_dynamic_flag_spec_CXX \
13152 thread_safe_flag_spec_CXX \
13153 whole_archive_flag_spec_CXX \
13154 enable_shared_with_static_runtimes_CXX \
13155 old_archive_cmds_CXX \
13156 old_archive_from_new_cmds_CXX \
13157 predep_objects_CXX \
13158 postdep_objects_CXX \
13159 predeps_CXX \
13160 postdeps_CXX \
13161 compiler_lib_search_path_CXX \
13162 archive_cmds_CXX \
13163 archive_expsym_cmds_CXX \
13164 postinstall_cmds_CXX \
13165 postuninstall_cmds_CXX \
13166 old_archive_from_expsyms_cmds_CXX \
13167 allow_undefined_flag_CXX \
13168 no_undefined_flag_CXX \
13169 export_symbols_cmds_CXX \
13170 hardcode_libdir_flag_spec_CXX \
13171 hardcode_libdir_flag_spec_ld_CXX \
13172 hardcode_libdir_separator_CXX \
13173 hardcode_automatic_CXX \
13174 module_cmds_CXX \
13175 module_expsym_cmds_CXX \
13176 lt_cv_prog_compiler_c_o_CXX \
13177 exclude_expsyms_CXX \
13178 include_expsyms_CXX; do
13179
13180 case $var in
13181 old_archive_cmds_CXX | \
13182 old_archive_from_new_cmds_CXX | \
13183 archive_cmds_CXX | \
13184 archive_expsym_cmds_CXX | \
13185 module_cmds_CXX | \
13186 module_expsym_cmds_CXX | \
13187 old_archive_from_expsyms_cmds_CXX | \
13188 export_symbols_cmds_CXX | \
13189 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13190 postinstall_cmds | postuninstall_cmds | \
13191 old_postinstall_cmds | old_postuninstall_cmds | \
13192 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13193 # Double-quote double-evaled strings.
13194 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13195 ;;
13196 *)
13197 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13198 ;;
13199 esac
13200 done
13201
13202 case $lt_echo in
13203 *'\$0 --fallback-echo"')
13204 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13205 ;;
13206 esac
13207
13208cfgfile="$ofile"
13209
13210 cat <<__EOF__ >> "$cfgfile"
13211# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13212
13213# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13214
13215# Shell to use when invoking shell scripts.
13216SHELL=$lt_SHELL
13217
13218# Whether or not to build shared libraries.
13219build_libtool_libs=$enable_shared
13220
13221# Whether or not to build static libraries.
13222build_old_libs=$enable_static
13223
13224# Whether or not to add -lc for building shared libraries.
13225build_libtool_need_lc=$archive_cmds_need_lc_CXX
13226
13227# Whether or not to disallow shared libs when runtime libs are static
13228allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13229
13230# Whether or not to optimize for fast installation.
13231fast_install=$enable_fast_install
13232
13233# The host system.
13234host_alias=$host_alias
13235host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000013236host_os=$host_os
13237
13238# The build system.
13239build_alias=$build_alias
13240build=$build
13241build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000013242
13243# An echo program that does not interpret backslashes.
13244echo=$lt_echo
13245
13246# The archiver.
13247AR=$lt_AR
13248AR_FLAGS=$lt_AR_FLAGS
13249
13250# A C compiler.
13251LTCC=$lt_LTCC
13252
mmentovai8c2a4de2006-09-20 16:20:15 +000013253# LTCC compiler flags.
13254LTCFLAGS=$lt_LTCFLAGS
13255
brynercb91a2f2006-08-25 21:14:45 +000013256# A language-specific compiler.
13257CC=$lt_compiler_CXX
13258
13259# Is the compiler the GNU C compiler?
13260with_gcc=$GCC_CXX
13261
13262# An ERE matcher.
13263EGREP=$lt_EGREP
13264
13265# The linker used to build libraries.
13266LD=$lt_LD_CXX
13267
13268# Whether we need hard or soft links.
13269LN_S=$lt_LN_S
13270
13271# A BSD-compatible nm program.
13272NM=$lt_NM
13273
13274# A symbol stripping program
13275STRIP=$lt_STRIP
13276
13277# Used to examine libraries when file_magic_cmd begins "file"
13278MAGIC_CMD=$MAGIC_CMD
13279
13280# Used on cygwin: DLL creation program.
13281DLLTOOL="$DLLTOOL"
13282
13283# Used on cygwin: object dumper.
13284OBJDUMP="$OBJDUMP"
13285
13286# Used on cygwin: assembler.
13287AS="$AS"
13288
13289# The name of the directory that contains temporary libtool files.
13290objdir=$objdir
13291
13292# How to create reloadable object files.
13293reload_flag=$lt_reload_flag
13294reload_cmds=$lt_reload_cmds
13295
13296# How to pass a linker flag through the compiler.
13297wl=$lt_lt_prog_compiler_wl_CXX
13298
13299# Object file suffix (normally "o").
13300objext="$ac_objext"
13301
13302# Old archive suffix (normally "a").
13303libext="$libext"
13304
13305# Shared library suffix (normally ".so").
13306shrext_cmds='$shrext_cmds'
13307
13308# Executable file suffix (normally "").
13309exeext="$exeext"
13310
13311# Additional compiler flags for building library objects.
13312pic_flag=$lt_lt_prog_compiler_pic_CXX
13313pic_mode=$pic_mode
13314
13315# What is the maximum length of a command?
13316max_cmd_len=$lt_cv_sys_max_cmd_len
13317
13318# Does compiler simultaneously support -c and -o options?
13319compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13320
mmentovai8c2a4de2006-09-20 16:20:15 +000013321# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000013322need_locks=$lt_need_locks
13323
13324# Do we need the lib prefix for modules?
13325need_lib_prefix=$need_lib_prefix
13326
13327# Do we need a version for libraries?
13328need_version=$need_version
13329
13330# Whether dlopen is supported.
13331dlopen_support=$enable_dlopen
13332
13333# Whether dlopen of programs is supported.
13334dlopen_self=$enable_dlopen_self
13335
13336# Whether dlopen of statically linked programs is supported.
13337dlopen_self_static=$enable_dlopen_self_static
13338
13339# Compiler flag to prevent dynamic linking.
13340link_static_flag=$lt_lt_prog_compiler_static_CXX
13341
13342# Compiler flag to turn off builtin functions.
13343no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13344
13345# Compiler flag to allow reflexive dlopens.
13346export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13347
13348# Compiler flag to generate shared objects directly from archives.
13349whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13350
13351# Compiler flag to generate thread-safe objects.
13352thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13353
13354# Library versioning type.
13355version_type=$version_type
13356
13357# Format of library name prefix.
13358libname_spec=$lt_libname_spec
13359
13360# List of archive names. First name is the real one, the rest are links.
13361# The last name is the one that the linker finds with -lNAME.
13362library_names_spec=$lt_library_names_spec
13363
13364# The coded name of the library, if different from the real name.
13365soname_spec=$lt_soname_spec
13366
13367# Commands used to build and install an old-style archive.
13368RANLIB=$lt_RANLIB
13369old_archive_cmds=$lt_old_archive_cmds_CXX
13370old_postinstall_cmds=$lt_old_postinstall_cmds
13371old_postuninstall_cmds=$lt_old_postuninstall_cmds
13372
13373# Create an old-style archive from a shared archive.
13374old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13375
13376# Create a temporary old-style archive to link instead of a shared archive.
13377old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13378
13379# Commands used to build and install a shared archive.
13380archive_cmds=$lt_archive_cmds_CXX
13381archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13382postinstall_cmds=$lt_postinstall_cmds
13383postuninstall_cmds=$lt_postuninstall_cmds
13384
13385# Commands used to build a loadable module (assumed same as above if empty)
13386module_cmds=$lt_module_cmds_CXX
13387module_expsym_cmds=$lt_module_expsym_cmds_CXX
13388
13389# Commands to strip libraries.
13390old_striplib=$lt_old_striplib
13391striplib=$lt_striplib
13392
13393# Dependencies to place before the objects being linked to create a
13394# shared library.
13395predep_objects=$lt_predep_objects_CXX
13396
13397# Dependencies to place after the objects being linked to create a
13398# shared library.
13399postdep_objects=$lt_postdep_objects_CXX
13400
13401# Dependencies to place before the objects being linked to create a
13402# shared library.
13403predeps=$lt_predeps_CXX
13404
13405# Dependencies to place after the objects being linked to create a
13406# shared library.
13407postdeps=$lt_postdeps_CXX
13408
13409# The library search path used internally by the compiler when linking
13410# a shared library.
13411compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13412
13413# Method to check whether dependent libraries are shared objects.
13414deplibs_check_method=$lt_deplibs_check_method
13415
13416# Command to use when deplibs_check_method == file_magic.
13417file_magic_cmd=$lt_file_magic_cmd
13418
13419# Flag that allows shared libraries with undefined symbols to be built.
13420allow_undefined_flag=$lt_allow_undefined_flag_CXX
13421
13422# Flag that forces no undefined symbols.
13423no_undefined_flag=$lt_no_undefined_flag_CXX
13424
13425# Commands used to finish a libtool library installation in a directory.
13426finish_cmds=$lt_finish_cmds
13427
13428# Same as above, but a single script fragment to be evaled but not shown.
13429finish_eval=$lt_finish_eval
13430
13431# Take the output of nm and produce a listing of raw symbols and C names.
13432global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13433
13434# Transform the output of nm in a proper C declaration
13435global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13436
13437# Transform the output of nm in a C name address pair
13438global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13439
13440# This is the shared library runtime path variable.
13441runpath_var=$runpath_var
13442
13443# This is the shared library path variable.
13444shlibpath_var=$shlibpath_var
13445
13446# Is shlibpath searched before the hard-coded library search path?
13447shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13448
13449# How to hardcode a shared library path into an executable.
13450hardcode_action=$hardcode_action_CXX
13451
13452# Whether we should hardcode library paths into libraries.
13453hardcode_into_libs=$hardcode_into_libs
13454
13455# Flag to hardcode \$libdir into a binary during linking.
13456# This must work even if \$libdir does not exist.
13457hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13458
13459# If ld is used when linking, flag to hardcode \$libdir into
13460# a binary during linking. This must work even if \$libdir does
13461# not exist.
13462hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13463
13464# Whether we need a single -rpath flag with a separated argument.
13465hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13466
13467# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13468# resulting binary.
13469hardcode_direct=$hardcode_direct_CXX
13470
13471# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13472# resulting binary.
13473hardcode_minus_L=$hardcode_minus_L_CXX
13474
13475# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13476# the resulting binary.
13477hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13478
13479# Set to yes if building a shared library automatically hardcodes DIR into the library
13480# and all subsequent libraries and executables linked against it.
13481hardcode_automatic=$hardcode_automatic_CXX
13482
13483# Variables whose values should be saved in libtool wrapper scripts and
13484# restored at relink time.
13485variables_saved_for_relink="$variables_saved_for_relink"
13486
13487# Whether libtool must link a program against all its dependency libraries.
13488link_all_deplibs=$link_all_deplibs_CXX
13489
13490# Compile-time system search path for libraries
13491sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13492
13493# Run-time system search path for libraries
13494sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13495
13496# Fix the shell variable \$srcfile for the compiler.
13497fix_srcfile_path="$fix_srcfile_path_CXX"
13498
13499# Set to yes if exported symbols are required.
13500always_export_symbols=$always_export_symbols_CXX
13501
13502# The commands to list exported symbols.
13503export_symbols_cmds=$lt_export_symbols_cmds_CXX
13504
13505# The commands to extract the exported symbol list from a shared archive.
13506extract_expsyms_cmds=$lt_extract_expsyms_cmds
13507
13508# Symbols that should not be listed in the preloaded symbols.
13509exclude_expsyms=$lt_exclude_expsyms_CXX
13510
13511# Symbols that must always be exported.
13512include_expsyms=$lt_include_expsyms_CXX
13513
13514# ### END LIBTOOL TAG CONFIG: $tagname
13515
13516__EOF__
13517
13518
13519else
13520 # If there is no Makefile yet, we rely on a make rule to execute
13521 # `config.status --recheck' to rerun these tests and create the
13522 # libtool script then.
13523 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13524 if test -f "$ltmain_in"; then
13525 test -f Makefile && make "$ltmain"
13526 fi
13527fi
13528
13529
13530ac_ext=c
13531ac_cpp='$CPP $CPPFLAGS'
13532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13534ac_compiler_gnu=$ac_cv_c_compiler_gnu
13535
13536CC=$lt_save_CC
13537LDCXX=$LD
13538LD=$lt_save_LD
13539GCC=$lt_save_GCC
13540with_gnu_ldcxx=$with_gnu_ld
13541with_gnu_ld=$lt_save_with_gnu_ld
13542lt_cv_path_LDCXX=$lt_cv_path_LD
13543lt_cv_path_LD=$lt_save_path_LD
13544lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13545lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13546
13547 else
13548 tagname=""
13549 fi
13550 ;;
13551
13552 F77)
13553 if test -n "$F77" && test "X$F77" != "Xno"; then
13554
13555ac_ext=f
13556ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13557ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13558ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13559
13560
13561archive_cmds_need_lc_F77=no
13562allow_undefined_flag_F77=
13563always_export_symbols_F77=no
13564archive_expsym_cmds_F77=
13565export_dynamic_flag_spec_F77=
13566hardcode_direct_F77=no
13567hardcode_libdir_flag_spec_F77=
13568hardcode_libdir_flag_spec_ld_F77=
13569hardcode_libdir_separator_F77=
13570hardcode_minus_L_F77=no
13571hardcode_automatic_F77=no
13572module_cmds_F77=
13573module_expsym_cmds_F77=
13574link_all_deplibs_F77=unknown
13575old_archive_cmds_F77=$old_archive_cmds
13576no_undefined_flag_F77=
13577whole_archive_flag_spec_F77=
13578enable_shared_with_static_runtimes_F77=no
13579
13580# Source file extension for f77 test sources.
13581ac_ext=f
13582
13583# Object file extension for compiled f77 test sources.
13584objext=o
13585objext_F77=$objext
13586
13587# Code to be used in simple compile tests
13588lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13589
13590# Code to be used in simple link tests
13591lt_simple_link_test_code=" program t\n end\n"
13592
13593# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13594
13595# If no C compiler was specified, use CC.
13596LTCC=${LTCC-"$CC"}
13597
mmentovai8c2a4de2006-09-20 16:20:15 +000013598# If no C compiler flags were specified, use CFLAGS.
13599LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13600
brynercb91a2f2006-08-25 21:14:45 +000013601# Allow CC to be a program name with arguments.
13602compiler=$CC
13603
13604
mmentovai8c2a4de2006-09-20 16:20:15 +000013605# save warnings/boilerplate of simple test code
13606ac_outfile=conftest.$ac_objext
13607printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13608eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13609_lt_compiler_boilerplate=`cat conftest.err`
13610$rm conftest*
13611
13612ac_outfile=conftest.$ac_objext
13613printf "$lt_simple_link_test_code" >conftest.$ac_ext
13614eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13615_lt_linker_boilerplate=`cat conftest.err`
13616$rm conftest*
13617
13618
brynercb91a2f2006-08-25 21:14:45 +000013619# Allow CC to be a program name with arguments.
13620lt_save_CC="$CC"
13621CC=${F77-"f77"}
13622compiler=$CC
13623compiler_F77=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +000013624for cc_temp in $compiler""; do
13625 case $cc_temp in
13626 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13627 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13628 \-*) ;;
13629 *) break;;
13630 esac
13631done
13632cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +000013633
brynercb91a2f2006-08-25 21:14:45 +000013634
mmentovai8c2a4de2006-09-20 16:20:15 +000013635{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13636echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13637{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13638echo "${ECHO_T}$can_build_shared" >&6; }
13639
13640{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13641echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013642test "$can_build_shared" = "no" && enable_shared=no
13643
13644# On AIX, shared libraries and static libraries use the same namespace, and
13645# are all built from PIC.
mmentovai8c2a4de2006-09-20 16:20:15 +000013646case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000013647aix3*)
13648 test "$enable_shared" = yes && enable_static=no
13649 if test -n "$RANLIB"; then
13650 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13651 postinstall_cmds='$RANLIB $lib'
13652 fi
13653 ;;
13654aix4* | aix5*)
mmentovai8c2a4de2006-09-20 16:20:15 +000013655 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13656 test "$enable_shared" = yes && enable_static=no
13657 fi
brynercb91a2f2006-08-25 21:14:45 +000013658 ;;
13659esac
mmentovai8c2a4de2006-09-20 16:20:15 +000013660{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13661echo "${ECHO_T}$enable_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013662
mmentovai8c2a4de2006-09-20 16:20:15 +000013663{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13664echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013665# Make sure either enable_shared or enable_static is yes.
13666test "$enable_shared" = yes || enable_static=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000013667{ echo "$as_me:$LINENO: result: $enable_static" >&5
13668echo "${ECHO_T}$enable_static" >&6; }
brynerd5e66382006-09-08 02:35:53 +000013669
brynercb91a2f2006-08-25 21:14:45 +000013670GCC_F77="$G77"
13671LD_F77="$LD"
13672
13673lt_prog_compiler_wl_F77=
13674lt_prog_compiler_pic_F77=
13675lt_prog_compiler_static_F77=
13676
mmentovai8c2a4de2006-09-20 16:20:15 +000013677{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13678echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013679
13680 if test "$GCC" = yes; then
13681 lt_prog_compiler_wl_F77='-Wl,'
13682 lt_prog_compiler_static_F77='-static'
13683
13684 case $host_os in
13685 aix*)
13686 # All AIX code is PIC.
13687 if test "$host_cpu" = ia64; then
13688 # AIX 5 now supports IA64 processor
13689 lt_prog_compiler_static_F77='-Bstatic'
13690 fi
13691 ;;
13692
13693 amigaos*)
13694 # FIXME: we need at least 68020 code to build shared libraries, but
13695 # adding the `-m68020' flag to GCC prevents building anything better,
13696 # like `-m68040'.
13697 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13698 ;;
13699
13700 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13701 # PIC is the default for these OSes.
13702 ;;
13703
13704 mingw* | pw32* | os2*)
13705 # This hack is so that the source file can tell whether it is being
13706 # built for inclusion in a dll (and should export symbols for example).
13707 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13708 ;;
13709
13710 darwin* | rhapsody*)
13711 # PIC is the default on this platform
13712 # Common symbols not allowed in MH_DYLIB files
13713 lt_prog_compiler_pic_F77='-fno-common'
13714 ;;
13715
mmentovai8c2a4de2006-09-20 16:20:15 +000013716 interix3*)
13717 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13718 # Instead, we relocate shared libraries at runtime.
13719 ;;
13720
brynercb91a2f2006-08-25 21:14:45 +000013721 msdosdjgpp*)
13722 # Just because we use GCC doesn't mean we suddenly get shared libraries
13723 # on systems that don't support them.
13724 lt_prog_compiler_can_build_shared_F77=no
13725 enable_shared=no
13726 ;;
13727
13728 sysv4*MP*)
13729 if test -d /usr/nec; then
13730 lt_prog_compiler_pic_F77=-Kconform_pic
13731 fi
13732 ;;
13733
13734 hpux*)
13735 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13736 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000013737 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000013738 hppa*64*|ia64*)
13739 # +Z the default
13740 ;;
13741 *)
13742 lt_prog_compiler_pic_F77='-fPIC'
13743 ;;
13744 esac
13745 ;;
13746
13747 *)
13748 lt_prog_compiler_pic_F77='-fPIC'
13749 ;;
13750 esac
13751 else
13752 # PORTME Check for flag to pass linker flags through the system compiler.
13753 case $host_os in
13754 aix*)
13755 lt_prog_compiler_wl_F77='-Wl,'
13756 if test "$host_cpu" = ia64; then
13757 # AIX 5 now supports IA64 processor
13758 lt_prog_compiler_static_F77='-Bstatic'
13759 else
13760 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13761 fi
13762 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013763 darwin*)
13764 # PIC is the default on this platform
13765 # Common symbols not allowed in MH_DYLIB files
13766 case $cc_basename in
13767 xlc*)
13768 lt_prog_compiler_pic_F77='-qnocommon'
13769 lt_prog_compiler_wl_F77='-Wl,'
13770 ;;
13771 esac
13772 ;;
brynercb91a2f2006-08-25 21:14:45 +000013773
13774 mingw* | pw32* | os2*)
13775 # This hack is so that the source file can tell whether it is being
13776 # built for inclusion in a dll (and should export symbols for example).
13777 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13778 ;;
13779
13780 hpux9* | hpux10* | hpux11*)
13781 lt_prog_compiler_wl_F77='-Wl,'
13782 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13783 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000013784 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000013785 hppa*64*|ia64*)
13786 # +Z the default
13787 ;;
13788 *)
13789 lt_prog_compiler_pic_F77='+Z'
13790 ;;
13791 esac
13792 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13793 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13794 ;;
13795
13796 irix5* | irix6* | nonstopux*)
13797 lt_prog_compiler_wl_F77='-Wl,'
13798 # PIC (with -KPIC) is the default.
13799 lt_prog_compiler_static_F77='-non_shared'
13800 ;;
13801
13802 newsos6)
13803 lt_prog_compiler_pic_F77='-KPIC'
13804 lt_prog_compiler_static_F77='-Bstatic'
13805 ;;
13806
13807 linux*)
mmentovai8c2a4de2006-09-20 16:20:15 +000013808 case $cc_basename in
brynercb91a2f2006-08-25 21:14:45 +000013809 icc* | ecc*)
13810 lt_prog_compiler_wl_F77='-Wl,'
13811 lt_prog_compiler_pic_F77='-KPIC'
13812 lt_prog_compiler_static_F77='-static'
13813 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013814 pgcc* | pgf77* | pgf90* | pgf95*)
13815 # Portland Group compilers (*not* the Pentium gcc compiler,
13816 # which looks to be a dead project)
13817 lt_prog_compiler_wl_F77='-Wl,'
13818 lt_prog_compiler_pic_F77='-fpic'
13819 lt_prog_compiler_static_F77='-Bstatic'
13820 ;;
brynercb91a2f2006-08-25 21:14:45 +000013821 ccc*)
13822 lt_prog_compiler_wl_F77='-Wl,'
13823 # All Alpha code is PIC.
13824 lt_prog_compiler_static_F77='-non_shared'
13825 ;;
13826 esac
13827 ;;
13828
13829 osf3* | osf4* | osf5*)
13830 lt_prog_compiler_wl_F77='-Wl,'
13831 # All OSF/1 code is PIC.
13832 lt_prog_compiler_static_F77='-non_shared'
13833 ;;
13834
brynercb91a2f2006-08-25 21:14:45 +000013835 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000013836 lt_prog_compiler_pic_F77='-KPIC'
13837 lt_prog_compiler_static_F77='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +000013838 case $cc_basename in
13839 f77* | f90* | f95*)
13840 lt_prog_compiler_wl_F77='-Qoption ld ';;
13841 *)
13842 lt_prog_compiler_wl_F77='-Wl,';;
13843 esac
brynercb91a2f2006-08-25 21:14:45 +000013844 ;;
13845
13846 sunos4*)
13847 lt_prog_compiler_wl_F77='-Qoption ld '
13848 lt_prog_compiler_pic_F77='-PIC'
13849 lt_prog_compiler_static_F77='-Bstatic'
13850 ;;
13851
mmentovai8c2a4de2006-09-20 16:20:15 +000013852 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000013853 lt_prog_compiler_wl_F77='-Wl,'
13854 lt_prog_compiler_pic_F77='-KPIC'
13855 lt_prog_compiler_static_F77='-Bstatic'
13856 ;;
13857
13858 sysv4*MP*)
13859 if test -d /usr/nec ;then
13860 lt_prog_compiler_pic_F77='-Kconform_pic'
13861 lt_prog_compiler_static_F77='-Bstatic'
13862 fi
13863 ;;
13864
mmentovai8c2a4de2006-09-20 16:20:15 +000013865 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13866 lt_prog_compiler_wl_F77='-Wl,'
13867 lt_prog_compiler_pic_F77='-KPIC'
13868 lt_prog_compiler_static_F77='-Bstatic'
13869 ;;
13870
13871 unicos*)
13872 lt_prog_compiler_wl_F77='-Wl,'
13873 lt_prog_compiler_can_build_shared_F77=no
13874 ;;
13875
brynercb91a2f2006-08-25 21:14:45 +000013876 uts4*)
13877 lt_prog_compiler_pic_F77='-pic'
13878 lt_prog_compiler_static_F77='-Bstatic'
13879 ;;
13880
13881 *)
13882 lt_prog_compiler_can_build_shared_F77=no
13883 ;;
13884 esac
13885 fi
13886
mmentovai8c2a4de2006-09-20 16:20:15 +000013887{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13888echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013889
13890#
13891# Check to make sure the PIC flag actually works.
13892#
13893if test -n "$lt_prog_compiler_pic_F77"; then
13894
mmentovai8c2a4de2006-09-20 16:20:15 +000013895{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13896echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013897if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13899else
13900 lt_prog_compiler_pic_works_F77=no
13901 ac_outfile=conftest.$ac_objext
13902 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13903 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13904 # Insert the option either (1) after the last *FLAGS variable, or
13905 # (2) before a word containing "conftest.", or (3) at the end.
13906 # Note that $ac_compile itself does not contain backslashes and begins
13907 # with a dollar sign (not a hyphen), so the echo should work correctly.
13908 # The option is referenced via a variable to avoid confusing sed.
13909 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000013910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000013911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13912 -e 's:$: $lt_compiler_flag:'`
mmentovaiaf3c43f2007-05-17 18:34:37 +000013913 (eval echo "\"\$as_me:13913: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000013914 (eval "$lt_compile" 2>conftest.err)
13915 ac_status=$?
13916 cat conftest.err >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000013917 echo "$as_me:13917: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000013918 if (exit $ac_status) && test -s "$ac_outfile"; then
13919 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000013920 # So say no if there are warnings other than the usual output.
13921 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13923 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013924 lt_prog_compiler_pic_works_F77=yes
13925 fi
13926 fi
13927 $rm conftest*
13928
13929fi
mmentovai8c2a4de2006-09-20 16:20:15 +000013930{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13931echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013932
13933if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13934 case $lt_prog_compiler_pic_F77 in
13935 "" | " "*) ;;
13936 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13937 esac
13938else
13939 lt_prog_compiler_pic_F77=
13940 lt_prog_compiler_can_build_shared_F77=no
13941fi
13942
13943fi
mmentovai8c2a4de2006-09-20 16:20:15 +000013944case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000013945 # For platforms which do not support PIC, -DPIC is meaningless:
13946 *djgpp*)
13947 lt_prog_compiler_pic_F77=
13948 ;;
13949 *)
13950 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13951 ;;
13952esac
13953
mmentovai8c2a4de2006-09-20 16:20:15 +000013954#
13955# Check to make sure the static flag actually works.
13956#
13957wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13958{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13959echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13960if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
13962else
13963 lt_prog_compiler_static_works_F77=no
13964 save_LDFLAGS="$LDFLAGS"
13965 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13966 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13967 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13968 # The linker can only warn and ignore the option if not recognized
13969 # So say no if there are warnings
13970 if test -s conftest.err; then
13971 # Append any errors to the config.log.
13972 cat conftest.err 1>&5
13973 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13975 if diff conftest.exp conftest.er2 >/dev/null; then
13976 lt_prog_compiler_static_works_F77=yes
13977 fi
13978 else
13979 lt_prog_compiler_static_works_F77=yes
13980 fi
13981 fi
13982 $rm conftest*
13983 LDFLAGS="$save_LDFLAGS"
13984
13985fi
13986{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13987echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13988
13989if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13990 :
13991else
13992 lt_prog_compiler_static_F77=
13993fi
13994
13995
13996{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13997echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013998if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14000else
14001 lt_cv_prog_compiler_c_o_F77=no
14002 $rm -r conftest 2>/dev/null
14003 mkdir conftest
14004 cd conftest
14005 mkdir out
14006 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14007
14008 lt_compiler_flag="-o out/conftest2.$ac_objext"
14009 # Insert the option either (1) after the last *FLAGS variable, or
14010 # (2) before a word containing "conftest.", or (3) at the end.
14011 # Note that $ac_compile itself does not contain backslashes and begins
14012 # with a dollar sign (not a hyphen), so the echo should work correctly.
14013 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000014014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000014015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14016 -e 's:$: $lt_compiler_flag:'`
mmentovaiaf3c43f2007-05-17 18:34:37 +000014017 (eval echo "\"\$as_me:14017: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000014018 (eval "$lt_compile" 2>out/conftest.err)
14019 ac_status=$?
14020 cat out/conftest.err >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000014021 echo "$as_me:14021: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000014022 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14023 then
14024 # The compiler can only warn and ignore the option if not recognized
14025 # So say no if there are warnings
mmentovai8c2a4de2006-09-20 16:20:15 +000014026 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14027 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14028 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000014029 lt_cv_prog_compiler_c_o_F77=yes
14030 fi
14031 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014032 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +000014033 $rm conftest*
14034 # SGI C++ compiler will create directory out/ii_files/ for
14035 # template instantiation
14036 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14037 $rm out/* && rmdir out
14038 cd ..
14039 rmdir conftest
14040 $rm conftest*
14041
14042fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014043{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14044echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014045
14046
14047hard_links="nottested"
14048if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14049 # do not overwrite the value of need_locks provided by the user
mmentovai8c2a4de2006-09-20 16:20:15 +000014050 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14051echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014052 hard_links=yes
14053 $rm conftest*
14054 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14055 touch conftest.a
14056 ln conftest.a conftest.b 2>&5 || hard_links=no
14057 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mmentovai8c2a4de2006-09-20 16:20:15 +000014058 { echo "$as_me:$LINENO: result: $hard_links" >&5
14059echo "${ECHO_T}$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014060 if test "$hard_links" = no; then
14061 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14062echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14063 need_locks=warn
14064 fi
14065else
14066 need_locks=no
14067fi
14068
mmentovai8c2a4de2006-09-20 16:20:15 +000014069{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14070echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014071
14072 runpath_var=
14073 allow_undefined_flag_F77=
14074 enable_shared_with_static_runtimes_F77=no
14075 archive_cmds_F77=
14076 archive_expsym_cmds_F77=
14077 old_archive_From_new_cmds_F77=
14078 old_archive_from_expsyms_cmds_F77=
14079 export_dynamic_flag_spec_F77=
14080 whole_archive_flag_spec_F77=
14081 thread_safe_flag_spec_F77=
14082 hardcode_libdir_flag_spec_F77=
14083 hardcode_libdir_flag_spec_ld_F77=
14084 hardcode_libdir_separator_F77=
14085 hardcode_direct_F77=no
14086 hardcode_minus_L_F77=no
14087 hardcode_shlibpath_var_F77=unsupported
14088 link_all_deplibs_F77=unknown
14089 hardcode_automatic_F77=no
14090 module_cmds_F77=
14091 module_expsym_cmds_F77=
14092 always_export_symbols_F77=no
14093 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14094 # include_expsyms should be a list of space-separated symbols to be *always*
14095 # included in the symbol list
14096 include_expsyms_F77=
14097 # exclude_expsyms can be an extended regexp of symbols to exclude
14098 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14099 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14100 # as well as any symbol that contains `d'.
14101 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14102 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14103 # platforms (ab)use it in PIC code, but their linkers get confused if
14104 # the symbol is explicitly referenced. Since portable code cannot
14105 # rely on this symbol name, it's probably fine to never include it in
14106 # preloaded symbol tables.
14107 extract_expsyms_cmds=
mmentovai8c2a4de2006-09-20 16:20:15 +000014108 # Just being paranoid about ensuring that cc_basename is set.
14109 for cc_temp in $compiler""; do
14110 case $cc_temp in
14111 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14112 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14113 \-*) ;;
14114 *) break;;
14115 esac
14116done
14117cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +000014118
14119 case $host_os in
14120 cygwin* | mingw* | pw32*)
14121 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14122 # When not using gcc, we currently assume that we are using
14123 # Microsoft Visual C++.
14124 if test "$GCC" != yes; then
14125 with_gnu_ld=no
14126 fi
14127 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014128 interix*)
14129 # we just hope/assume this is gcc and not c89 (= MSVC++)
14130 with_gnu_ld=yes
14131 ;;
brynercb91a2f2006-08-25 21:14:45 +000014132 openbsd*)
14133 with_gnu_ld=no
14134 ;;
14135 esac
14136
14137 ld_shlibs_F77=yes
14138 if test "$with_gnu_ld" = yes; then
14139 # If archive_cmds runs LD, not CC, wlarc should be empty
14140 wlarc='${wl}'
14141
mmentovai8c2a4de2006-09-20 16:20:15 +000014142 # Set some defaults for GNU ld with shared library support. These
14143 # are reset later if shared libraries are not supported. Putting them
14144 # here allows them to be overridden if necessary.
14145 runpath_var=LD_RUN_PATH
14146 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14147 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14148 # ancient GNU ld didn't support --whole-archive et. al.
14149 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14150 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14151 else
14152 whole_archive_flag_spec_F77=
14153 fi
14154 supports_anon_versioning=no
14155 case `$LD -v 2>/dev/null` in
14156 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14157 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14158 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14159 *\ 2.11.*) ;; # other 2.11 versions
14160 *) supports_anon_versioning=yes ;;
14161 esac
14162
brynercb91a2f2006-08-25 21:14:45 +000014163 # See if GNU ld supports shared libraries.
14164 case $host_os in
14165 aix3* | aix4* | aix5*)
14166 # On AIX/PPC, the GNU linker is very broken
14167 if test "$host_cpu" != ia64; then
14168 ld_shlibs_F77=no
14169 cat <<EOF 1>&2
14170
14171*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14172*** to be unable to reliably create shared libraries on AIX.
14173*** Therefore, libtool is disabling shared libraries support. If you
14174*** really care for shared libraries, you may want to modify your PATH
14175*** so that a non-GNU linker is found, and then restart.
14176
14177EOF
14178 fi
14179 ;;
14180
14181 amigaos*)
14182 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)'
14183 hardcode_libdir_flag_spec_F77='-L$libdir'
14184 hardcode_minus_L_F77=yes
14185
14186 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14187 # that the semantics of dynamic libraries on AmigaOS, at least up
14188 # to version 4, is to share data among multiple programs linked
14189 # with the same dynamic library. Since this doesn't match the
14190 # behavior of shared libraries on other platforms, we can't use
14191 # them.
14192 ld_shlibs_F77=no
14193 ;;
14194
14195 beos*)
14196 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14197 allow_undefined_flag_F77=unsupported
14198 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14199 # support --undefined. This deserves some investigation. FIXME
14200 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14201 else
14202 ld_shlibs_F77=no
14203 fi
14204 ;;
14205
14206 cygwin* | mingw* | pw32*)
14207 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14208 # as there is no search path for DLLs.
14209 hardcode_libdir_flag_spec_F77='-L$libdir'
14210 allow_undefined_flag_F77=unsupported
14211 always_export_symbols_F77=no
14212 enable_shared_with_static_runtimes_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014213 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000014214
14215 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000014216 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 +000014217 # If the export-symbols file already is a .def file (1st line
14218 # is EXPORTS), use it as is; otherwise, prepend...
14219 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14220 cp $export_symbols $output_objdir/$soname.def;
14221 else
14222 echo EXPORTS > $output_objdir/$soname.def;
14223 cat $export_symbols >> $output_objdir/$soname.def;
14224 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +000014225 $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 +000014226 else
mmentovai8c2a4de2006-09-20 16:20:15 +000014227 ld_shlibs_F77=no
brynercb91a2f2006-08-25 21:14:45 +000014228 fi
14229 ;;
14230
mmentovai8c2a4de2006-09-20 16:20:15 +000014231 interix3*)
14232 hardcode_direct_F77=no
14233 hardcode_shlibpath_var_F77=no
14234 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14235 export_dynamic_flag_spec_F77='${wl}-E'
14236 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14237 # Instead, shared libraries are loaded at an image base (0x10000000 by
14238 # default) and relocated if they conflict, which is a slow very memory
14239 # consuming and fragmenting process. To avoid this, we pick a random,
14240 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14241 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14242 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'
14243 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'
14244 ;;
14245
14246 linux*)
14247 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14248 tmp_addflag=
14249 case $cc_basename,$host_cpu in
14250 pgcc*) # Portland Group C compiler
14251 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'
14252 tmp_addflag=' $pic_flag'
14253 ;;
14254 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14255 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'
14256 tmp_addflag=' $pic_flag -Mnomain' ;;
14257 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14258 tmp_addflag=' -i_dynamic' ;;
14259 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14260 tmp_addflag=' -i_dynamic -nofor_main' ;;
14261 ifc* | ifort*) # Intel Fortran compiler
14262 tmp_addflag=' -nofor_main' ;;
14263 esac
14264 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14265
14266 if test $supports_anon_versioning = yes; then
14267 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14268 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14269 $echo "local: *; };" >> $output_objdir/$libname.ver~
14270 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14271 fi
14272 else
14273 ld_shlibs_F77=no
14274 fi
14275 ;;
14276
14277 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000014278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14279 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14280 wlarc=
14281 else
14282 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14283 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14284 fi
14285 ;;
14286
mmentovai8c2a4de2006-09-20 16:20:15 +000014287 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000014288 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14289 ld_shlibs_F77=no
14290 cat <<EOF 1>&2
14291
14292*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14293*** create shared libraries on Solaris systems. Therefore, libtool
14294*** is disabling shared libraries support. We urge you to upgrade GNU
14295*** binutils to release 2.9.1 or newer. Another option is to modify
14296*** your PATH or compiler configuration so that the native linker is
14297*** used, and then restart.
14298
14299EOF
14300 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14301 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14302 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14303 else
14304 ld_shlibs_F77=no
14305 fi
14306 ;;
14307
mmentovai8c2a4de2006-09-20 16:20:15 +000014308 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14309 case `$LD -v 2>&1` in
14310 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14311 ld_shlibs_F77=no
14312 cat <<_LT_EOF 1>&2
14313
14314*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14315*** reliably create shared libraries on SCO systems. Therefore, libtool
14316*** is disabling shared libraries support. We urge you to upgrade GNU
14317*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14318*** your PATH or compiler configuration so that the native linker is
14319*** used, and then restart.
14320
14321_LT_EOF
14322 ;;
14323 *)
14324 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14325 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14326 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14327 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14328 else
14329 ld_shlibs_F77=no
14330 fi
14331 ;;
14332 esac
14333 ;;
14334
brynercb91a2f2006-08-25 21:14:45 +000014335 sunos4*)
14336 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14337 wlarc=
14338 hardcode_direct_F77=yes
14339 hardcode_shlibpath_var_F77=no
14340 ;;
14341
brynercb91a2f2006-08-25 21:14:45 +000014342 *)
14343 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14344 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14345 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14346 else
14347 ld_shlibs_F77=no
14348 fi
14349 ;;
14350 esac
14351
mmentovai8c2a4de2006-09-20 16:20:15 +000014352 if test "$ld_shlibs_F77" = no; then
14353 runpath_var=
14354 hardcode_libdir_flag_spec_F77=
14355 export_dynamic_flag_spec_F77=
14356 whole_archive_flag_spec_F77=
brynercb91a2f2006-08-25 21:14:45 +000014357 fi
14358 else
14359 # PORTME fill in a description of your system's linker (not GNU ld)
14360 case $host_os in
14361 aix3*)
14362 allow_undefined_flag_F77=unsupported
14363 always_export_symbols_F77=yes
14364 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'
14365 # Note: this linker hardcodes the directories in LIBPATH if there
14366 # are no directories specified by -L.
14367 hardcode_minus_L_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014368 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +000014369 # Neither direct hardcoding nor static linking is supported with a
14370 # broken collect2.
14371 hardcode_direct_F77=unsupported
14372 fi
14373 ;;
14374
14375 aix4* | aix5*)
14376 if test "$host_cpu" = ia64; then
14377 # On IA64, the linker does run time linking by default, so we don't
14378 # have to do anything special.
14379 aix_use_runtimelinking=no
14380 exp_sym_flag='-Bexport'
14381 no_entry_flag=""
14382 else
14383 # If we're using GNU nm, then we don't want the "-C" option.
14384 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14385 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14386 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'
14387 else
14388 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'
14389 fi
14390 aix_use_runtimelinking=no
14391
14392 # Test if we are trying to use run time linking or normal
14393 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14394 # need to do runtime linking.
14395 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14396 for ld_flag in $LDFLAGS; do
14397 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14398 aix_use_runtimelinking=yes
14399 break
14400 fi
14401 done
mmentovai8c2a4de2006-09-20 16:20:15 +000014402 ;;
brynercb91a2f2006-08-25 21:14:45 +000014403 esac
14404
14405 exp_sym_flag='-bexport'
14406 no_entry_flag='-bnoentry'
14407 fi
14408
14409 # When large executables or shared objects are built, AIX ld can
14410 # have problems creating the table of contents. If linking a library
14411 # or program results in "error TOC overflow" add -mminimal-toc to
14412 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14413 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14414
14415 archive_cmds_F77=''
14416 hardcode_direct_F77=yes
14417 hardcode_libdir_separator_F77=':'
14418 link_all_deplibs_F77=yes
14419
14420 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000014421 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +000014422 # We only want to do this on AIX 4.2 and lower, the check
14423 # below for broken collect2 doesn't work under 4.3+
14424 collect2name=`${CC} -print-prog-name=collect2`
14425 if test -f "$collect2name" && \
14426 strings "$collect2name" | grep resolve_lib_name >/dev/null
14427 then
14428 # We have reworked collect2
14429 hardcode_direct_F77=yes
14430 else
14431 # We have old collect2
14432 hardcode_direct_F77=unsupported
14433 # It fails to find uninstalled libraries when the uninstalled
14434 # path is not listed in the libpath. Setting hardcode_minus_L
14435 # to unsupported forces relinking
14436 hardcode_minus_L_F77=yes
14437 hardcode_libdir_flag_spec_F77='-L$libdir'
14438 hardcode_libdir_separator_F77=
14439 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014440 ;;
brynercb91a2f2006-08-25 21:14:45 +000014441 esac
14442 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +000014443 if test "$aix_use_runtimelinking" = yes; then
14444 shared_flag="$shared_flag "'${wl}-G'
14445 fi
brynercb91a2f2006-08-25 21:14:45 +000014446 else
14447 # not using gcc
14448 if test "$host_cpu" = ia64; then
14449 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14450 # chokes on -Wl,-G. The following line is correct:
14451 shared_flag='-G'
14452 else
mmentovai8c2a4de2006-09-20 16:20:15 +000014453 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000014454 shared_flag='${wl}-G'
14455 else
14456 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +000014457 fi
brynercb91a2f2006-08-25 21:14:45 +000014458 fi
14459 fi
14460
14461 # It seems that -bexpall does not export symbols beginning with
14462 # underscore (_), so it is better to generate a list of symbols to export.
14463 always_export_symbols_F77=yes
14464 if test "$aix_use_runtimelinking" = yes; then
14465 # Warning - without using the other runtime loading flags (-brtl),
14466 # -berok will link without error, but may produce a broken library.
14467 allow_undefined_flag_F77='-berok'
14468 # Determine the default libpath from the value encoded in an empty executable.
14469 cat >conftest.$ac_ext <<_ACEOF
14470 program main
14471
14472 end
14473_ACEOF
14474rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000014475if { (ac_try="$ac_link"
14476case "(($ac_try" in
14477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478 *) ac_try_echo=$ac_try;;
14479esac
14480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14481 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000014482 ac_status=$?
14483 grep -v '^ *+' conftest.er1 >conftest.err
14484 rm -f conftest.er1
14485 cat conftest.err >&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000014487 (exit $ac_status); } && {
14488 test -z "$ac_f77_werror_flag" ||
14489 test ! -s conftest.err
14490 } && test -s conftest$ac_exeext &&
14491 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +000014492
14493aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14494}'`
14495# Check for a 64-bit object if we didn't find anything.
14496if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14497}'`; fi
14498else
14499 echo "$as_me: failed program was:" >&5
14500sed 's/^/| /' conftest.$ac_ext >&5
14501
mmentovai8c2a4de2006-09-20 16:20:15 +000014502
brynercb91a2f2006-08-25 21:14:45 +000014503fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014504
mmentovaiaf3c43f2007-05-17 18:34:37 +000014505rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +000014506 conftest$ac_exeext conftest.$ac_ext
14507if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14508
14509 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
mmentovai8c2a4de2006-09-20 16:20:15 +000014510 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 +000014511 else
14512 if test "$host_cpu" = ia64; then
14513 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14514 allow_undefined_flag_F77="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +000014515 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 +000014516 else
14517 # Determine the default libpath from the value encoded in an empty executable.
14518 cat >conftest.$ac_ext <<_ACEOF
14519 program main
14520
14521 end
14522_ACEOF
14523rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000014524if { (ac_try="$ac_link"
14525case "(($ac_try" in
14526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14528esac
14529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000014531 ac_status=$?
14532 grep -v '^ *+' conftest.er1 >conftest.err
14533 rm -f conftest.er1
14534 cat conftest.err >&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000014536 (exit $ac_status); } && {
14537 test -z "$ac_f77_werror_flag" ||
14538 test ! -s conftest.err
14539 } && test -s conftest$ac_exeext &&
14540 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +000014541
14542aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14543}'`
14544# Check for a 64-bit object if we didn't find anything.
14545if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14546}'`; fi
14547else
14548 echo "$as_me: failed program was:" >&5
14549sed 's/^/| /' conftest.$ac_ext >&5
14550
mmentovai8c2a4de2006-09-20 16:20:15 +000014551
brynercb91a2f2006-08-25 21:14:45 +000014552fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014553
mmentovaiaf3c43f2007-05-17 18:34:37 +000014554rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +000014555 conftest$ac_exeext conftest.$ac_ext
14556if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14557
14558 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14559 # Warning - without using the other run time loading flags,
14560 # -berok will link without error, but may produce a broken library.
14561 no_undefined_flag_F77=' ${wl}-bernotok'
14562 allow_undefined_flag_F77=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +000014563 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +000014564 whole_archive_flag_spec_F77='$convenience'
brynercb91a2f2006-08-25 21:14:45 +000014565 archive_cmds_need_lc_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014566 # This is similar to how AIX traditionally builds its shared libraries.
14567 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 +000014568 fi
14569 fi
14570 ;;
14571
14572 amigaos*)
14573 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)'
14574 hardcode_libdir_flag_spec_F77='-L$libdir'
14575 hardcode_minus_L_F77=yes
14576 # see comment about different semantics on the GNU ld section
14577 ld_shlibs_F77=no
14578 ;;
14579
mmentovai8c2a4de2006-09-20 16:20:15 +000014580 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000014581 export_dynamic_flag_spec_F77=-rdynamic
14582 ;;
14583
14584 cygwin* | mingw* | pw32*)
14585 # When not using gcc, we currently assume that we are using
14586 # Microsoft Visual C++.
14587 # hardcode_libdir_flag_spec is actually meaningless, as there is
14588 # no search path for DLLs.
14589 hardcode_libdir_flag_spec_F77=' '
14590 allow_undefined_flag_F77=unsupported
14591 # Tell ltmain to make .lib files, not .a files.
14592 libext=lib
14593 # Tell ltmain to make .dll files, not .so files.
14594 shrext_cmds=".dll"
14595 # FIXME: Setting linknames here is a bad hack.
14596 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14597 # The linker will automatically build a .lib file if we build a DLL.
14598 old_archive_From_new_cmds_F77='true'
14599 # FIXME: Should let the user specify the lib program.
14600 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
mmentovai8c2a4de2006-09-20 16:20:15 +000014601 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
brynercb91a2f2006-08-25 21:14:45 +000014602 enable_shared_with_static_runtimes_F77=yes
14603 ;;
14604
14605 darwin* | rhapsody*)
mmentovai8c2a4de2006-09-20 16:20:15 +000014606 case $host_os in
14607 rhapsody* | darwin1.[012])
14608 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14609 ;;
14610 *) # Darwin 1.3 on
14611 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14612 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14613 else
14614 case ${MACOSX_DEPLOYMENT_TARGET} in
14615 10.[012])
14616 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14617 ;;
14618 10.*)
14619 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14620 ;;
14621 esac
14622 fi
14623 ;;
brynerd5e66382006-09-08 02:35:53 +000014624 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000014625 archive_cmds_need_lc_F77=no
brynercb91a2f2006-08-25 21:14:45 +000014626 hardcode_direct_F77=no
14627 hardcode_automatic_F77=yes
14628 hardcode_shlibpath_var_F77=unsupported
mmentovai8c2a4de2006-09-20 16:20:15 +000014629 whole_archive_flag_spec_F77=''
brynercb91a2f2006-08-25 21:14:45 +000014630 link_all_deplibs_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014631 if test "$GCC" = yes ; then
14632 output_verbose_link_cmd='echo'
14633 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14634 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14635 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14636 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14637 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
brynercb91a2f2006-08-25 21:14:45 +000014638 else
mmentovai8c2a4de2006-09-20 16:20:15 +000014639 case $cc_basename in
14640 xlc*)
14641 output_verbose_link_cmd='echo'
14642 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14643 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14644 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14645 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14646 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}'
14647 ;;
14648 *)
14649 ld_shlibs_F77=no
14650 ;;
14651 esac
brynercb91a2f2006-08-25 21:14:45 +000014652 fi
14653 ;;
14654
14655 dgux*)
14656 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14657 hardcode_libdir_flag_spec_F77='-L$libdir'
14658 hardcode_shlibpath_var_F77=no
14659 ;;
14660
14661 freebsd1*)
14662 ld_shlibs_F77=no
14663 ;;
14664
14665 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14666 # support. Future versions do this automatically, but an explicit c++rt0.o
14667 # does not break anything, and helps significantly (at the cost of a little
14668 # extra space).
14669 freebsd2.2*)
14670 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14671 hardcode_libdir_flag_spec_F77='-R$libdir'
14672 hardcode_direct_F77=yes
14673 hardcode_shlibpath_var_F77=no
14674 ;;
14675
14676 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14677 freebsd2*)
14678 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14679 hardcode_direct_F77=yes
14680 hardcode_minus_L_F77=yes
14681 hardcode_shlibpath_var_F77=no
14682 ;;
14683
14684 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mmentovai8c2a4de2006-09-20 16:20:15 +000014685 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000014686 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14687 hardcode_libdir_flag_spec_F77='-R$libdir'
14688 hardcode_direct_F77=yes
14689 hardcode_shlibpath_var_F77=no
14690 ;;
14691
14692 hpux9*)
14693 if test "$GCC" = yes; then
14694 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'
14695 else
14696 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'
14697 fi
14698 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14699 hardcode_libdir_separator_F77=:
14700 hardcode_direct_F77=yes
14701
14702 # hardcode_minus_L: Not really in the search PATH,
14703 # but as the default location of the library.
14704 hardcode_minus_L_F77=yes
14705 export_dynamic_flag_spec_F77='${wl}-E'
14706 ;;
14707
mmentovai8c2a4de2006-09-20 16:20:15 +000014708 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +000014709 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000014710 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14711 else
14712 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14713 fi
14714 if test "$with_gnu_ld" = no; then
14715 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14716 hardcode_libdir_separator_F77=:
14717
14718 hardcode_direct_F77=yes
14719 export_dynamic_flag_spec_F77='${wl}-E'
14720
14721 # hardcode_minus_L: Not really in the search PATH,
14722 # but as the default location of the library.
14723 hardcode_minus_L_F77=yes
14724 fi
14725 ;;
14726
14727 hpux11*)
14728 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14729 case $host_cpu in
14730 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +000014731 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14732 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014733 ia64*)
14734 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14735 ;;
brynercb91a2f2006-08-25 21:14:45 +000014736 *)
14737 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14738 ;;
14739 esac
14740 else
mmentovai8c2a4de2006-09-20 16:20:15 +000014741 case $host_cpu in
14742 hppa*64*)
14743 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14744 ;;
14745 ia64*)
14746 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000014747 ;;
14748 *)
mmentovai8c2a4de2006-09-20 16:20:15 +000014749 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 +000014750 ;;
14751 esac
14752 fi
14753 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000014754 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14755 hardcode_libdir_separator_F77=:
brynerd5e66382006-09-08 02:35:53 +000014756
mmentovai8c2a4de2006-09-20 16:20:15 +000014757 case $host_cpu in
14758 hppa*64*|ia64*)
14759 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14760 hardcode_direct_F77=no
14761 hardcode_shlibpath_var_F77=no
brynerd5e66382006-09-08 02:35:53 +000014762 ;;
brynercb91a2f2006-08-25 21:14:45 +000014763 *)
brynercb91a2f2006-08-25 21:14:45 +000014764 hardcode_direct_F77=yes
14765 export_dynamic_flag_spec_F77='${wl}-E'
14766
14767 # hardcode_minus_L: Not really in the search PATH,
14768 # but as the default location of the library.
14769 hardcode_minus_L_F77=yes
14770 ;;
14771 esac
14772 fi
14773 ;;
14774
14775 irix5* | irix6* | nonstopux*)
14776 if test "$GCC" = yes; then
14777 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'
14778 else
14779 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'
14780 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14781 fi
14782 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14783 hardcode_libdir_separator_F77=:
14784 link_all_deplibs_F77=yes
14785 ;;
14786
mmentovai8c2a4de2006-09-20 16:20:15 +000014787 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000014788 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14789 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14790 else
14791 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14792 fi
14793 hardcode_libdir_flag_spec_F77='-R$libdir'
14794 hardcode_direct_F77=yes
14795 hardcode_shlibpath_var_F77=no
14796 ;;
14797
14798 newsos6)
14799 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14800 hardcode_direct_F77=yes
14801 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14802 hardcode_libdir_separator_F77=:
14803 hardcode_shlibpath_var_F77=no
14804 ;;
14805
14806 openbsd*)
14807 hardcode_direct_F77=yes
14808 hardcode_shlibpath_var_F77=no
14809 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14810 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +000014811 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000014812 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14813 export_dynamic_flag_spec_F77='${wl}-E'
14814 else
14815 case $host_os in
14816 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14817 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14818 hardcode_libdir_flag_spec_F77='-R$libdir'
14819 ;;
14820 *)
14821 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14822 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14823 ;;
14824 esac
14825 fi
14826 ;;
14827
14828 os2*)
14829 hardcode_libdir_flag_spec_F77='-L$libdir'
14830 hardcode_minus_L_F77=yes
14831 allow_undefined_flag_F77=unsupported
14832 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'
14833 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14834 ;;
14835
14836 osf3*)
14837 if test "$GCC" = yes; then
14838 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14839 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'
14840 else
14841 allow_undefined_flag_F77=' -expect_unresolved \*'
14842 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'
14843 fi
14844 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14845 hardcode_libdir_separator_F77=:
14846 ;;
14847
14848 osf4* | osf5*) # as osf3* with the addition of -msym flag
14849 if test "$GCC" = yes; then
14850 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14851 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'
14852 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14853 else
14854 allow_undefined_flag_F77=' -expect_unresolved \*'
14855 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'
14856 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 +000014857 $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 +000014858
14859 # Both c and cxx compiler support -rpath directly
14860 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14861 fi
14862 hardcode_libdir_separator_F77=:
14863 ;;
14864
brynercb91a2f2006-08-25 21:14:45 +000014865 solaris*)
14866 no_undefined_flag_F77=' -z text'
14867 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000014868 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +000014869 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14870 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14871 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14872 else
mmentovai8c2a4de2006-09-20 16:20:15 +000014873 wlarc=''
brynercb91a2f2006-08-25 21:14:45 +000014874 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14875 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14876 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14877 fi
14878 hardcode_libdir_flag_spec_F77='-R$libdir'
14879 hardcode_shlibpath_var_F77=no
14880 case $host_os in
14881 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014882 *)
14883 # The compiler driver will combine linker options so we
14884 # cannot just pass the convience library names through
14885 # without $wl, iff we do not link with $LD.
14886 # Luckily, gcc supports the same syntax we need for Sun Studio.
14887 # Supported since Solaris 2.6 (maybe 2.5.1?)
14888 case $wlarc in
14889 '')
14890 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14891 *)
14892 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14893 esac ;;
brynercb91a2f2006-08-25 21:14:45 +000014894 esac
14895 link_all_deplibs_F77=yes
14896 ;;
14897
14898 sunos4*)
14899 if test "x$host_vendor" = xsequent; then
14900 # Use $CC to link under sequent, because it throws in some extra .o
14901 # files that make .init and .fini sections work.
14902 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14903 else
14904 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14905 fi
14906 hardcode_libdir_flag_spec_F77='-L$libdir'
14907 hardcode_direct_F77=yes
14908 hardcode_minus_L_F77=yes
14909 hardcode_shlibpath_var_F77=no
14910 ;;
14911
14912 sysv4)
14913 case $host_vendor in
14914 sni)
14915 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14916 hardcode_direct_F77=yes # is this really true???
14917 ;;
14918 siemens)
14919 ## LD is ld it makes a PLAMLIB
14920 ## CC just makes a GrossModule.
14921 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14922 reload_cmds_F77='$CC -r -o $output$reload_objs'
14923 hardcode_direct_F77=no
14924 ;;
14925 motorola)
14926 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14927 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14928 ;;
14929 esac
14930 runpath_var='LD_RUN_PATH'
14931 hardcode_shlibpath_var_F77=no
14932 ;;
14933
14934 sysv4.3*)
14935 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14936 hardcode_shlibpath_var_F77=no
14937 export_dynamic_flag_spec_F77='-Bexport'
14938 ;;
14939
14940 sysv4*MP*)
14941 if test -d /usr/nec; then
14942 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14943 hardcode_shlibpath_var_F77=no
14944 runpath_var=LD_RUN_PATH
14945 hardcode_runpath_var=yes
14946 ld_shlibs_F77=yes
14947 fi
14948 ;;
14949
mmentovai8c2a4de2006-09-20 16:20:15 +000014950 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14951 no_undefined_flag_F77='${wl}-z,text'
14952 archive_cmds_need_lc_F77=no
brynercb91a2f2006-08-25 21:14:45 +000014953 hardcode_shlibpath_var_F77=no
mmentovai8c2a4de2006-09-20 16:20:15 +000014954 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +000014955
mmentovai3261e8b2006-09-06 02:56:44 +000014956 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000014957 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14958 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 +000014959 else
mmentovai8c2a4de2006-09-20 16:20:15 +000014960 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14961 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 +000014962 fi
brynerd5e66382006-09-08 02:35:53 +000014963 ;;
14964
mmentovai8c2a4de2006-09-20 16:20:15 +000014965 sysv5* | sco3.2v5* | sco5v6*)
14966 # Note: We can NOT use -z defs as we might desire, because we do not
14967 # link with -lc, and that would cause any symbols used from libc to
14968 # always be unresolved, which means just about no library would
14969 # ever link correctly. If we're not using GNU ld we use -z text
14970 # though, which does catch some bad symbols but isn't as heavy-handed
14971 # as -z defs.
14972 no_undefined_flag_F77='${wl}-z,text'
14973 allow_undefined_flag_F77='${wl}-z,nodefs'
14974 archive_cmds_need_lc_F77=no
brynerd5e66382006-09-08 02:35:53 +000014975 hardcode_shlibpath_var_F77=no
mmentovai8c2a4de2006-09-20 16:20:15 +000014976 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14977 hardcode_libdir_separator_F77=':'
14978 link_all_deplibs_F77=yes
14979 export_dynamic_flag_spec_F77='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +000014980 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +000014981
14982 if test "$GCC" = yes; then
14983 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14984 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14985 else
14986 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14987 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14988 fi
brynercb91a2f2006-08-25 21:14:45 +000014989 ;;
14990
14991 uts4*)
14992 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14993 hardcode_libdir_flag_spec_F77='-L$libdir'
14994 hardcode_shlibpath_var_F77=no
14995 ;;
14996
14997 *)
14998 ld_shlibs_F77=no
14999 ;;
15000 esac
15001 fi
15002
mmentovai8c2a4de2006-09-20 16:20:15 +000015003{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15004echo "${ECHO_T}$ld_shlibs_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015005test "$ld_shlibs_F77" = no && can_build_shared=no
15006
brynercb91a2f2006-08-25 21:14:45 +000015007#
15008# Do we need to explicitly link libc?
15009#
15010case "x$archive_cmds_need_lc_F77" in
15011x|xyes)
15012 # Assume -lc should be added
15013 archive_cmds_need_lc_F77=yes
15014
15015 if test "$enable_shared" = yes && test "$GCC" = yes; then
15016 case $archive_cmds_F77 in
15017 *'~'*)
15018 # FIXME: we may have to deal with multi-command sequences.
15019 ;;
15020 '$CC '*)
15021 # Test whether the compiler implicitly links with -lc since on some
15022 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15023 # to ld, don't add -lc before -lgcc.
mmentovai8c2a4de2006-09-20 16:20:15 +000015024 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15025echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015026 $rm conftest*
15027 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15028
15029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15030 (eval $ac_compile) 2>&5
15031 ac_status=$?
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } 2>conftest.err; then
15034 soname=conftest
15035 lib=conftest
15036 libobjs=conftest.$ac_objext
15037 deplibs=
15038 wl=$lt_prog_compiler_wl_F77
mmentovai8c2a4de2006-09-20 16:20:15 +000015039 pic_flag=$lt_prog_compiler_pic_F77
brynercb91a2f2006-08-25 21:14:45 +000015040 compiler_flags=-v
15041 linker_flags=-v
15042 verstring=
15043 output_objdir=.
15044 libname=conftest
15045 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15046 allow_undefined_flag_F77=
15047 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15048 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15049 ac_status=$?
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }
15052 then
15053 archive_cmds_need_lc_F77=no
15054 else
15055 archive_cmds_need_lc_F77=yes
15056 fi
15057 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15058 else
15059 cat conftest.err 1>&5
15060 fi
15061 $rm conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000015062 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15063echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015064 ;;
15065 esac
15066 fi
15067 ;;
15068esac
15069
mmentovai8c2a4de2006-09-20 16:20:15 +000015070{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15071echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015072library_names_spec=
15073libname_spec='lib$name'
15074soname_spec=
15075shrext_cmds=".so"
15076postinstall_cmds=
15077postuninstall_cmds=
15078finish_cmds=
15079finish_eval=
15080shlibpath_var=
15081shlibpath_overrides_runpath=unknown
15082version_type=none
15083dynamic_linker="$host_os ld.so"
15084sys_lib_dlsearch_path_spec="/lib /usr/lib"
15085if test "$GCC" = yes; then
15086 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15087 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15088 # if the path contains ";" then we assume it to be the separator
15089 # otherwise default to the standard path separator (i.e. ":") - it is
15090 # assumed that no part of a normal pathname contains ";" but that should
15091 # okay in the real world where ";" in dirpaths is itself problematic.
15092 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15093 else
15094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15095 fi
15096else
15097 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15098fi
15099need_lib_prefix=unknown
15100hardcode_into_libs=no
15101
15102# when you set need_version to no, make sure it does not cause -set_version
15103# flags to be left without arguments
15104need_version=unknown
15105
15106case $host_os in
15107aix3*)
15108 version_type=linux
15109 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15110 shlibpath_var=LIBPATH
15111
15112 # AIX 3 has no versioning support, so we append a major version to the name.
15113 soname_spec='${libname}${release}${shared_ext}$major'
15114 ;;
15115
15116aix4* | aix5*)
15117 version_type=linux
15118 need_lib_prefix=no
15119 need_version=no
15120 hardcode_into_libs=yes
15121 if test "$host_cpu" = ia64; then
15122 # AIX 5 supports IA64
15123 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15124 shlibpath_var=LD_LIBRARY_PATH
15125 else
15126 # With GCC up to 2.95.x, collect2 would create an import file
15127 # for dependence libraries. The import file would start with
15128 # the line `#! .'. This would cause the generated library to
15129 # depend on `.', always an invalid library. This was fixed in
15130 # development snapshots of GCC prior to 3.0.
15131 case $host_os in
15132 aix4 | aix4.[01] | aix4.[01].*)
15133 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15134 echo ' yes '
15135 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15136 :
15137 else
15138 can_build_shared=no
15139 fi
15140 ;;
15141 esac
15142 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15143 # soname into executable. Probably we can add versioning support to
15144 # collect2, so additional links can be useful in future.
15145 if test "$aix_use_runtimelinking" = yes; then
15146 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15147 # instead of lib<name>.a to let people know that these are not
15148 # typical AIX shared libraries.
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150 else
15151 # We preserve .a as extension for shared libraries through AIX4.2
15152 # and later when we are not doing run time linking.
15153 library_names_spec='${libname}${release}.a $libname.a'
15154 soname_spec='${libname}${release}${shared_ext}$major'
15155 fi
15156 shlibpath_var=LIBPATH
15157 fi
15158 ;;
15159
15160amigaos*)
15161 library_names_spec='$libname.ixlibrary $libname.a'
15162 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15163 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'
15164 ;;
15165
15166beos*)
15167 library_names_spec='${libname}${shared_ext}'
15168 dynamic_linker="$host_os ld.so"
15169 shlibpath_var=LIBRARY_PATH
15170 ;;
15171
mmentovai8c2a4de2006-09-20 16:20:15 +000015172bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000015173 version_type=linux
15174 need_version=no
15175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15176 soname_spec='${libname}${release}${shared_ext}$major'
15177 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15178 shlibpath_var=LD_LIBRARY_PATH
15179 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15180 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15181 # the default ld.so.conf also contains /usr/contrib/lib and
15182 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15183 # libtool to hard-code these into programs
15184 ;;
15185
15186cygwin* | mingw* | pw32*)
15187 version_type=windows
15188 shrext_cmds=".dll"
15189 need_version=no
15190 need_lib_prefix=no
15191
15192 case $GCC,$host_os in
15193 yes,cygwin* | yes,mingw* | yes,pw32*)
15194 library_names_spec='$libname.dll.a'
15195 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15196 postinstall_cmds='base_file=`basename \${file}`~
15197 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15198 dldir=$destdir/`dirname \$dlpath`~
15199 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000015200 $install_prog $dir/$dlname \$dldir/$dlname~
15201 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000015202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15203 dlpath=$dir/\$dldll~
15204 $rm \$dlpath'
15205 shlibpath_overrides_runpath=yes
15206
15207 case $host_os in
15208 cygwin*)
15209 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15210 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15211 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15212 ;;
15213 mingw*)
15214 # MinGW DLLs use traditional 'lib' prefix
15215 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15216 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15217 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15218 # It is most probably a Windows format PATH printed by
15219 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15220 # path with ; separators, and with drive letters. We can handle the
15221 # drive letters (cygwin fileutils understands them), so leave them,
15222 # especially as we might pass files found there to a mingw objdump,
15223 # which wouldn't understand a cygwinified path. Ahh.
15224 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15225 else
15226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15227 fi
15228 ;;
15229 pw32*)
15230 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000015231 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 +000015232 ;;
15233 esac
15234 ;;
15235
15236 *)
15237 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15238 ;;
15239 esac
15240 dynamic_linker='Win32 ld.exe'
15241 # FIXME: first we should search . and the directory the executable is in
15242 shlibpath_var=PATH
15243 ;;
15244
15245darwin* | rhapsody*)
15246 dynamic_linker="$host_os dyld"
15247 version_type=darwin
15248 need_lib_prefix=no
15249 need_version=no
15250 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15251 soname_spec='${libname}${release}${major}$shared_ext'
15252 shlibpath_overrides_runpath=yes
15253 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000015254 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
brynercb91a2f2006-08-25 21:14:45 +000015255 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15256 if test "$GCC" = yes; then
15257 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15258 else
15259 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15260 fi
15261 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15262 ;;
15263
15264dgux*)
15265 version_type=linux
15266 need_lib_prefix=no
15267 need_version=no
15268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15269 soname_spec='${libname}${release}${shared_ext}$major'
15270 shlibpath_var=LD_LIBRARY_PATH
15271 ;;
15272
15273freebsd1*)
15274 dynamic_linker=no
15275 ;;
15276
15277kfreebsd*-gnu)
15278 version_type=linux
15279 need_lib_prefix=no
15280 need_version=no
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15282 soname_spec='${libname}${release}${shared_ext}$major'
15283 shlibpath_var=LD_LIBRARY_PATH
15284 shlibpath_overrides_runpath=no
15285 hardcode_into_libs=yes
15286 dynamic_linker='GNU ld.so'
15287 ;;
15288
mmentovai8c2a4de2006-09-20 16:20:15 +000015289freebsd* | dragonfly*)
15290 # DragonFly does not have aout. When/if they implement a new
15291 # versioning mechanism, adjust this.
15292 if test -x /usr/bin/objformat; then
15293 objformat=`/usr/bin/objformat`
15294 else
15295 case $host_os in
15296 freebsd[123]*) objformat=aout ;;
15297 *) objformat=elf ;;
15298 esac
15299 fi
brynercb91a2f2006-08-25 21:14:45 +000015300 version_type=freebsd-$objformat
15301 case $version_type in
15302 freebsd-elf*)
15303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15304 need_version=no
15305 need_lib_prefix=no
15306 ;;
15307 freebsd-*)
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15309 need_version=yes
15310 ;;
15311 esac
15312 shlibpath_var=LD_LIBRARY_PATH
15313 case $host_os in
15314 freebsd2*)
15315 shlibpath_overrides_runpath=yes
15316 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015317 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000015318 shlibpath_overrides_runpath=yes
15319 hardcode_into_libs=yes
15320 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015321 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15322 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000015323 shlibpath_overrides_runpath=no
15324 hardcode_into_libs=yes
15325 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015326 freebsd*) # from 4.6 on
15327 shlibpath_overrides_runpath=yes
15328 hardcode_into_libs=yes
15329 ;;
brynercb91a2f2006-08-25 21:14:45 +000015330 esac
15331 ;;
15332
15333gnu*)
15334 version_type=linux
15335 need_lib_prefix=no
15336 need_version=no
15337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15338 soname_spec='${libname}${release}${shared_ext}$major'
15339 shlibpath_var=LD_LIBRARY_PATH
15340 hardcode_into_libs=yes
15341 ;;
15342
15343hpux9* | hpux10* | hpux11*)
15344 # Give a soname corresponding to the major version so that dld.sl refuses to
15345 # link against other versions.
15346 version_type=sunos
15347 need_lib_prefix=no
15348 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000015349 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000015350 ia64*)
15351 shrext_cmds='.so'
15352 hardcode_into_libs=yes
15353 dynamic_linker="$host_os dld.so"
15354 shlibpath_var=LD_LIBRARY_PATH
15355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15357 soname_spec='${libname}${release}${shared_ext}$major'
15358 if test "X$HPUX_IA64_MODE" = X32; then
15359 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15360 else
15361 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15362 fi
15363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15364 ;;
15365 hppa*64*)
15366 shrext_cmds='.sl'
15367 hardcode_into_libs=yes
15368 dynamic_linker="$host_os dld.sl"
15369 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15372 soname_spec='${libname}${release}${shared_ext}$major'
15373 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15375 ;;
15376 *)
15377 shrext_cmds='.sl'
15378 dynamic_linker="$host_os dld.sl"
15379 shlibpath_var=SHLIB_PATH
15380 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15382 soname_spec='${libname}${release}${shared_ext}$major'
15383 ;;
15384 esac
15385 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15386 postinstall_cmds='chmod 555 $lib'
15387 ;;
15388
mmentovai8c2a4de2006-09-20 16:20:15 +000015389interix3*)
15390 version_type=linux
15391 need_lib_prefix=no
15392 need_version=no
15393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15394 soname_spec='${libname}${release}${shared_ext}$major'
15395 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15396 shlibpath_var=LD_LIBRARY_PATH
15397 shlibpath_overrides_runpath=no
15398 hardcode_into_libs=yes
15399 ;;
15400
brynercb91a2f2006-08-25 21:14:45 +000015401irix5* | irix6* | nonstopux*)
15402 case $host_os in
15403 nonstopux*) version_type=nonstopux ;;
15404 *)
15405 if test "$lt_cv_prog_gnu_ld" = yes; then
15406 version_type=linux
15407 else
15408 version_type=irix
15409 fi ;;
15410 esac
15411 need_lib_prefix=no
15412 need_version=no
15413 soname_spec='${libname}${release}${shared_ext}$major'
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15415 case $host_os in
15416 irix5* | nonstopux*)
15417 libsuff= shlibsuff=
15418 ;;
15419 *)
15420 case $LD in # libtool.m4 will add one of these switches to LD
15421 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15422 libsuff= shlibsuff= libmagic=32-bit;;
15423 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15424 libsuff=32 shlibsuff=N32 libmagic=N32;;
15425 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15426 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15427 *) libsuff= shlibsuff= libmagic=never-match;;
15428 esac
15429 ;;
15430 esac
15431 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15432 shlibpath_overrides_runpath=no
15433 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15434 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15435 hardcode_into_libs=yes
15436 ;;
15437
15438# No shared lib support for Linux oldld, aout, or coff.
15439linux*oldld* | linux*aout* | linux*coff*)
15440 dynamic_linker=no
15441 ;;
15442
15443# This must be Linux ELF.
15444linux*)
15445 version_type=linux
15446 need_lib_prefix=no
15447 need_version=no
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449 soname_spec='${libname}${release}${shared_ext}$major'
15450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15451 shlibpath_var=LD_LIBRARY_PATH
15452 shlibpath_overrides_runpath=no
15453 # This implies no fast_install, which is unacceptable.
15454 # Some rework will be needed to allow for fast_install
15455 # before this can be enabled.
15456 hardcode_into_libs=yes
15457
15458 # Append ld.so.conf contents to the search path
15459 if test -f /etc/ld.so.conf; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015460 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
brynercb91a2f2006-08-25 21:14:45 +000015461 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15462 fi
15463
15464 # We used to test for /lib/ld.so.1 and disable shared libraries on
15465 # powerpc, because MkLinux only supported shared libraries with the
15466 # GNU dynamic linker. Since this was broken with cross compilers,
15467 # most powerpc-linux boxes support dynamic linking these days and
15468 # people can always --disable-shared, the test was removed, and we
15469 # assume the GNU/Linux dynamic linker is in use.
15470 dynamic_linker='GNU/Linux ld.so'
15471 ;;
15472
brynercb91a2f2006-08-25 21:14:45 +000015473knetbsd*-gnu)
15474 version_type=linux
15475 need_lib_prefix=no
15476 need_version=no
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15478 soname_spec='${libname}${release}${shared_ext}$major'
15479 shlibpath_var=LD_LIBRARY_PATH
15480 shlibpath_overrides_runpath=no
15481 hardcode_into_libs=yes
15482 dynamic_linker='GNU ld.so'
15483 ;;
15484
15485netbsd*)
15486 version_type=sunos
15487 need_lib_prefix=no
15488 need_version=no
15489 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15492 dynamic_linker='NetBSD (a.out) ld.so'
15493 else
15494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15495 soname_spec='${libname}${release}${shared_ext}$major'
15496 dynamic_linker='NetBSD ld.elf_so'
15497 fi
15498 shlibpath_var=LD_LIBRARY_PATH
15499 shlibpath_overrides_runpath=yes
15500 hardcode_into_libs=yes
15501 ;;
15502
15503newsos6)
15504 version_type=linux
15505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15506 shlibpath_var=LD_LIBRARY_PATH
15507 shlibpath_overrides_runpath=yes
15508 ;;
15509
15510nto-qnx*)
15511 version_type=linux
15512 need_lib_prefix=no
15513 need_version=no
15514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15515 soname_spec='${libname}${release}${shared_ext}$major'
15516 shlibpath_var=LD_LIBRARY_PATH
15517 shlibpath_overrides_runpath=yes
15518 ;;
15519
15520openbsd*)
15521 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000015522 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000015523 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000015524 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15525 case $host_os in
15526 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15527 *) need_version=no ;;
15528 esac
brynercb91a2f2006-08-25 21:14:45 +000015529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15531 shlibpath_var=LD_LIBRARY_PATH
15532 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15533 case $host_os in
15534 openbsd2.[89] | openbsd2.[89].*)
15535 shlibpath_overrides_runpath=no
15536 ;;
15537 *)
15538 shlibpath_overrides_runpath=yes
15539 ;;
15540 esac
15541 else
15542 shlibpath_overrides_runpath=yes
15543 fi
15544 ;;
15545
15546os2*)
15547 libname_spec='$name'
15548 shrext_cmds=".dll"
15549 need_lib_prefix=no
15550 library_names_spec='$libname${shared_ext} $libname.a'
15551 dynamic_linker='OS/2 ld.exe'
15552 shlibpath_var=LIBPATH
15553 ;;
15554
15555osf3* | osf4* | osf5*)
15556 version_type=osf
15557 need_lib_prefix=no
15558 need_version=no
15559 soname_spec='${libname}${release}${shared_ext}$major'
15560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15561 shlibpath_var=LD_LIBRARY_PATH
15562 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15563 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15564 ;;
15565
brynercb91a2f2006-08-25 21:14:45 +000015566solaris*)
15567 version_type=linux
15568 need_lib_prefix=no
15569 need_version=no
15570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15571 soname_spec='${libname}${release}${shared_ext}$major'
15572 shlibpath_var=LD_LIBRARY_PATH
15573 shlibpath_overrides_runpath=yes
15574 hardcode_into_libs=yes
15575 # ldd complains unless libraries are executable
15576 postinstall_cmds='chmod +x $lib'
15577 ;;
15578
15579sunos4*)
15580 version_type=sunos
15581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15582 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15583 shlibpath_var=LD_LIBRARY_PATH
15584 shlibpath_overrides_runpath=yes
15585 if test "$with_gnu_ld" = yes; then
15586 need_lib_prefix=no
15587 fi
15588 need_version=yes
15589 ;;
15590
mmentovai8c2a4de2006-09-20 16:20:15 +000015591sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000015592 version_type=linux
15593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594 soname_spec='${libname}${release}${shared_ext}$major'
15595 shlibpath_var=LD_LIBRARY_PATH
15596 case $host_vendor in
15597 sni)
15598 shlibpath_overrides_runpath=no
15599 need_lib_prefix=no
15600 export_dynamic_flag_spec='${wl}-Blargedynsym'
15601 runpath_var=LD_RUN_PATH
15602 ;;
15603 siemens)
15604 need_lib_prefix=no
15605 ;;
15606 motorola)
15607 need_lib_prefix=no
15608 need_version=no
15609 shlibpath_overrides_runpath=no
15610 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15611 ;;
15612 esac
15613 ;;
15614
15615sysv4*MP*)
15616 if test -d /usr/nec ;then
15617 version_type=linux
15618 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15619 soname_spec='$libname${shared_ext}.$major'
15620 shlibpath_var=LD_LIBRARY_PATH
15621 fi
15622 ;;
15623
mmentovai8c2a4de2006-09-20 16:20:15 +000015624sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15625 version_type=freebsd-elf
15626 need_lib_prefix=no
15627 need_version=no
15628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15629 soname_spec='${libname}${release}${shared_ext}$major'
15630 shlibpath_var=LD_LIBRARY_PATH
15631 hardcode_into_libs=yes
15632 if test "$with_gnu_ld" = yes; then
15633 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15634 shlibpath_overrides_runpath=no
15635 else
15636 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15637 shlibpath_overrides_runpath=yes
15638 case $host_os in
15639 sco3.2v5*)
15640 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15641 ;;
15642 esac
15643 fi
15644 sys_lib_dlsearch_path_spec='/usr/lib'
15645 ;;
15646
brynercb91a2f2006-08-25 21:14:45 +000015647uts4*)
15648 version_type=linux
15649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15650 soname_spec='${libname}${release}${shared_ext}$major'
15651 shlibpath_var=LD_LIBRARY_PATH
15652 ;;
15653
15654*)
15655 dynamic_linker=no
15656 ;;
15657esac
mmentovai8c2a4de2006-09-20 16:20:15 +000015658{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15659echo "${ECHO_T}$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015660test "$dynamic_linker" = no && can_build_shared=no
15661
mmentovai8c2a4de2006-09-20 16:20:15 +000015662variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15663if test "$GCC" = yes; then
15664 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15665fi
15666
15667{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15668echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015669hardcode_action_F77=
15670if test -n "$hardcode_libdir_flag_spec_F77" || \
mmentovai8c2a4de2006-09-20 16:20:15 +000015671 test -n "$runpath_var_F77" || \
15672 test "X$hardcode_automatic_F77" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000015673
15674 # We can hardcode non-existant directories.
15675 if test "$hardcode_direct_F77" != no &&
15676 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15677 # have to relink, otherwise we might link with an installed library
15678 # when we should be linking with a yet-to-be-installed one
15679 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15680 test "$hardcode_minus_L_F77" != no; then
15681 # Linking always hardcodes the temporary library directory.
15682 hardcode_action_F77=relink
15683 else
15684 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15685 hardcode_action_F77=immediate
15686 fi
15687else
15688 # We cannot hardcode anything, or else we can only hardcode existing
15689 # directories.
15690 hardcode_action_F77=unsupported
15691fi
mmentovai8c2a4de2006-09-20 16:20:15 +000015692{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15693echo "${ECHO_T}$hardcode_action_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015694
15695if test "$hardcode_action_F77" = relink; then
15696 # Fast installation is not supported
15697 enable_fast_install=no
15698elif test "$shlibpath_overrides_runpath" = yes ||
15699 test "$enable_shared" = no; then
15700 # Fast installation is not necessary
15701 enable_fast_install=needless
15702fi
15703
brynercb91a2f2006-08-25 21:14:45 +000015704
15705# The else clause should only fire when bootstrapping the
15706# libtool distribution, otherwise you forgot to ship ltmain.sh
15707# with your package, and you will get complaints that there are
15708# no rules to generate ltmain.sh.
15709if test -f "$ltmain"; then
15710 # See if we are running on zsh, and set the options which allow our commands through
15711 # without removal of \ escapes.
15712 if test -n "${ZSH_VERSION+set}" ; then
15713 setopt NO_GLOB_SUBST
15714 fi
15715 # Now quote all the things that may contain metacharacters while being
15716 # careful not to overquote the AC_SUBSTed values. We take copies of the
15717 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000015718 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000015719 SED SHELL STRIP \
15720 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15721 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15722 deplibs_check_method reload_flag reload_cmds need_locks \
15723 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15724 lt_cv_sys_global_symbol_to_c_name_address \
15725 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15726 old_postinstall_cmds old_postuninstall_cmds \
15727 compiler_F77 \
15728 CC_F77 \
15729 LD_F77 \
15730 lt_prog_compiler_wl_F77 \
15731 lt_prog_compiler_pic_F77 \
15732 lt_prog_compiler_static_F77 \
15733 lt_prog_compiler_no_builtin_flag_F77 \
15734 export_dynamic_flag_spec_F77 \
15735 thread_safe_flag_spec_F77 \
15736 whole_archive_flag_spec_F77 \
15737 enable_shared_with_static_runtimes_F77 \
15738 old_archive_cmds_F77 \
15739 old_archive_from_new_cmds_F77 \
15740 predep_objects_F77 \
15741 postdep_objects_F77 \
15742 predeps_F77 \
15743 postdeps_F77 \
15744 compiler_lib_search_path_F77 \
15745 archive_cmds_F77 \
15746 archive_expsym_cmds_F77 \
15747 postinstall_cmds_F77 \
15748 postuninstall_cmds_F77 \
15749 old_archive_from_expsyms_cmds_F77 \
15750 allow_undefined_flag_F77 \
15751 no_undefined_flag_F77 \
15752 export_symbols_cmds_F77 \
15753 hardcode_libdir_flag_spec_F77 \
15754 hardcode_libdir_flag_spec_ld_F77 \
15755 hardcode_libdir_separator_F77 \
15756 hardcode_automatic_F77 \
15757 module_cmds_F77 \
15758 module_expsym_cmds_F77 \
15759 lt_cv_prog_compiler_c_o_F77 \
15760 exclude_expsyms_F77 \
15761 include_expsyms_F77; do
15762
15763 case $var in
15764 old_archive_cmds_F77 | \
15765 old_archive_from_new_cmds_F77 | \
15766 archive_cmds_F77 | \
15767 archive_expsym_cmds_F77 | \
15768 module_cmds_F77 | \
15769 module_expsym_cmds_F77 | \
15770 old_archive_from_expsyms_cmds_F77 | \
15771 export_symbols_cmds_F77 | \
15772 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15773 postinstall_cmds | postuninstall_cmds | \
15774 old_postinstall_cmds | old_postuninstall_cmds | \
15775 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15776 # Double-quote double-evaled strings.
15777 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15778 ;;
15779 *)
15780 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15781 ;;
15782 esac
15783 done
15784
15785 case $lt_echo in
15786 *'\$0 --fallback-echo"')
15787 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15788 ;;
15789 esac
15790
15791cfgfile="$ofile"
15792
15793 cat <<__EOF__ >> "$cfgfile"
15794# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15795
15796# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15797
15798# Shell to use when invoking shell scripts.
15799SHELL=$lt_SHELL
15800
15801# Whether or not to build shared libraries.
15802build_libtool_libs=$enable_shared
15803
15804# Whether or not to build static libraries.
15805build_old_libs=$enable_static
15806
15807# Whether or not to add -lc for building shared libraries.
15808build_libtool_need_lc=$archive_cmds_need_lc_F77
15809
15810# Whether or not to disallow shared libs when runtime libs are static
15811allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15812
15813# Whether or not to optimize for fast installation.
15814fast_install=$enable_fast_install
15815
15816# The host system.
15817host_alias=$host_alias
15818host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000015819host_os=$host_os
15820
15821# The build system.
15822build_alias=$build_alias
15823build=$build
15824build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000015825
15826# An echo program that does not interpret backslashes.
15827echo=$lt_echo
15828
15829# The archiver.
15830AR=$lt_AR
15831AR_FLAGS=$lt_AR_FLAGS
15832
15833# A C compiler.
15834LTCC=$lt_LTCC
15835
mmentovai8c2a4de2006-09-20 16:20:15 +000015836# LTCC compiler flags.
15837LTCFLAGS=$lt_LTCFLAGS
15838
brynercb91a2f2006-08-25 21:14:45 +000015839# A language-specific compiler.
15840CC=$lt_compiler_F77
15841
15842# Is the compiler the GNU C compiler?
15843with_gcc=$GCC_F77
15844
15845# An ERE matcher.
15846EGREP=$lt_EGREP
15847
15848# The linker used to build libraries.
15849LD=$lt_LD_F77
15850
15851# Whether we need hard or soft links.
15852LN_S=$lt_LN_S
15853
15854# A BSD-compatible nm program.
15855NM=$lt_NM
15856
15857# A symbol stripping program
15858STRIP=$lt_STRIP
15859
15860# Used to examine libraries when file_magic_cmd begins "file"
15861MAGIC_CMD=$MAGIC_CMD
15862
15863# Used on cygwin: DLL creation program.
15864DLLTOOL="$DLLTOOL"
15865
15866# Used on cygwin: object dumper.
15867OBJDUMP="$OBJDUMP"
15868
15869# Used on cygwin: assembler.
15870AS="$AS"
15871
15872# The name of the directory that contains temporary libtool files.
15873objdir=$objdir
15874
15875# How to create reloadable object files.
15876reload_flag=$lt_reload_flag
15877reload_cmds=$lt_reload_cmds
15878
15879# How to pass a linker flag through the compiler.
15880wl=$lt_lt_prog_compiler_wl_F77
15881
15882# Object file suffix (normally "o").
15883objext="$ac_objext"
15884
15885# Old archive suffix (normally "a").
15886libext="$libext"
15887
15888# Shared library suffix (normally ".so").
15889shrext_cmds='$shrext_cmds'
15890
15891# Executable file suffix (normally "").
15892exeext="$exeext"
15893
15894# Additional compiler flags for building library objects.
15895pic_flag=$lt_lt_prog_compiler_pic_F77
15896pic_mode=$pic_mode
15897
15898# What is the maximum length of a command?
15899max_cmd_len=$lt_cv_sys_max_cmd_len
15900
15901# Does compiler simultaneously support -c and -o options?
15902compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15903
mmentovai8c2a4de2006-09-20 16:20:15 +000015904# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000015905need_locks=$lt_need_locks
15906
15907# Do we need the lib prefix for modules?
15908need_lib_prefix=$need_lib_prefix
15909
15910# Do we need a version for libraries?
15911need_version=$need_version
15912
15913# Whether dlopen is supported.
15914dlopen_support=$enable_dlopen
15915
15916# Whether dlopen of programs is supported.
15917dlopen_self=$enable_dlopen_self
15918
15919# Whether dlopen of statically linked programs is supported.
15920dlopen_self_static=$enable_dlopen_self_static
15921
15922# Compiler flag to prevent dynamic linking.
15923link_static_flag=$lt_lt_prog_compiler_static_F77
15924
15925# Compiler flag to turn off builtin functions.
15926no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15927
15928# Compiler flag to allow reflexive dlopens.
15929export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15930
15931# Compiler flag to generate shared objects directly from archives.
15932whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15933
15934# Compiler flag to generate thread-safe objects.
15935thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15936
15937# Library versioning type.
15938version_type=$version_type
15939
15940# Format of library name prefix.
15941libname_spec=$lt_libname_spec
15942
15943# List of archive names. First name is the real one, the rest are links.
15944# The last name is the one that the linker finds with -lNAME.
15945library_names_spec=$lt_library_names_spec
15946
15947# The coded name of the library, if different from the real name.
15948soname_spec=$lt_soname_spec
15949
15950# Commands used to build and install an old-style archive.
15951RANLIB=$lt_RANLIB
15952old_archive_cmds=$lt_old_archive_cmds_F77
15953old_postinstall_cmds=$lt_old_postinstall_cmds
15954old_postuninstall_cmds=$lt_old_postuninstall_cmds
15955
15956# Create an old-style archive from a shared archive.
15957old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15958
15959# Create a temporary old-style archive to link instead of a shared archive.
15960old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15961
15962# Commands used to build and install a shared archive.
15963archive_cmds=$lt_archive_cmds_F77
15964archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15965postinstall_cmds=$lt_postinstall_cmds
15966postuninstall_cmds=$lt_postuninstall_cmds
15967
15968# Commands used to build a loadable module (assumed same as above if empty)
15969module_cmds=$lt_module_cmds_F77
15970module_expsym_cmds=$lt_module_expsym_cmds_F77
15971
15972# Commands to strip libraries.
15973old_striplib=$lt_old_striplib
15974striplib=$lt_striplib
15975
15976# Dependencies to place before the objects being linked to create a
15977# shared library.
15978predep_objects=$lt_predep_objects_F77
15979
15980# Dependencies to place after the objects being linked to create a
15981# shared library.
15982postdep_objects=$lt_postdep_objects_F77
15983
15984# Dependencies to place before the objects being linked to create a
15985# shared library.
15986predeps=$lt_predeps_F77
15987
15988# Dependencies to place after the objects being linked to create a
15989# shared library.
15990postdeps=$lt_postdeps_F77
15991
15992# The library search path used internally by the compiler when linking
15993# a shared library.
15994compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15995
15996# Method to check whether dependent libraries are shared objects.
15997deplibs_check_method=$lt_deplibs_check_method
15998
15999# Command to use when deplibs_check_method == file_magic.
16000file_magic_cmd=$lt_file_magic_cmd
16001
16002# Flag that allows shared libraries with undefined symbols to be built.
16003allow_undefined_flag=$lt_allow_undefined_flag_F77
16004
16005# Flag that forces no undefined symbols.
16006no_undefined_flag=$lt_no_undefined_flag_F77
16007
16008# Commands used to finish a libtool library installation in a directory.
16009finish_cmds=$lt_finish_cmds
16010
16011# Same as above, but a single script fragment to be evaled but not shown.
16012finish_eval=$lt_finish_eval
16013
16014# Take the output of nm and produce a listing of raw symbols and C names.
16015global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16016
16017# Transform the output of nm in a proper C declaration
16018global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16019
16020# Transform the output of nm in a C name address pair
16021global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16022
16023# This is the shared library runtime path variable.
16024runpath_var=$runpath_var
16025
16026# This is the shared library path variable.
16027shlibpath_var=$shlibpath_var
16028
16029# Is shlibpath searched before the hard-coded library search path?
16030shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16031
16032# How to hardcode a shared library path into an executable.
16033hardcode_action=$hardcode_action_F77
16034
16035# Whether we should hardcode library paths into libraries.
16036hardcode_into_libs=$hardcode_into_libs
16037
16038# Flag to hardcode \$libdir into a binary during linking.
16039# This must work even if \$libdir does not exist.
16040hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16041
16042# If ld is used when linking, flag to hardcode \$libdir into
16043# a binary during linking. This must work even if \$libdir does
16044# not exist.
16045hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16046
16047# Whether we need a single -rpath flag with a separated argument.
16048hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16049
16050# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16051# resulting binary.
16052hardcode_direct=$hardcode_direct_F77
16053
16054# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16055# resulting binary.
16056hardcode_minus_L=$hardcode_minus_L_F77
16057
16058# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16059# the resulting binary.
16060hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16061
16062# Set to yes if building a shared library automatically hardcodes DIR into the library
16063# and all subsequent libraries and executables linked against it.
16064hardcode_automatic=$hardcode_automatic_F77
16065
16066# Variables whose values should be saved in libtool wrapper scripts and
16067# restored at relink time.
16068variables_saved_for_relink="$variables_saved_for_relink"
16069
16070# Whether libtool must link a program against all its dependency libraries.
16071link_all_deplibs=$link_all_deplibs_F77
16072
16073# Compile-time system search path for libraries
16074sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16075
16076# Run-time system search path for libraries
16077sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16078
16079# Fix the shell variable \$srcfile for the compiler.
16080fix_srcfile_path="$fix_srcfile_path_F77"
16081
16082# Set to yes if exported symbols are required.
16083always_export_symbols=$always_export_symbols_F77
16084
16085# The commands to list exported symbols.
16086export_symbols_cmds=$lt_export_symbols_cmds_F77
16087
16088# The commands to extract the exported symbol list from a shared archive.
16089extract_expsyms_cmds=$lt_extract_expsyms_cmds
16090
16091# Symbols that should not be listed in the preloaded symbols.
16092exclude_expsyms=$lt_exclude_expsyms_F77
16093
16094# Symbols that must always be exported.
16095include_expsyms=$lt_include_expsyms_F77
16096
16097# ### END LIBTOOL TAG CONFIG: $tagname
16098
16099__EOF__
16100
16101
16102else
16103 # If there is no Makefile yet, we rely on a make rule to execute
16104 # `config.status --recheck' to rerun these tests and create the
16105 # libtool script then.
16106 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16107 if test -f "$ltmain_in"; then
16108 test -f Makefile && make "$ltmain"
16109 fi
16110fi
16111
16112
16113ac_ext=c
16114ac_cpp='$CPP $CPPFLAGS'
16115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16117ac_compiler_gnu=$ac_cv_c_compiler_gnu
16118
16119CC="$lt_save_CC"
16120
16121 else
16122 tagname=""
16123 fi
16124 ;;
16125
16126 GCJ)
16127 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16128
16129
brynercb91a2f2006-08-25 21:14:45 +000016130# Source file extension for Java test sources.
16131ac_ext=java
16132
16133# Object file extension for compiled Java test sources.
16134objext=o
16135objext_GCJ=$objext
16136
16137# Code to be used in simple compile tests
16138lt_simple_compile_test_code="class foo {}\n"
16139
16140# Code to be used in simple link tests
mmentovai8c2a4de2006-09-20 16:20:15 +000016141lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
brynercb91a2f2006-08-25 21:14:45 +000016142
16143# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16144
16145# If no C compiler was specified, use CC.
16146LTCC=${LTCC-"$CC"}
16147
mmentovai8c2a4de2006-09-20 16:20:15 +000016148# If no C compiler flags were specified, use CFLAGS.
16149LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16150
brynercb91a2f2006-08-25 21:14:45 +000016151# Allow CC to be a program name with arguments.
16152compiler=$CC
16153
16154
mmentovai8c2a4de2006-09-20 16:20:15 +000016155# save warnings/boilerplate of simple test code
16156ac_outfile=conftest.$ac_objext
16157printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16158eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16159_lt_compiler_boilerplate=`cat conftest.err`
16160$rm conftest*
16161
16162ac_outfile=conftest.$ac_objext
16163printf "$lt_simple_link_test_code" >conftest.$ac_ext
16164eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16165_lt_linker_boilerplate=`cat conftest.err`
16166$rm conftest*
16167
16168
brynercb91a2f2006-08-25 21:14:45 +000016169# Allow CC to be a program name with arguments.
16170lt_save_CC="$CC"
16171CC=${GCJ-"gcj"}
16172compiler=$CC
16173compiler_GCJ=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +000016174for cc_temp in $compiler""; do
16175 case $cc_temp in
16176 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16177 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16178 \-*) ;;
16179 *) break;;
16180 esac
16181done
16182cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16183
brynercb91a2f2006-08-25 21:14:45 +000016184
16185# GCJ did not exist at the time GCC didn't implicitly link libc in.
16186archive_cmds_need_lc_GCJ=no
16187
mmentovai8c2a4de2006-09-20 16:20:15 +000016188old_archive_cmds_GCJ=$old_archive_cmds
16189
brynercb91a2f2006-08-25 21:14:45 +000016190
16191lt_prog_compiler_no_builtin_flag_GCJ=
16192
16193if test "$GCC" = yes; then
16194 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16195
16196
mmentovai8c2a4de2006-09-20 16:20:15 +000016197{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16198echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016199if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16201else
16202 lt_cv_prog_compiler_rtti_exceptions=no
16203 ac_outfile=conftest.$ac_objext
16204 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16205 lt_compiler_flag="-fno-rtti -fno-exceptions"
16206 # Insert the option either (1) after the last *FLAGS variable, or
16207 # (2) before a word containing "conftest.", or (3) at the end.
16208 # Note that $ac_compile itself does not contain backslashes and begins
16209 # with a dollar sign (not a hyphen), so the echo should work correctly.
16210 # The option is referenced via a variable to avoid confusing sed.
16211 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000016212 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000016213 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16214 -e 's:$: $lt_compiler_flag:'`
mmentovaiaf3c43f2007-05-17 18:34:37 +000016215 (eval echo "\"\$as_me:16215: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000016216 (eval "$lt_compile" 2>conftest.err)
16217 ac_status=$?
16218 cat conftest.err >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000016219 echo "$as_me:16219: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000016220 if (exit $ac_status) && test -s "$ac_outfile"; then
16221 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000016222 # So say no if there are warnings other than the usual output.
16223 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16224 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16225 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000016226 lt_cv_prog_compiler_rtti_exceptions=yes
16227 fi
16228 fi
16229 $rm conftest*
16230
16231fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016232{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16233echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016234
16235if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16236 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16237else
16238 :
16239fi
16240
16241fi
16242
16243lt_prog_compiler_wl_GCJ=
16244lt_prog_compiler_pic_GCJ=
16245lt_prog_compiler_static_GCJ=
16246
mmentovai8c2a4de2006-09-20 16:20:15 +000016247{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16248echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016249
16250 if test "$GCC" = yes; then
16251 lt_prog_compiler_wl_GCJ='-Wl,'
16252 lt_prog_compiler_static_GCJ='-static'
16253
16254 case $host_os in
16255 aix*)
16256 # All AIX code is PIC.
16257 if test "$host_cpu" = ia64; then
16258 # AIX 5 now supports IA64 processor
16259 lt_prog_compiler_static_GCJ='-Bstatic'
16260 fi
16261 ;;
16262
16263 amigaos*)
16264 # FIXME: we need at least 68020 code to build shared libraries, but
16265 # adding the `-m68020' flag to GCC prevents building anything better,
16266 # like `-m68040'.
16267 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16268 ;;
16269
16270 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16271 # PIC is the default for these OSes.
16272 ;;
16273
16274 mingw* | pw32* | os2*)
16275 # This hack is so that the source file can tell whether it is being
16276 # built for inclusion in a dll (and should export symbols for example).
16277 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16278 ;;
16279
16280 darwin* | rhapsody*)
16281 # PIC is the default on this platform
16282 # Common symbols not allowed in MH_DYLIB files
16283 lt_prog_compiler_pic_GCJ='-fno-common'
16284 ;;
16285
mmentovai8c2a4de2006-09-20 16:20:15 +000016286 interix3*)
16287 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16288 # Instead, we relocate shared libraries at runtime.
16289 ;;
16290
brynercb91a2f2006-08-25 21:14:45 +000016291 msdosdjgpp*)
16292 # Just because we use GCC doesn't mean we suddenly get shared libraries
16293 # on systems that don't support them.
16294 lt_prog_compiler_can_build_shared_GCJ=no
16295 enable_shared=no
16296 ;;
16297
16298 sysv4*MP*)
16299 if test -d /usr/nec; then
16300 lt_prog_compiler_pic_GCJ=-Kconform_pic
16301 fi
16302 ;;
16303
16304 hpux*)
16305 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16306 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000016307 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000016308 hppa*64*|ia64*)
16309 # +Z the default
16310 ;;
16311 *)
16312 lt_prog_compiler_pic_GCJ='-fPIC'
16313 ;;
16314 esac
16315 ;;
16316
16317 *)
16318 lt_prog_compiler_pic_GCJ='-fPIC'
16319 ;;
16320 esac
16321 else
16322 # PORTME Check for flag to pass linker flags through the system compiler.
16323 case $host_os in
16324 aix*)
16325 lt_prog_compiler_wl_GCJ='-Wl,'
16326 if test "$host_cpu" = ia64; then
16327 # AIX 5 now supports IA64 processor
16328 lt_prog_compiler_static_GCJ='-Bstatic'
16329 else
16330 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16331 fi
16332 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016333 darwin*)
16334 # PIC is the default on this platform
16335 # Common symbols not allowed in MH_DYLIB files
16336 case $cc_basename in
16337 xlc*)
16338 lt_prog_compiler_pic_GCJ='-qnocommon'
16339 lt_prog_compiler_wl_GCJ='-Wl,'
16340 ;;
16341 esac
16342 ;;
brynercb91a2f2006-08-25 21:14:45 +000016343
16344 mingw* | pw32* | os2*)
16345 # This hack is so that the source file can tell whether it is being
16346 # built for inclusion in a dll (and should export symbols for example).
16347 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16348 ;;
16349
16350 hpux9* | hpux10* | hpux11*)
16351 lt_prog_compiler_wl_GCJ='-Wl,'
16352 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16353 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000016354 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000016355 hppa*64*|ia64*)
16356 # +Z the default
16357 ;;
16358 *)
16359 lt_prog_compiler_pic_GCJ='+Z'
16360 ;;
16361 esac
16362 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16363 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16364 ;;
16365
16366 irix5* | irix6* | nonstopux*)
16367 lt_prog_compiler_wl_GCJ='-Wl,'
16368 # PIC (with -KPIC) is the default.
16369 lt_prog_compiler_static_GCJ='-non_shared'
16370 ;;
16371
16372 newsos6)
16373 lt_prog_compiler_pic_GCJ='-KPIC'
16374 lt_prog_compiler_static_GCJ='-Bstatic'
16375 ;;
16376
16377 linux*)
mmentovai8c2a4de2006-09-20 16:20:15 +000016378 case $cc_basename in
brynercb91a2f2006-08-25 21:14:45 +000016379 icc* | ecc*)
16380 lt_prog_compiler_wl_GCJ='-Wl,'
16381 lt_prog_compiler_pic_GCJ='-KPIC'
16382 lt_prog_compiler_static_GCJ='-static'
16383 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016384 pgcc* | pgf77* | pgf90* | pgf95*)
16385 # Portland Group compilers (*not* the Pentium gcc compiler,
16386 # which looks to be a dead project)
16387 lt_prog_compiler_wl_GCJ='-Wl,'
16388 lt_prog_compiler_pic_GCJ='-fpic'
16389 lt_prog_compiler_static_GCJ='-Bstatic'
16390 ;;
brynercb91a2f2006-08-25 21:14:45 +000016391 ccc*)
16392 lt_prog_compiler_wl_GCJ='-Wl,'
16393 # All Alpha code is PIC.
16394 lt_prog_compiler_static_GCJ='-non_shared'
16395 ;;
16396 esac
16397 ;;
16398
16399 osf3* | osf4* | osf5*)
16400 lt_prog_compiler_wl_GCJ='-Wl,'
16401 # All OSF/1 code is PIC.
16402 lt_prog_compiler_static_GCJ='-non_shared'
16403 ;;
16404
brynercb91a2f2006-08-25 21:14:45 +000016405 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000016406 lt_prog_compiler_pic_GCJ='-KPIC'
16407 lt_prog_compiler_static_GCJ='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +000016408 case $cc_basename in
16409 f77* | f90* | f95*)
16410 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16411 *)
16412 lt_prog_compiler_wl_GCJ='-Wl,';;
16413 esac
brynercb91a2f2006-08-25 21:14:45 +000016414 ;;
16415
16416 sunos4*)
16417 lt_prog_compiler_wl_GCJ='-Qoption ld '
16418 lt_prog_compiler_pic_GCJ='-PIC'
16419 lt_prog_compiler_static_GCJ='-Bstatic'
16420 ;;
16421
mmentovai8c2a4de2006-09-20 16:20:15 +000016422 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000016423 lt_prog_compiler_wl_GCJ='-Wl,'
16424 lt_prog_compiler_pic_GCJ='-KPIC'
16425 lt_prog_compiler_static_GCJ='-Bstatic'
16426 ;;
16427
16428 sysv4*MP*)
16429 if test -d /usr/nec ;then
16430 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16431 lt_prog_compiler_static_GCJ='-Bstatic'
16432 fi
16433 ;;
16434
mmentovai8c2a4de2006-09-20 16:20:15 +000016435 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16436 lt_prog_compiler_wl_GCJ='-Wl,'
16437 lt_prog_compiler_pic_GCJ='-KPIC'
16438 lt_prog_compiler_static_GCJ='-Bstatic'
16439 ;;
16440
16441 unicos*)
16442 lt_prog_compiler_wl_GCJ='-Wl,'
16443 lt_prog_compiler_can_build_shared_GCJ=no
16444 ;;
16445
brynercb91a2f2006-08-25 21:14:45 +000016446 uts4*)
16447 lt_prog_compiler_pic_GCJ='-pic'
16448 lt_prog_compiler_static_GCJ='-Bstatic'
16449 ;;
16450
16451 *)
16452 lt_prog_compiler_can_build_shared_GCJ=no
16453 ;;
16454 esac
16455 fi
16456
mmentovai8c2a4de2006-09-20 16:20:15 +000016457{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16458echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016459
16460#
16461# Check to make sure the PIC flag actually works.
16462#
16463if test -n "$lt_prog_compiler_pic_GCJ"; then
16464
mmentovai8c2a4de2006-09-20 16:20:15 +000016465{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16466echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016467if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16468 echo $ECHO_N "(cached) $ECHO_C" >&6
16469else
16470 lt_prog_compiler_pic_works_GCJ=no
16471 ac_outfile=conftest.$ac_objext
16472 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16473 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16474 # Insert the option either (1) after the last *FLAGS variable, or
16475 # (2) before a word containing "conftest.", or (3) at the end.
16476 # Note that $ac_compile itself does not contain backslashes and begins
16477 # with a dollar sign (not a hyphen), so the echo should work correctly.
16478 # The option is referenced via a variable to avoid confusing sed.
16479 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000016480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000016481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16482 -e 's:$: $lt_compiler_flag:'`
mmentovaiaf3c43f2007-05-17 18:34:37 +000016483 (eval echo "\"\$as_me:16483: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000016484 (eval "$lt_compile" 2>conftest.err)
16485 ac_status=$?
16486 cat conftest.err >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000016487 echo "$as_me:16487: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000016488 if (exit $ac_status) && test -s "$ac_outfile"; then
16489 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000016490 # So say no if there are warnings other than the usual output.
16491 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16493 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000016494 lt_prog_compiler_pic_works_GCJ=yes
16495 fi
16496 fi
16497 $rm conftest*
16498
16499fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016500{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16501echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016502
16503if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16504 case $lt_prog_compiler_pic_GCJ in
16505 "" | " "*) ;;
16506 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16507 esac
16508else
16509 lt_prog_compiler_pic_GCJ=
16510 lt_prog_compiler_can_build_shared_GCJ=no
16511fi
16512
16513fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016514case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000016515 # For platforms which do not support PIC, -DPIC is meaningless:
16516 *djgpp*)
16517 lt_prog_compiler_pic_GCJ=
16518 ;;
16519 *)
16520 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16521 ;;
16522esac
16523
mmentovai8c2a4de2006-09-20 16:20:15 +000016524#
16525# Check to make sure the static flag actually works.
16526#
16527wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16528{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16529echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16530if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16531 echo $ECHO_N "(cached) $ECHO_C" >&6
16532else
16533 lt_prog_compiler_static_works_GCJ=no
16534 save_LDFLAGS="$LDFLAGS"
16535 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16536 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16537 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16538 # The linker can only warn and ignore the option if not recognized
16539 # So say no if there are warnings
16540 if test -s conftest.err; then
16541 # Append any errors to the config.log.
16542 cat conftest.err 1>&5
16543 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16544 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16545 if diff conftest.exp conftest.er2 >/dev/null; then
16546 lt_prog_compiler_static_works_GCJ=yes
16547 fi
16548 else
16549 lt_prog_compiler_static_works_GCJ=yes
16550 fi
16551 fi
16552 $rm conftest*
16553 LDFLAGS="$save_LDFLAGS"
16554
16555fi
16556{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16557echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16558
16559if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16560 :
16561else
16562 lt_prog_compiler_static_GCJ=
16563fi
16564
16565
16566{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16567echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016568if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16569 echo $ECHO_N "(cached) $ECHO_C" >&6
16570else
16571 lt_cv_prog_compiler_c_o_GCJ=no
16572 $rm -r conftest 2>/dev/null
16573 mkdir conftest
16574 cd conftest
16575 mkdir out
16576 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16577
16578 lt_compiler_flag="-o out/conftest2.$ac_objext"
16579 # Insert the option either (1) after the last *FLAGS variable, or
16580 # (2) before a word containing "conftest.", or (3) at the end.
16581 # Note that $ac_compile itself does not contain backslashes and begins
16582 # with a dollar sign (not a hyphen), so the echo should work correctly.
16583 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000016584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000016585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16586 -e 's:$: $lt_compiler_flag:'`
mmentovaiaf3c43f2007-05-17 18:34:37 +000016587 (eval echo "\"\$as_me:16587: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000016588 (eval "$lt_compile" 2>out/conftest.err)
16589 ac_status=$?
16590 cat out/conftest.err >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000016591 echo "$as_me:16591: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000016592 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16593 then
16594 # The compiler can only warn and ignore the option if not recognized
16595 # So say no if there are warnings
mmentovai8c2a4de2006-09-20 16:20:15 +000016596 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16597 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16598 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000016599 lt_cv_prog_compiler_c_o_GCJ=yes
16600 fi
16601 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016602 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +000016603 $rm conftest*
16604 # SGI C++ compiler will create directory out/ii_files/ for
16605 # template instantiation
16606 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16607 $rm out/* && rmdir out
16608 cd ..
16609 rmdir conftest
16610 $rm conftest*
16611
16612fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016613{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16614echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016615
16616
16617hard_links="nottested"
16618if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16619 # do not overwrite the value of need_locks provided by the user
mmentovai8c2a4de2006-09-20 16:20:15 +000016620 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16621echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016622 hard_links=yes
16623 $rm conftest*
16624 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16625 touch conftest.a
16626 ln conftest.a conftest.b 2>&5 || hard_links=no
16627 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mmentovai8c2a4de2006-09-20 16:20:15 +000016628 { echo "$as_me:$LINENO: result: $hard_links" >&5
16629echo "${ECHO_T}$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016630 if test "$hard_links" = no; then
16631 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16632echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16633 need_locks=warn
16634 fi
16635else
16636 need_locks=no
16637fi
16638
mmentovai8c2a4de2006-09-20 16:20:15 +000016639{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16640echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016641
16642 runpath_var=
16643 allow_undefined_flag_GCJ=
16644 enable_shared_with_static_runtimes_GCJ=no
16645 archive_cmds_GCJ=
16646 archive_expsym_cmds_GCJ=
16647 old_archive_From_new_cmds_GCJ=
16648 old_archive_from_expsyms_cmds_GCJ=
16649 export_dynamic_flag_spec_GCJ=
16650 whole_archive_flag_spec_GCJ=
16651 thread_safe_flag_spec_GCJ=
16652 hardcode_libdir_flag_spec_GCJ=
16653 hardcode_libdir_flag_spec_ld_GCJ=
16654 hardcode_libdir_separator_GCJ=
16655 hardcode_direct_GCJ=no
16656 hardcode_minus_L_GCJ=no
16657 hardcode_shlibpath_var_GCJ=unsupported
16658 link_all_deplibs_GCJ=unknown
16659 hardcode_automatic_GCJ=no
16660 module_cmds_GCJ=
16661 module_expsym_cmds_GCJ=
16662 always_export_symbols_GCJ=no
16663 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16664 # include_expsyms should be a list of space-separated symbols to be *always*
16665 # included in the symbol list
16666 include_expsyms_GCJ=
16667 # exclude_expsyms can be an extended regexp of symbols to exclude
16668 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16669 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16670 # as well as any symbol that contains `d'.
16671 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16672 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16673 # platforms (ab)use it in PIC code, but their linkers get confused if
16674 # the symbol is explicitly referenced. Since portable code cannot
16675 # rely on this symbol name, it's probably fine to never include it in
16676 # preloaded symbol tables.
16677 extract_expsyms_cmds=
mmentovai8c2a4de2006-09-20 16:20:15 +000016678 # Just being paranoid about ensuring that cc_basename is set.
16679 for cc_temp in $compiler""; do
16680 case $cc_temp in
16681 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16682 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16683 \-*) ;;
16684 *) break;;
16685 esac
16686done
16687cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +000016688
16689 case $host_os in
16690 cygwin* | mingw* | pw32*)
16691 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16692 # When not using gcc, we currently assume that we are using
16693 # Microsoft Visual C++.
16694 if test "$GCC" != yes; then
16695 with_gnu_ld=no
16696 fi
16697 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016698 interix*)
16699 # we just hope/assume this is gcc and not c89 (= MSVC++)
16700 with_gnu_ld=yes
16701 ;;
brynercb91a2f2006-08-25 21:14:45 +000016702 openbsd*)
16703 with_gnu_ld=no
16704 ;;
16705 esac
16706
16707 ld_shlibs_GCJ=yes
16708 if test "$with_gnu_ld" = yes; then
16709 # If archive_cmds runs LD, not CC, wlarc should be empty
16710 wlarc='${wl}'
16711
mmentovai8c2a4de2006-09-20 16:20:15 +000016712 # Set some defaults for GNU ld with shared library support. These
16713 # are reset later if shared libraries are not supported. Putting them
16714 # here allows them to be overridden if necessary.
16715 runpath_var=LD_RUN_PATH
16716 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16717 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16718 # ancient GNU ld didn't support --whole-archive et. al.
16719 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16720 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16721 else
16722 whole_archive_flag_spec_GCJ=
16723 fi
16724 supports_anon_versioning=no
16725 case `$LD -v 2>/dev/null` in
16726 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16727 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16728 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16729 *\ 2.11.*) ;; # other 2.11 versions
16730 *) supports_anon_versioning=yes ;;
16731 esac
16732
brynercb91a2f2006-08-25 21:14:45 +000016733 # See if GNU ld supports shared libraries.
16734 case $host_os in
16735 aix3* | aix4* | aix5*)
16736 # On AIX/PPC, the GNU linker is very broken
16737 if test "$host_cpu" != ia64; then
16738 ld_shlibs_GCJ=no
16739 cat <<EOF 1>&2
16740
16741*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16742*** to be unable to reliably create shared libraries on AIX.
16743*** Therefore, libtool is disabling shared libraries support. If you
16744*** really care for shared libraries, you may want to modify your PATH
16745*** so that a non-GNU linker is found, and then restart.
16746
16747EOF
16748 fi
16749 ;;
16750
16751 amigaos*)
16752 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)'
16753 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16754 hardcode_minus_L_GCJ=yes
16755
16756 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16757 # that the semantics of dynamic libraries on AmigaOS, at least up
16758 # to version 4, is to share data among multiple programs linked
16759 # with the same dynamic library. Since this doesn't match the
16760 # behavior of shared libraries on other platforms, we can't use
16761 # them.
16762 ld_shlibs_GCJ=no
16763 ;;
16764
16765 beos*)
16766 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16767 allow_undefined_flag_GCJ=unsupported
16768 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16769 # support --undefined. This deserves some investigation. FIXME
16770 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16771 else
16772 ld_shlibs_GCJ=no
16773 fi
16774 ;;
16775
16776 cygwin* | mingw* | pw32*)
16777 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16778 # as there is no search path for DLLs.
16779 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16780 allow_undefined_flag_GCJ=unsupported
16781 always_export_symbols_GCJ=no
16782 enable_shared_with_static_runtimes_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000016783 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000016784
16785 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000016786 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 +000016787 # If the export-symbols file already is a .def file (1st line
16788 # is EXPORTS), use it as is; otherwise, prepend...
16789 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16790 cp $export_symbols $output_objdir/$soname.def;
16791 else
16792 echo EXPORTS > $output_objdir/$soname.def;
16793 cat $export_symbols >> $output_objdir/$soname.def;
16794 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +000016795 $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 +000016796 else
mmentovai8c2a4de2006-09-20 16:20:15 +000016797 ld_shlibs_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000016798 fi
16799 ;;
16800
mmentovai8c2a4de2006-09-20 16:20:15 +000016801 interix3*)
16802 hardcode_direct_GCJ=no
16803 hardcode_shlibpath_var_GCJ=no
16804 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16805 export_dynamic_flag_spec_GCJ='${wl}-E'
16806 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16807 # Instead, shared libraries are loaded at an image base (0x10000000 by
16808 # default) and relocated if they conflict, which is a slow very memory
16809 # consuming and fragmenting process. To avoid this, we pick a random,
16810 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16811 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16812 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'
16813 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'
16814 ;;
16815
16816 linux*)
16817 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16818 tmp_addflag=
16819 case $cc_basename,$host_cpu in
16820 pgcc*) # Portland Group C compiler
16821 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'
16822 tmp_addflag=' $pic_flag'
16823 ;;
16824 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16825 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'
16826 tmp_addflag=' $pic_flag -Mnomain' ;;
16827 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16828 tmp_addflag=' -i_dynamic' ;;
16829 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16830 tmp_addflag=' -i_dynamic -nofor_main' ;;
16831 ifc* | ifort*) # Intel Fortran compiler
16832 tmp_addflag=' -nofor_main' ;;
16833 esac
16834 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16835
16836 if test $supports_anon_versioning = yes; then
16837 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16838 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16839 $echo "local: *; };" >> $output_objdir/$libname.ver~
16840 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16841 fi
16842 else
16843 ld_shlibs_GCJ=no
16844 fi
16845 ;;
16846
16847 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000016848 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16849 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16850 wlarc=
16851 else
16852 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16853 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16854 fi
16855 ;;
16856
mmentovai8c2a4de2006-09-20 16:20:15 +000016857 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000016858 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16859 ld_shlibs_GCJ=no
16860 cat <<EOF 1>&2
16861
16862*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16863*** create shared libraries on Solaris systems. Therefore, libtool
16864*** is disabling shared libraries support. We urge you to upgrade GNU
16865*** binutils to release 2.9.1 or newer. Another option is to modify
16866*** your PATH or compiler configuration so that the native linker is
16867*** used, and then restart.
16868
16869EOF
16870 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16871 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16872 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16873 else
16874 ld_shlibs_GCJ=no
16875 fi
16876 ;;
16877
mmentovai8c2a4de2006-09-20 16:20:15 +000016878 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16879 case `$LD -v 2>&1` in
16880 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16881 ld_shlibs_GCJ=no
16882 cat <<_LT_EOF 1>&2
16883
16884*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16885*** reliably create shared libraries on SCO systems. Therefore, libtool
16886*** is disabling shared libraries support. We urge you to upgrade GNU
16887*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16888*** your PATH or compiler configuration so that the native linker is
16889*** used, and then restart.
16890
16891_LT_EOF
16892 ;;
16893 *)
16894 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16895 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16896 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16897 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16898 else
16899 ld_shlibs_GCJ=no
16900 fi
16901 ;;
16902 esac
16903 ;;
16904
brynercb91a2f2006-08-25 21:14:45 +000016905 sunos4*)
16906 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16907 wlarc=
16908 hardcode_direct_GCJ=yes
16909 hardcode_shlibpath_var_GCJ=no
16910 ;;
16911
brynercb91a2f2006-08-25 21:14:45 +000016912 *)
16913 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16914 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16915 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16916 else
16917 ld_shlibs_GCJ=no
16918 fi
16919 ;;
16920 esac
16921
mmentovai8c2a4de2006-09-20 16:20:15 +000016922 if test "$ld_shlibs_GCJ" = no; then
16923 runpath_var=
16924 hardcode_libdir_flag_spec_GCJ=
16925 export_dynamic_flag_spec_GCJ=
16926 whole_archive_flag_spec_GCJ=
brynercb91a2f2006-08-25 21:14:45 +000016927 fi
16928 else
16929 # PORTME fill in a description of your system's linker (not GNU ld)
16930 case $host_os in
16931 aix3*)
16932 allow_undefined_flag_GCJ=unsupported
16933 always_export_symbols_GCJ=yes
16934 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'
16935 # Note: this linker hardcodes the directories in LIBPATH if there
16936 # are no directories specified by -L.
16937 hardcode_minus_L_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000016938 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +000016939 # Neither direct hardcoding nor static linking is supported with a
16940 # broken collect2.
16941 hardcode_direct_GCJ=unsupported
16942 fi
16943 ;;
16944
16945 aix4* | aix5*)
16946 if test "$host_cpu" = ia64; then
16947 # On IA64, the linker does run time linking by default, so we don't
16948 # have to do anything special.
16949 aix_use_runtimelinking=no
16950 exp_sym_flag='-Bexport'
16951 no_entry_flag=""
16952 else
16953 # If we're using GNU nm, then we don't want the "-C" option.
16954 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16955 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16956 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'
16957 else
16958 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'
16959 fi
16960 aix_use_runtimelinking=no
16961
16962 # Test if we are trying to use run time linking or normal
16963 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16964 # need to do runtime linking.
16965 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16966 for ld_flag in $LDFLAGS; do
16967 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16968 aix_use_runtimelinking=yes
16969 break
16970 fi
16971 done
mmentovai8c2a4de2006-09-20 16:20:15 +000016972 ;;
brynercb91a2f2006-08-25 21:14:45 +000016973 esac
16974
16975 exp_sym_flag='-bexport'
16976 no_entry_flag='-bnoentry'
16977 fi
16978
16979 # When large executables or shared objects are built, AIX ld can
16980 # have problems creating the table of contents. If linking a library
16981 # or program results in "error TOC overflow" add -mminimal-toc to
16982 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16983 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16984
16985 archive_cmds_GCJ=''
16986 hardcode_direct_GCJ=yes
16987 hardcode_libdir_separator_GCJ=':'
16988 link_all_deplibs_GCJ=yes
16989
16990 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000016991 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +000016992 # We only want to do this on AIX 4.2 and lower, the check
16993 # below for broken collect2 doesn't work under 4.3+
16994 collect2name=`${CC} -print-prog-name=collect2`
16995 if test -f "$collect2name" && \
16996 strings "$collect2name" | grep resolve_lib_name >/dev/null
16997 then
16998 # We have reworked collect2
16999 hardcode_direct_GCJ=yes
17000 else
17001 # We have old collect2
17002 hardcode_direct_GCJ=unsupported
17003 # It fails to find uninstalled libraries when the uninstalled
17004 # path is not listed in the libpath. Setting hardcode_minus_L
17005 # to unsupported forces relinking
17006 hardcode_minus_L_GCJ=yes
17007 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17008 hardcode_libdir_separator_GCJ=
17009 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017010 ;;
brynercb91a2f2006-08-25 21:14:45 +000017011 esac
17012 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +000017013 if test "$aix_use_runtimelinking" = yes; then
17014 shared_flag="$shared_flag "'${wl}-G'
17015 fi
brynercb91a2f2006-08-25 21:14:45 +000017016 else
17017 # not using gcc
17018 if test "$host_cpu" = ia64; then
17019 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17020 # chokes on -Wl,-G. The following line is correct:
17021 shared_flag='-G'
17022 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017023 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000017024 shared_flag='${wl}-G'
17025 else
17026 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +000017027 fi
brynercb91a2f2006-08-25 21:14:45 +000017028 fi
17029 fi
17030
17031 # It seems that -bexpall does not export symbols beginning with
17032 # underscore (_), so it is better to generate a list of symbols to export.
17033 always_export_symbols_GCJ=yes
17034 if test "$aix_use_runtimelinking" = yes; then
17035 # Warning - without using the other runtime loading flags (-brtl),
17036 # -berok will link without error, but may produce a broken library.
17037 allow_undefined_flag_GCJ='-berok'
17038 # Determine the default libpath from the value encoded in an empty executable.
17039 cat >conftest.$ac_ext <<_ACEOF
17040/* confdefs.h. */
17041_ACEOF
17042cat confdefs.h >>conftest.$ac_ext
17043cat >>conftest.$ac_ext <<_ACEOF
17044/* end confdefs.h. */
17045
17046int
17047main ()
17048{
17049
17050 ;
17051 return 0;
17052}
17053_ACEOF
17054rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000017055if { (ac_try="$ac_link"
17056case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17059esac
17060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000017062 ac_status=$?
17063 grep -v '^ *+' conftest.er1 >conftest.err
17064 rm -f conftest.er1
17065 cat conftest.err >&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000017067 (exit $ac_status); } && {
17068 test -z "$ac_c_werror_flag" ||
17069 test ! -s conftest.err
17070 } && test -s conftest$ac_exeext &&
17071 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +000017072
17073aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17074}'`
17075# Check for a 64-bit object if we didn't find anything.
17076if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17077}'`; fi
17078else
17079 echo "$as_me: failed program was:" >&5
17080sed 's/^/| /' conftest.$ac_ext >&5
17081
mmentovai8c2a4de2006-09-20 16:20:15 +000017082
brynercb91a2f2006-08-25 21:14:45 +000017083fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017084
mmentovaiaf3c43f2007-05-17 18:34:37 +000017085rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +000017086 conftest$ac_exeext conftest.$ac_ext
17087if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17088
17089 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
mmentovai8c2a4de2006-09-20 16:20:15 +000017090 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 +000017091 else
17092 if test "$host_cpu" = ia64; then
17093 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17094 allow_undefined_flag_GCJ="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +000017095 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 +000017096 else
17097 # Determine the default libpath from the value encoded in an empty executable.
17098 cat >conftest.$ac_ext <<_ACEOF
17099/* confdefs.h. */
17100_ACEOF
17101cat confdefs.h >>conftest.$ac_ext
17102cat >>conftest.$ac_ext <<_ACEOF
17103/* end confdefs.h. */
17104
17105int
17106main ()
17107{
17108
17109 ;
17110 return 0;
17111}
17112_ACEOF
17113rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000017114if { (ac_try="$ac_link"
17115case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17118esac
17119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000017121 ac_status=$?
17122 grep -v '^ *+' conftest.er1 >conftest.err
17123 rm -f conftest.er1
17124 cat conftest.err >&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000017126 (exit $ac_status); } && {
17127 test -z "$ac_c_werror_flag" ||
17128 test ! -s conftest.err
17129 } && test -s conftest$ac_exeext &&
17130 $as_test_x conftest$ac_exeext; then
brynercb91a2f2006-08-25 21:14:45 +000017131
17132aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17133}'`
17134# Check for a 64-bit object if we didn't find anything.
17135if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17136}'`; fi
17137else
17138 echo "$as_me: failed program was:" >&5
17139sed 's/^/| /' conftest.$ac_ext >&5
17140
mmentovai8c2a4de2006-09-20 16:20:15 +000017141
brynercb91a2f2006-08-25 21:14:45 +000017142fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017143
mmentovaiaf3c43f2007-05-17 18:34:37 +000017144rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
brynercb91a2f2006-08-25 21:14:45 +000017145 conftest$ac_exeext conftest.$ac_ext
17146if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17147
17148 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17149 # Warning - without using the other run time loading flags,
17150 # -berok will link without error, but may produce a broken library.
17151 no_undefined_flag_GCJ=' ${wl}-bernotok'
17152 allow_undefined_flag_GCJ=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +000017153 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +000017154 whole_archive_flag_spec_GCJ='$convenience'
brynercb91a2f2006-08-25 21:14:45 +000017155 archive_cmds_need_lc_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000017156 # This is similar to how AIX traditionally builds its shared libraries.
17157 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 +000017158 fi
17159 fi
17160 ;;
17161
17162 amigaos*)
17163 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)'
17164 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17165 hardcode_minus_L_GCJ=yes
17166 # see comment about different semantics on the GNU ld section
17167 ld_shlibs_GCJ=no
17168 ;;
17169
mmentovai8c2a4de2006-09-20 16:20:15 +000017170 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000017171 export_dynamic_flag_spec_GCJ=-rdynamic
17172 ;;
17173
17174 cygwin* | mingw* | pw32*)
17175 # When not using gcc, we currently assume that we are using
17176 # Microsoft Visual C++.
17177 # hardcode_libdir_flag_spec is actually meaningless, as there is
17178 # no search path for DLLs.
17179 hardcode_libdir_flag_spec_GCJ=' '
17180 allow_undefined_flag_GCJ=unsupported
17181 # Tell ltmain to make .lib files, not .a files.
17182 libext=lib
17183 # Tell ltmain to make .dll files, not .so files.
17184 shrext_cmds=".dll"
17185 # FIXME: Setting linknames here is a bad hack.
17186 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17187 # The linker will automatically build a .lib file if we build a DLL.
17188 old_archive_From_new_cmds_GCJ='true'
17189 # FIXME: Should let the user specify the lib program.
17190 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
mmentovai8c2a4de2006-09-20 16:20:15 +000017191 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
brynercb91a2f2006-08-25 21:14:45 +000017192 enable_shared_with_static_runtimes_GCJ=yes
17193 ;;
17194
17195 darwin* | rhapsody*)
mmentovai8c2a4de2006-09-20 16:20:15 +000017196 case $host_os in
17197 rhapsody* | darwin1.[012])
17198 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17199 ;;
17200 *) # Darwin 1.3 on
17201 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17202 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17203 else
17204 case ${MACOSX_DEPLOYMENT_TARGET} in
17205 10.[012])
17206 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17207 ;;
17208 10.*)
17209 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17210 ;;
17211 esac
17212 fi
17213 ;;
brynerd5e66382006-09-08 02:35:53 +000017214 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000017215 archive_cmds_need_lc_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000017216 hardcode_direct_GCJ=no
17217 hardcode_automatic_GCJ=yes
17218 hardcode_shlibpath_var_GCJ=unsupported
mmentovai8c2a4de2006-09-20 16:20:15 +000017219 whole_archive_flag_spec_GCJ=''
brynercb91a2f2006-08-25 21:14:45 +000017220 link_all_deplibs_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000017221 if test "$GCC" = yes ; then
17222 output_verbose_link_cmd='echo'
17223 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17224 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17225 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17226 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17227 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
brynercb91a2f2006-08-25 21:14:45 +000017228 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017229 case $cc_basename in
17230 xlc*)
17231 output_verbose_link_cmd='echo'
17232 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17233 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17234 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17235 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17236 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}'
17237 ;;
17238 *)
17239 ld_shlibs_GCJ=no
17240 ;;
17241 esac
brynercb91a2f2006-08-25 21:14:45 +000017242 fi
17243 ;;
17244
17245 dgux*)
17246 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17247 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17248 hardcode_shlibpath_var_GCJ=no
17249 ;;
17250
17251 freebsd1*)
17252 ld_shlibs_GCJ=no
17253 ;;
17254
17255 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17256 # support. Future versions do this automatically, but an explicit c++rt0.o
17257 # does not break anything, and helps significantly (at the cost of a little
17258 # extra space).
17259 freebsd2.2*)
17260 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17261 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17262 hardcode_direct_GCJ=yes
17263 hardcode_shlibpath_var_GCJ=no
17264 ;;
17265
17266 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17267 freebsd2*)
17268 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17269 hardcode_direct_GCJ=yes
17270 hardcode_minus_L_GCJ=yes
17271 hardcode_shlibpath_var_GCJ=no
17272 ;;
17273
17274 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mmentovai8c2a4de2006-09-20 16:20:15 +000017275 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000017276 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17277 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17278 hardcode_direct_GCJ=yes
17279 hardcode_shlibpath_var_GCJ=no
17280 ;;
17281
17282 hpux9*)
17283 if test "$GCC" = yes; then
17284 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'
17285 else
17286 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'
17287 fi
17288 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17289 hardcode_libdir_separator_GCJ=:
17290 hardcode_direct_GCJ=yes
17291
17292 # hardcode_minus_L: Not really in the search PATH,
17293 # but as the default location of the library.
17294 hardcode_minus_L_GCJ=yes
17295 export_dynamic_flag_spec_GCJ='${wl}-E'
17296 ;;
17297
mmentovai8c2a4de2006-09-20 16:20:15 +000017298 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +000017299 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017300 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17301 else
17302 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17303 fi
17304 if test "$with_gnu_ld" = no; then
17305 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17306 hardcode_libdir_separator_GCJ=:
17307
17308 hardcode_direct_GCJ=yes
17309 export_dynamic_flag_spec_GCJ='${wl}-E'
17310
17311 # hardcode_minus_L: Not really in the search PATH,
17312 # but as the default location of the library.
17313 hardcode_minus_L_GCJ=yes
17314 fi
17315 ;;
17316
17317 hpux11*)
17318 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17319 case $host_cpu in
17320 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +000017321 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17322 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000017323 ia64*)
17324 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17325 ;;
brynercb91a2f2006-08-25 21:14:45 +000017326 *)
17327 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17328 ;;
17329 esac
17330 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017331 case $host_cpu in
17332 hppa*64*)
17333 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17334 ;;
17335 ia64*)
17336 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000017337 ;;
17338 *)
mmentovai8c2a4de2006-09-20 16:20:15 +000017339 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 +000017340 ;;
17341 esac
17342 fi
17343 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017344 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17345 hardcode_libdir_separator_GCJ=:
brynerd5e66382006-09-08 02:35:53 +000017346
mmentovai8c2a4de2006-09-20 16:20:15 +000017347 case $host_cpu in
17348 hppa*64*|ia64*)
17349 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17350 hardcode_direct_GCJ=no
17351 hardcode_shlibpath_var_GCJ=no
brynerd5e66382006-09-08 02:35:53 +000017352 ;;
brynercb91a2f2006-08-25 21:14:45 +000017353 *)
brynercb91a2f2006-08-25 21:14:45 +000017354 hardcode_direct_GCJ=yes
17355 export_dynamic_flag_spec_GCJ='${wl}-E'
17356
17357 # hardcode_minus_L: Not really in the search PATH,
17358 # but as the default location of the library.
17359 hardcode_minus_L_GCJ=yes
17360 ;;
17361 esac
17362 fi
17363 ;;
17364
17365 irix5* | irix6* | nonstopux*)
17366 if test "$GCC" = yes; then
17367 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'
17368 else
17369 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'
17370 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17371 fi
17372 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17373 hardcode_libdir_separator_GCJ=:
17374 link_all_deplibs_GCJ=yes
17375 ;;
17376
mmentovai8c2a4de2006-09-20 16:20:15 +000017377 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000017378 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17379 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17380 else
17381 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17382 fi
17383 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17384 hardcode_direct_GCJ=yes
17385 hardcode_shlibpath_var_GCJ=no
17386 ;;
17387
17388 newsos6)
17389 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17390 hardcode_direct_GCJ=yes
17391 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17392 hardcode_libdir_separator_GCJ=:
17393 hardcode_shlibpath_var_GCJ=no
17394 ;;
17395
17396 openbsd*)
17397 hardcode_direct_GCJ=yes
17398 hardcode_shlibpath_var_GCJ=no
17399 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17400 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +000017401 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000017402 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17403 export_dynamic_flag_spec_GCJ='${wl}-E'
17404 else
17405 case $host_os in
17406 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17407 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17408 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17409 ;;
17410 *)
17411 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17412 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17413 ;;
17414 esac
17415 fi
17416 ;;
17417
17418 os2*)
17419 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17420 hardcode_minus_L_GCJ=yes
17421 allow_undefined_flag_GCJ=unsupported
17422 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'
17423 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17424 ;;
17425
17426 osf3*)
17427 if test "$GCC" = yes; then
17428 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17429 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'
17430 else
17431 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17432 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'
17433 fi
17434 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17435 hardcode_libdir_separator_GCJ=:
17436 ;;
17437
17438 osf4* | osf5*) # as osf3* with the addition of -msym flag
17439 if test "$GCC" = yes; then
17440 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17441 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'
17442 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17443 else
17444 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17445 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'
17446 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 +000017447 $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 +000017448
17449 # Both c and cxx compiler support -rpath directly
17450 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17451 fi
17452 hardcode_libdir_separator_GCJ=:
17453 ;;
17454
brynercb91a2f2006-08-25 21:14:45 +000017455 solaris*)
17456 no_undefined_flag_GCJ=' -z text'
17457 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017458 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +000017459 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17460 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17461 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17462 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017463 wlarc=''
brynercb91a2f2006-08-25 21:14:45 +000017464 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17465 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17466 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17467 fi
17468 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17469 hardcode_shlibpath_var_GCJ=no
17470 case $host_os in
17471 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000017472 *)
17473 # The compiler driver will combine linker options so we
17474 # cannot just pass the convience library names through
17475 # without $wl, iff we do not link with $LD.
17476 # Luckily, gcc supports the same syntax we need for Sun Studio.
17477 # Supported since Solaris 2.6 (maybe 2.5.1?)
17478 case $wlarc in
17479 '')
17480 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17481 *)
17482 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17483 esac ;;
brynercb91a2f2006-08-25 21:14:45 +000017484 esac
17485 link_all_deplibs_GCJ=yes
17486 ;;
17487
17488 sunos4*)
17489 if test "x$host_vendor" = xsequent; then
17490 # Use $CC to link under sequent, because it throws in some extra .o
17491 # files that make .init and .fini sections work.
17492 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17493 else
17494 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17495 fi
17496 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17497 hardcode_direct_GCJ=yes
17498 hardcode_minus_L_GCJ=yes
17499 hardcode_shlibpath_var_GCJ=no
17500 ;;
17501
17502 sysv4)
17503 case $host_vendor in
17504 sni)
17505 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17506 hardcode_direct_GCJ=yes # is this really true???
17507 ;;
17508 siemens)
17509 ## LD is ld it makes a PLAMLIB
17510 ## CC just makes a GrossModule.
17511 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17512 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17513 hardcode_direct_GCJ=no
17514 ;;
17515 motorola)
17516 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17517 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17518 ;;
17519 esac
17520 runpath_var='LD_RUN_PATH'
17521 hardcode_shlibpath_var_GCJ=no
17522 ;;
17523
17524 sysv4.3*)
17525 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17526 hardcode_shlibpath_var_GCJ=no
17527 export_dynamic_flag_spec_GCJ='-Bexport'
17528 ;;
17529
17530 sysv4*MP*)
17531 if test -d /usr/nec; then
17532 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17533 hardcode_shlibpath_var_GCJ=no
17534 runpath_var=LD_RUN_PATH
17535 hardcode_runpath_var=yes
17536 ld_shlibs_GCJ=yes
17537 fi
17538 ;;
17539
mmentovai8c2a4de2006-09-20 16:20:15 +000017540 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17541 no_undefined_flag_GCJ='${wl}-z,text'
17542 archive_cmds_need_lc_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000017543 hardcode_shlibpath_var_GCJ=no
mmentovai8c2a4de2006-09-20 16:20:15 +000017544 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +000017545
mmentovai3261e8b2006-09-06 02:56:44 +000017546 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017547 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17548 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 +000017549 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017550 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17551 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 +000017552 fi
brynerd5e66382006-09-08 02:35:53 +000017553 ;;
17554
mmentovai8c2a4de2006-09-20 16:20:15 +000017555 sysv5* | sco3.2v5* | sco5v6*)
17556 # Note: We can NOT use -z defs as we might desire, because we do not
17557 # link with -lc, and that would cause any symbols used from libc to
17558 # always be unresolved, which means just about no library would
17559 # ever link correctly. If we're not using GNU ld we use -z text
17560 # though, which does catch some bad symbols but isn't as heavy-handed
17561 # as -z defs.
17562 no_undefined_flag_GCJ='${wl}-z,text'
17563 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17564 archive_cmds_need_lc_GCJ=no
brynerd5e66382006-09-08 02:35:53 +000017565 hardcode_shlibpath_var_GCJ=no
mmentovai8c2a4de2006-09-20 16:20:15 +000017566 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17567 hardcode_libdir_separator_GCJ=':'
17568 link_all_deplibs_GCJ=yes
17569 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +000017570 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +000017571
17572 if test "$GCC" = yes; then
17573 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17574 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17575 else
17576 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17577 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17578 fi
brynercb91a2f2006-08-25 21:14:45 +000017579 ;;
17580
17581 uts4*)
17582 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17583 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17584 hardcode_shlibpath_var_GCJ=no
17585 ;;
17586
17587 *)
17588 ld_shlibs_GCJ=no
17589 ;;
17590 esac
17591 fi
17592
mmentovai8c2a4de2006-09-20 16:20:15 +000017593{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17594echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017595test "$ld_shlibs_GCJ" = no && can_build_shared=no
17596
brynercb91a2f2006-08-25 21:14:45 +000017597#
17598# Do we need to explicitly link libc?
17599#
17600case "x$archive_cmds_need_lc_GCJ" in
17601x|xyes)
17602 # Assume -lc should be added
17603 archive_cmds_need_lc_GCJ=yes
17604
17605 if test "$enable_shared" = yes && test "$GCC" = yes; then
17606 case $archive_cmds_GCJ in
17607 *'~'*)
17608 # FIXME: we may have to deal with multi-command sequences.
17609 ;;
17610 '$CC '*)
17611 # Test whether the compiler implicitly links with -lc since on some
17612 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17613 # to ld, don't add -lc before -lgcc.
mmentovai8c2a4de2006-09-20 16:20:15 +000017614 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17615echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017616 $rm conftest*
17617 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17618
17619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17620 (eval $ac_compile) 2>&5
17621 ac_status=$?
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } 2>conftest.err; then
17624 soname=conftest
17625 lib=conftest
17626 libobjs=conftest.$ac_objext
17627 deplibs=
17628 wl=$lt_prog_compiler_wl_GCJ
mmentovai8c2a4de2006-09-20 16:20:15 +000017629 pic_flag=$lt_prog_compiler_pic_GCJ
brynercb91a2f2006-08-25 21:14:45 +000017630 compiler_flags=-v
17631 linker_flags=-v
17632 verstring=
17633 output_objdir=.
17634 libname=conftest
17635 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17636 allow_undefined_flag_GCJ=
17637 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17638 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17639 ac_status=$?
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }
17642 then
17643 archive_cmds_need_lc_GCJ=no
17644 else
17645 archive_cmds_need_lc_GCJ=yes
17646 fi
17647 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17648 else
17649 cat conftest.err 1>&5
17650 fi
17651 $rm conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000017652 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17653echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017654 ;;
17655 esac
17656 fi
17657 ;;
17658esac
17659
mmentovai8c2a4de2006-09-20 16:20:15 +000017660{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17661echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017662library_names_spec=
17663libname_spec='lib$name'
17664soname_spec=
17665shrext_cmds=".so"
17666postinstall_cmds=
17667postuninstall_cmds=
17668finish_cmds=
17669finish_eval=
17670shlibpath_var=
17671shlibpath_overrides_runpath=unknown
17672version_type=none
17673dynamic_linker="$host_os ld.so"
17674sys_lib_dlsearch_path_spec="/lib /usr/lib"
17675if test "$GCC" = yes; then
17676 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17677 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17678 # if the path contains ";" then we assume it to be the separator
17679 # otherwise default to the standard path separator (i.e. ":") - it is
17680 # assumed that no part of a normal pathname contains ";" but that should
17681 # okay in the real world where ";" in dirpaths is itself problematic.
17682 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17683 else
17684 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17685 fi
17686else
17687 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17688fi
17689need_lib_prefix=unknown
17690hardcode_into_libs=no
17691
17692# when you set need_version to no, make sure it does not cause -set_version
17693# flags to be left without arguments
17694need_version=unknown
17695
17696case $host_os in
17697aix3*)
17698 version_type=linux
17699 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17700 shlibpath_var=LIBPATH
17701
17702 # AIX 3 has no versioning support, so we append a major version to the name.
17703 soname_spec='${libname}${release}${shared_ext}$major'
17704 ;;
17705
17706aix4* | aix5*)
17707 version_type=linux
17708 need_lib_prefix=no
17709 need_version=no
17710 hardcode_into_libs=yes
17711 if test "$host_cpu" = ia64; then
17712 # AIX 5 supports IA64
17713 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17714 shlibpath_var=LD_LIBRARY_PATH
17715 else
17716 # With GCC up to 2.95.x, collect2 would create an import file
17717 # for dependence libraries. The import file would start with
17718 # the line `#! .'. This would cause the generated library to
17719 # depend on `.', always an invalid library. This was fixed in
17720 # development snapshots of GCC prior to 3.0.
17721 case $host_os in
17722 aix4 | aix4.[01] | aix4.[01].*)
17723 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17724 echo ' yes '
17725 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17726 :
17727 else
17728 can_build_shared=no
17729 fi
17730 ;;
17731 esac
17732 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17733 # soname into executable. Probably we can add versioning support to
17734 # collect2, so additional links can be useful in future.
17735 if test "$aix_use_runtimelinking" = yes; then
17736 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17737 # instead of lib<name>.a to let people know that these are not
17738 # typical AIX shared libraries.
17739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740 else
17741 # We preserve .a as extension for shared libraries through AIX4.2
17742 # and later when we are not doing run time linking.
17743 library_names_spec='${libname}${release}.a $libname.a'
17744 soname_spec='${libname}${release}${shared_ext}$major'
17745 fi
17746 shlibpath_var=LIBPATH
17747 fi
17748 ;;
17749
17750amigaos*)
17751 library_names_spec='$libname.ixlibrary $libname.a'
17752 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17753 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'
17754 ;;
17755
17756beos*)
17757 library_names_spec='${libname}${shared_ext}'
17758 dynamic_linker="$host_os ld.so"
17759 shlibpath_var=LIBRARY_PATH
17760 ;;
17761
mmentovai8c2a4de2006-09-20 16:20:15 +000017762bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000017763 version_type=linux
17764 need_version=no
17765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17766 soname_spec='${libname}${release}${shared_ext}$major'
17767 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17768 shlibpath_var=LD_LIBRARY_PATH
17769 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17770 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17771 # the default ld.so.conf also contains /usr/contrib/lib and
17772 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17773 # libtool to hard-code these into programs
17774 ;;
17775
17776cygwin* | mingw* | pw32*)
17777 version_type=windows
17778 shrext_cmds=".dll"
17779 need_version=no
17780 need_lib_prefix=no
17781
17782 case $GCC,$host_os in
17783 yes,cygwin* | yes,mingw* | yes,pw32*)
17784 library_names_spec='$libname.dll.a'
17785 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17786 postinstall_cmds='base_file=`basename \${file}`~
17787 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17788 dldir=$destdir/`dirname \$dlpath`~
17789 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000017790 $install_prog $dir/$dlname \$dldir/$dlname~
17791 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000017792 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17793 dlpath=$dir/\$dldll~
17794 $rm \$dlpath'
17795 shlibpath_overrides_runpath=yes
17796
17797 case $host_os in
17798 cygwin*)
17799 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17800 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17801 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17802 ;;
17803 mingw*)
17804 # MinGW DLLs use traditional 'lib' prefix
17805 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17806 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17807 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17808 # It is most probably a Windows format PATH printed by
17809 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17810 # path with ; separators, and with drive letters. We can handle the
17811 # drive letters (cygwin fileutils understands them), so leave them,
17812 # especially as we might pass files found there to a mingw objdump,
17813 # which wouldn't understand a cygwinified path. Ahh.
17814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17815 else
17816 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17817 fi
17818 ;;
17819 pw32*)
17820 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000017821 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 +000017822 ;;
17823 esac
17824 ;;
17825
17826 *)
17827 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17828 ;;
17829 esac
17830 dynamic_linker='Win32 ld.exe'
17831 # FIXME: first we should search . and the directory the executable is in
17832 shlibpath_var=PATH
17833 ;;
17834
17835darwin* | rhapsody*)
17836 dynamic_linker="$host_os dyld"
17837 version_type=darwin
17838 need_lib_prefix=no
17839 need_version=no
17840 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17841 soname_spec='${libname}${release}${major}$shared_ext'
17842 shlibpath_overrides_runpath=yes
17843 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000017844 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
brynercb91a2f2006-08-25 21:14:45 +000017845 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17846 if test "$GCC" = yes; then
17847 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17848 else
17849 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17850 fi
17851 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17852 ;;
17853
17854dgux*)
17855 version_type=linux
17856 need_lib_prefix=no
17857 need_version=no
17858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17859 soname_spec='${libname}${release}${shared_ext}$major'
17860 shlibpath_var=LD_LIBRARY_PATH
17861 ;;
17862
17863freebsd1*)
17864 dynamic_linker=no
17865 ;;
17866
17867kfreebsd*-gnu)
17868 version_type=linux
17869 need_lib_prefix=no
17870 need_version=no
17871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17872 soname_spec='${libname}${release}${shared_ext}$major'
17873 shlibpath_var=LD_LIBRARY_PATH
17874 shlibpath_overrides_runpath=no
17875 hardcode_into_libs=yes
17876 dynamic_linker='GNU ld.so'
17877 ;;
17878
mmentovai8c2a4de2006-09-20 16:20:15 +000017879freebsd* | dragonfly*)
17880 # DragonFly does not have aout. When/if they implement a new
17881 # versioning mechanism, adjust this.
17882 if test -x /usr/bin/objformat; then
17883 objformat=`/usr/bin/objformat`
17884 else
17885 case $host_os in
17886 freebsd[123]*) objformat=aout ;;
17887 *) objformat=elf ;;
17888 esac
17889 fi
brynercb91a2f2006-08-25 21:14:45 +000017890 version_type=freebsd-$objformat
17891 case $version_type in
17892 freebsd-elf*)
17893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17894 need_version=no
17895 need_lib_prefix=no
17896 ;;
17897 freebsd-*)
17898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17899 need_version=yes
17900 ;;
17901 esac
17902 shlibpath_var=LD_LIBRARY_PATH
17903 case $host_os in
17904 freebsd2*)
17905 shlibpath_overrides_runpath=yes
17906 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000017907 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000017908 shlibpath_overrides_runpath=yes
17909 hardcode_into_libs=yes
17910 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000017911 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17912 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000017913 shlibpath_overrides_runpath=no
17914 hardcode_into_libs=yes
17915 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000017916 freebsd*) # from 4.6 on
17917 shlibpath_overrides_runpath=yes
17918 hardcode_into_libs=yes
17919 ;;
brynercb91a2f2006-08-25 21:14:45 +000017920 esac
17921 ;;
17922
17923gnu*)
17924 version_type=linux
17925 need_lib_prefix=no
17926 need_version=no
17927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17928 soname_spec='${libname}${release}${shared_ext}$major'
17929 shlibpath_var=LD_LIBRARY_PATH
17930 hardcode_into_libs=yes
17931 ;;
17932
17933hpux9* | hpux10* | hpux11*)
17934 # Give a soname corresponding to the major version so that dld.sl refuses to
17935 # link against other versions.
17936 version_type=sunos
17937 need_lib_prefix=no
17938 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000017939 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000017940 ia64*)
17941 shrext_cmds='.so'
17942 hardcode_into_libs=yes
17943 dynamic_linker="$host_os dld.so"
17944 shlibpath_var=LD_LIBRARY_PATH
17945 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17947 soname_spec='${libname}${release}${shared_ext}$major'
17948 if test "X$HPUX_IA64_MODE" = X32; then
17949 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17950 else
17951 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17952 fi
17953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17954 ;;
17955 hppa*64*)
17956 shrext_cmds='.sl'
17957 hardcode_into_libs=yes
17958 dynamic_linker="$host_os dld.sl"
17959 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17962 soname_spec='${libname}${release}${shared_ext}$major'
17963 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17965 ;;
17966 *)
17967 shrext_cmds='.sl'
17968 dynamic_linker="$host_os dld.sl"
17969 shlibpath_var=SHLIB_PATH
17970 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17972 soname_spec='${libname}${release}${shared_ext}$major'
17973 ;;
17974 esac
17975 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17976 postinstall_cmds='chmod 555 $lib'
17977 ;;
17978
mmentovai8c2a4de2006-09-20 16:20:15 +000017979interix3*)
17980 version_type=linux
17981 need_lib_prefix=no
17982 need_version=no
17983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17984 soname_spec='${libname}${release}${shared_ext}$major'
17985 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17986 shlibpath_var=LD_LIBRARY_PATH
17987 shlibpath_overrides_runpath=no
17988 hardcode_into_libs=yes
17989 ;;
17990
brynercb91a2f2006-08-25 21:14:45 +000017991irix5* | irix6* | nonstopux*)
17992 case $host_os in
17993 nonstopux*) version_type=nonstopux ;;
17994 *)
17995 if test "$lt_cv_prog_gnu_ld" = yes; then
17996 version_type=linux
17997 else
17998 version_type=irix
17999 fi ;;
18000 esac
18001 need_lib_prefix=no
18002 need_version=no
18003 soname_spec='${libname}${release}${shared_ext}$major'
18004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18005 case $host_os in
18006 irix5* | nonstopux*)
18007 libsuff= shlibsuff=
18008 ;;
18009 *)
18010 case $LD in # libtool.m4 will add one of these switches to LD
18011 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18012 libsuff= shlibsuff= libmagic=32-bit;;
18013 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18014 libsuff=32 shlibsuff=N32 libmagic=N32;;
18015 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18016 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18017 *) libsuff= shlibsuff= libmagic=never-match;;
18018 esac
18019 ;;
18020 esac
18021 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18022 shlibpath_overrides_runpath=no
18023 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18024 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18025 hardcode_into_libs=yes
18026 ;;
18027
18028# No shared lib support for Linux oldld, aout, or coff.
18029linux*oldld* | linux*aout* | linux*coff*)
18030 dynamic_linker=no
18031 ;;
18032
18033# This must be Linux ELF.
18034linux*)
18035 version_type=linux
18036 need_lib_prefix=no
18037 need_version=no
18038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18039 soname_spec='${libname}${release}${shared_ext}$major'
18040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18041 shlibpath_var=LD_LIBRARY_PATH
18042 shlibpath_overrides_runpath=no
18043 # This implies no fast_install, which is unacceptable.
18044 # Some rework will be needed to allow for fast_install
18045 # before this can be enabled.
18046 hardcode_into_libs=yes
18047
18048 # Append ld.so.conf contents to the search path
18049 if test -f /etc/ld.so.conf; then
mmentovai8c2a4de2006-09-20 16:20:15 +000018050 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
brynercb91a2f2006-08-25 21:14:45 +000018051 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18052 fi
18053
18054 # We used to test for /lib/ld.so.1 and disable shared libraries on
18055 # powerpc, because MkLinux only supported shared libraries with the
18056 # GNU dynamic linker. Since this was broken with cross compilers,
18057 # most powerpc-linux boxes support dynamic linking these days and
18058 # people can always --disable-shared, the test was removed, and we
18059 # assume the GNU/Linux dynamic linker is in use.
18060 dynamic_linker='GNU/Linux ld.so'
18061 ;;
18062
brynercb91a2f2006-08-25 21:14:45 +000018063knetbsd*-gnu)
18064 version_type=linux
18065 need_lib_prefix=no
18066 need_version=no
18067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18068 soname_spec='${libname}${release}${shared_ext}$major'
18069 shlibpath_var=LD_LIBRARY_PATH
18070 shlibpath_overrides_runpath=no
18071 hardcode_into_libs=yes
18072 dynamic_linker='GNU ld.so'
18073 ;;
18074
18075netbsd*)
18076 version_type=sunos
18077 need_lib_prefix=no
18078 need_version=no
18079 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18082 dynamic_linker='NetBSD (a.out) ld.so'
18083 else
18084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18085 soname_spec='${libname}${release}${shared_ext}$major'
18086 dynamic_linker='NetBSD ld.elf_so'
18087 fi
18088 shlibpath_var=LD_LIBRARY_PATH
18089 shlibpath_overrides_runpath=yes
18090 hardcode_into_libs=yes
18091 ;;
18092
18093newsos6)
18094 version_type=linux
18095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18096 shlibpath_var=LD_LIBRARY_PATH
18097 shlibpath_overrides_runpath=yes
18098 ;;
18099
18100nto-qnx*)
18101 version_type=linux
18102 need_lib_prefix=no
18103 need_version=no
18104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18105 soname_spec='${libname}${release}${shared_ext}$major'
18106 shlibpath_var=LD_LIBRARY_PATH
18107 shlibpath_overrides_runpath=yes
18108 ;;
18109
18110openbsd*)
18111 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000018112 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000018113 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000018114 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18115 case $host_os in
18116 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18117 *) need_version=no ;;
18118 esac
brynercb91a2f2006-08-25 21:14:45 +000018119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18121 shlibpath_var=LD_LIBRARY_PATH
18122 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18123 case $host_os in
18124 openbsd2.[89] | openbsd2.[89].*)
18125 shlibpath_overrides_runpath=no
18126 ;;
18127 *)
18128 shlibpath_overrides_runpath=yes
18129 ;;
18130 esac
18131 else
18132 shlibpath_overrides_runpath=yes
18133 fi
18134 ;;
18135
18136os2*)
18137 libname_spec='$name'
18138 shrext_cmds=".dll"
18139 need_lib_prefix=no
18140 library_names_spec='$libname${shared_ext} $libname.a'
18141 dynamic_linker='OS/2 ld.exe'
18142 shlibpath_var=LIBPATH
18143 ;;
18144
18145osf3* | osf4* | osf5*)
18146 version_type=osf
18147 need_lib_prefix=no
18148 need_version=no
18149 soname_spec='${libname}${release}${shared_ext}$major'
18150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18151 shlibpath_var=LD_LIBRARY_PATH
18152 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18153 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18154 ;;
18155
brynercb91a2f2006-08-25 21:14:45 +000018156solaris*)
18157 version_type=linux
18158 need_lib_prefix=no
18159 need_version=no
18160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18161 soname_spec='${libname}${release}${shared_ext}$major'
18162 shlibpath_var=LD_LIBRARY_PATH
18163 shlibpath_overrides_runpath=yes
18164 hardcode_into_libs=yes
18165 # ldd complains unless libraries are executable
18166 postinstall_cmds='chmod +x $lib'
18167 ;;
18168
18169sunos4*)
18170 version_type=sunos
18171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18172 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18173 shlibpath_var=LD_LIBRARY_PATH
18174 shlibpath_overrides_runpath=yes
18175 if test "$with_gnu_ld" = yes; then
18176 need_lib_prefix=no
18177 fi
18178 need_version=yes
18179 ;;
18180
mmentovai8c2a4de2006-09-20 16:20:15 +000018181sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000018182 version_type=linux
18183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18184 soname_spec='${libname}${release}${shared_ext}$major'
18185 shlibpath_var=LD_LIBRARY_PATH
18186 case $host_vendor in
18187 sni)
18188 shlibpath_overrides_runpath=no
18189 need_lib_prefix=no
18190 export_dynamic_flag_spec='${wl}-Blargedynsym'
18191 runpath_var=LD_RUN_PATH
18192 ;;
18193 siemens)
18194 need_lib_prefix=no
18195 ;;
18196 motorola)
18197 need_lib_prefix=no
18198 need_version=no
18199 shlibpath_overrides_runpath=no
18200 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18201 ;;
18202 esac
18203 ;;
18204
18205sysv4*MP*)
18206 if test -d /usr/nec ;then
18207 version_type=linux
18208 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18209 soname_spec='$libname${shared_ext}.$major'
18210 shlibpath_var=LD_LIBRARY_PATH
18211 fi
18212 ;;
18213
mmentovai8c2a4de2006-09-20 16:20:15 +000018214sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18215 version_type=freebsd-elf
18216 need_lib_prefix=no
18217 need_version=no
18218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18219 soname_spec='${libname}${release}${shared_ext}$major'
18220 shlibpath_var=LD_LIBRARY_PATH
18221 hardcode_into_libs=yes
18222 if test "$with_gnu_ld" = yes; then
18223 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18224 shlibpath_overrides_runpath=no
18225 else
18226 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18227 shlibpath_overrides_runpath=yes
18228 case $host_os in
18229 sco3.2v5*)
18230 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18231 ;;
18232 esac
18233 fi
18234 sys_lib_dlsearch_path_spec='/usr/lib'
18235 ;;
18236
brynercb91a2f2006-08-25 21:14:45 +000018237uts4*)
18238 version_type=linux
18239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18240 soname_spec='${libname}${release}${shared_ext}$major'
18241 shlibpath_var=LD_LIBRARY_PATH
18242 ;;
18243
18244*)
18245 dynamic_linker=no
18246 ;;
18247esac
mmentovai8c2a4de2006-09-20 16:20:15 +000018248{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18249echo "${ECHO_T}$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018250test "$dynamic_linker" = no && can_build_shared=no
18251
mmentovai8c2a4de2006-09-20 16:20:15 +000018252variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18253if test "$GCC" = yes; then
18254 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18255fi
18256
18257{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18258echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018259hardcode_action_GCJ=
18260if test -n "$hardcode_libdir_flag_spec_GCJ" || \
mmentovai8c2a4de2006-09-20 16:20:15 +000018261 test -n "$runpath_var_GCJ" || \
18262 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000018263
18264 # We can hardcode non-existant directories.
18265 if test "$hardcode_direct_GCJ" != no &&
18266 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18267 # have to relink, otherwise we might link with an installed library
18268 # when we should be linking with a yet-to-be-installed one
18269 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18270 test "$hardcode_minus_L_GCJ" != no; then
18271 # Linking always hardcodes the temporary library directory.
18272 hardcode_action_GCJ=relink
18273 else
18274 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18275 hardcode_action_GCJ=immediate
18276 fi
18277else
18278 # We cannot hardcode anything, or else we can only hardcode existing
18279 # directories.
18280 hardcode_action_GCJ=unsupported
18281fi
mmentovai8c2a4de2006-09-20 16:20:15 +000018282{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18283echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018284
18285if test "$hardcode_action_GCJ" = relink; then
18286 # Fast installation is not supported
18287 enable_fast_install=no
18288elif test "$shlibpath_overrides_runpath" = yes ||
18289 test "$enable_shared" = no; then
18290 # Fast installation is not necessary
18291 enable_fast_install=needless
18292fi
18293
brynercb91a2f2006-08-25 21:14:45 +000018294
18295# The else clause should only fire when bootstrapping the
18296# libtool distribution, otherwise you forgot to ship ltmain.sh
18297# with your package, and you will get complaints that there are
18298# no rules to generate ltmain.sh.
18299if test -f "$ltmain"; then
18300 # See if we are running on zsh, and set the options which allow our commands through
18301 # without removal of \ escapes.
18302 if test -n "${ZSH_VERSION+set}" ; then
18303 setopt NO_GLOB_SUBST
18304 fi
18305 # Now quote all the things that may contain metacharacters while being
18306 # careful not to overquote the AC_SUBSTed values. We take copies of the
18307 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000018308 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000018309 SED SHELL STRIP \
18310 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18311 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18312 deplibs_check_method reload_flag reload_cmds need_locks \
18313 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18314 lt_cv_sys_global_symbol_to_c_name_address \
18315 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18316 old_postinstall_cmds old_postuninstall_cmds \
18317 compiler_GCJ \
18318 CC_GCJ \
18319 LD_GCJ \
18320 lt_prog_compiler_wl_GCJ \
18321 lt_prog_compiler_pic_GCJ \
18322 lt_prog_compiler_static_GCJ \
18323 lt_prog_compiler_no_builtin_flag_GCJ \
18324 export_dynamic_flag_spec_GCJ \
18325 thread_safe_flag_spec_GCJ \
18326 whole_archive_flag_spec_GCJ \
18327 enable_shared_with_static_runtimes_GCJ \
18328 old_archive_cmds_GCJ \
18329 old_archive_from_new_cmds_GCJ \
18330 predep_objects_GCJ \
18331 postdep_objects_GCJ \
18332 predeps_GCJ \
18333 postdeps_GCJ \
18334 compiler_lib_search_path_GCJ \
18335 archive_cmds_GCJ \
18336 archive_expsym_cmds_GCJ \
18337 postinstall_cmds_GCJ \
18338 postuninstall_cmds_GCJ \
18339 old_archive_from_expsyms_cmds_GCJ \
18340 allow_undefined_flag_GCJ \
18341 no_undefined_flag_GCJ \
18342 export_symbols_cmds_GCJ \
18343 hardcode_libdir_flag_spec_GCJ \
18344 hardcode_libdir_flag_spec_ld_GCJ \
18345 hardcode_libdir_separator_GCJ \
18346 hardcode_automatic_GCJ \
18347 module_cmds_GCJ \
18348 module_expsym_cmds_GCJ \
18349 lt_cv_prog_compiler_c_o_GCJ \
18350 exclude_expsyms_GCJ \
18351 include_expsyms_GCJ; do
18352
18353 case $var in
18354 old_archive_cmds_GCJ | \
18355 old_archive_from_new_cmds_GCJ | \
18356 archive_cmds_GCJ | \
18357 archive_expsym_cmds_GCJ | \
18358 module_cmds_GCJ | \
18359 module_expsym_cmds_GCJ | \
18360 old_archive_from_expsyms_cmds_GCJ | \
18361 export_symbols_cmds_GCJ | \
18362 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18363 postinstall_cmds | postuninstall_cmds | \
18364 old_postinstall_cmds | old_postuninstall_cmds | \
18365 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18366 # Double-quote double-evaled strings.
18367 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18368 ;;
18369 *)
18370 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18371 ;;
18372 esac
18373 done
18374
18375 case $lt_echo in
18376 *'\$0 --fallback-echo"')
18377 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18378 ;;
18379 esac
18380
18381cfgfile="$ofile"
18382
18383 cat <<__EOF__ >> "$cfgfile"
18384# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18385
18386# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18387
18388# Shell to use when invoking shell scripts.
18389SHELL=$lt_SHELL
18390
18391# Whether or not to build shared libraries.
18392build_libtool_libs=$enable_shared
18393
18394# Whether or not to build static libraries.
18395build_old_libs=$enable_static
18396
18397# Whether or not to add -lc for building shared libraries.
18398build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18399
18400# Whether or not to disallow shared libs when runtime libs are static
18401allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18402
18403# Whether or not to optimize for fast installation.
18404fast_install=$enable_fast_install
18405
18406# The host system.
18407host_alias=$host_alias
18408host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000018409host_os=$host_os
18410
18411# The build system.
18412build_alias=$build_alias
18413build=$build
18414build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000018415
18416# An echo program that does not interpret backslashes.
18417echo=$lt_echo
18418
18419# The archiver.
18420AR=$lt_AR
18421AR_FLAGS=$lt_AR_FLAGS
18422
18423# A C compiler.
18424LTCC=$lt_LTCC
18425
mmentovai8c2a4de2006-09-20 16:20:15 +000018426# LTCC compiler flags.
18427LTCFLAGS=$lt_LTCFLAGS
18428
brynercb91a2f2006-08-25 21:14:45 +000018429# A language-specific compiler.
18430CC=$lt_compiler_GCJ
18431
18432# Is the compiler the GNU C compiler?
18433with_gcc=$GCC_GCJ
18434
18435# An ERE matcher.
18436EGREP=$lt_EGREP
18437
18438# The linker used to build libraries.
18439LD=$lt_LD_GCJ
18440
18441# Whether we need hard or soft links.
18442LN_S=$lt_LN_S
18443
18444# A BSD-compatible nm program.
18445NM=$lt_NM
18446
18447# A symbol stripping program
18448STRIP=$lt_STRIP
18449
18450# Used to examine libraries when file_magic_cmd begins "file"
18451MAGIC_CMD=$MAGIC_CMD
18452
18453# Used on cygwin: DLL creation program.
18454DLLTOOL="$DLLTOOL"
18455
18456# Used on cygwin: object dumper.
18457OBJDUMP="$OBJDUMP"
18458
18459# Used on cygwin: assembler.
18460AS="$AS"
18461
18462# The name of the directory that contains temporary libtool files.
18463objdir=$objdir
18464
18465# How to create reloadable object files.
18466reload_flag=$lt_reload_flag
18467reload_cmds=$lt_reload_cmds
18468
18469# How to pass a linker flag through the compiler.
18470wl=$lt_lt_prog_compiler_wl_GCJ
18471
18472# Object file suffix (normally "o").
18473objext="$ac_objext"
18474
18475# Old archive suffix (normally "a").
18476libext="$libext"
18477
18478# Shared library suffix (normally ".so").
18479shrext_cmds='$shrext_cmds'
18480
18481# Executable file suffix (normally "").
18482exeext="$exeext"
18483
18484# Additional compiler flags for building library objects.
18485pic_flag=$lt_lt_prog_compiler_pic_GCJ
18486pic_mode=$pic_mode
18487
18488# What is the maximum length of a command?
18489max_cmd_len=$lt_cv_sys_max_cmd_len
18490
18491# Does compiler simultaneously support -c and -o options?
18492compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18493
mmentovai8c2a4de2006-09-20 16:20:15 +000018494# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000018495need_locks=$lt_need_locks
18496
18497# Do we need the lib prefix for modules?
18498need_lib_prefix=$need_lib_prefix
18499
18500# Do we need a version for libraries?
18501need_version=$need_version
18502
18503# Whether dlopen is supported.
18504dlopen_support=$enable_dlopen
18505
18506# Whether dlopen of programs is supported.
18507dlopen_self=$enable_dlopen_self
18508
18509# Whether dlopen of statically linked programs is supported.
18510dlopen_self_static=$enable_dlopen_self_static
18511
18512# Compiler flag to prevent dynamic linking.
18513link_static_flag=$lt_lt_prog_compiler_static_GCJ
18514
18515# Compiler flag to turn off builtin functions.
18516no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18517
18518# Compiler flag to allow reflexive dlopens.
18519export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18520
18521# Compiler flag to generate shared objects directly from archives.
18522whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18523
18524# Compiler flag to generate thread-safe objects.
18525thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18526
18527# Library versioning type.
18528version_type=$version_type
18529
18530# Format of library name prefix.
18531libname_spec=$lt_libname_spec
18532
18533# List of archive names. First name is the real one, the rest are links.
18534# The last name is the one that the linker finds with -lNAME.
18535library_names_spec=$lt_library_names_spec
18536
18537# The coded name of the library, if different from the real name.
18538soname_spec=$lt_soname_spec
18539
18540# Commands used to build and install an old-style archive.
18541RANLIB=$lt_RANLIB
18542old_archive_cmds=$lt_old_archive_cmds_GCJ
18543old_postinstall_cmds=$lt_old_postinstall_cmds
18544old_postuninstall_cmds=$lt_old_postuninstall_cmds
18545
18546# Create an old-style archive from a shared archive.
18547old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18548
18549# Create a temporary old-style archive to link instead of a shared archive.
18550old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18551
18552# Commands used to build and install a shared archive.
18553archive_cmds=$lt_archive_cmds_GCJ
18554archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18555postinstall_cmds=$lt_postinstall_cmds
18556postuninstall_cmds=$lt_postuninstall_cmds
18557
18558# Commands used to build a loadable module (assumed same as above if empty)
18559module_cmds=$lt_module_cmds_GCJ
18560module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18561
18562# Commands to strip libraries.
18563old_striplib=$lt_old_striplib
18564striplib=$lt_striplib
18565
18566# Dependencies to place before the objects being linked to create a
18567# shared library.
18568predep_objects=$lt_predep_objects_GCJ
18569
18570# Dependencies to place after the objects being linked to create a
18571# shared library.
18572postdep_objects=$lt_postdep_objects_GCJ
18573
18574# Dependencies to place before the objects being linked to create a
18575# shared library.
18576predeps=$lt_predeps_GCJ
18577
18578# Dependencies to place after the objects being linked to create a
18579# shared library.
18580postdeps=$lt_postdeps_GCJ
18581
18582# The library search path used internally by the compiler when linking
18583# a shared library.
18584compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18585
18586# Method to check whether dependent libraries are shared objects.
18587deplibs_check_method=$lt_deplibs_check_method
18588
18589# Command to use when deplibs_check_method == file_magic.
18590file_magic_cmd=$lt_file_magic_cmd
18591
18592# Flag that allows shared libraries with undefined symbols to be built.
18593allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18594
18595# Flag that forces no undefined symbols.
18596no_undefined_flag=$lt_no_undefined_flag_GCJ
18597
18598# Commands used to finish a libtool library installation in a directory.
18599finish_cmds=$lt_finish_cmds
18600
18601# Same as above, but a single script fragment to be evaled but not shown.
18602finish_eval=$lt_finish_eval
18603
18604# Take the output of nm and produce a listing of raw symbols and C names.
18605global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18606
18607# Transform the output of nm in a proper C declaration
18608global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18609
18610# Transform the output of nm in a C name address pair
18611global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18612
18613# This is the shared library runtime path variable.
18614runpath_var=$runpath_var
18615
18616# This is the shared library path variable.
18617shlibpath_var=$shlibpath_var
18618
18619# Is shlibpath searched before the hard-coded library search path?
18620shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18621
18622# How to hardcode a shared library path into an executable.
18623hardcode_action=$hardcode_action_GCJ
18624
18625# Whether we should hardcode library paths into libraries.
18626hardcode_into_libs=$hardcode_into_libs
18627
18628# Flag to hardcode \$libdir into a binary during linking.
18629# This must work even if \$libdir does not exist.
18630hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18631
18632# If ld is used when linking, flag to hardcode \$libdir into
18633# a binary during linking. This must work even if \$libdir does
18634# not exist.
18635hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18636
18637# Whether we need a single -rpath flag with a separated argument.
18638hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18639
18640# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18641# resulting binary.
18642hardcode_direct=$hardcode_direct_GCJ
18643
18644# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18645# resulting binary.
18646hardcode_minus_L=$hardcode_minus_L_GCJ
18647
18648# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18649# the resulting binary.
18650hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18651
18652# Set to yes if building a shared library automatically hardcodes DIR into the library
18653# and all subsequent libraries and executables linked against it.
18654hardcode_automatic=$hardcode_automatic_GCJ
18655
18656# Variables whose values should be saved in libtool wrapper scripts and
18657# restored at relink time.
18658variables_saved_for_relink="$variables_saved_for_relink"
18659
18660# Whether libtool must link a program against all its dependency libraries.
18661link_all_deplibs=$link_all_deplibs_GCJ
18662
18663# Compile-time system search path for libraries
18664sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18665
18666# Run-time system search path for libraries
18667sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18668
18669# Fix the shell variable \$srcfile for the compiler.
18670fix_srcfile_path="$fix_srcfile_path_GCJ"
18671
18672# Set to yes if exported symbols are required.
18673always_export_symbols=$always_export_symbols_GCJ
18674
18675# The commands to list exported symbols.
18676export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18677
18678# The commands to extract the exported symbol list from a shared archive.
18679extract_expsyms_cmds=$lt_extract_expsyms_cmds
18680
18681# Symbols that should not be listed in the preloaded symbols.
18682exclude_expsyms=$lt_exclude_expsyms_GCJ
18683
18684# Symbols that must always be exported.
18685include_expsyms=$lt_include_expsyms_GCJ
18686
18687# ### END LIBTOOL TAG CONFIG: $tagname
18688
18689__EOF__
18690
18691
18692else
18693 # If there is no Makefile yet, we rely on a make rule to execute
18694 # `config.status --recheck' to rerun these tests and create the
18695 # libtool script then.
18696 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18697 if test -f "$ltmain_in"; then
18698 test -f Makefile && make "$ltmain"
18699 fi
18700fi
18701
18702
18703ac_ext=c
18704ac_cpp='$CPP $CPPFLAGS'
18705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18707ac_compiler_gnu=$ac_cv_c_compiler_gnu
18708
18709CC="$lt_save_CC"
18710
18711 else
18712 tagname=""
18713 fi
18714 ;;
18715
18716 RC)
18717
18718
brynercb91a2f2006-08-25 21:14:45 +000018719# Source file extension for RC test sources.
18720ac_ext=rc
18721
18722# Object file extension for compiled RC test sources.
18723objext=o
18724objext_RC=$objext
18725
18726# Code to be used in simple compile tests
18727lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18728
18729# Code to be used in simple link tests
18730lt_simple_link_test_code="$lt_simple_compile_test_code"
18731
18732# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18733
18734# If no C compiler was specified, use CC.
18735LTCC=${LTCC-"$CC"}
18736
mmentovai8c2a4de2006-09-20 16:20:15 +000018737# If no C compiler flags were specified, use CFLAGS.
18738LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18739
brynercb91a2f2006-08-25 21:14:45 +000018740# Allow CC to be a program name with arguments.
18741compiler=$CC
18742
18743
mmentovai8c2a4de2006-09-20 16:20:15 +000018744# save warnings/boilerplate of simple test code
18745ac_outfile=conftest.$ac_objext
18746printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18747eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18748_lt_compiler_boilerplate=`cat conftest.err`
18749$rm conftest*
18750
18751ac_outfile=conftest.$ac_objext
18752printf "$lt_simple_link_test_code" >conftest.$ac_ext
18753eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18754_lt_linker_boilerplate=`cat conftest.err`
18755$rm conftest*
18756
18757
brynercb91a2f2006-08-25 21:14:45 +000018758# Allow CC to be a program name with arguments.
18759lt_save_CC="$CC"
18760CC=${RC-"windres"}
18761compiler=$CC
18762compiler_RC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +000018763for cc_temp in $compiler""; do
18764 case $cc_temp in
18765 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18766 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18767 \-*) ;;
18768 *) break;;
18769 esac
18770done
18771cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18772
brynercb91a2f2006-08-25 21:14:45 +000018773lt_cv_prog_compiler_c_o_RC=yes
18774
18775# The else clause should only fire when bootstrapping the
18776# libtool distribution, otherwise you forgot to ship ltmain.sh
18777# with your package, and you will get complaints that there are
18778# no rules to generate ltmain.sh.
18779if test -f "$ltmain"; then
18780 # See if we are running on zsh, and set the options which allow our commands through
18781 # without removal of \ escapes.
18782 if test -n "${ZSH_VERSION+set}" ; then
18783 setopt NO_GLOB_SUBST
18784 fi
18785 # Now quote all the things that may contain metacharacters while being
18786 # careful not to overquote the AC_SUBSTed values. We take copies of the
18787 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000018788 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000018789 SED SHELL STRIP \
18790 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18791 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18792 deplibs_check_method reload_flag reload_cmds need_locks \
18793 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18794 lt_cv_sys_global_symbol_to_c_name_address \
18795 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18796 old_postinstall_cmds old_postuninstall_cmds \
18797 compiler_RC \
18798 CC_RC \
18799 LD_RC \
18800 lt_prog_compiler_wl_RC \
18801 lt_prog_compiler_pic_RC \
18802 lt_prog_compiler_static_RC \
18803 lt_prog_compiler_no_builtin_flag_RC \
18804 export_dynamic_flag_spec_RC \
18805 thread_safe_flag_spec_RC \
18806 whole_archive_flag_spec_RC \
18807 enable_shared_with_static_runtimes_RC \
18808 old_archive_cmds_RC \
18809 old_archive_from_new_cmds_RC \
18810 predep_objects_RC \
18811 postdep_objects_RC \
18812 predeps_RC \
18813 postdeps_RC \
18814 compiler_lib_search_path_RC \
18815 archive_cmds_RC \
18816 archive_expsym_cmds_RC \
18817 postinstall_cmds_RC \
18818 postuninstall_cmds_RC \
18819 old_archive_from_expsyms_cmds_RC \
18820 allow_undefined_flag_RC \
18821 no_undefined_flag_RC \
18822 export_symbols_cmds_RC \
18823 hardcode_libdir_flag_spec_RC \
18824 hardcode_libdir_flag_spec_ld_RC \
18825 hardcode_libdir_separator_RC \
18826 hardcode_automatic_RC \
18827 module_cmds_RC \
18828 module_expsym_cmds_RC \
18829 lt_cv_prog_compiler_c_o_RC \
18830 exclude_expsyms_RC \
18831 include_expsyms_RC; do
18832
18833 case $var in
18834 old_archive_cmds_RC | \
18835 old_archive_from_new_cmds_RC | \
18836 archive_cmds_RC | \
18837 archive_expsym_cmds_RC | \
18838 module_cmds_RC | \
18839 module_expsym_cmds_RC | \
18840 old_archive_from_expsyms_cmds_RC | \
18841 export_symbols_cmds_RC | \
18842 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18843 postinstall_cmds | postuninstall_cmds | \
18844 old_postinstall_cmds | old_postuninstall_cmds | \
18845 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18846 # Double-quote double-evaled strings.
18847 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18848 ;;
18849 *)
18850 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18851 ;;
18852 esac
18853 done
18854
18855 case $lt_echo in
18856 *'\$0 --fallback-echo"')
18857 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18858 ;;
18859 esac
18860
18861cfgfile="$ofile"
18862
18863 cat <<__EOF__ >> "$cfgfile"
18864# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18865
18866# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18867
18868# Shell to use when invoking shell scripts.
18869SHELL=$lt_SHELL
18870
18871# Whether or not to build shared libraries.
18872build_libtool_libs=$enable_shared
18873
18874# Whether or not to build static libraries.
18875build_old_libs=$enable_static
18876
18877# Whether or not to add -lc for building shared libraries.
18878build_libtool_need_lc=$archive_cmds_need_lc_RC
18879
18880# Whether or not to disallow shared libs when runtime libs are static
18881allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18882
18883# Whether or not to optimize for fast installation.
18884fast_install=$enable_fast_install
18885
18886# The host system.
18887host_alias=$host_alias
18888host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000018889host_os=$host_os
18890
18891# The build system.
18892build_alias=$build_alias
18893build=$build
18894build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000018895
18896# An echo program that does not interpret backslashes.
18897echo=$lt_echo
18898
18899# The archiver.
18900AR=$lt_AR
18901AR_FLAGS=$lt_AR_FLAGS
18902
18903# A C compiler.
18904LTCC=$lt_LTCC
18905
mmentovai8c2a4de2006-09-20 16:20:15 +000018906# LTCC compiler flags.
18907LTCFLAGS=$lt_LTCFLAGS
18908
brynercb91a2f2006-08-25 21:14:45 +000018909# A language-specific compiler.
18910CC=$lt_compiler_RC
18911
18912# Is the compiler the GNU C compiler?
18913with_gcc=$GCC_RC
18914
18915# An ERE matcher.
18916EGREP=$lt_EGREP
18917
18918# The linker used to build libraries.
18919LD=$lt_LD_RC
18920
18921# Whether we need hard or soft links.
18922LN_S=$lt_LN_S
18923
18924# A BSD-compatible nm program.
18925NM=$lt_NM
18926
18927# A symbol stripping program
18928STRIP=$lt_STRIP
18929
18930# Used to examine libraries when file_magic_cmd begins "file"
18931MAGIC_CMD=$MAGIC_CMD
18932
18933# Used on cygwin: DLL creation program.
18934DLLTOOL="$DLLTOOL"
18935
18936# Used on cygwin: object dumper.
18937OBJDUMP="$OBJDUMP"
18938
18939# Used on cygwin: assembler.
18940AS="$AS"
18941
18942# The name of the directory that contains temporary libtool files.
18943objdir=$objdir
18944
18945# How to create reloadable object files.
18946reload_flag=$lt_reload_flag
18947reload_cmds=$lt_reload_cmds
18948
18949# How to pass a linker flag through the compiler.
18950wl=$lt_lt_prog_compiler_wl_RC
18951
18952# Object file suffix (normally "o").
18953objext="$ac_objext"
18954
18955# Old archive suffix (normally "a").
18956libext="$libext"
18957
18958# Shared library suffix (normally ".so").
18959shrext_cmds='$shrext_cmds'
18960
18961# Executable file suffix (normally "").
18962exeext="$exeext"
18963
18964# Additional compiler flags for building library objects.
18965pic_flag=$lt_lt_prog_compiler_pic_RC
18966pic_mode=$pic_mode
18967
18968# What is the maximum length of a command?
18969max_cmd_len=$lt_cv_sys_max_cmd_len
18970
18971# Does compiler simultaneously support -c and -o options?
18972compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18973
mmentovai8c2a4de2006-09-20 16:20:15 +000018974# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000018975need_locks=$lt_need_locks
18976
18977# Do we need the lib prefix for modules?
18978need_lib_prefix=$need_lib_prefix
18979
18980# Do we need a version for libraries?
18981need_version=$need_version
18982
18983# Whether dlopen is supported.
18984dlopen_support=$enable_dlopen
18985
18986# Whether dlopen of programs is supported.
18987dlopen_self=$enable_dlopen_self
18988
18989# Whether dlopen of statically linked programs is supported.
18990dlopen_self_static=$enable_dlopen_self_static
18991
18992# Compiler flag to prevent dynamic linking.
18993link_static_flag=$lt_lt_prog_compiler_static_RC
18994
18995# Compiler flag to turn off builtin functions.
18996no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18997
18998# Compiler flag to allow reflexive dlopens.
18999export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19000
19001# Compiler flag to generate shared objects directly from archives.
19002whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19003
19004# Compiler flag to generate thread-safe objects.
19005thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19006
19007# Library versioning type.
19008version_type=$version_type
19009
19010# Format of library name prefix.
19011libname_spec=$lt_libname_spec
19012
19013# List of archive names. First name is the real one, the rest are links.
19014# The last name is the one that the linker finds with -lNAME.
19015library_names_spec=$lt_library_names_spec
19016
19017# The coded name of the library, if different from the real name.
19018soname_spec=$lt_soname_spec
19019
19020# Commands used to build and install an old-style archive.
19021RANLIB=$lt_RANLIB
19022old_archive_cmds=$lt_old_archive_cmds_RC
19023old_postinstall_cmds=$lt_old_postinstall_cmds
19024old_postuninstall_cmds=$lt_old_postuninstall_cmds
19025
19026# Create an old-style archive from a shared archive.
19027old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19028
19029# Create a temporary old-style archive to link instead of a shared archive.
19030old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19031
19032# Commands used to build and install a shared archive.
19033archive_cmds=$lt_archive_cmds_RC
19034archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19035postinstall_cmds=$lt_postinstall_cmds
19036postuninstall_cmds=$lt_postuninstall_cmds
19037
19038# Commands used to build a loadable module (assumed same as above if empty)
19039module_cmds=$lt_module_cmds_RC
19040module_expsym_cmds=$lt_module_expsym_cmds_RC
19041
19042# Commands to strip libraries.
19043old_striplib=$lt_old_striplib
19044striplib=$lt_striplib
19045
19046# Dependencies to place before the objects being linked to create a
19047# shared library.
19048predep_objects=$lt_predep_objects_RC
19049
19050# Dependencies to place after the objects being linked to create a
19051# shared library.
19052postdep_objects=$lt_postdep_objects_RC
19053
19054# Dependencies to place before the objects being linked to create a
19055# shared library.
19056predeps=$lt_predeps_RC
19057
19058# Dependencies to place after the objects being linked to create a
19059# shared library.
19060postdeps=$lt_postdeps_RC
19061
19062# The library search path used internally by the compiler when linking
19063# a shared library.
19064compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19065
19066# Method to check whether dependent libraries are shared objects.
19067deplibs_check_method=$lt_deplibs_check_method
19068
19069# Command to use when deplibs_check_method == file_magic.
19070file_magic_cmd=$lt_file_magic_cmd
19071
19072# Flag that allows shared libraries with undefined symbols to be built.
19073allow_undefined_flag=$lt_allow_undefined_flag_RC
19074
19075# Flag that forces no undefined symbols.
19076no_undefined_flag=$lt_no_undefined_flag_RC
19077
19078# Commands used to finish a libtool library installation in a directory.
19079finish_cmds=$lt_finish_cmds
19080
19081# Same as above, but a single script fragment to be evaled but not shown.
19082finish_eval=$lt_finish_eval
19083
19084# Take the output of nm and produce a listing of raw symbols and C names.
19085global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19086
19087# Transform the output of nm in a proper C declaration
19088global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19089
19090# Transform the output of nm in a C name address pair
19091global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19092
19093# This is the shared library runtime path variable.
19094runpath_var=$runpath_var
19095
19096# This is the shared library path variable.
19097shlibpath_var=$shlibpath_var
19098
19099# Is shlibpath searched before the hard-coded library search path?
19100shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19101
19102# How to hardcode a shared library path into an executable.
19103hardcode_action=$hardcode_action_RC
19104
19105# Whether we should hardcode library paths into libraries.
19106hardcode_into_libs=$hardcode_into_libs
19107
19108# Flag to hardcode \$libdir into a binary during linking.
19109# This must work even if \$libdir does not exist.
19110hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19111
19112# If ld is used when linking, flag to hardcode \$libdir into
19113# a binary during linking. This must work even if \$libdir does
19114# not exist.
19115hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19116
19117# Whether we need a single -rpath flag with a separated argument.
19118hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19119
19120# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19121# resulting binary.
19122hardcode_direct=$hardcode_direct_RC
19123
19124# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19125# resulting binary.
19126hardcode_minus_L=$hardcode_minus_L_RC
19127
19128# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19129# the resulting binary.
19130hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19131
19132# Set to yes if building a shared library automatically hardcodes DIR into the library
19133# and all subsequent libraries and executables linked against it.
19134hardcode_automatic=$hardcode_automatic_RC
19135
19136# Variables whose values should be saved in libtool wrapper scripts and
19137# restored at relink time.
19138variables_saved_for_relink="$variables_saved_for_relink"
19139
19140# Whether libtool must link a program against all its dependency libraries.
19141link_all_deplibs=$link_all_deplibs_RC
19142
19143# Compile-time system search path for libraries
19144sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19145
19146# Run-time system search path for libraries
19147sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19148
19149# Fix the shell variable \$srcfile for the compiler.
19150fix_srcfile_path="$fix_srcfile_path_RC"
19151
19152# Set to yes if exported symbols are required.
19153always_export_symbols=$always_export_symbols_RC
19154
19155# The commands to list exported symbols.
19156export_symbols_cmds=$lt_export_symbols_cmds_RC
19157
19158# The commands to extract the exported symbol list from a shared archive.
19159extract_expsyms_cmds=$lt_extract_expsyms_cmds
19160
19161# Symbols that should not be listed in the preloaded symbols.
19162exclude_expsyms=$lt_exclude_expsyms_RC
19163
19164# Symbols that must always be exported.
19165include_expsyms=$lt_include_expsyms_RC
19166
19167# ### END LIBTOOL TAG CONFIG: $tagname
19168
19169__EOF__
19170
19171
19172else
19173 # If there is no Makefile yet, we rely on a make rule to execute
19174 # `config.status --recheck' to rerun these tests and create the
19175 # libtool script then.
19176 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19177 if test -f "$ltmain_in"; then
19178 test -f Makefile && make "$ltmain"
19179 fi
19180fi
19181
19182
19183ac_ext=c
19184ac_cpp='$CPP $CPPFLAGS'
19185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19187ac_compiler_gnu=$ac_cv_c_compiler_gnu
19188
19189CC="$lt_save_CC"
19190
19191 ;;
19192
19193 *)
19194 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19195echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19196 { (exit 1); exit 1; }; }
19197 ;;
19198 esac
19199
19200 # Append the new tag name to the list of available tags.
19201 if test -n "$tagname" ; then
19202 available_tags="$available_tags $tagname"
19203 fi
19204 fi
19205 done
19206 IFS="$lt_save_ifs"
19207
19208 # Now substitute the updated list of available tags.
19209 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19210 mv "${ofile}T" "$ofile"
19211 chmod +x "$ofile"
19212 else
19213 rm -f "${ofile}T"
19214 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19215echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19216 { (exit 1); exit 1; }; }
19217 fi
19218fi
19219
19220
19221
19222# This can be used to rebuild libtool when needed
19223LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19224
19225# Always use our own libtool.
19226LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19227
19228# Prevent multiple expansion
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
mmentovai8c2a4de2006-09-20 16:20:15 +000019251{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19252echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000019253if test "${ac_cv_header_stdc+set}" = set; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19255else
19256 cat >conftest.$ac_ext <<_ACEOF
19257/* confdefs.h. */
19258_ACEOF
19259cat confdefs.h >>conftest.$ac_ext
19260cat >>conftest.$ac_ext <<_ACEOF
19261/* end confdefs.h. */
19262#include <stdlib.h>
19263#include <stdarg.h>
19264#include <string.h>
19265#include <float.h>
19266
19267int
19268main ()
19269{
19270
19271 ;
19272 return 0;
19273}
19274_ACEOF
19275rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +000019276if { (ac_try="$ac_compile"
19277case "(($ac_try" in
19278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19279 *) ac_try_echo=$ac_try;;
19280esac
19281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19282 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000019283 ac_status=$?
19284 grep -v '^ *+' conftest.er1 >conftest.err
19285 rm -f conftest.er1
19286 cat conftest.err >&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mmentovaiaf3c43f2007-05-17 18:34:37 +000019288 (exit $ac_status); } && {
19289 test -z "$ac_c_werror_flag" ||
19290 test ! -s conftest.err
19291 } && test -s conftest.$ac_objext; then
brynercb91a2f2006-08-25 21:14:45 +000019292 ac_cv_header_stdc=yes
19293else
19294 echo "$as_me: failed program was:" >&5
19295sed 's/^/| /' conftest.$ac_ext >&5
19296
mmentovai8c2a4de2006-09-20 16:20:15 +000019297 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +000019298fi
mmentovai8c2a4de2006-09-20 16:20:15 +000019299
19300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000019301
19302if test $ac_cv_header_stdc = yes; then
19303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19304 cat >conftest.$ac_ext <<_ACEOF
19305/* confdefs.h. */
19306_ACEOF
19307cat confdefs.h >>conftest.$ac_ext
19308cat >>conftest.$ac_ext <<_ACEOF
19309/* end confdefs.h. */
19310#include <string.h>
19311
19312_ACEOF
19313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19314 $EGREP "memchr" >/dev/null 2>&1; then
19315 :
19316else
19317 ac_cv_header_stdc=no
19318fi
19319rm -f conftest*
19320
19321fi
19322
19323if test $ac_cv_header_stdc = yes; then
19324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19325 cat >conftest.$ac_ext <<_ACEOF
19326/* confdefs.h. */
19327_ACEOF
19328cat confdefs.h >>conftest.$ac_ext
19329cat >>conftest.$ac_ext <<_ACEOF
19330/* end confdefs.h. */
19331#include <stdlib.h>
19332
19333_ACEOF
19334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19335 $EGREP "free" >/dev/null 2>&1; then
19336 :
19337else
19338 ac_cv_header_stdc=no
19339fi
19340rm -f conftest*
19341
19342fi
19343
19344if test $ac_cv_header_stdc = yes; then
19345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19346 if test "$cross_compiling" = yes; then
19347 :
19348else
19349 cat >conftest.$ac_ext <<_ACEOF
19350/* confdefs.h. */
19351_ACEOF
19352cat confdefs.h >>conftest.$ac_ext
19353cat >>conftest.$ac_ext <<_ACEOF
19354/* end confdefs.h. */
19355#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +000019356#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +000019357#if ((' ' & 0x0FF) == 0x020)
19358# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19359# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19360#else
19361# define ISLOWER(c) \
19362 (('a' <= (c) && (c) <= 'i') \
19363 || ('j' <= (c) && (c) <= 'r') \
19364 || ('s' <= (c) && (c) <= 'z'))
19365# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19366#endif
19367
19368#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19369int
19370main ()
19371{
19372 int i;
19373 for (i = 0; i < 256; i++)
19374 if (XOR (islower (i), ISLOWER (i))
19375 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +000019376 return 2;
19377 return 0;
brynercb91a2f2006-08-25 21:14:45 +000019378}
19379_ACEOF
19380rm -f conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000019381if { (ac_try="$ac_link"
19382case "(($ac_try" in
19383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19384 *) ac_try_echo=$ac_try;;
19385esac
19386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19387 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000019388 ac_status=$?
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000019391 { (case "(($ac_try" in
19392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393 *) ac_try_echo=$ac_try;;
19394esac
19395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000019397 ac_status=$?
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); }; }; then
19400 :
19401else
19402 echo "$as_me: program exited with status $ac_status" >&5
19403echo "$as_me: failed program was:" >&5
19404sed 's/^/| /' conftest.$ac_ext >&5
19405
19406( exit $ac_status )
19407ac_cv_header_stdc=no
19408fi
mmentovai8c2a4de2006-09-20 16:20:15 +000019409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19410fi
19411
19412
brynercb91a2f2006-08-25 21:14:45 +000019413fi
19414fi
mmentovai8c2a4de2006-09-20 16:20:15 +000019415{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19416echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000019417if test $ac_cv_header_stdc = yes; then
19418
19419cat >>confdefs.h <<\_ACEOF
19420#define STDC_HEADERS 1
19421_ACEOF
19422
19423fi
19424
19425
mmentovai0dbedc92006-09-25 21:16:15 +000019426# Check whether --enable-selftest was given.
19427if test "${enable_selftest+set}" = set; then
19428 enableval=$enable_selftest; case "${enableval}" in
19429 yes)
19430 selftest=true
19431 ;;
19432 no)
19433 selftest=false
19434 ;;
19435 *)
19436 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-selftest" >&5
19437echo "$as_me: error: bad value ${enableval} for --enable-selftest" >&2;}
19438 { (exit 1); exit 1; }; }
19439 ;;
19440 esac
19441else
19442 selftest=false
19443fi
19444
mmentovaiaf3c43f2007-05-17 18:34:37 +000019445 if test x$selftest = xtrue; then
mmentovai0dbedc92006-09-25 21:16:15 +000019446 SELFTEST_TRUE=
19447 SELFTEST_FALSE='#'
19448else
19449 SELFTEST_TRUE='#'
19450 SELFTEST_FALSE=
19451fi
19452
19453
mmentovai8c2a4de2006-09-20 16:20:15 +000019454ac_config_files="$ac_config_files Makefile"
brynercb91a2f2006-08-25 21:14:45 +000019455
19456cat >confcache <<\_ACEOF
19457# This file is a shell script that caches the results of configure
19458# tests run on this system so they can be shared between configure
19459# scripts and configure runs, see configure's option --config-cache.
19460# It is not useful on other systems. If it contains results you don't
19461# want to keep, you may remove or edit it.
19462#
19463# config.status only pays attention to the cache file if you give it
19464# the --recheck option to rerun configure.
19465#
19466# `ac_cv_env_foo' variables (set or unset) will be overridden when
19467# loading this file, other *unset* `ac_cv_foo' will be assigned the
19468# following values.
19469
19470_ACEOF
19471
19472# The following way of writing the cache mishandles newlines in values,
19473# but we know of no workaround that is simple, portable, and efficient.
mmentovai8c2a4de2006-09-20 16:20:15 +000019474# So, we kill variables containing newlines.
brynercb91a2f2006-08-25 21:14:45 +000019475# Ultrix sh set writes to stderr and can't be redirected directly,
19476# and sets the high bit in the cache file unless we assign to the vars.
mmentovai8c2a4de2006-09-20 16:20:15 +000019477(
19478 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19479 eval ac_val=\$$ac_var
19480 case $ac_val in #(
19481 *${as_nl}*)
19482 case $ac_var in #(
19483 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19484echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19485 esac
19486 case $ac_var in #(
19487 _ | IFS | as_nl) ;; #(
19488 *) $as_unset $ac_var ;;
19489 esac ;;
19490 esac
19491 done
19492
brynercb91a2f2006-08-25 21:14:45 +000019493 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +000019494 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19495 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +000019496 # `set' does not quote correctly, so add quotes (double-quote
19497 # substitution turns \\\\ into \\, and sed turns \\ into \).
19498 sed -n \
19499 "s/'/'\\\\''/g;
19500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mmentovai8c2a4de2006-09-20 16:20:15 +000019501 ;; #(
brynercb91a2f2006-08-25 21:14:45 +000019502 *)
19503 # `set' quotes correctly as required by POSIX, so do not add quotes.
mmentovai8c2a4de2006-09-20 16:20:15 +000019504 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +000019505 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000019506 esac |
19507 sort
19508) |
brynercb91a2f2006-08-25 21:14:45 +000019509 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +000019510 /^ac_cv_env_/b end
brynercb91a2f2006-08-25 21:14:45 +000019511 t clear
mmentovai8c2a4de2006-09-20 16:20:15 +000019512 :clear
brynercb91a2f2006-08-25 21:14:45 +000019513 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19514 t end
mmentovai8c2a4de2006-09-20 16:20:15 +000019515 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19516 :end' >>confcache
19517if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19518 if test -w "$cache_file"; then
19519 test "x$cache_file" != "x/dev/null" &&
19520 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19521echo "$as_me: updating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000019522 cat confcache >$cache_file
19523 else
mmentovai8c2a4de2006-09-20 16:20:15 +000019524 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19525echo "$as_me: not updating unwritable cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000019526 fi
19527fi
19528rm -f confcache
19529
19530test "x$prefix" = xNONE && prefix=$ac_default_prefix
19531# Let make expand exec_prefix.
19532test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19533
brynercb91a2f2006-08-25 21:14:45 +000019534DEFS=-DHAVE_CONFIG_H
19535
19536ac_libobjs=
19537ac_ltlibobjs=
19538for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19539 # 1. Remove the extension, and $U if already installed.
mmentovai8c2a4de2006-09-20 16:20:15 +000019540 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19541 ac_i=`echo "$ac_i" | sed "$ac_script"`
19542 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19543 # will be set to the directory where LIBOBJS objects are built.
19544 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19545 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
brynercb91a2f2006-08-25 21:14:45 +000019546done
19547LIBOBJS=$ac_libobjs
19548
19549LTLIBOBJS=$ac_ltlibobjs
19550
19551
19552if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19553 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19554Usually this means the macro was only invoked conditionally." >&5
19555echo "$as_me: error: conditional \"AMDEP\" was never defined.
19556Usually this means the macro was only invoked conditionally." >&2;}
19557 { (exit 1); exit 1; }; }
19558fi
19559if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19560 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19561Usually this means the macro was only invoked conditionally." >&5
19562echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19563Usually this means the macro was only invoked conditionally." >&2;}
19564 { (exit 1); exit 1; }; }
19565fi
19566if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19567 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19568Usually this means the macro was only invoked conditionally." >&5
19569echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19570Usually this means the macro was only invoked conditionally." >&2;}
19571 { (exit 1); exit 1; }; }
19572fi
mmentovai0dbedc92006-09-25 21:16:15 +000019573if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
19574 { { echo "$as_me:$LINENO: error: conditional \"SELFTEST\" was never defined.
19575Usually this means the macro was only invoked conditionally." >&5
19576echo "$as_me: error: conditional \"SELFTEST\" was never defined.
19577Usually this means the macro was only invoked conditionally." >&2;}
19578 { (exit 1); exit 1; }; }
19579fi
brynercb91a2f2006-08-25 21:14:45 +000019580
19581: ${CONFIG_STATUS=./config.status}
19582ac_clean_files_save=$ac_clean_files
19583ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19584{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19585echo "$as_me: creating $CONFIG_STATUS" >&6;}
19586cat >$CONFIG_STATUS <<_ACEOF
19587#! $SHELL
19588# Generated by $as_me.
19589# Run this file to recreate the current configuration.
19590# Compiler output produced by configure, useful for debugging
19591# configure, is in config.log if it exists.
19592
19593debug=false
19594ac_cs_recheck=false
19595ac_cs_silent=false
19596SHELL=\${CONFIG_SHELL-$SHELL}
19597_ACEOF
19598
19599cat >>$CONFIG_STATUS <<\_ACEOF
19600## --------------------- ##
19601## M4sh Initialization. ##
19602## --------------------- ##
19603
mmentovaiaf3c43f2007-05-17 18:34:37 +000019604# Be more Bourne compatible
19605DUALCASE=1; export DUALCASE # for MKS sh
brynercb91a2f2006-08-25 21:14:45 +000019606if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19607 emulate sh
19608 NULLCMD=:
19609 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19610 # is contrary to our usage. Disable this feature.
19611 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000019612 setopt NO_GLOB_SUBST
19613else
mmentovaiaf3c43f2007-05-17 18:34:37 +000019614 case `(set -o) 2>/dev/null` in
19615 *posix*) set -o posix ;;
19616esac
19617
brynercb91a2f2006-08-25 21:14:45 +000019618fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000019619
19620
brynercb91a2f2006-08-25 21:14:45 +000019621
brynercb91a2f2006-08-25 21:14:45 +000019622
mmentovai8c2a4de2006-09-20 16:20:15 +000019623# PATH needs CR
brynercb91a2f2006-08-25 21:14:45 +000019624# Avoid depending upon Character Ranges.
19625as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19626as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19627as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19628as_cr_digits='0123456789'
19629as_cr_alnum=$as_cr_Letters$as_cr_digits
19630
19631# The user is always right.
19632if test "${PATH_SEPARATOR+set}" != set; then
19633 echo "#! /bin/sh" >conf$$.sh
19634 echo "exit 0" >>conf$$.sh
19635 chmod +x conf$$.sh
19636 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19637 PATH_SEPARATOR=';'
19638 else
19639 PATH_SEPARATOR=:
19640 fi
19641 rm -f conf$$.sh
19642fi
19643
mmentovai8c2a4de2006-09-20 16:20:15 +000019644# Support unset when possible.
19645if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19646 as_unset=unset
19647else
19648 as_unset=false
19649fi
brynercb91a2f2006-08-25 21:14:45 +000019650
mmentovai8c2a4de2006-09-20 16:20:15 +000019651
19652# IFS
19653# We need space, tab and new line, in precisely that order. Quoting is
19654# there to prevent editors from complaining about space-tab.
19655# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19656# splitting by setting IFS to empty value.)
19657as_nl='
19658'
19659IFS=" "" $as_nl"
19660
19661# Find who we are. Look in the path if we contain no directory separator.
19662case $0 in
19663 *[\\/]* ) as_myself=$0 ;;
19664 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000019665for as_dir in $PATH
19666do
19667 IFS=$as_save_IFS
19668 test -z "$as_dir" && as_dir=.
19669 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19670done
mmentovai8c2a4de2006-09-20 16:20:15 +000019671IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +000019672
mmentovai8c2a4de2006-09-20 16:20:15 +000019673 ;;
19674esac
19675# We did not find ourselves, most probably we were run as `sh COMMAND'
19676# in which case we are not to be found in the path.
19677if test "x$as_myself" = x; then
19678 as_myself=$0
19679fi
19680if test ! -f "$as_myself"; then
19681 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19682 { (exit 1); exit 1; }
19683fi
19684
19685# Work around bugs in pre-3.0 UWIN ksh.
19686for as_var in ENV MAIL MAILPATH
19687do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19688done
19689PS1='$ '
19690PS2='> '
19691PS4='+ '
19692
19693# NLS nuisances.
19694for as_var in \
19695 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19696 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19697 LC_TELEPHONE LC_TIME
brynercb91a2f2006-08-25 21:14:45 +000019698do
mmentovai8c2a4de2006-09-20 16:20:15 +000019699 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19700 eval $as_var=C; export $as_var
19701 else
19702 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19703 fi
19704done
19705
19706# Required to use basename.
19707if expr a : '\(a\)' >/dev/null 2>&1 &&
19708 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19709 as_expr=expr
19710else
19711 as_expr=false
19712fi
19713
19714if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19715 as_basename=basename
19716else
19717 as_basename=false
19718fi
19719
19720
19721# Name of the executable.
19722as_me=`$as_basename -- "$0" ||
19723$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19724 X"$0" : 'X\(//\)$' \| \
19725 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19726echo X/"$0" |
19727 sed '/^.*\/\([^/][^/]*\)\/*$/{
19728 s//\1/
19729 q
19730 }
19731 /^X\/\(\/\/\)$/{
19732 s//\1/
19733 q
19734 }
19735 /^X\/\(\/\).*/{
19736 s//\1/
19737 q
19738 }
19739 s/.*/./; q'`
19740
19741# CDPATH.
19742$as_unset CDPATH
19743
19744
19745
brynercb91a2f2006-08-25 21:14:45 +000019746 as_lineno_1=$LINENO
19747 as_lineno_2=$LINENO
brynercb91a2f2006-08-25 21:14:45 +000019748 test "x$as_lineno_1" != "x$as_lineno_2" &&
mmentovai8c2a4de2006-09-20 16:20:15 +000019749 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
brynercb91a2f2006-08-25 21:14:45 +000019750
19751 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19752 # uniformly replaced by the line number. The first 'sed' inserts a
mmentovai8c2a4de2006-09-20 16:20:15 +000019753 # line-number line after each line using $LINENO; the second 'sed'
19754 # does the real work. The second script uses 'N' to pair each
19755 # line-number line with the line containing $LINENO, and appends
19756 # trailing '-' during substitution so that $LINENO is not a special
19757 # case at line end.
brynercb91a2f2006-08-25 21:14:45 +000019758 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mmentovai8c2a4de2006-09-20 16:20:15 +000019759 # scripts with optimization help from Paolo Bonzini. Blame Lee
19760 # E. McMahon (1931-1989) for sed's syntax. :-)
19761 sed -n '
19762 p
19763 /[$]LINENO/=
19764 ' <$as_myself |
brynercb91a2f2006-08-25 21:14:45 +000019765 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +000019766 s/[$]LINENO.*/&-/
19767 t lineno
19768 b
19769 :lineno
brynercb91a2f2006-08-25 21:14:45 +000019770 N
mmentovai8c2a4de2006-09-20 16:20:15 +000019771 :loop
19772 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
brynercb91a2f2006-08-25 21:14:45 +000019773 t loop
mmentovai8c2a4de2006-09-20 16:20:15 +000019774 s/-\n.*//
brynercb91a2f2006-08-25 21:14:45 +000019775 ' >$as_me.lineno &&
mmentovai8c2a4de2006-09-20 16:20:15 +000019776 chmod +x "$as_me.lineno" ||
19777 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
brynercb91a2f2006-08-25 21:14:45 +000019778 { (exit 1); exit 1; }; }
19779
19780 # Don't try to exec as it changes $[0], causing all sort of problems
19781 # (the dirname of $[0] is not the place where we might find the
mmentovai8c2a4de2006-09-20 16:20:15 +000019782 # original and so on. Autoconf is especially sensitive to this).
19783 . "./$as_me.lineno"
brynercb91a2f2006-08-25 21:14:45 +000019784 # Exit status is that of the last command.
19785 exit
19786}
19787
19788
mmentovai8c2a4de2006-09-20 16:20:15 +000019789if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19790 as_dirname=dirname
19791else
19792 as_dirname=false
19793fi
19794
19795ECHO_C= ECHO_N= ECHO_T=
19796case `echo -n x` in
19797-n*)
19798 case `echo 'x\c'` in
19799 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19800 *) ECHO_C='\c';;
19801 esac;;
19802*)
19803 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +000019804esac
19805
mmentovai8c2a4de2006-09-20 16:20:15 +000019806if expr a : '\(a\)' >/dev/null 2>&1 &&
19807 test "X`expr 00001 : '.*\(...\)'`" = X001; then
brynercb91a2f2006-08-25 21:14:45 +000019808 as_expr=expr
19809else
19810 as_expr=false
19811fi
19812
19813rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +000019814if test -d conf$$.dir; then
19815 rm -f conf$$.dir/conf$$.file
19816else
19817 rm -f conf$$.dir
19818 mkdir conf$$.dir
19819fi
brynercb91a2f2006-08-25 21:14:45 +000019820echo >conf$$.file
19821if ln -s conf$$.file conf$$ 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000019822 as_ln_s='ln -s'
19823 # ... but there are two gotchas:
19824 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19825 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19826 # In both cases, we have to default to `cp -p'.
19827 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
brynercb91a2f2006-08-25 21:14:45 +000019828 as_ln_s='cp -p'
brynercb91a2f2006-08-25 21:14:45 +000019829elif ln conf$$.file conf$$ 2>/dev/null; then
19830 as_ln_s=ln
19831else
19832 as_ln_s='cp -p'
19833fi
mmentovai8c2a4de2006-09-20 16:20:15 +000019834rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19835rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000019836
19837if mkdir -p . 2>/dev/null; then
19838 as_mkdir_p=:
19839else
19840 test -d ./-p && rmdir ./-p
19841 as_mkdir_p=false
19842fi
19843
mmentovaiaf3c43f2007-05-17 18:34:37 +000019844if test -x / >/dev/null 2>&1; then
19845 as_test_x='test -x'
mmentovai8c2a4de2006-09-20 16:20:15 +000019846else
mmentovaiaf3c43f2007-05-17 18:34:37 +000019847 if ls -dL / >/dev/null 2>&1; then
19848 as_ls_L_option=L
19849 else
19850 as_ls_L_option=
19851 fi
19852 as_test_x='
19853 eval sh -c '\''
19854 if test -d "$1"; then
19855 test -d "$1/.";
19856 else
19857 case $1 in
19858 -*)set "./$1";;
19859 esac;
19860 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19861 ???[sx]*):;;*)false;;esac;fi
19862 '\'' sh
19863 '
mmentovai8c2a4de2006-09-20 16:20:15 +000019864fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000019865as_executable_p=$as_test_x
brynercb91a2f2006-08-25 21:14:45 +000019866
19867# Sed expression to map a string onto a valid CPP name.
19868as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19869
19870# Sed expression to map a string onto a valid variable name.
19871as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19872
19873
brynercb91a2f2006-08-25 21:14:45 +000019874exec 6>&1
19875
mmentovai8c2a4de2006-09-20 16:20:15 +000019876# Save the log message, to keep $[0] and so on meaningful, and to
brynercb91a2f2006-08-25 21:14:45 +000019877# report actual input values of CONFIG_FILES etc. instead of their
mmentovai8c2a4de2006-09-20 16:20:15 +000019878# values after options handling.
19879ac_log="
mmentovaie5dc6082007-02-14 19:51:05 +000019880This file was extended by breakpad $as_me 0.1, which was
mmentovaiaf3c43f2007-05-17 18:34:37 +000019881generated by GNU Autoconf 2.61. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +000019882
19883 CONFIG_FILES = $CONFIG_FILES
19884 CONFIG_HEADERS = $CONFIG_HEADERS
19885 CONFIG_LINKS = $CONFIG_LINKS
19886 CONFIG_COMMANDS = $CONFIG_COMMANDS
19887 $ $0 $@
19888
mmentovai8c2a4de2006-09-20 16:20:15 +000019889on `(hostname || uname -n) 2>/dev/null | sed 1q`
19890"
19891
brynercb91a2f2006-08-25 21:14:45 +000019892_ACEOF
19893
mmentovai8c2a4de2006-09-20 16:20:15 +000019894cat >>$CONFIG_STATUS <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000019895# Files that config.status was made for.
mmentovai8c2a4de2006-09-20 16:20:15 +000019896config_files="$ac_config_files"
19897config_headers="$ac_config_headers"
19898config_commands="$ac_config_commands"
brynercb91a2f2006-08-25 21:14:45 +000019899
mmentovai8c2a4de2006-09-20 16:20:15 +000019900_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000019901
19902cat >>$CONFIG_STATUS <<\_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000019903ac_cs_usage="\
19904\`$as_me' instantiates files from templates according to the
19905current configuration.
19906
19907Usage: $0 [OPTIONS] [FILE]...
19908
19909 -h, --help print this help, then exit
mmentovaiaf3c43f2007-05-17 18:34:37 +000019910 -V, --version print version number and configuration settings, then exit
brynercb91a2f2006-08-25 21:14:45 +000019911 -q, --quiet do not print progress messages
19912 -d, --debug don't remove temporary files
19913 --recheck update $as_me by reconfiguring in the same conditions
19914 --file=FILE[:TEMPLATE]
19915 instantiate the configuration file FILE
19916 --header=FILE[:TEMPLATE]
19917 instantiate the configuration header FILE
19918
19919Configuration files:
19920$config_files
19921
19922Configuration headers:
19923$config_headers
19924
19925Configuration commands:
19926$config_commands
19927
19928Report bugs to <bug-autoconf@gnu.org>."
brynercb91a2f2006-08-25 21:14:45 +000019929
mmentovai8c2a4de2006-09-20 16:20:15 +000019930_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000019931cat >>$CONFIG_STATUS <<_ACEOF
19932ac_cs_version="\\
mmentovaie5dc6082007-02-14 19:51:05 +000019933breakpad config.status 0.1
mmentovaiaf3c43f2007-05-17 18:34:37 +000019934configured by $0, generated by GNU Autoconf 2.61,
mmentovai8c2a4de2006-09-20 16:20:15 +000019935 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
brynercb91a2f2006-08-25 21:14:45 +000019936
mmentovai8c2a4de2006-09-20 16:20:15 +000019937Copyright (C) 2006 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +000019938This config.status script is free software; the Free Software Foundation
19939gives unlimited permission to copy, distribute and modify it."
mmentovai8c2a4de2006-09-20 16:20:15 +000019940
19941ac_pwd='$ac_pwd'
19942srcdir='$srcdir'
19943INSTALL='$INSTALL'
mmentovaiaf3c43f2007-05-17 18:34:37 +000019944MKDIR_P='$MKDIR_P'
brynercb91a2f2006-08-25 21:14:45 +000019945_ACEOF
19946
19947cat >>$CONFIG_STATUS <<\_ACEOF
19948# If no file are specified by the user, then we need to provide default
19949# value. By we need to know if files were specified by the user.
19950ac_need_defaults=:
19951while test $# != 0
19952do
19953 case $1 in
19954 --*=*)
mmentovai8c2a4de2006-09-20 16:20:15 +000019955 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19956 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +000019957 ac_shift=:
19958 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000019959 *)
brynercb91a2f2006-08-25 21:14:45 +000019960 ac_option=$1
19961 ac_optarg=$2
19962 ac_shift=shift
19963 ;;
brynercb91a2f2006-08-25 21:14:45 +000019964 esac
19965
19966 case $ac_option in
19967 # Handling of the options.
brynercb91a2f2006-08-25 21:14:45 +000019968 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19969 ac_cs_recheck=: ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000019970 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19971 echo "$ac_cs_version"; exit ;;
19972 --debug | --debu | --deb | --de | --d | -d )
brynercb91a2f2006-08-25 21:14:45 +000019973 debug=: ;;
19974 --file | --fil | --fi | --f )
19975 $ac_shift
19976 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19977 ac_need_defaults=false;;
19978 --header | --heade | --head | --hea )
19979 $ac_shift
19980 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19981 ac_need_defaults=false;;
mmentovai8c2a4de2006-09-20 16:20:15 +000019982 --he | --h)
19983 # Conflict between --help and --header
19984 { echo "$as_me: error: ambiguous option: $1
19985Try \`$0 --help' for more information." >&2
19986 { (exit 1); exit 1; }; };;
19987 --help | --hel | -h )
19988 echo "$ac_cs_usage"; exit ;;
brynercb91a2f2006-08-25 21:14:45 +000019989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19990 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19991 ac_cs_silent=: ;;
19992
19993 # This is an error.
mmentovai8c2a4de2006-09-20 16:20:15 +000019994 -*) { echo "$as_me: error: unrecognized option: $1
19995Try \`$0 --help' for more information." >&2
brynercb91a2f2006-08-25 21:14:45 +000019996 { (exit 1); exit 1; }; } ;;
19997
mmentovai8c2a4de2006-09-20 16:20:15 +000019998 *) ac_config_targets="$ac_config_targets $1"
19999 ac_need_defaults=false ;;
brynercb91a2f2006-08-25 21:14:45 +000020000
20001 esac
20002 shift
20003done
20004
20005ac_configure_extra_args=
20006
20007if $ac_cs_silent; then
20008 exec 6>/dev/null
20009 ac_configure_extra_args="$ac_configure_extra_args --silent"
20010fi
20011
20012_ACEOF
20013cat >>$CONFIG_STATUS <<_ACEOF
20014if \$ac_cs_recheck; then
mmentovai8c2a4de2006-09-20 16:20:15 +000020015 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20016 CONFIG_SHELL=$SHELL
20017 export CONFIG_SHELL
20018 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
brynercb91a2f2006-08-25 21:14:45 +000020019fi
20020
20021_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000020022cat >>$CONFIG_STATUS <<\_ACEOF
20023exec 5>>config.log
20024{
20025 echo
20026 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20027## Running $as_me. ##
20028_ASBOX
20029 echo "$ac_log"
20030} >&5
brynercb91a2f2006-08-25 21:14:45 +000020031
mmentovai8c2a4de2006-09-20 16:20:15 +000020032_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020033cat >>$CONFIG_STATUS <<_ACEOF
20034#
mmentovai8c2a4de2006-09-20 16:20:15 +000020035# INIT-COMMANDS
brynercb91a2f2006-08-25 21:14:45 +000020036#
brynercb91a2f2006-08-25 21:14:45 +000020037AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20038
20039_ACEOF
20040
brynercb91a2f2006-08-25 21:14:45 +000020041cat >>$CONFIG_STATUS <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000020042
20043# Handling of arguments.
brynercb91a2f2006-08-25 21:14:45 +000020044for ac_config_target in $ac_config_targets
20045do
mmentovai8c2a4de2006-09-20 16:20:15 +000020046 case $ac_config_target in
20047 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20048 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20049 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20050
brynercb91a2f2006-08-25 21:14:45 +000020051 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20052echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20053 { (exit 1); exit 1; }; };;
20054 esac
20055done
20056
mmentovai8c2a4de2006-09-20 16:20:15 +000020057
brynercb91a2f2006-08-25 21:14:45 +000020058# If the user did not use the arguments to specify the items to instantiate,
20059# then the envvar interface is used. Set only those that are not.
20060# We use the long form for the default assignment because of an extremely
20061# bizarre bug on SunOS 4.1.3.
20062if $ac_need_defaults; then
20063 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20064 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20065 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20066fi
20067
20068# Have a temporary directory for convenience. Make it in the build tree
mmentovai8c2a4de2006-09-20 16:20:15 +000020069# simply because there is no reason against having it here, and in addition,
brynercb91a2f2006-08-25 21:14:45 +000020070# creating and moving files from /tmp can sometimes cause problems.
mmentovai8c2a4de2006-09-20 16:20:15 +000020071# Hook for its removal unless debugging.
20072# Note that there is a small window in which the directory will not be cleaned:
20073# after its creation but before its name has been assigned to `$tmp'.
brynercb91a2f2006-08-25 21:14:45 +000020074$debug ||
20075{
mmentovai8c2a4de2006-09-20 16:20:15 +000020076 tmp=
20077 trap 'exit_status=$?
20078 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20079' 0
brynercb91a2f2006-08-25 21:14:45 +000020080 trap '{ (exit 1); exit 1; }' 1 2 13 15
20081}
brynercb91a2f2006-08-25 21:14:45 +000020082# Create a (secure) tmp directory for tmp files.
20083
20084{
mmentovai8c2a4de2006-09-20 16:20:15 +000020085 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
brynercb91a2f2006-08-25 21:14:45 +000020086 test -n "$tmp" && test -d "$tmp"
20087} ||
20088{
mmentovai8c2a4de2006-09-20 16:20:15 +000020089 tmp=./conf$$-$RANDOM
20090 (umask 077 && mkdir "$tmp")
brynercb91a2f2006-08-25 21:14:45 +000020091} ||
20092{
20093 echo "$me: cannot create a temporary directory in ." >&2
20094 { (exit 1); exit 1; }
20095}
20096
brynercb91a2f2006-08-25 21:14:45 +000020097#
mmentovai8c2a4de2006-09-20 16:20:15 +000020098# Set up the sed scripts for CONFIG_FILES section.
brynercb91a2f2006-08-25 21:14:45 +000020099#
20100
20101# No need to generate the scripts if there are no CONFIG_FILES.
20102# This happens for instance when ./config.status config.h
mmentovai8c2a4de2006-09-20 16:20:15 +000020103if test -n "$CONFIG_FILES"; then
brynercb91a2f2006-08-25 21:14:45 +000020104
20105_ACEOF
20106
mmentovai8c2a4de2006-09-20 16:20:15 +000020107
20108
20109ac_delim='%!_!# '
20110for ac_last_try in false false false false false :; do
20111 cat >conf$$subs.sed <<_ACEOF
20112SHELL!$SHELL$ac_delim
20113PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20114PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20115PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20116PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20117PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20118PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20119exec_prefix!$exec_prefix$ac_delim
20120prefix!$prefix$ac_delim
20121program_transform_name!$program_transform_name$ac_delim
20122bindir!$bindir$ac_delim
20123sbindir!$sbindir$ac_delim
20124libexecdir!$libexecdir$ac_delim
20125datarootdir!$datarootdir$ac_delim
20126datadir!$datadir$ac_delim
20127sysconfdir!$sysconfdir$ac_delim
20128sharedstatedir!$sharedstatedir$ac_delim
20129localstatedir!$localstatedir$ac_delim
20130includedir!$includedir$ac_delim
20131oldincludedir!$oldincludedir$ac_delim
20132docdir!$docdir$ac_delim
20133infodir!$infodir$ac_delim
20134htmldir!$htmldir$ac_delim
20135dvidir!$dvidir$ac_delim
20136pdfdir!$pdfdir$ac_delim
20137psdir!$psdir$ac_delim
20138libdir!$libdir$ac_delim
20139localedir!$localedir$ac_delim
20140mandir!$mandir$ac_delim
20141DEFS!$DEFS$ac_delim
20142ECHO_C!$ECHO_C$ac_delim
20143ECHO_N!$ECHO_N$ac_delim
20144ECHO_T!$ECHO_T$ac_delim
20145LIBS!$LIBS$ac_delim
20146build_alias!$build_alias$ac_delim
20147host_alias!$host_alias$ac_delim
20148target_alias!$target_alias$ac_delim
20149INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20150INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20151INSTALL_DATA!$INSTALL_DATA$ac_delim
mmentovaiaf3c43f2007-05-17 18:34:37 +000020152am__isrc!$am__isrc$ac_delim
mmentovai8c2a4de2006-09-20 16:20:15 +000020153CYGPATH_W!$CYGPATH_W$ac_delim
20154PACKAGE!$PACKAGE$ac_delim
20155VERSION!$VERSION$ac_delim
20156ACLOCAL!$ACLOCAL$ac_delim
20157AUTOCONF!$AUTOCONF$ac_delim
20158AUTOMAKE!$AUTOMAKE$ac_delim
20159AUTOHEADER!$AUTOHEADER$ac_delim
20160MAKEINFO!$MAKEINFO$ac_delim
20161install_sh!$install_sh$ac_delim
20162STRIP!$STRIP$ac_delim
20163INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20164mkdir_p!$mkdir_p$ac_delim
20165AWK!$AWK$ac_delim
20166SET_MAKE!$SET_MAKE$ac_delim
20167am__leading_dot!$am__leading_dot$ac_delim
20168AMTAR!$AMTAR$ac_delim
20169am__tar!$am__tar$ac_delim
20170am__untar!$am__untar$ac_delim
20171CC!$CC$ac_delim
20172CFLAGS!$CFLAGS$ac_delim
20173LDFLAGS!$LDFLAGS$ac_delim
20174CPPFLAGS!$CPPFLAGS$ac_delim
20175ac_ct_CC!$ac_ct_CC$ac_delim
20176EXEEXT!$EXEEXT$ac_delim
20177OBJEXT!$OBJEXT$ac_delim
20178DEPDIR!$DEPDIR$ac_delim
20179am__include!$am__include$ac_delim
20180am__quote!$am__quote$ac_delim
20181AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20182AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20183AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20184CCDEPMODE!$CCDEPMODE$ac_delim
20185am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20186am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20187CPP!$CPP$ac_delim
20188CXX!$CXX$ac_delim
20189CXXFLAGS!$CXXFLAGS$ac_delim
20190ac_ct_CXX!$ac_ct_CXX$ac_delim
20191CXXDEPMODE!$CXXDEPMODE$ac_delim
20192am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20193am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20194build!$build$ac_delim
20195build_cpu!$build_cpu$ac_delim
20196build_vendor!$build_vendor$ac_delim
20197build_os!$build_os$ac_delim
20198host!$host$ac_delim
20199host_cpu!$host_cpu$ac_delim
20200host_vendor!$host_vendor$ac_delim
20201host_os!$host_os$ac_delim
20202GREP!$GREP$ac_delim
20203EGREP!$EGREP$ac_delim
20204LN_S!$LN_S$ac_delim
20205ECHO!$ECHO$ac_delim
20206AR!$AR$ac_delim
20207RANLIB!$RANLIB$ac_delim
20208CXXCPP!$CXXCPP$ac_delim
mmentovai8c2a4de2006-09-20 16:20:15 +000020209_ACEOF
20210
20211 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20212 break
20213 elif $ac_last_try; then
20214 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20215echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20216 { (exit 1); exit 1; }; }
20217 else
20218 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
brynercb91a2f2006-08-25 21:14:45 +000020219 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000020220done
20221
20222ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20223if test -n "$ac_eof"; then
20224 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20225 ac_eof=`expr $ac_eof + 1`
20226fi
20227
20228cat >>$CONFIG_STATUS <<_ACEOF
20229cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20230/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20231_ACEOF
20232sed '
20233s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20234s/^/s,@/; s/!/@,|#_!!_#|/
20235:n
20236t n
20237s/'"$ac_delim"'$/,g/; t
20238s/$/\\/; p
20239N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20240' >>$CONFIG_STATUS <conf$$subs.sed
20241rm -f conf$$subs.sed
20242cat >>$CONFIG_STATUS <<_ACEOF
20243CEOF$ac_eof
20244_ACEOF
20245
20246
20247ac_delim='%!_!# '
20248for ac_last_try in false false false false false :; do
20249 cat >conf$$subs.sed <<_ACEOF
mmentovaiaf3c43f2007-05-17 18:34:37 +000020250F77!$F77$ac_delim
mmentovai8c2a4de2006-09-20 16:20:15 +000020251FFLAGS!$FFLAGS$ac_delim
20252ac_ct_F77!$ac_ct_F77$ac_delim
20253LIBTOOL!$LIBTOOL$ac_delim
20254LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
mmentovai0dbedc92006-09-25 21:16:15 +000020255SELFTEST_TRUE!$SELFTEST_TRUE$ac_delim
20256SELFTEST_FALSE!$SELFTEST_FALSE$ac_delim
mmentovai8c2a4de2006-09-20 16:20:15 +000020257LIBOBJS!$LIBOBJS$ac_delim
20258LTLIBOBJS!$LTLIBOBJS$ac_delim
20259_ACEOF
20260
mmentovaiaf3c43f2007-05-17 18:34:37 +000020261 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
mmentovai8c2a4de2006-09-20 16:20:15 +000020262 break
20263 elif $ac_last_try; then
20264 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20265echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20266 { (exit 1); exit 1; }; }
20267 else
20268 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20269 fi
20270done
20271
20272ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20273if test -n "$ac_eof"; then
20274 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20275 ac_eof=`expr $ac_eof + 1`
20276fi
20277
20278cat >>$CONFIG_STATUS <<_ACEOF
20279cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20280/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20281_ACEOF
20282sed '
20283s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20284s/^/s,@/; s/!/@,|#_!!_#|/
20285:n
20286t n
20287s/'"$ac_delim"'$/,g/; t
20288s/$/\\/; p
20289N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20290' >>$CONFIG_STATUS <conf$$subs.sed
20291rm -f conf$$subs.sed
20292cat >>$CONFIG_STATUS <<_ACEOF
20293:end
20294s/|#_!!_#|//g
20295CEOF$ac_eof
20296_ACEOF
20297
20298
20299# VPATH may cause trouble with some makes, so we remove $(srcdir),
20300# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20301# trailing colons and then remove the whole line if VPATH becomes empty
20302# (actually we leave an empty line to preserve line numbers).
20303if test "x$srcdir" = x.; then
20304 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20305s/:*\$(srcdir):*/:/
20306s/:*\${srcdir}:*/:/
20307s/:*@srcdir@:*/:/
20308s/^\([^=]*=[ ]*\):*/\1/
20309s/:*$//
20310s/^[^=]*=[ ]*$//
20311}'
20312fi
20313
20314cat >>$CONFIG_STATUS <<\_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020315fi # test -n "$CONFIG_FILES"
20316
mmentovai8c2a4de2006-09-20 16:20:15 +000020317
20318for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20319do
20320 case $ac_tag in
20321 :[FHLC]) ac_mode=$ac_tag; continue;;
20322 esac
20323 case $ac_mode$ac_tag in
20324 :[FHL]*:*);;
20325 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20326echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20327 { (exit 1); exit 1; }; };;
20328 :[FH]-) ac_tag=-:-;;
20329 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20330 esac
20331 ac_save_IFS=$IFS
20332 IFS=:
20333 set x $ac_tag
20334 IFS=$ac_save_IFS
20335 shift
20336 ac_file=$1
20337 shift
20338
20339 case $ac_mode in
20340 :L) ac_source=$1;;
20341 :[FH])
20342 ac_file_inputs=
20343 for ac_f
20344 do
20345 case $ac_f in
20346 -) ac_f="$tmp/stdin";;
20347 *) # Look for the file first in the build tree, then in the source tree
20348 # (if the path is not absolute). The absolute path cannot be DOS-style,
20349 # because $ac_f cannot contain `:'.
20350 test -f "$ac_f" ||
20351 case $ac_f in
20352 [\\/$]*) false;;
20353 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20354 esac ||
20355 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20356echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20357 { (exit 1); exit 1; }; };;
20358 esac
20359 ac_file_inputs="$ac_file_inputs $ac_f"
20360 done
20361
20362 # Let's still pretend it is `configure' which instantiates (i.e., don't
20363 # use $as_me), people would be surprised to read:
20364 # /* config.h. Generated by config.status. */
20365 configure_input="Generated from "`IFS=:
20366 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20367 if test x"$ac_file" != x-; then
20368 configure_input="$ac_file. $configure_input"
20369 { echo "$as_me:$LINENO: creating $ac_file" >&5
20370echo "$as_me: creating $ac_file" >&6;}
20371 fi
20372
20373 case $ac_tag in
20374 *:-:* | *:-) cat >"$tmp/stdin";;
20375 esac
20376 ;;
brynercb91a2f2006-08-25 21:14:45 +000020377 esac
20378
mmentovai8c2a4de2006-09-20 16:20:15 +000020379 ac_dir=`$as_dirname -- "$ac_file" ||
brynercb91a2f2006-08-25 21:14:45 +000020380$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20381 X"$ac_file" : 'X\(//\)[^/]' \| \
20382 X"$ac_file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000020383 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000020384echo X"$ac_file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000020385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20386 s//\1/
20387 q
20388 }
20389 /^X\(\/\/\)[^/].*/{
20390 s//\1/
20391 q
20392 }
20393 /^X\(\/\/\)$/{
20394 s//\1/
20395 q
20396 }
20397 /^X\(\/\).*/{
20398 s//\1/
20399 q
20400 }
20401 s/.*/./; q'`
20402 { as_dir="$ac_dir"
20403 case $as_dir in #(
20404 -*) as_dir=./$as_dir;;
20405 esac
20406 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
brynercb91a2f2006-08-25 21:14:45 +000020407 as_dirs=
mmentovai8c2a4de2006-09-20 16:20:15 +000020408 while :; do
20409 case $as_dir in #(
20410 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20411 *) as_qdir=$as_dir;;
20412 esac
20413 as_dirs="'$as_qdir' $as_dirs"
20414 as_dir=`$as_dirname -- "$as_dir" ||
brynercb91a2f2006-08-25 21:14:45 +000020415$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20416 X"$as_dir" : 'X\(//\)[^/]' \| \
20417 X"$as_dir" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000020418 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000020419echo X"$as_dir" |
mmentovai8c2a4de2006-09-20 16:20:15 +000020420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20421 s//\1/
20422 q
20423 }
20424 /^X\(\/\/\)[^/].*/{
20425 s//\1/
20426 q
20427 }
20428 /^X\(\/\/\)$/{
20429 s//\1/
20430 q
20431 }
20432 /^X\(\/\).*/{
20433 s//\1/
20434 q
20435 }
20436 s/.*/./; q'`
20437 test -d "$as_dir" && break
brynercb91a2f2006-08-25 21:14:45 +000020438 done
mmentovai8c2a4de2006-09-20 16:20:15 +000020439 test -z "$as_dirs" || eval "mkdir $as_dirs"
20440 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20441echo "$as_me: error: cannot create directory $as_dir" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000020442 { (exit 1); exit 1; }; }; }
brynercb91a2f2006-08-25 21:14:45 +000020443 ac_builddir=.
20444
mmentovai8c2a4de2006-09-20 16:20:15 +000020445case "$ac_dir" in
20446.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20447*)
brynercb91a2f2006-08-25 21:14:45 +000020448 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
mmentovai8c2a4de2006-09-20 16:20:15 +000020449 # A ".." for each directory in $ac_dir_suffix.
20450 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20451 case $ac_top_builddir_sub in
20452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20454 esac ;;
20455esac
20456ac_abs_top_builddir=$ac_pwd
20457ac_abs_builddir=$ac_pwd$ac_dir_suffix
20458# for backward compatibility:
20459ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +000020460
20461case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +000020462 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +000020463 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +000020464 ac_top_srcdir=$ac_top_builddir_sub
20465 ac_abs_top_srcdir=$ac_pwd ;;
20466 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +000020467 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +000020468 ac_top_srcdir=$srcdir
20469 ac_abs_top_srcdir=$srcdir ;;
20470 *) # Relative name.
20471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20472 ac_top_srcdir=$ac_top_build_prefix$srcdir
20473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +000020474esac
mmentovai8c2a4de2006-09-20 16:20:15 +000020475ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +000020476
brynercb91a2f2006-08-25 21:14:45 +000020477
mmentovai8c2a4de2006-09-20 16:20:15 +000020478 case $ac_mode in
20479 :F)
20480 #
20481 # CONFIG_FILE
20482 #
brynercb91a2f2006-08-25 21:14:45 +000020483
20484 case $INSTALL in
20485 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000020486 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
brynercb91a2f2006-08-25 21:14:45 +000020487 esac
mmentovaiaf3c43f2007-05-17 18:34:37 +000020488 ac_MKDIR_P=$MKDIR_P
20489 case $MKDIR_P in
20490 [\\/$]* | ?:[\\/]* ) ;;
20491 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20492 esac
brynercb91a2f2006-08-25 21:14:45 +000020493_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000020494
20495cat >>$CONFIG_STATUS <<\_ACEOF
20496# If the template does not know about datarootdir, expand it.
20497# FIXME: This hack should be removed a few years after 2.60.
20498ac_datarootdir_hack=; ac_datarootdir_seen=
20499
20500case `sed -n '/datarootdir/ {
20501 p
20502 q
20503}
20504/@datadir@/p
20505/@docdir@/p
20506/@infodir@/p
20507/@localedir@/p
20508/@mandir@/p
20509' $ac_file_inputs` in
20510*datarootdir*) ac_datarootdir_seen=yes;;
20511*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20512 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20513echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20514_ACEOF
20515cat >>$CONFIG_STATUS <<_ACEOF
20516 ac_datarootdir_hack='
20517 s&@datadir@&$datadir&g
20518 s&@docdir@&$docdir&g
20519 s&@infodir@&$infodir&g
20520 s&@localedir@&$localedir&g
20521 s&@mandir@&$mandir&g
20522 s&\\\${datarootdir}&$datarootdir&g' ;;
20523esac
20524_ACEOF
20525
20526# Neutralize VPATH when `$srcdir' = `.'.
20527# Shell code in configure.ac might set extrasub.
20528# FIXME: do we really want to maintain this feature?
brynercb91a2f2006-08-25 21:14:45 +000020529cat >>$CONFIG_STATUS <<_ACEOF
20530 sed "$ac_vpsub
20531$extrasub
20532_ACEOF
20533cat >>$CONFIG_STATUS <<\_ACEOF
20534:t
20535/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
mmentovai8c2a4de2006-09-20 16:20:15 +000020536s&@configure_input@&$configure_input&;t t
20537s&@top_builddir@&$ac_top_builddir_sub&;t t
20538s&@srcdir@&$ac_srcdir&;t t
20539s&@abs_srcdir@&$ac_abs_srcdir&;t t
20540s&@top_srcdir@&$ac_top_srcdir&;t t
20541s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20542s&@builddir@&$ac_builddir&;t t
20543s&@abs_builddir@&$ac_abs_builddir&;t t
20544s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20545s&@INSTALL@&$ac_INSTALL&;t t
mmentovaiaf3c43f2007-05-17 18:34:37 +000020546s&@MKDIR_P@&$ac_MKDIR_P&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000020547$ac_datarootdir_hack
20548" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
brynercb91a2f2006-08-25 21:14:45 +000020549
mmentovai8c2a4de2006-09-20 16:20:15 +000020550test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20551 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20552 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20553 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20554which seems to be undefined. Please make sure it is defined." >&5
20555echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20556which seems to be undefined. Please make sure it is defined." >&2;}
brynercb91a2f2006-08-25 21:14:45 +000020557
mmentovai8c2a4de2006-09-20 16:20:15 +000020558 rm -f "$tmp/stdin"
brynercb91a2f2006-08-25 21:14:45 +000020559 case $ac_file in
mmentovai8c2a4de2006-09-20 16:20:15 +000020560 -) cat "$tmp/out"; rm -f "$tmp/out";;
20561 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
brynercb91a2f2006-08-25 21:14:45 +000020562 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000020563 ;;
20564 :H)
20565 #
20566 # CONFIG_HEADER
20567 #
brynercb91a2f2006-08-25 21:14:45 +000020568_ACEOF
20569
mmentovai8c2a4de2006-09-20 16:20:15 +000020570# Transform confdefs.h into a sed script `conftest.defines', that
20571# substitutes the proper values into config.h.in to produce config.h.
20572rm -f conftest.defines conftest.tail
20573# First, append a space to every undef/define line, to ease matching.
20574echo 's/$/ /' >conftest.defines
20575# Then, protect against being on the right side of a sed subst, or in
20576# an unquoted here document, in config.status. If some macros were
20577# called several times there might be several #defines for the same
20578# symbol, which is useless. But do not sort them, since the last
20579# AC_DEFINE must be honored.
20580ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20581# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20582# NAME is the cpp macro being defined, VALUE is the value it is being given.
20583# PARAMS is the parameter list in the macro definition--in most cases, it's
20584# just an empty string.
20585ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20586ac_dB='\\)[ (].*,\\1define\\2'
20587ac_dC=' '
20588ac_dD=' ,'
brynercb91a2f2006-08-25 21:14:45 +000020589
mmentovai8c2a4de2006-09-20 16:20:15 +000020590uniq confdefs.h |
20591 sed -n '
20592 t rset
20593 :rset
20594 s/^[ ]*#[ ]*define[ ][ ]*//
20595 t ok
20596 d
20597 :ok
20598 s/[\\&,]/\\&/g
20599 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20600 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20601 ' >>conftest.defines
20602
20603# Remove the space that was appended to ease matching.
20604# Then replace #undef with comments. This is necessary, for
brynercb91a2f2006-08-25 21:14:45 +000020605# example, in the case of _POSIX_SOURCE, which is predefined and required
20606# on some systems where configure will not decide to define it.
mmentovai8c2a4de2006-09-20 16:20:15 +000020607# (The regexp can be short, since the line contains either #define or #undef.)
20608echo 's/ $//
20609s,^[ #]*u.*,/* & */,' >>conftest.defines
brynercb91a2f2006-08-25 21:14:45 +000020610
mmentovai8c2a4de2006-09-20 16:20:15 +000020611# Break up conftest.defines:
20612ac_max_sed_lines=50
20613
20614# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20615# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20616# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20617# et cetera.
20618ac_in='$ac_file_inputs'
20619ac_out='"$tmp/out1"'
20620ac_nxt='"$tmp/out2"'
20621
20622while :
brynercb91a2f2006-08-25 21:14:45 +000020623do
mmentovai8c2a4de2006-09-20 16:20:15 +000020624 # Write a here document:
20625 cat >>$CONFIG_STATUS <<_ACEOF
20626 # First, check the format of the line:
20627 cat >"\$tmp/defines.sed" <<\\CEOF
20628/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20629/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20630b
20631:def
20632_ACEOF
20633 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
brynercb91a2f2006-08-25 21:14:45 +000020634 echo 'CEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000020635 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20636 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20637 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20638 grep . conftest.tail >/dev/null || break
brynercb91a2f2006-08-25 21:14:45 +000020639 rm -f conftest.defines
20640 mv conftest.tail conftest.defines
20641done
mmentovai8c2a4de2006-09-20 16:20:15 +000020642rm -f conftest.defines conftest.tail
brynercb91a2f2006-08-25 21:14:45 +000020643
mmentovai8c2a4de2006-09-20 16:20:15 +000020644echo "ac_result=$ac_in" >>$CONFIG_STATUS
brynercb91a2f2006-08-25 21:14:45 +000020645cat >>$CONFIG_STATUS <<\_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020646 if test x"$ac_file" != x-; then
mmentovai8c2a4de2006-09-20 16:20:15 +000020647 echo "/* $configure_input */" >"$tmp/config.h"
20648 cat "$ac_result" >>"$tmp/config.h"
20649 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
brynercb91a2f2006-08-25 21:14:45 +000020650 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20651echo "$as_me: $ac_file is unchanged" >&6;}
20652 else
brynercb91a2f2006-08-25 21:14:45 +000020653 rm -f $ac_file
mmentovai8c2a4de2006-09-20 16:20:15 +000020654 mv "$tmp/config.h" $ac_file
brynercb91a2f2006-08-25 21:14:45 +000020655 fi
20656 else
mmentovai8c2a4de2006-09-20 16:20:15 +000020657 echo "/* $configure_input */"
20658 cat "$ac_result"
brynercb91a2f2006-08-25 21:14:45 +000020659 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000020660 rm -f "$tmp/out12"
brynercb91a2f2006-08-25 21:14:45 +000020661# Compute $ac_file's index in $config_headers.
20662_am_stamp_count=1
20663for _am_header in $config_headers :; do
20664 case $_am_header in
20665 $ac_file | $ac_file:* )
20666 break ;;
20667 * )
20668 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20669 esac
20670done
mmentovai8c2a4de2006-09-20 16:20:15 +000020671echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
brynercb91a2f2006-08-25 21:14:45 +000020672$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20673 X$ac_file : 'X\(//\)[^/]' \| \
20674 X$ac_file : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000020675 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000020676echo X$ac_file |
mmentovai8c2a4de2006-09-20 16:20:15 +000020677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20678 s//\1/
20679 q
20680 }
20681 /^X\(\/\/\)[^/].*/{
20682 s//\1/
20683 q
20684 }
20685 /^X\(\/\/\)$/{
20686 s//\1/
20687 q
20688 }
20689 /^X\(\/\).*/{
20690 s//\1/
20691 q
20692 }
20693 s/.*/./; q'`/stamp-h$_am_stamp_count
20694 ;;
brynercb91a2f2006-08-25 21:14:45 +000020695
mmentovai8c2a4de2006-09-20 16:20:15 +000020696 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20697echo "$as_me: executing $ac_file commands" >&6;}
20698 ;;
20699 esac
brynercb91a2f2006-08-25 21:14:45 +000020700
20701
mmentovai8c2a4de2006-09-20 16:20:15 +000020702 case $ac_file$ac_mode in
20703 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
brynercb91a2f2006-08-25 21:14:45 +000020704 # Strip MF so we end up with the name of the file.
20705 mf=`echo "$mf" | sed -e 's/:.*$//'`
20706 # Check whether this is an Automake generated Makefile or not.
20707 # We used to match only the files named `Makefile.in', but
20708 # some people rename them; so instead we look at the file content.
20709 # Grep'ing the first line is not enough: some people post-process
20710 # each Makefile.in and add a new line on top of each file to say so.
mmentovaiaf3c43f2007-05-17 18:34:37 +000020711 # Grep'ing the whole file is not good either: AIX grep has a line
20712 # limit of 2048, but all sed's we know have understand at least 4000.
20713 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
mmentovai8c2a4de2006-09-20 16:20:15 +000020714 dirpart=`$as_dirname -- "$mf" ||
brynercb91a2f2006-08-25 21:14:45 +000020715$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20716 X"$mf" : 'X\(//\)[^/]' \| \
20717 X"$mf" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000020718 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000020719echo X"$mf" |
mmentovai8c2a4de2006-09-20 16:20:15 +000020720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20721 s//\1/
20722 q
20723 }
20724 /^X\(\/\/\)[^/].*/{
20725 s//\1/
20726 q
20727 }
20728 /^X\(\/\/\)$/{
20729 s//\1/
20730 q
20731 }
20732 /^X\(\/\).*/{
20733 s//\1/
20734 q
20735 }
20736 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +000020737 else
20738 continue
20739 fi
20740 # Extract the definition of DEPDIR, am__include, and am__quote
20741 # from the Makefile without running `make'.
20742 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20743 test -z "$DEPDIR" && continue
20744 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20745 test -z "am__include" && continue
20746 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20747 # When using ansi2knr, U may be empty or an underscore; expand it
20748 U=`sed -n 's/^U = //p' < "$mf"`
20749 # Find all dependency output files, they are included files with
20750 # $(DEPDIR) in their names. We invoke sed twice because it is the
20751 # simplest approach to changing $(DEPDIR) to its actual value in the
20752 # expansion.
20753 for file in `sed -n "
20754 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20755 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20756 # Make sure the directory exists.
20757 test -f "$dirpart/$file" && continue
mmentovai8c2a4de2006-09-20 16:20:15 +000020758 fdir=`$as_dirname -- "$file" ||
brynercb91a2f2006-08-25 21:14:45 +000020759$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20760 X"$file" : 'X\(//\)[^/]' \| \
20761 X"$file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000020762 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000020763echo X"$file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000020764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20765 s//\1/
20766 q
20767 }
20768 /^X\(\/\/\)[^/].*/{
20769 s//\1/
20770 q
20771 }
20772 /^X\(\/\/\)$/{
20773 s//\1/
20774 q
20775 }
20776 /^X\(\/\).*/{
20777 s//\1/
20778 q
20779 }
20780 s/.*/./; q'`
20781 { as_dir=$dirpart/$fdir
20782 case $as_dir in #(
20783 -*) as_dir=./$as_dir;;
20784 esac
20785 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
brynercb91a2f2006-08-25 21:14:45 +000020786 as_dirs=
mmentovai8c2a4de2006-09-20 16:20:15 +000020787 while :; do
20788 case $as_dir in #(
20789 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20790 *) as_qdir=$as_dir;;
20791 esac
20792 as_dirs="'$as_qdir' $as_dirs"
20793 as_dir=`$as_dirname -- "$as_dir" ||
brynercb91a2f2006-08-25 21:14:45 +000020794$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20795 X"$as_dir" : 'X\(//\)[^/]' \| \
20796 X"$as_dir" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000020797 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000020798echo X"$as_dir" |
mmentovai8c2a4de2006-09-20 16:20:15 +000020799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20800 s//\1/
20801 q
20802 }
20803 /^X\(\/\/\)[^/].*/{
20804 s//\1/
20805 q
20806 }
20807 /^X\(\/\/\)$/{
20808 s//\1/
20809 q
20810 }
20811 /^X\(\/\).*/{
20812 s//\1/
20813 q
20814 }
20815 s/.*/./; q'`
20816 test -d "$as_dir" && break
brynercb91a2f2006-08-25 21:14:45 +000020817 done
mmentovai8c2a4de2006-09-20 16:20:15 +000020818 test -z "$as_dirs" || eval "mkdir $as_dirs"
20819 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20820echo "$as_me: error: cannot create directory $as_dir" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000020821 { (exit 1); exit 1; }; }; }
brynercb91a2f2006-08-25 21:14:45 +000020822 # echo "creating $dirpart/$file"
20823 echo '# dummy' > "$dirpart/$file"
20824 done
20825done
20826 ;;
brynercb91a2f2006-08-25 21:14:45 +000020827
mmentovai8c2a4de2006-09-20 16:20:15 +000020828 esac
20829done # for ac_tag
20830
brynercb91a2f2006-08-25 21:14:45 +000020831
20832{ (exit 0); exit 0; }
20833_ACEOF
20834chmod +x $CONFIG_STATUS
20835ac_clean_files=$ac_clean_files_save
20836
20837
20838# configure is writing to config.log, and then calls config.status.
20839# config.status does its own redirection, appending to config.log.
20840# Unfortunately, on DOS this fails, as config.log is still kept open
20841# by configure, so config.status won't be able to write to it; its
20842# output is simply discarded. So we exec the FD to /dev/null,
20843# effectively closing config.log, so it can be properly (re)opened and
20844# appended to by config.status. When coming back to configure, we
20845# need to make the FD available again.
20846if test "$no_create" != yes; then
20847 ac_cs_success=:
20848 ac_config_status_args=
20849 test "$silent" = yes &&
20850 ac_config_status_args="$ac_config_status_args --quiet"
20851 exec 5>/dev/null
20852 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20853 exec 5>>config.log
20854 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20855 # would make configure fail if this is the last instruction.
20856 $ac_cs_success || { (exit 1); exit 1; }
20857fi
20858